Hello community,

here is the log from the commit of package rubygem-rspec-expectations for 
openSUSE:Factory checked in at 2019-07-22 12:16:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-expectations (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-rspec-expectations.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-rspec-expectations"

Mon Jul 22 12:16:18 2019 rev:17 rq:713995 version:3.8.4

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-rspec-expectations/rubygem-rspec-expectations.changes
    2019-06-12 13:00:48.653307201 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-rspec-expectations.new.4126/rubygem-rspec-expectations.changes
  2019-07-22 12:16:19.447729202 +0200
@@ -1,0 +2,12 @@
+Mon Jul  8 07:51:08 UTC 2019 - Manuel Schnitzer <[email protected]>
+
+- updated to version 3.8.4
+
+  [Full 
Changelog](http://github.com/rspec/rspec-expectations/compare/v3.8.3...v3.8.4)
+
+  Bug Fixes:
+
+  * Prevent false negatives when checking objects for the methods required to 
run the
+    the `be_an_instance_of` and `be_kind_of` matchers. (Nazar Matus, #1112)
+
+-------------------------------------------------------------------

Old:
----
  rspec-expectations-3.8.3.gem

New:
----
  rspec-expectations-3.8.4.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-rspec-expectations.spec ++++++
--- /var/tmp/diff_new_pack.pxnfj1/_old  2019-07-22 12:16:19.843729094 +0200
+++ /var/tmp/diff_new_pack.pxnfj1/_new  2019-07-22 12:16:19.847729094 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-rspec-expectations
-Version:        3.8.3
+Version:        3.8.4
 Release:        0
 %define mod_name rspec-expectations
 %define mod_full_name %{mod_name}-%{version}

++++++ rspec-expectations-3.8.3.gem -> rspec-expectations-3.8.4.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Changelog.md new/Changelog.md
--- old/Changelog.md    2019-04-21 14:45:44.000000000 +0200
+++ new/Changelog.md    2019-06-10 22:14:19.000000000 +0200
@@ -1,5 +1,10 @@
-### Development
-[Full 
Changelog](http://github.com/rspec/rspec-expectations/compare/v3.8.3...3-8-maintenance)
+### 3.8.4 / 2019-06-10
+[Full 
Changelog](http://github.com/rspec/rspec-expectations/compare/v3.8.3...v3.8.4)
+
+Bug Fixes:
+
+* Prevent false negatives when checking objects for the methods required to 
run the
+  the `be_an_instance_of` and `be_kind_of` matchers. (Nazar Matus, #1112)
 
 ### 3.8.3 / 2019-04-20
 [Full 
Changelog](http://github.com/rspec/rspec-expectations/compare/v3.8.2...v3.8.3)
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
Binary files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ
Binary files old/data.tar.gz.sig and new/data.tar.gz.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rspec/expectations/version.rb 
new/lib/rspec/expectations/version.rb
--- old/lib/rspec/expectations/version.rb       2019-04-21 14:45:44.000000000 
+0200
+++ new/lib/rspec/expectations/version.rb       2019-06-10 22:14:19.000000000 
+0200
@@ -2,7 +2,7 @@
   module Expectations
     # @private
     module Version
-      STRING = '3.8.3'
+      STRING = '3.8.4'
     end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rspec/matchers/built_in/be_instance_of.rb 
new/lib/rspec/matchers/built_in/be_instance_of.rb
--- old/lib/rspec/matchers/built_in/be_instance_of.rb   2019-04-21 
14:45:44.000000000 +0200
+++ new/lib/rspec/matchers/built_in/be_instance_of.rb   2019-06-10 
22:14:19.000000000 +0200
@@ -14,17 +14,11 @@
       private
 
         def match(expected, actual)
-          if actual_object_respond_to?(actual, :instance_of?)
-            actual.instance_of?(expected)
-          else
-            raise ::ArgumentError, "The #{matcher_name} matcher requires that 
" \
-                                   "the actual object responds to 
#instance_of? method " \
-                                   "but it does not respond to the method."
-          end
-        end
-
-        def actual_object_respond_to?(actual, method)
-          ::Kernel.instance_method(:respond_to?).bind(actual).call(method)
+          actual.instance_of?(expected)
+        rescue NoMethodError
+          raise ::ArgumentError, "The #{matcher_name} matcher requires that " \
+                                 "the actual object responds to #instance_of? 
method " \
+                                 "but a `NoMethodError` was encountered 
instead."
         end
       end
     end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rspec/matchers/built_in/be_kind_of.rb 
new/lib/rspec/matchers/built_in/be_kind_of.rb
--- old/lib/rspec/matchers/built_in/be_kind_of.rb       2019-04-21 
14:45:44.000000000 +0200
+++ new/lib/rspec/matchers/built_in/be_kind_of.rb       2019-06-10 
22:14:19.000000000 +0200
@@ -8,19 +8,11 @@
       private
 
         def match(expected, actual)
-          if actual_object_respond_to?(actual, :kind_of?)
-            actual.kind_of?(expected)
-          elsif actual_object_respond_to?(actual, :is_a?)
-            actual.is_a?(expected)
-          else
-            raise ::ArgumentError, "The #{matcher_name} matcher requires that 
" \
-                                   "the actual object responds to either 
#kind_of? or #is_a? methods "\
-                                   "but it responds to neigher of two methods."
-          end
-        end
-
-        def actual_object_respond_to?(actual, method)
-          ::Kernel.instance_method(:respond_to?).bind(actual).call(method)
+          actual.kind_of?(expected)
+        rescue NoMethodError
+          raise ::ArgumentError, "The #{matcher_name} matcher requires that " \
+                                 "the actual object responds to #kind_of? 
method " \
+                                 "but a `NoMethodError` was encountered 
instead."
         end
       end
     end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2019-04-21 14:45:44.000000000 +0200
+++ new/metadata        2019-06-10 22:14:19.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: rspec-expectations
 version: !ruby/object:Gem::Version
-  version: 3.8.3
+  version: 3.8.4
 platform: ruby
 authors:
 - Steven Baker
@@ -45,7 +45,7 @@
   ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
   F3MdtaDehhjC
   -----END CERTIFICATE-----
-date: 2019-04-21 00:00:00.000000000 Z
+date: 2019-06-10 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rspec-support
@@ -202,7 +202,7 @@
 - MIT
 metadata:
   bug_tracker_uri: https://github.com/rspec/rspec-expectations/issues
-  changelog_uri: 
https://github.com/rspec/rspec-expectations/blob/v3.8.3/Changelog.md
+  changelog_uri: 
https://github.com/rspec/rspec-expectations/blob/v3.8.4/Changelog.md
   documentation_uri: https://rspec.info/documentation/
   mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
   source_code_uri: https://github.com/rspec/rspec-expectations
@@ -225,5 +225,5 @@
 rubygems_version: 3.0.3
 signing_key: 
 specification_version: 4
-summary: rspec-expectations-3.8.3
+summary: rspec-expectations-3.8.4
 test_files: []
Binary files old/metadata.gz.sig and new/metadata.gz.sig differ


Reply via email to