guard-rspec 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,6 +6,8 @@ module Guard
6
6
  autoload :Runner, 'guard/rspec/runner'
7
7
  autoload :Inspector, 'guard/rspec/inspector'
8
8
 
9
+ attr_accessor :last_failed, :failed_paths
10
+
9
11
  def initialize(watchers = [], options = {})
10
12
  super
11
13
  @options = {
@@ -43,14 +45,14 @@ module Guard
43
45
  end
44
46
 
45
47
  def run_on_changes(paths)
46
- paths += @failed_paths if @options[:keep_failed]
48
+ paths += failed_paths if @options[:keep_failed]
47
49
  paths = @inspector.clean(paths)
48
50
 
49
51
  if passed = @runner.run(paths)
50
52
  remove_failed(paths)
51
53
 
52
54
  # run all the specs if the run before this one failed
53
- if @last_failed && @options[:all_after_pass]
55
+ if last_failed && @options[:all_after_pass]
54
56
  @last_failed = false
55
57
  run_all
56
58
  end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module RSpecVersion
3
- VERSION = "2.1.0"
3
+ VERSION = "2.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-07 00:00:00.000000000 Z
12
+ date: 2012-10-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard