Skip to content

Instantly share code, notes, and snippets.

View marcandre's full-sized avatar

Marc-André Lafortune marcandre

View GitHub Profile
@marcandre
marcandre / gitlinestat.rb
Created July 13, 2012 20:17
Quick stats per user on number of lines added/removed per commit
#!/usr/bin/env ruby
# A simple script to get stats on number of lines added/removed per commit
# Accepts -v option for verbose mode
# Accepts other git options, in particular path.
#
# E.g.:
#
# linestat -v app lib
diff --git a/array.c b/array.c
index 51d3ad2..29f2ca0 100644
--- a/array.c
+++ b/array.c
@@ -22,7 +22,7 @@
VALUE rb_cArray;
-static ID id_cmp;
+static ID id_cmp, id_div, id_power;
diff --git a/lib/mspec/expectations/should.rb b/lib/mspec/expectations/should.rb
index 6a37401..6cd7030 100644
--- a/lib/mspec/expectations/should.rb
+++ b/lib/mspec/expectations/should.rb
@@ -1,8 +1,9 @@
class Object
- def should(matcher=nil)
+ NO_MATCHER_GIVEN = Object.new
+ def should(matcher=NO_MATCHER_GIVEN)
MSpec.expectation