rspec-expectations 3.3.0 → 3.3.1

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 050cebd3fe559b7cd5391cba39333fc9815e7650
4
- data.tar.gz: 0034049cdc0f2fd7ab5210ba606b72a267b3abbc
3
+ metadata.gz: 54562bfd39d8413de176aff59a6d581cfaf424ad
4
+ data.tar.gz: dbd074d06ffb583e3542f076870d82b05f3a415f
5
5
  SHA512:
6
- metadata.gz: afee08bfc1eedff07267817c53989802b649cab426c15f55aa869e71bac7db27eadb679b854d5c9da3bbdb7ac39bedcc7c448e8fd7ae8eec311b1a19a694ff07
7
- data.tar.gz: 1215a16c5ec70686dba0fd02d4ae14c4238352a995850a4c437eda0d7a4279597e1866f7426c623afc31ba32db5215517102576a2442caeddfdc44da308e5123
6
+ metadata.gz: ec5efa32e6fbe2d2ab77fdd6900b945c55d653466eb66ff501630f14ea2381c093ac49c66860e445af66b4aa90669e69e0747f36003cb723fc4f8b0fc76235e1
7
+ data.tar.gz: 4eca41f1c7c3d84bd30bac0c4b14ffaf76f2cce9a2f7c6f5f9a4744a4e9c0a9d675dd31ab03a14c3b3848ebe6571a77514981223dd4e37ee3104a8e462bddd9d
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,15 @@
1
+ ### 3.3.1 / 2015-07-15
2
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.3.0...v3.3.1)
3
+
4
+ Bug Fixes:
5
+
6
+ * Fix `be >`, `be <`, etc so that it fails rather than allowing an
7
+ argument error to be raised when compared against an object of the
8
+ wrong type. This allows it to be used in composed matcher expressions
9
+ against heterogeneous objects. (Dennis Günnewig, #809)
10
+ * Fix `respond_to` to work properly on target objects
11
+ that redefine the `method` method. (unmanbearpig, #821)
12
+
1
13
  ### 3.3.0 / 2015-06-12
2
14
  [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.2.1...v3.3.0)
3
15
 
@@ -2,7 +2,7 @@ module RSpec
2
2
  module Expectations
3
3
  # @private
4
4
  module Version
5
- STRING = '3.3.0'
5
+ STRING = '3.3.1'
6
6
  end
7
7
  end
8
8
  end
@@ -144,6 +144,8 @@ module RSpec
144
144
  def matches?(actual)
145
145
  @actual = actual
146
146
  @actual.__send__ @operator, @expected
147
+ rescue ArgumentError
148
+ false
147
149
  end
148
150
 
149
151
  # @api private
@@ -72,7 +72,7 @@ module RSpec
72
72
  def matches_arity?(actual, name)
73
73
  return true unless @expected_arity
74
74
 
75
- signature = Support::MethodSignature.new(actual.method(name))
75
+ signature = Support::MethodSignature.new(Support.method_handle_for(actual, name))
76
76
  Support::StrictSignatureVerifier.new(signature, Array.new(@expected_arity)).valid?
77
77
  end
78
78
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-expectations
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Baker
@@ -45,7 +45,7 @@ cert_chain:
45
45
  ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
46
46
  F3MdtaDehhjC
47
47
  -----END CERTIFICATE-----
48
- date: 2015-06-12 00:00:00.000000000 Z
48
+ date: 2015-07-15 00:00:00.000000000 Z
49
49
  dependencies:
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: rspec-support
@@ -220,6 +220,6 @@ rubyforge_project:
220
220
  rubygems_version: 2.2.2
221
221
  signing_key:
222
222
  specification_version: 4
223
- summary: rspec-expectations-3.3.0
223
+ summary: rspec-expectations-3.3.1
224
224
  test_files: []
225
225
  has_rdoc:
metadata.gz.sig CHANGED
Binary file