guard-rspec 2.5.2 → 2.5.3
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.
- checksums.yaml +6 -14
- data/README.md +10 -10
- data/lib/guard/rspec/runner.rb +1 -1
- data/lib/guard/rspec/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
NTMxNzhmZDQyYmU4NGQ0ZTQ5Y2I0NThjYWU3MGYwYWEwOGUxNDg3ZTVjNmZj
|
10
|
-
YWJhOTkxZDAwZWY0NWFhOGFjY2E0YjY2ODczYjQxYmNjNjE1NTg3YjEyMTcw
|
11
|
-
MDU5ZWRlODhiOTg2NDIyYjk3OTk0NDdmYzdmM2I0NmZmOTgwYTA=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NjgwNzJjYzBhNzBkY2UzOTUxZDZmYzM2YWE2YzQ0ZDFkMjQ2NTY4YWUwNmMy
|
14
|
-
OWQ1MmNlYjM1OGQxZThjNGQ0OTJmNGVhY2ExYjM4ZmFlNWY2YjA0YjczZTUy
|
15
|
-
YmQ0YWIxNjNjNGRlY2RlYWRjOGM5ZmZmMWZlNDQyOWExN2NlYTc=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6cb8628e7c26ce4ae2f79eaad2450439a2f3b699
|
4
|
+
data.tar.gz: 489f1c1af197a01ba1db0dba936b93046fb0e2e5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f169bcda81fcfbd228cfda8c28b3001d82754e65aa703f7941f06e4e6597e4de67cc8b40214781e80171dff930ccfee96334479434d6a35bcd54796f3d51809e
|
7
|
+
data.tar.gz: 4c7cc24c868566a1dbf2a637f5c831f5cb5b86dd3f0c4b1c3689b98390551d5976848e0ce109b7031a7712d7b02945ac5b01b2268d32a86b5d5f9c690298a972
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ RSpec guard allows to automatically & intelligently launch specs when files are
|
|
7
7
|
|
8
8
|
## Install
|
9
9
|
|
10
|
-
Please be sure to have [Guard](https://github.com/guard/guard) installed before
|
10
|
+
Please be sure to have [Guard](https://github.com/guard/guard) installed before continuing.
|
11
11
|
|
12
12
|
Install the gem:
|
13
13
|
|
@@ -31,11 +31,11 @@ $ guard init rspec
|
|
31
31
|
|
32
32
|
## Usage
|
33
33
|
|
34
|
-
Please read [Guard usage doc](https://github.com/guard/guard#readme)
|
34
|
+
Please read [Guard usage doc](https://github.com/guard/guard#readme).
|
35
35
|
|
36
36
|
## Guardfile
|
37
37
|
|
38
|
-
RSpec guard can be
|
38
|
+
RSpec guard can be adapted to all kinds of projects.
|
39
39
|
|
40
40
|
### Standard RubyGem project
|
41
41
|
|
@@ -81,14 +81,14 @@ guard 'rspec', :spec_paths => ["spec", "vendor/engines/reset/spec"] do
|
|
81
81
|
# ...
|
82
82
|
end
|
83
83
|
```
|
84
|
-
If you have only one path to look, you can configure `:spec_paths` option with a string:
|
84
|
+
If you have only one path to look in, you can configure the `:spec_paths` option with a string:
|
85
85
|
|
86
86
|
``` ruby
|
87
87
|
guard 'rspec', :spec_paths => "test" do
|
88
88
|
# ...
|
89
89
|
end
|
90
90
|
```
|
91
|
-
If you want to set an environment variable, you can configure `:env` option with a hash:
|
91
|
+
If you want to set an environment variable, you can configure the `:env` option with a hash:
|
92
92
|
|
93
93
|
``` ruby
|
94
94
|
guard 'rspec', :env => {'RAILS_ENV' => 'guard'} do
|
@@ -114,7 +114,7 @@ guard 'rspec', :parallel => true, :parallel_cli => '-n 2' do
|
|
114
114
|
end
|
115
115
|
```
|
116
116
|
|
117
|
-
Former `:color`, `:drb`, `:fail_fast` and `:formatter` options are deprecated and have
|
117
|
+
Former `:color`, `:drb`, `:fail_fast` and `:formatter` options are deprecated and no longer have effect.
|
118
118
|
|
119
119
|
### List of available options:
|
120
120
|
|
@@ -144,7 +144,7 @@ You can also use a custom binstubs directory using `:binstubs => 'some-dir'`.
|
|
144
144
|
|
145
145
|
When you specify `--drb` within `:cli`, guard-rspec will circumvent the `rspec` command line tool by
|
146
146
|
directly communicating with the RSpec DRb server. This avoids the extra overhead incurred by your
|
147
|
-
shell, bundler and loading RSpec's environment just to send a DRb message.
|
147
|
+
shell, bundler and loading RSpec's environment just to send a DRb message. It shaves off a
|
148
148
|
second or two before the specs start to run; they should run almost immediately.
|
149
149
|
|
150
150
|
## Notification
|
@@ -157,7 +157,7 @@ The best solution is still to update RSpec to the latest version!
|
|
157
157
|
|
158
158
|
## Formatters
|
159
159
|
|
160
|
-
The `:formatter` option has been removed since CLI arguments can be passed through the `:cli` option. If you want to use the former Instafail formatter, you need to use [rspec-instafail](http://rubygems.org/gems/rspec-instafail) gem instead:
|
160
|
+
The `:formatter` option has been removed since CLI arguments can be passed through the `:cli` option. If you want to use the former Instafail formatter, you need to use the [rspec-instafail](http://rubygems.org/gems/rspec-instafail) gem instead:
|
161
161
|
|
162
162
|
``` ruby
|
163
163
|
# in your Gemfile
|
@@ -173,12 +173,12 @@ Default formatter is the `progress` formatter (same as RSpec default).
|
|
173
173
|
|
174
174
|
## Running a subset of all specs
|
175
175
|
|
176
|
-
The `:all_on_start` and `:all_after_pass` options cause all specs located in the `spec` directory to be run.
|
176
|
+
The `:all_on_start` and `:all_after_pass` options cause all specs located in the `spec` directory to be run. If there
|
177
177
|
are some specs you want to skip, you can tag them with RSpec metadata (such as `:slow => true`)
|
178
178
|
and skip them with the cli `--tag` option (i.e. `--tag ~slow`).
|
179
179
|
|
180
180
|
You can also use option :spec_paths to override paths used when running all specs.
|
181
|
-
You can use this feature to create multiple groups of guarded specs with distinct paths, and execute each in own process:
|
181
|
+
You can use this feature to create multiple groups of guarded specs with distinct paths, and execute each in its own process:
|
182
182
|
|
183
183
|
``` ruby
|
184
184
|
# in your Guardfile
|
data/lib/guard/rspec/runner.rb
CHANGED
@@ -167,7 +167,7 @@ module Guard
|
|
167
167
|
# Make sure we have a listener running
|
168
168
|
unless @drb_listener_running
|
169
169
|
begin
|
170
|
-
DRb.start_service("druby://
|
170
|
+
DRb.start_service("druby://127.0.0.1:0")
|
171
171
|
rescue SocketError, Errno::EADDRNOTAVAIL
|
172
172
|
DRb.start_service("druby://:0")
|
173
173
|
end
|
data/lib/guard/rspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thibaud Guillaume-Gentil
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-04-
|
11
|
+
date: 2013-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -76,12 +76,12 @@ require_paths:
|
|
76
76
|
- lib
|
77
77
|
required_ruby_version: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- -
|
79
|
+
- - '>='
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
83
|
requirements:
|
84
|
-
- -
|
84
|
+
- - '>='
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: 1.3.6
|
87
87
|
requirements: []
|