dirty 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/bin/dirty +1 -0
  2. data/lib/dirty.rb +3 -3
  3. data/lib/dirty/version.rb +1 -1
  4. metadata +1 -1
data/bin/dirty CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ $:.unshift(File.expand_path('../../lib', __FILE__))
3
4
  require 'dirty'
4
5
 
5
6
  exit(Dirty.perform)
@@ -34,16 +34,16 @@ module Dirty
34
34
  end
35
35
 
36
36
  def dirty_features
37
- dirty_matches(/(features.*\.feature)/)
37
+ dirty_matches(/features.*\.feature/)
38
38
  end
39
39
 
40
40
  def dirty_specs
41
- dirty_matches(/(spec.*\_spec.rb)/)
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
 
@@ -1,3 +1,3 @@
1
1
  module Dirty
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: dirty
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.5
5
+ version: 0.0.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Robert Pitts