guard-rspec 4.2.6 → 4.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/guard/rspec/command.rb +5 -1
- data/lib/guard/rspec/version.rb +1 -1
- data/spec/lib/guard/rspec/command_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzdhYWQ0ZjRhNWRhMGY2NWEwODMyZjA4OWVlNDkzMzQyMWNiOTJmNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGIzOGM0ODQ1YjNkNDA1NzczNjAwNDNiYTUzN2M2OTkwNmU5ZmMxYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDMzYjQ3OTI0OWU0ODk0OGIyYmJmZTdjZDNhZjkwMDBmNGUxZmI4M2NmNDli
|
10
|
+
ZTBiOTAyOTAzMjE1OWJjNGVjOWYyODhkMzQ3YTQwOTRmYzRlZmY2YjFiZDIw
|
11
|
+
ZTM3NDcxMTllMjUwNWRiNTMzMmUyY2VmMjNjMzgwMDI4YTVhZjk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
M2M5YTcxMTQ5OTNkNWVhOGUwZjc5ZTE5NmFkZTdlMTY2MTVlMGFmOGUwMzA2
|
14
|
+
NmRiYTEwNmZhZTZlYmUyOGRiODg4MWQwMjM0Y2NkYjk1MTNiNTYwNDYwNGM4
|
15
|
+
ZDYzZTI1ZmNhNzVjODNkZjhlMTFlODRlNDY3Nzg3ZWYzNTc2MjM=
|
data/lib/guard/rspec/command.rb
CHANGED
@@ -30,7 +30,11 @@ module Guard
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def _rspec_formatters
|
33
|
-
|
33
|
+
# RSpec::Core::ConfigurationOptions#parse_options method was renamed to #options
|
34
|
+
# in rspec-core v3.0.0.beta2 so call the first one if available. Fixes #249
|
35
|
+
config = ::RSpec::Core::ConfigurationOptions.new([])
|
36
|
+
config.parse_options if config.respond_to?(:parse_options)
|
37
|
+
formatters = config.options[:formatters] || nil
|
34
38
|
# RSpec's parser returns an array in the format [[formatter, output], ...], so match their format
|
35
39
|
# Construct a matching command line option, including output target
|
36
40
|
formatters && formatters.map { |formatter| "-f #{formatter.join ' -o '}" }.join(' ')
|
data/lib/guard/rspec/version.rb
CHANGED
@@ -30,7 +30,7 @@ describe Guard::RSpec::Command do
|
|
30
30
|
|
31
31
|
context "with RSpec defined formatter" do
|
32
32
|
let(:formatters) { [['doc','output']] }
|
33
|
-
before { allow(RSpec::Core::ConfigurationOptions).to receive(:new) { double(
|
33
|
+
before { allow(RSpec::Core::ConfigurationOptions).to receive(:new) { double(options: { formatters: formatters }) } }
|
34
34
|
|
35
35
|
it "uses them" do
|
36
36
|
expect(command).to match %r{-f doc -o output}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.7
|
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: 2014-02-
|
11
|
+
date: 2014-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|