guard-rspec 0.3.0 → 0.3.1
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/README.markdown +9 -2
- data/lib/guard/rspec.rb +6 -2
- data/lib/guard/rspec/formatter.rb +1 -1
- data/lib/guard/rspec/version.rb +1 -1
- metadata +2 -2
data/README.markdown
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Guard::RSpec
|
2
2
|
=============
|
3
3
|
|
4
|
-

|
5
5
|
|
6
6
|
RSpec guard allows to automatically & intelligently launch specs when files are modified.
|
7
7
|
|
@@ -114,13 +114,20 @@ The <tt>:formatter</tt> option has been removed since CLI arguments can be passe
|
|
114
114
|
gem 'rspec-instafail'
|
115
115
|
|
116
116
|
# in your Guardfile
|
117
|
-
guard 'rspec, :cli =>
|
117
|
+
guard 'rspec', :cli => '-r rspec/instafail -f RSpec::Instafail' do
|
118
118
|
# ...
|
119
119
|
end
|
120
120
|
```
|
121
121
|
|
122
122
|
Default formatter is the <tt>progress</tt> formatter (same as RSpec default).
|
123
123
|
|
124
|
+
Running a subset of all specs
|
125
|
+
-----------
|
126
|
+
|
127
|
+
The `:all_on_start` and `:all_after_pass` options cause all specs to be run. If there
|
128
|
+
are some specs you want to skip, you can tag them with RSpec metadata (such as `:slow => true`)
|
129
|
+
and skip them with the cli `--tag` option (i.e. `--tag ~slow`).
|
130
|
+
|
124
131
|
Development
|
125
132
|
-----------
|
126
133
|
|
data/lib/guard/rspec.rb
CHANGED
@@ -32,10 +32,14 @@ module Guard
|
|
32
32
|
@last_failed = !passed
|
33
33
|
end
|
34
34
|
|
35
|
+
def reload
|
36
|
+
@failed_paths = []
|
37
|
+
end
|
38
|
+
|
35
39
|
def run_on_change(paths)
|
36
|
-
paths = Inspector.clean(paths)
|
37
40
|
paths += @failed_paths if @options[:keep_failed]
|
38
|
-
|
41
|
+
paths = Inspector.clean(paths)
|
42
|
+
passed = Runner.run(paths, options)
|
39
43
|
|
40
44
|
if passed
|
41
45
|
# clean failed paths memory
|
data/lib/guard/rspec/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: guard-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.3.
|
5
|
+
version: 0.3.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Thibaud Guillaume-Gentil
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-04
|
13
|
+
date: 2011-05-04 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|