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-05-02 16:24:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-mocks (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-rspec-mocks.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-rspec-mocks"

Mon May  2 16:24:46 2022 rev:24 rq:974072 version:3.11.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rspec-mocks/rubygem-rspec-mocks.changes  
2022-02-28 19:43:11.657932882 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-rspec-mocks.new.1538/rubygem-rspec-mocks.changes
        2022-05-02 16:24:52.640792024 +0200
@@ -1,0 +2,7 @@
+Thu Apr 28 05:46:28 UTC 2022 - Stephan Kulow <[email protected]>
+
+updated to version 3.11.1
+ see installed Changelog.md
+
+
+-------------------------------------------------------------------

Old:
----
  rspec-mocks-3.11.0.gem

New:
----
  rspec-mocks-3.11.1.gem

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

Other differences:
------------------
++++++ rubygem-rspec-mocks.spec ++++++
--- /var/tmp/diff_new_pack.Nem0wS/_old  2022-05-02 16:24:53.172792615 +0200
+++ /var/tmp/diff_new_pack.Nem0wS/_new  2022-05-02 16:24:53.176792620 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-rspec-mocks
-Version:        3.11.0
+Version:        3.11.1
 Release:        0
 %define mod_name rspec-mocks
 %define mod_full_name %{mod_name}-%{version}

++++++ rspec-mocks-3.11.0.gem -> rspec-mocks-3.11.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Changelog.md new/Changelog.md
--- old/Changelog.md    2022-02-09 12:37:06.000000000 +0100
+++ new/Changelog.md    2022-03-31 23:05:13.000000000 +0200
@@ -1,5 +1,14 @@
 ### Development
-[Full 
Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.0...3-11-maintenance)
+[Full 
Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.1...3-11-maintenance)
+
+### 3.11.1 / 2022-03-31
+[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.0...v3.11.1)
+
+Bug Fixes:
+
+* Add extra `ruby2_keywords` calls to properly designate methods using
+ `*args` to pass keyword around, fixes an issue with TruffleRuby.
+ (Benoit Daloze, #1464)
 
 ### 3.11.0 / 2022-02-09
 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.3...v3.11.0)
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/argument_list_matcher.rb 
new/lib/rspec/mocks/argument_list_matcher.rb
--- old/lib/rspec/mocks/argument_list_matcher.rb        2022-02-09 
12:37:06.000000000 +0100
+++ new/lib/rspec/mocks/argument_list_matcher.rb        2022-03-31 
23:05:13.000000000 +0200
@@ -46,7 +46,7 @@
         @expected_args = expected_args
         ensure_expected_args_valid!
       end
-      ruby2_keywords :initialize if 
Module.private_method_defined?(:ruby2_keywords)
+      ruby2_keywords :initialize if respond_to?(:ruby2_keywords, true)
 
       # @api public
       # @param [Array] actual_args
@@ -71,6 +71,7 @@
 
         Support::FuzzyMatcher.values_match?(expected_args, actual_args)
       end
+      ruby2_keywords :args_match? if respond_to?(:ruby2_keywords, true)
 
       # @private
       # Resolves abstract arg placeholders like `no_args` and `any_args` into
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rspec/mocks/matchers/receive.rb 
new/lib/rspec/mocks/matchers/receive.rb
--- old/lib/rspec/mocks/matchers/receive.rb     2022-02-09 12:37:06.000000000 
+0100
+++ new/lib/rspec/mocks/matchers/receive.rb     2022-03-31 23:05:13.000000000 
+0200
@@ -62,7 +62,7 @@
             @recorded_customizations << ExpectationCustomization.new(method, 
args, block)
             self
           end
-          ruby2_keywords(method) if 
Module.private_method_defined?(:ruby2_keywords)
+          ruby2_keywords(method) if respond_to?(:ruby2_keywords, true)
         end
 
       private
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-02-09 12:37:06.000000000 
+0100
+++ new/lib/rspec/mocks/message_expectation.rb  2022-03-31 23:05:13.000000000 
+0200
@@ -139,9 +139,12 @@
       #   counter.increment
       #   expect(counter.count).to eq(original_count + 1)
       def and_call_original
-        wrap_original(__method__) do |original, *args, &block|
-          original.call(*args, &block)
+        block = lambda do |original, *args, &b|
+          original.call(*args, &b)
         end
+        block = block.ruby2_keywords if block.respond_to?(:ruby2_keywords)
+
+        wrap_original(__method__, &block)
       end
 
       # Decorates the stubbed method with the supplied block. The original
@@ -364,7 +367,7 @@
         @argument_list_matcher = ArgumentListMatcher.new(*args)
         self
       end
-      ruby2_keywords(:with) if Module.private_method_defined?(:ruby2_keywords)
+      ruby2_keywords(:with) if respond_to?(:ruby2_keywords, true)
 
       # Expect messages to be received in a specific order.
       #
@@ -461,18 +464,22 @@
         def matches?(message, *args)
           @message == message && @argument_list_matcher.args_match?(*args)
         end
+        ruby2_keywords :matches? if respond_to?(:ruby2_keywords, true)
 
         def safe_invoke(parent_stub, *args, &block)
           invoke_incrementing_actual_calls_by(1, false, parent_stub, *args, 
&block)
         end
+        ruby2_keywords :safe_invoke if respond_to?(:ruby2_keywords, true)
 
         def invoke(parent_stub, *args, &block)
           invoke_incrementing_actual_calls_by(1, true, parent_stub, *args, 
&block)
         end
+        ruby2_keywords :invoke if respond_to?(:ruby2_keywords, true)
 
         def invoke_without_incrementing_received_count(parent_stub, *args, 
&block)
           invoke_incrementing_actual_calls_by(0, true, parent_stub, *args, 
&block)
         end
+        ruby2_keywords :invoke_without_incrementing_received_count if 
respond_to?(:ruby2_keywords, true)
 
         def negative?
           @expected_received_count == 0 && !@at_least
@@ -621,6 +628,7 @@
             @actual_received_count += increment
           end
         end
+        ruby2_keywords :invoke_incrementing_actual_calls_by if 
respond_to?(:ruby2_keywords, true)
 
         def has_been_invoked?
           @actual_received_count > 0
@@ -755,6 +763,7 @@
           action.call(*args, &block)
         end.last
       end
+      ruby2_keywords :call if respond_to?(:ruby2_keywords, true)
 
       def present?
         actions.any?
@@ -800,6 +809,7 @@
       def call(*args, &block)
         @block.call(@method, *args, &block)
       end
+      ruby2_keywords :call if respond_to?(:ruby2_keywords, true)
 
     private
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rspec/mocks/method_double.rb 
new/lib/rspec/mocks/method_double.rb
--- old/lib/rspec/mocks/method_double.rb        2022-02-09 12:37:06.000000000 
+0100
+++ new/lib/rspec/mocks/method_double.rb        2022-03-31 23:05:13.000000000 
+0200
@@ -63,6 +63,8 @@
           define_method(method_name) do |*args, &block|
             method_double.proxy_method_invoked(self, *args, &block)
           end
+          # This can't be `if respond_to?(:ruby2_keywords, true)`,
+          # see 
https://github.com/rspec/rspec-mocks/pull/1385#issuecomment-755340298
           ruby2_keywords(method_name) if 
Module.private_method_defined?(:ruby2_keywords)
           __send__(visibility, method_name)
         end
@@ -77,6 +79,7 @@
       def proxy_method_invoked(_obj, *args, &block)
         @proxy.message_received method_name, *args, &block
       end
+      ruby2_keywords :proxy_method_invoked if respond_to?(:ruby2_keywords, 
true)
 
       # @private
       def restore_original_method
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rspec/mocks/proxy.rb new/lib/rspec/mocks/proxy.rb
--- old/lib/rspec/mocks/proxy.rb        2022-02-09 12:37:06.000000000 +0100
+++ new/lib/rspec/mocks/proxy.rb        2022-03-31 23:05:13.000000000 +0200
@@ -230,6 +230,7 @@
           @object.__send__(:method_missing, message, *args, &block)
         end
       end
+      ruby2_keywords :message_received if respond_to?(:ruby2_keywords, true)
 
       # @private
       def raise_unexpected_message_error(method_name, args)
@@ -279,12 +280,14 @@
           expectation.matches?(method_name, *args)
         end
       end
+      ruby2_keywords :find_matching_expectation if 
respond_to?(:ruby2_keywords, true)
 
       def find_almost_matching_expectation(method_name, *args)
         find_best_matching_expectation_for(method_name) do |expectation|
           expectation.matches_name_but_not_args(method_name, *args)
         end
       end
+      ruby2_keywords :find_almost_matching_expectation if 
respond_to?(:ruby2_keywords, true)
 
       def find_best_matching_expectation_for(method_name)
         first_match = nil
@@ -301,10 +304,12 @@
       def find_matching_method_stub(method_name, *args)
         method_double_for(method_name).stubs.find { |stub| 
stub.matches?(method_name, *args) }
       end
+      ruby2_keywords :find_matching_method_stub if 
respond_to?(:ruby2_keywords, true)
 
       def find_almost_matching_stub(method_name, *args)
         method_double_for(method_name).stubs.find { |stub| 
stub.matches_name_but_not_args(method_name, *args) }
       end
+      ruby2_keywords :find_almost_matching_stub if 
respond_to?(:ruby2_keywords, true)
     end
 
     # @private
@@ -360,6 +365,7 @@
         end
         super
       end
+      ruby2_keywords :message_received 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-02-09 12:37:06.000000000 +0100
+++ new/lib/rspec/mocks/version.rb      2022-03-31 23:05:13.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.0'
+      STRING = '3.11.1'
     end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2022-02-09 12:37:06.000000000 +0100
+++ new/metadata        2022-03-31 23:05:13.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: rspec-mocks
 version: !ruby/object:Gem::Version
-  version: 3.11.0
+  version: 3.11.1
 platform: ruby
 authors:
 - Steven Baker
@@ -45,7 +45,7 @@
   ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
   F3MdtaDehhjC
   -----END CERTIFICATE-----
-date: 2022-02-09 00:00:00.000000000 Z
+date: 2022-03-31 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rspec-support
@@ -194,7 +194,7 @@
 - MIT
 metadata:
   bug_tracker_uri: https://github.com/rspec/rspec-mocks/issues
-  changelog_uri: https://github.com/rspec/rspec-mocks/blob/v3.11.0/Changelog.md
+  changelog_uri: https://github.com/rspec/rspec-mocks/blob/v3.11.1/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
@@ -217,5 +217,5 @@
 rubygems_version: 3.3.3
 signing_key:
 specification_version: 4
-summary: rspec-mocks-3.11.0
+summary: rspec-mocks-3.11.1
 test_files: []
Binary files old/metadata.gz.sig and new/metadata.gz.sig differ

Reply via email to