Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-mocha for openSUSE:Factory 
checked in at 2022-10-30 18:28:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-mocha (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-mocha.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-mocha"

Sun Oct 30 18:28:54 2022 rev:34 rq:1032147 version:1.16.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-mocha/rubygem-mocha.changes      
2022-10-12 18:26:33.093935525 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-mocha.new.2275/rubygem-mocha.changes    
2022-10-30 18:29:09.486488823 +0100
@@ -1,0 +2,6 @@
+Fri Oct 28 05:00:23 UTC 2022 - Stephan Kulow <[email protected]>
+
+updated to version 1.16.0
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  mocha-1.15.0.gem

New:
----
  mocha-1.16.0.gem

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

Other differences:
------------------
++++++ rubygem-mocha.spec ++++++
--- /var/tmp/diff_new_pack.OTPm5Y/_old  2022-10-30 18:29:11.450499436 +0100
+++ /var/tmp/diff_new_pack.OTPm5Y/_new  2022-10-30 18:29:11.454499457 +0100
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-mocha
-Version:        1.15.0
+Version:        1.16.0
 Release:        0
 %define mod_name mocha
 %define mod_full_name %{mod_name}-%{version}

++++++ mocha-1.15.0.gem -> mocha-1.16.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/RELEASE.md new/RELEASE.md
--- old/RELEASE.md      2022-09-21 20:20:20.000000000 +0200
+++ new/RELEASE.md      2022-10-18 16:15:24.000000000 +0200
@@ -1,5 +1,16 @@
 # Release Notes
 
+## 1.16.0
+
+### External changes
+
+* Default `Configuration#reinstate_undocumented_behaviour_from_v1_9=` to 
`false` (6fcaf947)
+* Deprecate `Configuration#reinstate_undocumented_behaviour_from_v1_9=` 
(a797c5fd)
+
+### Internal changes
+
+* Remove redundant deprecation disabling in MockTest (dc8ca969)
+
 ## 1.15.0
 
 ### External changes
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/mocha/configuration.rb 
new/lib/mocha/configuration.rb
--- old/lib/mocha/configuration.rb      2022-09-21 20:20:20.000000000 +0200
+++ new/lib/mocha/configuration.rb      2022-10-18 16:15:24.000000000 +0200
@@ -43,7 +43,7 @@
       :stubbing_non_public_method => :allow,
       :stubbing_method_on_nil => :prevent,
       :display_matching_invocations_on_failure => false,
-      :reinstate_undocumented_behaviour_from_v1_9 => true
+      :reinstate_undocumented_behaviour_from_v1_9 => false
     }.freeze
 
     attr_reader :options
@@ -258,7 +258,8 @@
     #
     # Enabling this configuration option reinstates the previous behaviour, 
but displays a deprecation warning.
     #
-    # @param [Boolean] value +true+ to reinstate undocumented behaviour; 
enabled by default.
+    # @param [Boolean] value +true+ to reinstate undocumented behaviour; 
disabled by default.
+    # @deprecated Fix deprecation warnings caused by reliance on v1.9 
behaviour and remove calls to this method.
     #
     # @example Reinstate undocumented behaviour for {API#mock}
     #   Mocha.configure do |c|
@@ -295,6 +296,16 @@
     #   foo.my_method # => does *not* raise LocalJumpError when no block is 
supplied
     #
     def reinstate_undocumented_behaviour_from_v1_9=(value)
+      if value
+        sentence1 = 'Configuration#reinstate_undocumented_behaviour_from_v1_9= 
will be removed in the future.'
+        sentence2 = 'Fix deprecation warnings caused by reliance on v1.9 
behaviour.'
+        sentence3 = 'See docs for API#mock, API#stub, API#stub_everything, 
Expectation#yields and Expectation#multiple_yields.'
+        Deprecation.warning([sentence1, sentence2, sentence3].join(' '))
+      else
+        sentence1 = 'Configuration#reinstate_undocumented_behaviour_from_v1_9= 
is unnecessarily being set to false, because this is now the default value.'
+        sentence2 = 'Configuration#reinstate_undocumented_behaviour_from_v1_9= 
will be removed in the future, so you should avoid calling it.'
+        Deprecation.warning([sentence1, sentence2].join(' '))
+      end
       @options[:reinstate_undocumented_behaviour_from_v1_9] = value
     end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/mocha/version.rb new/lib/mocha/version.rb
--- old/lib/mocha/version.rb    2022-09-21 20:20:20.000000000 +0200
+++ new/lib/mocha/version.rb    2022-10-18 16:15:24.000000000 +0200
@@ -1,3 +1,3 @@
 module Mocha
-  VERSION = '1.15.0'.freeze
+  VERSION = '1.16.0'.freeze
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2022-09-21 20:20:20.000000000 +0200
+++ new/metadata        2022-10-18 16:15:24.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: mocha
 version: !ruby/object:Gem::Version
-  version: 1.15.0
+  version: 1.16.0
 platform: ruby
 authors:
 - James Mead
-autorequire: 
+autorequire:
 bindir: bin
 cert_chain: []
-date: 2022-09-21 00:00:00.000000000 Z
+date: 2022-10-18 00:00:00.000000000 Z
 dependencies: []
 description: Mocking and stubbing library with JMock/SchMock syntax, which 
allows
   mocking and stubbing of methods on real (non-mock) classes.
@@ -139,7 +139,7 @@
 - MIT
 - BSD-2-Clause
 metadata: {}
-post_install_message: 
+post_install_message:
 rdoc_options: []
 require_paths:
 - lib
@@ -154,8 +154,8 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubygems_version: 3.1.6
-signing_key: 
+rubygems_version: 3.3.3
+signing_key:
 specification_version: 4
 summary: Mocking and stubbing library
 test_files: []

Reply via email to