Hello community,

here is the log from the commit of package rubygem-rspec-mocks for 
openSUSE:Factory checked in at 2015-07-05 17:57:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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-06-15 17:45:49.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-rspec-mocks.new/rubygem-rspec-mocks.changes 
    2015-07-05 17:57:17.000000000 +0200
@@ -1,0 +2,16 @@
+Sun Jun 21 04:33:06 UTC 2015 - [email protected]
+
+- updated to version 3.3.1
+ see installed Changelog.md
+
+  ### 3.3.1 / 2015-06-19
+  [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.3.0...v3.3.1)
+  
+  Bug Fixes:
+  
+  * Fix bug in `before_verifying_double` callback logic that caused it to be 
called
+    once for each class in the ancestor list when mocking or stubbing a class. 
Now
+    it is only called for the mocked or stubbed class, as you would expect. 
(Sam
+    Phippen, #974)
+
+-------------------------------------------------------------------

Old:
----
  rspec-mocks-3.3.0.gem

New:
----
  rspec-mocks-3.3.1.gem

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

Other differences:
------------------
++++++ rubygem-rspec-mocks.spec ++++++
--- /var/tmp/diff_new_pack.RXy85K/_old  2015-07-05 17:57:17.000000000 +0200
+++ /var/tmp/diff_new_pack.RXy85K/_new  2015-07-05 17:57:17.000000000 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-rspec-mocks
-Version:        3.3.0
+Version:        3.3.1
 Release:        0
 %define mod_name rspec-mocks
 %define mod_full_name %{mod_name}-%{version}

++++++ rspec-mocks-3.3.0.gem -> rspec-mocks-3.3.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Changelog.md new/Changelog.md
--- old/Changelog.md    2015-06-12 17:05:16.000000000 +0200
+++ new/Changelog.md    2015-06-20 06:40:49.000000000 +0200
@@ -1,3 +1,13 @@
+### 3.3.1 / 2015-06-19
+[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.3.0...v3.3.1)
+
+Bug Fixes:
+
+* Fix bug in `before_verifying_double` callback logic that caused it to be 
called
+  once for each class in the ancestor list when mocking or stubbing a class. 
Now
+  it is only called for the mocked or stubbed class, as you would expect. (Sam
+  Phippen, #974)
+
 ### 3.3.0 / 2015-06-12
 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.2.1...v3.3.0)
 
@@ -356,7 +366,7 @@
   behavior. (MaurĂ­cio Linhares)
 
 ### 3.0.0.beta1 / 2013-11-07
-[Full 
Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.3...v3.0.0.beta1)
+[Full 
Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.4...v3.0.0.beta1)
 
 Breaking Changes for 3.0.0:
 
@@ -419,6 +429,13 @@
   returns `nil` or `''` so that you still get a useful message.
   (Nick DeLuca)
 
+### 2.99.4 / 2015-06-19
+[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.3...v2.99.4)
+
+Bug Fixes:
+
+* Add missing deprecation for using `with` with no arguments e.g. `with()`. 
(Yousuke, #970)
+
 ### 2.99.3 / 2015-01-09
 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.2...v2.99.3)
 
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/proxy.rb new/lib/rspec/mocks/proxy.rb
--- old/lib/rspec/mocks/proxy.rb        2015-06-12 17:05:16.000000000 +0200
+++ new/lib/rspec/mocks/proxy.rb        2015-06-20 06:40:50.000000000 +0200
@@ -391,7 +391,7 @@
         return @superclass_proxy if defined?(@superclass_proxy)
 
         if (superclass = object.superclass)
-          @superclass_proxy = @source_space.proxy_for(superclass)
+          @superclass_proxy = @source_space.superclass_proxy_for(superclass)
         else
           @superclass_proxy = nil
         end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rspec/mocks/space.rb new/lib/rspec/mocks/space.rb
--- old/lib/rspec/mocks/space.rb        2015-06-12 17:05:16.000000000 +0200
+++ new/lib/rspec/mocks/space.rb        2015-06-20 06:40:50.000000000 +0200
@@ -35,6 +35,10 @@
         false
       end
 
+      def superclass_proxy_for(*_args)
+        raise_lifecycle_message
+      end
+
       def new_scope
         Space.new
       end
@@ -109,6 +113,13 @@
         end
       end
 
+      def superclass_proxy_for(klass)
+        proxy_mutex.synchronize do
+          id = id_for(klass)
+          proxies.fetch(id) { superclass_proxy_not_found_for(id, klass) }
+        end
+      end
+
       alias ensure_registered proxy_for
 
       def registered?(object)
@@ -150,11 +161,7 @@
                       when NilClass   then 
ProxyForNil.new(@expectation_ordering)
                       when TestDouble then 
object.__build_mock_proxy_unless_expired(@expectation_ordering)
                       when Class
-                        if RSpec::Mocks.configuration.verify_partial_doubles?
-                          VerifyingPartialClassDoubleProxy.new(self, object, 
@expectation_ordering)
-                        else
-                          PartialClassDoubleProxy.new(self, object, 
@expectation_ordering)
-                        end
+                        
class_proxy_with_callback_verification_strategy(object, 
CallbackInvocationStrategy.new)
                       else
                         if RSpec::Mocks.configuration.verify_partial_doubles?
                           VerifyingPartialDoubleProxy.new(object, 
@expectation_ordering)
@@ -164,6 +171,24 @@
                       end
       end
 
+      def superclass_proxy_not_found_for(id, object)
+        raise "superclass_proxy_not_found_for called with something that is 
not a class" unless Class === object
+        proxies[id] = class_proxy_with_callback_verification_strategy(object, 
NoCallbackInvocationStrategy.new)
+      end
+
+      def class_proxy_with_callback_verification_strategy(object, strategy)
+        if RSpec::Mocks.configuration.verify_partial_doubles?
+          VerifyingPartialClassDoubleProxy.new(
+            self,
+            object,
+            @expectation_ordering,
+            strategy
+          )
+        else
+          PartialClassDoubleProxy.new(self, object, @expectation_ordering)
+        end
+      end
+
       def any_instance_recorder_not_found_for(id, klass)
         any_instance_recorders[id] = AnyInstance::Recorder.new(klass)
       end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rspec/mocks/verifying_proxy.rb 
new/lib/rspec/mocks/verifying_proxy.rb
--- old/lib/rspec/mocks/verifying_proxy.rb      2015-06-12 17:05:16.000000000 
+0200
+++ new/lib/rspec/mocks/verifying_proxy.rb      2015-06-20 06:40:50.000000000 
+0200
@@ -4,6 +4,21 @@
 module RSpec
   module Mocks
     # @private
+    class CallbackInvocationStrategy
+      def call(doubled_module)
+        RSpec::Mocks.configuration.verifying_double_callbacks.each do |block|
+          block.call doubled_module
+        end
+      end
+    end
+
+    # @private
+    class NoCallbackInvocationStrategy
+      def call(_doubled_module)
+      end
+    end
+
+    # @private
     module VerifyingProxyMethods
       def add_stub(method_name, opts={}, &implementation)
         ensure_implemented(method_name)
@@ -86,10 +101,13 @@
     end
 
     # @private
+    DEFAULT_CALLBACK_INVOCATION_STRATEGY = CallbackInvocationStrategy.new
+
+    # @private
     class VerifyingPartialDoubleProxy < PartialDoubleProxy
       include VerifyingProxyMethods
 
-      def initialize(object, expectation_ordering)
+      def initialize(object, expectation_ordering, 
optional_callback_invocation_strategy=DEFAULT_CALLBACK_INVOCATION_STRATEGY)
         super(object, expectation_ordering)
         @doubled_module = DirectObjectReference.new(object)
 
@@ -99,9 +117,7 @@
           h[k] = VerifyingExistingMethodDouble.for(object, k, self)
         end
 
-        RSpec::Mocks.configuration.verifying_double_callbacks.each do |block|
-          block.call @doubled_module
-        end
+        optional_callback_invocation_strategy.call(@doubled_module)
       end
 
       def method_reference
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-06-12 17:05:16.000000000 +0200
+++ new/lib/rspec/mocks/version.rb      2015-06-20 06:40:50.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.3.0'
+      STRING = '3.3.1'
     end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2015-06-12 17:05:16.000000000 +0200
+++ new/metadata        2015-06-20 06:40:49.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: rspec-mocks
 version: !ruby/object:Gem::Version
-  version: 3.3.0
+  version: 3.3.1
 platform: ruby
 authors:
 - Steven Baker
@@ -45,7 +45,7 @@
   ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
   F3MdtaDehhjC
   -----END CERTIFICATE-----
-date: 2015-06-12 00:00:00.000000000 Z
+date: 2015-06-20 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.3.0
+summary: rspec-mocks-3.3.1
 test_files: []
 has_rdoc: 
Files old/metadata.gz.sig and new/metadata.gz.sig differ


Reply via email to