Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-rspec-mocks for 
openSUSE:Factory checked in at 2022-12-04 14:57:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-mocks (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-rspec-mocks.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-rspec-mocks"

Sun Dec  4 14:57:52 2022 rev:25 rq:1032157 version:3.12.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rspec-mocks/rubygem-rspec-mocks.changes  
2022-05-02 16:24:52.640792024 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-rspec-mocks.new.1835/rubygem-rspec-mocks.changes
        2022-12-04 14:58:02.132160058 +0100
@@ -1,0 +2,7 @@
+Fri Oct 28 05:05:42 UTC 2022 - Stephan Kulow <co...@suse.com>
+
+updated to version 3.12.0
+ see installed Changelog.md
+
+
+-------------------------------------------------------------------

Old:
----
  rspec-mocks-3.11.1.gem

New:
----
  rspec-mocks-3.12.0.gem

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

Other differences:
------------------
++++++ rubygem-rspec-mocks.spec ++++++
--- /var/tmp/diff_new_pack.Exqn5M/_old  2022-12-04 14:58:03.628168676 +0100
+++ /var/tmp/diff_new_pack.Exqn5M/_new  2022-12-04 14:58:03.632168699 +0100
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-rspec-mocks
-Version:        3.11.1
+Version:        3.12.0
 Release:        0
 %define mod_name rspec-mocks
 %define mod_full_name %{mod_name}-%{version}

++++++ rspec-mocks-3.11.1.gem -> rspec-mocks-3.12.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Changelog.md new/Changelog.md
--- old/Changelog.md    2022-03-31 23:05:13.000000000 +0200
+++ new/Changelog.md    2022-10-26 21:14:46.000000000 +0200
@@ -1,5 +1,24 @@
 ### Development
-[Full 
Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.1...3-11-maintenance)
+[Full 
Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.0...3-12-maintenance)
+
+### 3.12.0 / 2022-10-26
+[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.2...v3.12.0)
+
+Enhancements:
+
+* Improve diff output when diffing keyword arguments against hashes.
+  (Jean Boussier, #1461)
+
+### 3.11.2 / 2022-10-25
+[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.1...v3.11.2)
+
+Bug Fixes:
+
+* Use the original implementation of `Class.new` to detect overridden 
definitions
+  of `new` rather than the owner, fixing detection of "double aliased" methods
+  in Ruby 3 and above. (Benoit Daloze, #1470, #1476)
+* Support keyword argument semantics when constraining argument expectations 
using
+  `with` on Ruby 3.0+ with `instance_double` (Andrii Malyshko, #1473)
 
 ### 3.11.1 / 2022-03-31
 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.0...v3.11.1)
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/mocks/error_generator.rb 
new/lib/rspec/mocks/error_generator.rb
--- old/lib/rspec/mocks/error_generator.rb      2022-03-31 23:05:13.000000000 
+0200
+++ new/lib/rspec/mocks/error_generator.rb      2022-10-26 21:14:46.000000000 
+0200
@@ -268,6 +268,17 @@
       def error_message(expectation, args_for_multiple_calls)
         expected_args = format_args(expectation.expected_args)
         actual_args = format_received_args(args_for_multiple_calls)
+
+        if 
RSpec::Support::RubyFeatures.distincts_kw_args_from_positional_hash? && 
expected_args == actual_args
+          expected_hash = expectation.expected_args.last
+          actual_hash = args_for_multiple_calls.last.last
+          if Hash === expected_hash && Hash === actual_hash &&
+            (Hash.ruby2_keywords_hash?(expected_hash) != 
Hash.ruby2_keywords_hash?(actual_hash))
+            actual_args += Hash.ruby2_keywords_hash?(actual_hash) ? " (keyword 
arguments)" : " (options hash)"
+            expected_args += Hash.ruby2_keywords_hash?(expected_hash) ? " 
(keyword arguments)" : " (options hash)"
+          end
+        end
+
         message = default_error_message(expectation, expected_args, 
actual_args)
 
         if args_for_multiple_calls.one?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rspec/mocks/message_expectation.rb 
new/lib/rspec/mocks/message_expectation.rb
--- old/lib/rspec/mocks/message_expectation.rb  2022-03-31 23:05:13.000000000 
+0200
+++ new/lib/rspec/mocks/message_expectation.rb  2022-10-26 21:14:46.000000000 
+0200
@@ -406,7 +406,6 @@
       # some collaborators it delegates to for this stuff but for now this was
       # the simplest way to split the public from private stuff to make it
       # easier to publish the docs for the APIs we want published.
-      # rubocop:disable Metrics/ModuleLength
       module ImplementationDetails
         attr_accessor :error_generator, :implementation
         attr_reader :message
@@ -686,7 +685,6 @@
           nil
         end
       end
-      # rubocop:enable Metrics/ModuleLength
 
       include ImplementationDetails
     end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rspec/mocks/method_reference.rb 
new/lib/rspec/mocks/method_reference.rb
--- old/lib/rspec/mocks/method_reference.rb     2022-03-31 23:05:13.000000000 
+0200
+++ new/lib/rspec/mocks/method_reference.rb     2022-10-26 21:14:46.000000000 
+0200
@@ -185,11 +185,23 @@
       def self.applies_to?(method_name)
         return false unless method_name == :new
         klass = yield
-        return false unless klass.respond_to?(:new, true)
+        return false unless ::Class === klass && klass.respond_to?(:new, true)
 
         # We only want to apply our special logic to normal `new` methods.
         # Methods that the user has monkeyed with should be left as-is.
-        ::RSpec::Support.method_handle_for(klass, :new).owner == ::Class
+        uses_class_new?(klass)
+      end
+
+      if RUBY_VERSION.to_i >= 3
+        CLASS_NEW = ::Class.instance_method(:new)
+
+        def self.uses_class_new?(klass)
+          ::RSpec::Support.method_handle_for(klass, :new) == 
CLASS_NEW.bind(klass)
+        end
+      else # Ruby 2's Method#== is too strict
+        def self.uses_class_new?(klass)
+          ::RSpec::Support.method_handle_for(klass, :new).owner == ::Class
+        end
       end
 
       def with_signature
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rspec/mocks/verifying_message_expectation.rb 
new/lib/rspec/mocks/verifying_message_expectation.rb
--- old/lib/rspec/mocks/verifying_message_expectation.rb        2022-03-31 
23:05:13.000000000 +0200
+++ new/lib/rspec/mocks/verifying_message_expectation.rb        2022-10-26 
21:14:46.000000000 +0200
@@ -31,6 +31,7 @@
           end
         end
       end
+      ruby2_keywords(:with) if respond_to?(:ruby2_keywords, true)
 
     private
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rspec/mocks/version.rb 
new/lib/rspec/mocks/version.rb
--- old/lib/rspec/mocks/version.rb      2022-03-31 23:05:13.000000000 +0200
+++ new/lib/rspec/mocks/version.rb      2022-10-26 21:14:46.000000000 +0200
@@ -3,7 +3,7 @@
     # Version information for RSpec mocks.
     module Version
       # Version of RSpec mocks currently in use in SemVer format.
-      STRING = '3.11.1'
+      STRING = '3.12.0'
     end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2022-03-31 23:05:13.000000000 +0200
+++ new/metadata        2022-10-26 21:14:46.000000000 +0200
@@ -1,13 +1,13 @@
 --- !ruby/object:Gem::Specification
 name: rspec-mocks
 version: !ruby/object:Gem::Version
-  version: 3.11.1
+  version: 3.12.0
 platform: ruby
 authors:
 - Steven Baker
 - David Chelimsky
 - Myron Marston
-autorequire:
+autorequire: 
 bindir: bin
 cert_chain:
 - |
@@ -45,7 +45,7 @@
   ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
   F3MdtaDehhjC
   -----END CERTIFICATE-----
-date: 2022-03-31 00:00:00.000000000 Z
+date: 2022-10-26 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rspec-support
@@ -53,14 +53,14 @@
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: 3.11.0
+        version: 3.12.0
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: 3.11.0
+        version: 3.12.0
 - !ruby/object:Gem::Dependency
   name: diff-lcs
   requirement: !ruby/object:Gem::Requirement
@@ -194,11 +194,11 @@
 - MIT
 metadata:
   bug_tracker_uri: https://github.com/rspec/rspec-mocks/issues
-  changelog_uri: https://github.com/rspec/rspec-mocks/blob/v3.11.1/Changelog.md
+  changelog_uri: https://github.com/rspec/rspec-mocks/blob/v3.12.0/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-mocks
-post_install_message:
+post_install_message: 
 rdoc_options:
 - "--charset=UTF-8"
 require_paths:
@@ -214,8 +214,8 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubygems_version: 3.3.3
-signing_key:
+rubygems_version: 3.1.6
+signing_key: 
 specification_version: 4
-summary: rspec-mocks-3.11.1
+summary: rspec-mocks-3.12.0
 test_files: []
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata.gz.sig new/metadata.gz.sig
--- old/metadata.gz.sig 2022-03-31 23:05:13.000000000 +0200
+++ new/metadata.gz.sig 2022-10-26 21:14:46.000000000 +0200
@@ -1,3 +1,3 @@
-`éƒã”Ó{3œnìР†
-^¸Ï[»ýTkßeÍ«ãO%wÂÕ/2nä{XÈ(ørû¢98±´8š}•FvçµÐâUÏޕá´ÚÉ«PAX¥’Ð-#¡/árz=¹ltÚ·V=Œo›Ï†˜h73§Ÿ©j#K.8§
…#¡?¨
-†P±÷žsó‚ÖŸ0ýpŸt®zð\ã[kÚÂÅ3e™mÀS+ü…ãþõ=f¶…
Ö<.£¶þÝ-ÕEœššcA:¡íµ‚kiq(óÏYc<[R,xMPÌä/
GZô•FÒÓ1ò,Ç}€)Âý+¦C‰þÊ]a£[q.þß§7ñÎ5}ËXퟯð7™7Õt
Rñçâ‡7T»|›½XÝæ¬Æ·P–F—ÖÐQ%4£Ëû¼Ò†³ŒÿLÔºZwžj֓ÉêU1­ŽŽÐÞS°!**Ôh(H¨†u-
¡8éÕ_‡u<ng|~¥UÔy™¨šcâ{ì8.Dc‘·Yã-0¹áa_“)ÄWÈmn±Â×wQ¹(,vքwLÖP|¨GW0?xnY*…
0{áÌÁBESVîþw²ä³úsšj«ÃêoÇ9ïS™29Órܸ¼çN@@¿‹Hµ-.b_k 
µ¸èi0‘à“ô`¯+JûQ·˜Í\¨Õ<Á#H”#ƒ<Ò¾ZÞô
\ No newline at end of file
+gÊM³ò!½¦GDZW†óf_ c‹äå
+v—·¢«Ð1žû€á³ÿF‘µõGR?rpŸç°u´&éƒ?«!q´#'¹®̓Ê!    Ñü«  
ÜéÇ0¿tS`ˆJõ0ˆGU¯L?5ëµ±eë·`œÁxÊ,Ò{æÊû‹oF÷ˆ¥¢E    
wz€]‡"eñìày¸~0§HœA‡QæüÅã€D-o;jÙиi)_§`s"oGTÓ\‹Èò3ÆänêuYŽœ=~hÅ{ŸS 
éäौrÍî@ü?‚Ô£1¬·3Øpç~CVÍ×{ƒùø³è·#Ì '6N…Û½¸­/ÇR
~ìãzÊãTÞ    R¹`™_0Z£W™MÇb^XNZÏKӂZ;Æv0qå$b[ÁÓßúÉ0]
âþvǒT8RÝõœ»$ØD?påD.ǽv/:ÏßÇc¥?Ûz0‹ÕÆ_fÂÛÓÍ7ˆåY$<{V´a×Oùu;býš
ž¼¦Ï)3Ï̞mYñj5§sí³0t²•ÎdH*Je*mp 
x‘Ú§3aՑyí"ÙՎ,¼²cæC˜ÅŽè±e/fÕ%Æ®¼ï½¥z#Ì{#<›Ð ¨„¦
+U÷…½™äÇõŠߚÞ0”ãøT–{¾CD¥€b?òqBÞPi
\ No newline at end of file

Reply via email to