guard-rspec 4.2.6 → 4.2.7

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OWUxMGM1YWNlYmM1MDYzYmRmYjcwZWM1NWRiMmU2ZmEzYmU4ZGFkYg==
4
+ YzdhYWQ0ZjRhNWRhMGY2NWEwODMyZjA4OWVlNDkzMzQyMWNiOTJmNw==
5
5
  data.tar.gz: !binary |-
6
- Mjc1OTYwY2ZlYTAzMDVjNjk0N2QyNjJhYTAzYjNlODI4YjJiYjU3Mw==
6
+ ZGIzOGM0ODQ1YjNkNDA1NzczNjAwNDNiYTUzN2M2OTkwNmU5ZmMxYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODY4YzY1YjYyNTQ3YjVjMzM4NDdkZmMwN2Q5NmViNDgxMjY0YThhYmY5YTQ5
10
- MTU0NDllZGQ4ZTRiZDk0ZWY4NjY2MjRlMDY2OGQyMDA5ZGY5MmM4NDMxMDky
11
- YjRkNzBlMzRhZjgzZWU4Y2ZkMTY5NzY2ZWVjNDk5MmU0Y2EyYTM=
9
+ NDMzYjQ3OTI0OWU0ODk0OGIyYmJmZTdjZDNhZjkwMDBmNGUxZmI4M2NmNDli
10
+ ZTBiOTAyOTAzMjE1OWJjNGVjOWYyODhkMzQ3YTQwOTRmYzRlZmY2YjFiZDIw
11
+ ZTM3NDcxMTllMjUwNWRiNTMzMmUyY2VmMjNjMzgwMDI4YTVhZjk=
12
12
  data.tar.gz: !binary |-
13
- MTg1NDM3NmFmNDdlOWRlYzYwMDQ2ZjNiZWJhMTQ4ZThiZTJiMjMyZmNhODA2
14
- NTMxZGY1ZTVhNDI3MWFhYjZmY2RiODJjNTdkODVjMjVlYWU5ZTUzOWIzZGMw
15
- YWQzODUyYTA1YzM3YTU4N2M0ZDBkMzZlMzI3YWFhNmVmMDUxOTg=
13
+ M2M5YTcxMTQ5OTNkNWVhOGUwZjc5ZTE5NmFkZTdlMTY2MTVlMGFmOGUwMzA2
14
+ NmRiYTEwNmZhZTZlYmUyOGRiODg4MWQwMjM0Y2NkYjk1MTNiNTYwNDYwNGM4
15
+ ZDYzZTI1ZmNhNzVjODNkZjhlMTFlODRlNDY3Nzg3ZWYzNTc2MjM=
@@ -30,7 +30,11 @@ module Guard
30
30
  end
31
31
 
32
32
  def _rspec_formatters
33
- formatters = ::RSpec::Core::ConfigurationOptions.new([]).parse_options()[:formatters] || nil
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(' ')
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module RSpecVersion
3
- VERSION = '4.2.6'
3
+ VERSION = '4.2.7'
4
4
  end
5
5
  end
@@ -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(parse_options: { formatters: formatters }) } }
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.6
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-08 00:00:00.000000000 Z
11
+ date: 2014-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard