commit rubygem-rspec-mocks for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-rspec-mocks for openSUSE:Factory checked in at 2016-01-28 17:19:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-mocks (Old) and /work/SRC/openSUSE:Factory/.rubygem-rspec-mocks.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "rubygem-rspec-mocks" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-rspec-mocks/rubygem-rspec-mocks.changes 2015-12-01 10:02:21.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rspec-mocks.new/rubygem-rspec-mocks.changes 2016-01-28 17:19:56.000000000 +0100 @@ -1,0 +2,13 @@ +Mon Jan 11 05:50:26 UTC 2016 - coolo@suse.com + +- updated to version 3.4.1 + see installed Changelog.md + + ### 3.4.1 / 2016-01-10 + [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.4.0...v3.4.1) + + Bug Fixes: + + * Fix `any_instance` to work properly on Ruby 2.3. (Joe Rafaniello, #1043) + +------------------------------------------------------------------- Old: ---- rspec-mocks-3.4.0.gem New: ---- rspec-mocks-3.4.1.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-rspec-mocks.spec ++++++ --- /var/tmp/diff_new_pack.3mgoUT/_old 2016-01-28 17:19:57.000000000 +0100 +++ /var/tmp/diff_new_pack.3mgoUT/_new 2016-01-28 17:19:57.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-rspec-mocks # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # 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.4.0 +Version: 3.4.1 Release: 0 %define mod_name rspec-mocks %define mod_full_name %{mod_name}-%{version} ++++++ rspec-mocks-3.4.0.gem -> rspec-mocks-3.4.1.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Changelog.md new/Changelog.md --- old/Changelog.md 2015-11-12 08:48:44.000000000 +0100 +++ new/Changelog.md 2016-01-11 00:57:10.000000000 +0100 @@ -1,3 +1,10 @@ +### 3.4.1 / 2016-01-10 +[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.4.0...v3.4.1) + +Bug Fixes: + +* Fix `any_instance` to work properly on Ruby 2.3. (Joe Rafaniello, #1043) + ### 3.4.0 / 2015-11-11 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.3.2...v3.4.0) Files old/checksums.yaml.gz and new/checksums.yaml.gz differ Files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ 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/any_instance/recorder.rb new/lib/rspec/mocks/any_instance/recorder.rb --- old/lib/rspec/mocks/any_instance/recorder.rb 2015-11-12 08:48:44.000000000 +0100 +++ new/lib/rspec/mocks/any_instance/recorder.rb 2016-01-11 00:57:10.000000000 +0100 @@ -18,6 +18,7 @@ @stubs = Hash.new { |hash, key| hash[key] = [] } @observed_methods = [] @played_methods = {} + @backed_up_method_owner = {} @klass = klass @expectation_set = false end @@ -190,9 +191,9 @@ return unless @klass.instance_method(method_name).owner == @klass alias_method_name = build_alias_method_name(method_name) - @klass.class_exec do + @klass.class_exec(@backed_up_method_owner) do |backed_up_method_owner| remove_method method_name - alias_method method_name, alias_method_name + alias_method method_name, alias_method_name if backed_up_method_owner[method_name.to_sym] == self remove_method alias_method_name end end @@ -204,10 +205,13 @@ end def backup_method!(method_name) + return unless public_protected_or_private_method_defined?(method_name) + alias_method_name = build_alias_method_name(method_name) + @backed_up_method_owner[method_name.to_sym] ||= @klass.instance_method(method_name).owner @klass.class_exec do alias_method alias_method_name, method_name - end if public_protected_or_private_method_defined?(method_name) + end end def public_protected_or_private_method_defined?(method_name) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/mocks/instance_method_stasher.rb new/lib/rspec/mocks/instance_method_stasher.rb --- old/lib/rspec/mocks/instance_method_stasher.rb 2015-11-12 08:48:44.000000000 +0100 +++ new/lib/rspec/mocks/instance_method_stasher.rb 2016-01-11 00:57:10.000000000 +0100 @@ -54,6 +54,7 @@ def stash return unless method_defined_directly_on_klass? @original_method ||= ::RSpec::Support.method_handle_for(@object, @method) + @klass.__send__(:undef_method, @method) end # @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 2015-11-12 08:48:44.000000000 +0100 +++ new/lib/rspec/mocks/version.rb 2016-01-11 00:57:10.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.4.0' + STRING = '3.4.1' end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2015-11-12 08:48:44.000000000 +0100 +++ new/metadata 2016-01-11 00:57:10.000000000 +0100 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: rspec-mocks version: !ruby/object:Gem::Version - version: 3.4.0 + version: 3.4.1 platform: ruby authors: - Steven Baker @@ -45,7 +45,7 @@ ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ F3MdtaDehhjC -----END CERTIFICATE----- -date: 2015-11-12 00:00:00.000000000 Z +date: 2016-01-10 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: rspec-support @@ -212,6 +212,6 @@ rubygems_version: 2.2.2 signing_key: specification_version: 4 -summary: rspec-mocks-3.4.0 +summary: rspec-mocks-3.4.1 test_files: [] has_rdoc: Files old/metadata.gz.sig and new/metadata.gz.sig differ
participants (1)
-
root@hilbert.suse.de