fakeweb-matcher 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/fake_web_matcher.rb +2 -2
  3. metadata +3 -3
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 2
4
- :patch: 1
4
+ :patch: 2
@@ -26,7 +26,7 @@ FakeWeb::Registry.class_eval do
26
26
  include FakeWebMatcher::Extension
27
27
  end
28
28
 
29
- rspec = defined?(Spec) && defined?(Spec::Runner) ? Spec::Runner : RSpec
29
+ rspec = defined?(RSpec) ? RSpec : Spec::Runner
30
30
  rspec.configure { |config|
31
31
  # Adding the custom matcher to the default set
32
32
  config.include FakeWebMatcher::Matchers
@@ -35,4 +35,4 @@ rspec.configure { |config|
35
35
  config.before :each do
36
36
  FakeWeb::Registry.instance.clear_requests
37
37
  end
38
- }
38
+ } if rspec.respond_to?(:configure)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fakeweb-matcher
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 1
10
- version: 1.2.1
9
+ - 2
10
+ version: 1.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pat Allan