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 2021-01-22 21:49:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-mocks (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-rspec-mocks.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-rspec-mocks"

Fri Jan 22 21:49:29 2021 rev:21 rq:864576 version:3.10.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rspec-mocks/rubygem-rspec-mocks.changes  
2020-01-30 09:35:23.157296972 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-rspec-mocks.new.28504/rubygem-rspec-mocks.changes
       2021-01-22 21:49:30.673609727 +0100
@@ -1,0 +2,26 @@
+Wed Jan 20 07:52:46 UTC 2021 - Manuel Schnitzer <[email protected]>
+
+- updated to version 3.10.1
+
+  [Full 
Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.0...v3.10.1)
+
+  Bug Fixes:
+
+  * Issue `ArgumentError` rather than `TypeError` when unsupported methods on
+    unsupported objects are attempted to be stubbed. (@zhisme, #1357)
+
+-------------------------------------------------------------------
+Wed Nov 11 08:50:19 UTC 2020 - Manuel Schnitzer <[email protected]>
+
+- updated to version 3.10.0
+
+  [Full 
Changelog](http://github.com/rspec/rspec-mocks/compare/v3.9.1...v3.10.0)
+
+  Enhancements:
+  * Add the ability to set a custom error generator in `MessageExpectation`.
+    This will allow rspec-expectations to inject a custom failure message.
+    (Benoit Tigeot and Nicolas Zermati, #1312)
+  * Return the result of the block passed to 
`RSpec::Mocks.with_temporary_scope`
+    when block run. (@expeehaa, #1329)
+
+-------------------------------------------------------------------

Old:
----
  rspec-mocks-3.9.1.gem

New:
----
  rspec-mocks-3.10.1.gem

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

Other differences:
------------------
++++++ rubygem-rspec-mocks.spec ++++++
--- /var/tmp/diff_new_pack.cJ2wyp/_old  2021-01-22 21:49:31.265610567 +0100
+++ /var/tmp/diff_new_pack.cJ2wyp/_new  2021-01-22 21:49:31.269610572 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-rspec-mocks
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 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-mocks
-Version:        3.9.1
+Version:        3.10.1
 Release:        0
 %define mod_name rspec-mocks
 %define mod_full_name %{mod_name}-%{version}
@@ -33,7 +33,7 @@
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  %{rubygem rdoc > 3.10}
 BuildRequires:  ruby-macros >= 5
-Url:            https://github.com/rspec/rspec-mocks
+URL:            https://github.com/rspec/rspec-mocks
 Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        RSpec's 'test double' framework, with support for stubbing and 
mocking

++++++ rspec-mocks-3.9.1.gem -> rspec-mocks-3.10.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Changelog.md new/Changelog.md
--- old/Changelog.md    2019-12-31 18:28:53.000000000 +0100
+++ new/Changelog.md    2020-12-28 17:16:52.000000000 +0100
@@ -1,3 +1,21 @@
+### 3.10.1 / 2020-12-27
+[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.0...v3.10.1)
+
+Bug Fixes:
+
+* Issue `ArgumentError` rather than `TypeError` when unsupported methods on
+  unsupported objects are attempted to be stubbed. (@zhisme, #1357)
+
+### 3.10.0 / 2020-10-30
+[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.9.1...v3.10.0)
+
+Enhancements:
+* Add the ability to set a custom error generator in `MessageExpectation`.
+  This will allow rspec-expectations to inject a custom failure message.
+  (Benoit Tigeot and Nicolas Zermati, #1312)
+* Return the result of the block passed to `RSpec::Mocks.with_temporary_scope`
+  when block run. (@expeehaa, #1329)
+
 ### 3.9.1 / 2019-12-31
 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.9.0...v3.9.1)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2019-12-31 18:28:53.000000000 +0100
+++ new/README.md       2020-12-28 17:16:52.000000000 +0100
@@ -1,4 +1,4 @@
-# RSpec Mocks [![Build 
Status](https://secure.travis-ci.org/rspec/rspec-mocks.svg?branch=master)](http://travis-ci.org/rspec/rspec-mocks)
 [![Code 
Climate](https://codeclimate.com/github/rspec/rspec-mocks.svg)](https://codeclimate.com/github/rspec/rspec-mocks)
+# RSpec Mocks [![Build 
Status](https://secure.travis-ci.org/rspec/rspec-mocks.svg?branch=main)](http://travis-ci.org/rspec/rspec-mocks)
 [![Code 
Climate](https://codeclimate.com/github/rspec/rspec-mocks.svg)](https://codeclimate.com/github/rspec/rspec-mocks)
 rspec-mocks is a test-double framework for rspec with support for method stubs,
 fakes, and message expectations on generated test-doubles and real objects
 alike.
@@ -8,12 +8,12 @@
     gem install rspec       # for rspec-core, rspec-expectations, rspec-mocks
     gem install rspec-mocks # for rspec-mocks only
 
-Want to run against the `master` branch? You'll need to include the dependent
+Want to run against the `main` branch? You'll need to include the dependent
 RSpec repos as well. Add the following to your `Gemfile`:
 
 ```ruby
 %w[rspec-core rspec-expectations rspec-mocks rspec-support].each do |lib|
-  gem lib, :git => "https://github.com/rspec/#{lib}.git";, :branch => 'master'
+  gem lib, :git => "https://github.com/rspec/#{lib}.git";, :branch => 'main'
 end
 ```
 ## Contributing
@@ -53,7 +53,7 @@
 Verifying doubles have some clever tricks to enable you to both test in
 isolation without your dependencies loaded while still being able to validate
 them against real objects. More detail is available in [their
-documentation](https://github.com/rspec/rspec-mocks/blob/master/features/verifying_doubles).
+documentation](https://github.com/rspec/rspec-mocks/blob/main/features/verifying_doubles).
 
 Verifying doubles can also accept custom identifiers, just like double(), e.g.:
 
@@ -403,7 +403,7 @@
 ## Stubbing and Hiding Constants
 
 See the [mutating constants
-README](https://github.com/rspec/rspec-mocks/blob/master/features/mutating_constants/README.md)
+README](https://github.com/rspec/rspec-mocks/blob/main/features/mutating_constants/README.md)
 for info on this feature.
 
 ## Use `before(:example)`, not `before(:context)`
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/message_expectation.rb 
new/lib/rspec/mocks/message_expectation.rb
--- old/lib/rspec/mocks/message_expectation.rb  2019-12-31 18:28:53.000000000 
+0100
+++ new/lib/rspec/mocks/message_expectation.rb  2020-12-28 17:16:52.000000000 
+0100
@@ -366,7 +366,7 @@
         attr_reader :message
         attr_reader :orig_object
         attr_writer :expected_received_count, :expected_from, 
:argument_list_matcher
-        protected :expected_received_count=, :expected_from=, 
:error_generator, :error_generator=, :implementation=
+        protected :expected_received_count=, :expected_from=, 
:error_generator=, :implementation=
 
         # @private
         attr_reader :type
@@ -376,7 +376,7 @@
                        type=:expectation, opts={}, &implementation_block)
           @type = type
           @error_generator = error_generator
-          @error_generator.opts = opts
+          @error_generator.opts = error_generator.opts.merge(opts)
           @expected_from = expected_from
           @method_double = method_double
           @orig_object = @method_double.object
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        2019-12-31 18:28:53.000000000 +0100
+++ new/lib/rspec/mocks/proxy.rb        2020-12-28 17:16:52.000000000 +0100
@@ -21,6 +21,8 @@
 
       # @private
       def initialize(object, order_group, options={})
+        ensure_can_be_proxied!(object)
+
         @object = object
         @order_group = order_group
         @error_generator = ErrorGenerator.new(object)
@@ -32,6 +34,20 @@
       end
 
       # @private
+      def ensure_can_be_proxied!(object)
+        return unless object.is_a?(Symbol) || object.frozen?
+        return if object.nil?
+
+        msg = "Cannot proxy frozen objects"
+        if Symbol === object
+          msg << ". Symbols such as #{object} cannot be mocked or stubbed."
+        else
+          msg << ", rspec-mocks relies on proxies for method stubbing and 
expectations."
+        end
+        raise ArgumentError, msg
+      end
+
+      # @private
       attr_reader :object
 
       # @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      2019-12-31 18:28:53.000000000 +0100
+++ new/lib/rspec/mocks/version.rb      2020-12-28 17:16:52.000000000 +0100
@@ -3,7 +3,7 @@
     # Version information for RSpec mocks.
     module Version
       # Version of RSpec mocks currently in use in SemVer format.
-      STRING = '3.9.1'
+      STRING = '3.10.1'
     end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rspec/mocks.rb new/lib/rspec/mocks.rb
--- old/lib/rspec/mocks.rb      2019-12-31 18:28:53.000000000 +0100
+++ new/lib/rspec/mocks.rb      2020-12-28 17:16:52.000000000 +0100
@@ -87,12 +87,15 @@
 
     # Call the passed block and verify mocks after it has executed. This allows
     # mock usage in arbitrary places, such as a `before(:all)` hook.
+    #
+    # @return [Object] the return value from the block
     def self.with_temporary_scope
       setup
 
       begin
-        yield
+        result = yield
         verify
+        result
       ensure
         teardown
       end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2019-12-31 18:28:53.000000000 +0100
+++ new/metadata        2020-12-28 17:16:52.000000000 +0100
@@ -1,13 +1,13 @@
 --- !ruby/object:Gem::Specification
 name: rspec-mocks
 version: !ruby/object:Gem::Version
-  version: 3.9.1
+  version: 3.10.1
 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: 2019-12-31 00:00:00.000000000 Z
+date: 2020-12-28 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rspec-support
@@ -53,14 +53,14 @@
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: 3.9.0
+        version: 3.10.0
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: 3.9.0
+        version: 3.10.0
 - !ruby/object:Gem::Dependency
   name: diff-lcs
   requirement: !ruby/object:Gem::Requirement
@@ -85,14 +85,14 @@
   name: rake
   requirement: !ruby/object:Gem::Requirement
     requirements:
-    - - "~>"
+    - - ">"
       - !ruby/object:Gem::Version
         version: 10.0.0
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
-    - - "~>"
+    - - ">"
       - !ruby/object:Gem::Version
         version: 10.0.0
 - !ruby/object:Gem::Dependency
@@ -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.9.1/Changelog.md
+  changelog_uri: https://github.com/rspec/rspec-mocks/blob/v3.10.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
-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.1.1
-signing_key: 
+rubygems_version: 3.1.4
+signing_key:
 specification_version: 4
-summary: rspec-mocks-3.9.1
+summary: rspec-mocks-3.10.1
 test_files: []
Binary files old/metadata.gz.sig and new/metadata.gz.sig differ

Reply via email to