Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-rspec-expectations for 
openSUSE:Factory checked in at 2022-02-03 23:15:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-expectations (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-rspec-expectations.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-rspec-expectations"

Thu Feb  3 23:15:40 2022 rev:22 rq:950650 version:3.10.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-rspec-expectations/rubygem-rspec-expectations.changes
    2021-01-22 21:49:28.665606879 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-rspec-expectations.new.1898/rubygem-rspec-expectations.changes
  2022-02-03 23:15:50.556876471 +0100
@@ -1,0 +2,22 @@
+Tue Jan 25 07:30:29 UTC 2022 - Stephan Kulow <co...@suse.com>
+
+updated to version 3.10.2
+ see installed Changelog.md
+
+  ### Development
+  [Full 
Changelog](http://github.com/rspec/rspec-expectations/compare/v3.10.2...3-10-maintenance)
+  
+  ### 3.10.2 / 2022-01-14
+  [Full 
Changelog](http://github.com/rspec/rspec-expectations/compare/v3.10.1...v3.10.2)
+  
+  Bug Fixes:
+  
+  * Fix support for dynamic matchers for expectation target checks (Phil 
Pirozhkov, #1294)
+  * Fix `expect(array).to include(hash).times`, previously this would fail due 
to
+    matching the entire array as a single hash, rather than a member of the 
hash.
+    (Slava Kardakov, #1322)
+  * Ensure `raise_error` matches works with the `error_highlight` option from 
Ruby 3.1.
+    (Peter Goldstein, #1339)
+  
+
+-------------------------------------------------------------------

Old:
----
  rspec-expectations-3.10.1.gem

New:
----
  rspec-expectations-3.10.2.gem

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

Other differences:
------------------
++++++ rubygem-rspec-expectations.spec ++++++
--- /var/tmp/diff_new_pack.2dGmNg/_old  2022-02-03 23:15:51.036873194 +0100
+++ /var/tmp/diff_new_pack.2dGmNg/_new  2022-02-03 23:15:51.040873167 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-rspec-expectations
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-rspec-expectations
-Version:        3.10.1
+Version:        3.10.2
 Release:        0
 %define mod_name rspec-expectations
 %define mod_full_name %{mod_name}-%{version}

++++++ rspec-expectations-3.10.1.gem -> rspec-expectations-3.10.2.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Changelog.md new/Changelog.md
--- old/Changelog.md    2020-12-27 17:04:33.000000000 +0100
+++ new/Changelog.md    2022-01-14 17:44:09.000000000 +0100
@@ -1,3 +1,18 @@
+### Development
+[Full 
Changelog](http://github.com/rspec/rspec-expectations/compare/v3.10.2...3-10-maintenance)
+
+### 3.10.2 / 2022-01-14
+[Full 
Changelog](http://github.com/rspec/rspec-expectations/compare/v3.10.1...v3.10.2)
+
+Bug Fixes:
+
+* Fix support for dynamic matchers for expectation target checks (Phil 
Pirozhkov, #1294)
+* Fix `expect(array).to include(hash).times`, previously this would fail due to
+  matching the entire array as a single hash, rather than a member of the hash.
+  (Slava Kardakov, #1322)
+* Ensure `raise_error` matches works with the `error_highlight` option from 
Ruby 3.1.
+  (Peter Goldstein, #1339)
+
 ### 3.10.1 / 2020-12-27
 [Full 
Changelog](http://github.com/rspec/rspec-expectations/compare/v3.10.0...v3.10.1)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2020-12-27 17:04:33.000000000 +0100
+++ new/README.md       2022-01-14 17:44:09.000000000 +0100
@@ -1,4 +1,4 @@
-# RSpec Expectations [![Build 
Status](https://secure.travis-ci.org/rspec/rspec-expectations.svg?branch=main)](http://travis-ci.org/rspec/rspec-expectations)
 [![Code 
Climate](https://codeclimate.com/github/rspec/rspec-expectations.svg)](https://codeclimate.com/github/rspec/rspec-expectations)
+# RSpec Expectations [![Build 
Status](https://github.com/rspec/rspec-expectations/workflows/RSpec%20CI/badge.svg?branch=3-10-maintenance)](https://github.com/rspec/rspec-expectations/actions)
 [![Code 
Climate](https://codeclimate.com/github/rspec/rspec-expectations.svg)](https://codeclimate.com/github/rspec/rspec-expectations)
 
 RSpec::Expectations lets you express expected outcomes on an object in an
 example.
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/expectation_target.rb 
new/lib/rspec/expectations/expectation_target.rb
--- old/lib/rspec/expectations/expectation_target.rb    2020-12-27 
17:04:33.000000000 +0100
+++ new/lib/rspec/expectations/expectation_target.rb    2022-01-14 
17:44:09.000000000 +0100
@@ -57,7 +57,7 @@
         #   expect { perform }.to raise_error
         # @param [Matcher]
         #   matcher
-        # @param [String or Proc] message optional message to display when the 
expectation fails
+        # @param [String, Proc] message optional message to display when the 
expectation fails
         # @return [Boolean] true if the expectation succeeds (else raises)
         # @see RSpec::Matchers
         def to(matcher=nil, message=nil, &block)
@@ -70,7 +70,7 @@
         #   expect(value).not_to eq(5)
         # @param [Matcher]
         #   matcher
-        # @param [String or Proc] message optional message to display when the 
expectation fails
+        # @param [String, Proc] message optional message to display when the 
expectation fails
         # @return [Boolean] false if the negative expectation succeeds (else 
raises)
         # @see RSpec::Matchers
         def not_to(matcher=nil, message=nil, &block)
@@ -118,9 +118,7 @@
       end
 
       def supports_block_expectations?(matcher)
-        matcher.supports_block_expectations?
-      rescue NoMethodError
-        false
+        matcher.respond_to?(:supports_block_expectations?) && 
matcher.supports_block_expectations?
       end
     end
   end
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       2020-12-27 17:04:33.000000000 
+0100
+++ new/lib/rspec/expectations/version.rb       2022-01-14 17:44:09.000000000 
+0100
@@ -2,7 +2,7 @@
   module Expectations
     # @private
     module Version
-      STRING = '3.10.1'
+      STRING = '3.10.2'
     end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rspec/matchers/built_in/include.rb 
new/lib/rspec/matchers/built_in/include.rb
--- old/lib/rspec/matchers/built_in/include.rb  2020-12-27 17:04:33.000000000 
+0100
+++ new/lib/rspec/matchers/built_in/include.rb  2022-01-14 17:44:09.000000000 
+0100
@@ -182,7 +182,7 @@
           when String
             actual.scan(expected.first).length
           when Enumerable
-            count_enumerable(expected.first)
+            count_enumerable(Hash === expected ? expected : expected.first)
           else
             raise NotImplementedError, 'Count constraints are implemented for 
Enumerable and String values only'
           end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rspec/matchers/built_in/raise_error.rb 
new/lib/rspec/matchers/built_in/raise_error.rb
--- old/lib/rspec/matchers/built_in/raise_error.rb      2020-12-27 
17:04:33.000000000 +0100
+++ new/lib/rspec/matchers/built_in/raise_error.rb      2022-01-14 
17:44:09.000000000 +0100
@@ -59,7 +59,7 @@
             given_proc.call
           rescue Exception => @actual_error
             if values_match?(@expected_error, @actual_error) ||
-               values_match?(@expected_error, @actual_error.message)
+               values_match?(@expected_error, actual_error_message)
               @raised_expected_error = true
               @with_expected_message = verify_message
             end
@@ -93,7 +93,7 @@
         # @api private
         # @return [String]
         def failure_message
-          @eval_block ? @actual_error.message : "expected 
#{expected_error}#{given_error}"
+          @eval_block ? actual_error_message : "expected 
#{expected_error}#{given_error}"
         end
 
         # @api private
@@ -110,6 +110,12 @@
 
       private
 
+        def actual_error_message
+          return nil unless @actual_error
+
+          @actual_error.respond_to?(:original_message) ? 
@actual_error.original_message : @actual_error.message
+        end
+
         def expectation_matched?
           error_and_message_match? && block_matches?
         end
@@ -138,7 +144,7 @@
 
         def verify_message
           return true if @expected_message.nil?
-          values_match?(@expected_message, @actual_error.message.to_s)
+          values_match?(@expected_message, actual_error_message.to_s)
         end
 
         def warn_for_negative_false_positives!
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2020-12-27 17:04:33.000000000 +0100
+++ new/metadata        2022-01-14 17:44:09.000000000 +0100
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: rspec-expectations
 version: !ruby/object:Gem::Version
-  version: 3.10.1
+  version: 3.10.2
 platform: ruby
 authors:
 - Steven Baker
@@ -45,7 +45,7 @@
   ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
   F3MdtaDehhjC
   -----END CERTIFICATE-----
-date: 2020-12-27 00:00:00.000000000 Z
+date: 2022-01-14 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rspec-support
@@ -99,14 +99,14 @@
   name: cucumber
   requirement: !ruby/object:Gem::Requirement
     requirements:
-    - - "~>"
+    - - ">="
       - !ruby/object:Gem::Version
         version: '1.3'
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
-    - - "~>"
+    - - ">="
       - !ruby/object:Gem::Version
         version: '1.3'
 - !ruby/object:Gem::Dependency
@@ -203,7 +203,7 @@
 - MIT
 metadata:
   bug_tracker_uri: https://github.com/rspec/rspec-expectations/issues
-  changelog_uri: 
https://github.com/rspec/rspec-expectations/blob/v3.10.1/Changelog.md
+  changelog_uri: 
https://github.com/rspec/rspec-expectations/blob/v3.10.2/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
@@ -223,8 +223,8 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubygems_version: 3.2.3
+rubygems_version: 3.3.3
 signing_key:
 specification_version: 4
-summary: rspec-expectations-3.10.1
+summary: rspec-expectations-3.10.2
 test_files: []
Binary files old/metadata.gz.sig and new/metadata.gz.sig differ

Reply via email to