This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder