dirty 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/dirty +1 -0
- data/lib/dirty.rb +3 -3
- data/lib/dirty/version.rb +1 -1
- metadata +1 -1
data/bin/dirty
CHANGED
data/lib/dirty.rb
CHANGED
|
@@ -34,16 +34,16 @@ module Dirty
|
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
def dirty_features
|
|
37
|
-
dirty_matches(/
|
|
37
|
+
dirty_matches(/features.*\.feature/)
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
def dirty_specs
|
|
41
|
-
dirty_matches(/
|
|
41
|
+
dirty_matches(/spec.*\_spec\.rb/)
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
def dirty_matches(regex)
|
|
45
45
|
dirty_files.map do |s|
|
|
46
|
-
s[regex]
|
|
46
|
+
s[/^.. (?:.* -> )?(#{regex})$/,1]
|
|
47
47
|
end.compact
|
|
48
48
|
end
|
|
49
49
|
|
data/lib/dirty/version.rb
CHANGED