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-12-04 14:57:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-mocks (Old)
and /work/SRC/openSUSE:Factory/.rubygem-rspec-mocks.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rspec-mocks"
Sun Dec 4 14:57:52 2022 rev:25 rq:1032157 version:3.12.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rspec-mocks/rubygem-rspec-mocks.changes
2022-05-02 16:24:52.640792024 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-rspec-mocks.new.1835/rubygem-rspec-mocks.changes
2022-12-04 14:58:02.132160058 +0100
@@ -1,0 +2,7 @@
+Fri Oct 28 05:05:42 UTC 2022 - Stephan Kulow <[email protected]>
+
+updated to version 3.12.0
+ see installed Changelog.md
+
+
+-------------------------------------------------------------------
Old:
----
rspec-mocks-3.11.1.gem
New:
----
rspec-mocks-3.12.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-rspec-mocks.spec ++++++
--- /var/tmp/diff_new_pack.Exqn5M/_old 2022-12-04 14:58:03.628168676 +0100
+++ /var/tmp/diff_new_pack.Exqn5M/_new 2022-12-04 14:58:03.632168699 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-rspec-mocks
-Version: 3.11.1
+Version: 3.12.0
Release: 0
%define mod_name rspec-mocks
%define mod_full_name %{mod_name}-%{version}
++++++ rspec-mocks-3.11.1.gem -> rspec-mocks-3.12.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Changelog.md new/Changelog.md
--- old/Changelog.md 2022-03-31 23:05:13.000000000 +0200
+++ new/Changelog.md 2022-10-26 21:14:46.000000000 +0200
@@ -1,5 +1,24 @@
### Development
-[Full
Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.1...3-11-maintenance)
+[Full
Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.0...3-12-maintenance)
+
+### 3.12.0 / 2022-10-26
+[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.2...v3.12.0)
+
+Enhancements:
+
+* Improve diff output when diffing keyword arguments against hashes.
+ (Jean Boussier, #1461)
+
+### 3.11.2 / 2022-10-25
+[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.1...v3.11.2)
+
+Bug Fixes:
+
+* Use the original implementation of `Class.new` to detect overridden
definitions
+ of `new` rather than the owner, fixing detection of "double aliased" methods
+ in Ruby 3 and above. (Benoit Daloze, #1470, #1476)
+* Support keyword argument semantics when constraining argument expectations
using
+ `with` on Ruby 3.0+ with `instance_double` (Andrii Malyshko, #1473)
### 3.11.1 / 2022-03-31
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.0...v3.11.1)
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/error_generator.rb
new/lib/rspec/mocks/error_generator.rb
--- old/lib/rspec/mocks/error_generator.rb 2022-03-31 23:05:13.000000000
+0200
+++ new/lib/rspec/mocks/error_generator.rb 2022-10-26 21:14:46.000000000
+0200
@@ -268,6 +268,17 @@
def error_message(expectation, args_for_multiple_calls)
expected_args = format_args(expectation.expected_args)
actual_args = format_received_args(args_for_multiple_calls)
+
+ if
RSpec::Support::RubyFeatures.distincts_kw_args_from_positional_hash? &&
expected_args == actual_args
+ expected_hash = expectation.expected_args.last
+ actual_hash = args_for_multiple_calls.last.last
+ if Hash === expected_hash && Hash === actual_hash &&
+ (Hash.ruby2_keywords_hash?(expected_hash) !=
Hash.ruby2_keywords_hash?(actual_hash))
+ actual_args += Hash.ruby2_keywords_hash?(actual_hash) ? " (keyword
arguments)" : " (options hash)"
+ expected_args += Hash.ruby2_keywords_hash?(expected_hash) ? "
(keyword arguments)" : " (options hash)"
+ end
+ end
+
message = default_error_message(expectation, expected_args,
actual_args)
if args_for_multiple_calls.one?
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-03-31 23:05:13.000000000
+0200
+++ new/lib/rspec/mocks/message_expectation.rb 2022-10-26 21:14:46.000000000
+0200
@@ -406,7 +406,6 @@
# some collaborators it delegates to for this stuff but for now this was
# the simplest way to split the public from private stuff to make it
# easier to publish the docs for the APIs we want published.
- # rubocop:disable Metrics/ModuleLength
module ImplementationDetails
attr_accessor :error_generator, :implementation
attr_reader :message
@@ -686,7 +685,6 @@
nil
end
end
- # rubocop:enable Metrics/ModuleLength
include ImplementationDetails
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rspec/mocks/method_reference.rb
new/lib/rspec/mocks/method_reference.rb
--- old/lib/rspec/mocks/method_reference.rb 2022-03-31 23:05:13.000000000
+0200
+++ new/lib/rspec/mocks/method_reference.rb 2022-10-26 21:14:46.000000000
+0200
@@ -185,11 +185,23 @@
def self.applies_to?(method_name)
return false unless method_name == :new
klass = yield
- return false unless klass.respond_to?(:new, true)
+ return false unless ::Class === klass && klass.respond_to?(:new, true)
# We only want to apply our special logic to normal `new` methods.
# Methods that the user has monkeyed with should be left as-is.
- ::RSpec::Support.method_handle_for(klass, :new).owner == ::Class
+ uses_class_new?(klass)
+ end
+
+ if RUBY_VERSION.to_i >= 3
+ CLASS_NEW = ::Class.instance_method(:new)
+
+ def self.uses_class_new?(klass)
+ ::RSpec::Support.method_handle_for(klass, :new) ==
CLASS_NEW.bind(klass)
+ end
+ else # Ruby 2's Method#== is too strict
+ def self.uses_class_new?(klass)
+ ::RSpec::Support.method_handle_for(klass, :new).owner == ::Class
+ end
end
def with_signature
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rspec/mocks/verifying_message_expectation.rb
new/lib/rspec/mocks/verifying_message_expectation.rb
--- old/lib/rspec/mocks/verifying_message_expectation.rb 2022-03-31
23:05:13.000000000 +0200
+++ new/lib/rspec/mocks/verifying_message_expectation.rb 2022-10-26
21:14:46.000000000 +0200
@@ -31,6 +31,7 @@
end
end
end
+ ruby2_keywords(:with) 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-03-31 23:05:13.000000000 +0200
+++ new/lib/rspec/mocks/version.rb 2022-10-26 21:14:46.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.1'
+ STRING = '3.12.0'
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2022-03-31 23:05:13.000000000 +0200
+++ new/metadata 2022-10-26 21:14:46.000000000 +0200
@@ -1,13 +1,13 @@
--- !ruby/object:Gem::Specification
name: rspec-mocks
version: !ruby/object:Gem::Version
- version: 3.11.1
+ version: 3.12.0
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: 2022-03-31 00:00:00.000000000 Z
+date: 2022-10-26 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rspec-support
@@ -53,14 +53,14 @@
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: 3.11.0
+ version: 3.12.0
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: 3.11.0
+ version: 3.12.0
- !ruby/object:Gem::Dependency
name: diff-lcs
requirement: !ruby/object:Gem::Requirement
@@ -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.11.1/Changelog.md
+ changelog_uri: https://github.com/rspec/rspec-mocks/blob/v3.12.0/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.3.3
-signing_key:
+rubygems_version: 3.1.6
+signing_key:
specification_version: 4
-summary: rspec-mocks-3.11.1
+summary: rspec-mocks-3.12.0
test_files: []
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata.gz.sig new/metadata.gz.sig
--- old/metadata.gz.sig 2022-03-31 23:05:13.000000000 +0200
+++ new/metadata.gz.sig 2022-10-26 21:14:46.000000000 +0200
@@ -1,3 +1,3 @@
-`éãÓ{3nìÐ
-^¸Ï[»ýTkßeÍ«ãO%wÂÕ/2nä{XÈ(ørû¢98±´8}FvçµÐâUÏÞá´ÚÉ«PAX¥Ð-#¡/árz=¹ltÚ·V=oÏh73§©j#K.8§
#¡?¨
-P±÷sóÖ0ýpt®zð\ã[kÚÂÅ3emÀS+ü
ãþõ=f¶
Ö<.£¶þÝ-ÕEcA:¡íµkiq(óÏYc<[R,xMPÌä/
GZôFÒÓ1ò,Ç})Âý+¦CþÊ]a£[q.þß§7ñÎ5}ËXí¯ð77Õt
Rñçâ7T»|½XÝæ¬Æ·PFÖÐQ%4£Ëû¼Ò³ÿLÔºZwjÖÉêU1ÐÞS°!**Ôh(H¨u-
¡8éÕ_u<ng|~¥UÔy¨câ{ì8.Dc·Yã-0¹áa_)ÄWÈmn±Â×wQ¹(,vÖwLÖP|¨GW0?xnY*
0{áÌÁBESVîþw²ä³úsj«ÃêoÇ9ïS29Órܸ¼çN@@¿Hµ-.b_k
µ¸èi0àô`¯+JûQ·Í\¨Õ<Á#H#<Ò¾ZÞô
\ No newline at end of file
+gÊM³ò!½¦GDZWóf_ cäå
+v·¢«Ð1ûá³ÿFµõGR?rpç°u´&é?«!q´#'¹®ÍÊ! Ñü«
ÜéÇ0¿tS`Jõ0GU¯L?5ëµ±eë·`ÁxÊ,Ò{æÊûoF÷¥¢E
wz]"eñìày¸~0§HAQæüÅãD-o;jÙиi)_§`s"oGTÓ\Èò3ÆänêuY=~hÅ{S
éäà¥rÍî@ü?Ô£1¬·3Øpç~CVÍ×{ùø³è·#Ì '6N
Û½¸/ÇR
~ìãzÊãTÞ R¹`_0Z£WMÇb^XNZÏKÓZ;Æv0qå$b[ÁÓßúÉ0]
âþvÇT8RÝõ»$ØD?påD.ǽv/:ÏßÇc¥?Ûz0ÕÆ_fÂÛÓÍ7åY$<{V´a×Oùu;bý
¼¦Ï)3ÏÌmYñj5§sí³0t²ÎdH*Je*mp
xÚ§3aÕyí"ÙÕ,¼²cæCÅè±e/fÕ%Æ®¼ï½¥z#Ì{#<Ð ¨¦
+U÷
½äÇõßÞ0ãøT{¾CD¥b?òqBÞPi
\ No newline at end of file