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.
- data/lib/guard/rspec.rb +4 -2
- data/lib/guard/rspec/version.rb +1 -1
- metadata +2 -2
data/lib/guard/rspec.rb
CHANGED
@@ -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 +=
|
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
|
55
|
+
if last_failed && @options[:all_after_pass]
|
54
56
|
@last_failed = false
|
55
57
|
run_all
|
56
58
|
end
|
data/lib/guard/rspec/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2012-10-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|