better_receive 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ module BetterReceive
11
11
  attr_reader :subject
12
12
 
13
13
  def subject_is_any_instance?
14
- subject.is_a?(RSpec::Mocks::AnyInstance::Recorder)
14
+ defined?(RSpec::Mocks::AnyInstance) && subject.is_a?(RSpec::Mocks::AnyInstance::Recorder)
15
15
  end
16
16
 
17
17
  def respond_to(selector)
@@ -1,3 +1,3 @@
1
1
  module BetterReceive
2
- BETTER_VERSION = "0.4.0"
2
+ BETTER_VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: better_receive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-01-28 00:00:00.000000000 Z
13
+ date: 2013-02-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec