Hello community,
here is the log from the commit of package rubygem-rspec-expectations for
openSUSE:Factory checked in at 2020-04-29 20:41:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-expectations (Old)
and /work/SRC/openSUSE:Factory/.rubygem-rspec-expectations.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rspec-expectations"
Wed Apr 29 20:41:43 2020 rev:19 rq:798259 version:3.9.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-rspec-expectations/rubygem-rspec-expectations.changes
2019-12-28 13:39:59.718917136 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-rspec-expectations.new.2738/rubygem-rspec-expectations.changes
2020-04-29 20:42:16.455625733 +0200
@@ -1,0 +2,7 @@
+Mon Apr 27 12:50:28 UTC 2020 - Manuel Schnitzer <[email protected]>
+
+- updated to version 3.9.1
+
+ * no changelog for version 3.9.1 found
+
+-------------------------------------------------------------------
Old:
----
rspec-expectations-3.9.0.gem
New:
----
rspec-expectations-3.9.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-rspec-expectations.spec ++++++
--- /var/tmp/diff_new_pack.wTfVbF/_old 2020-04-29 20:42:17.063627318 +0200
+++ /var/tmp/diff_new_pack.wTfVbF/_new 2020-04-29 20:42:17.063627318 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-rspec-expectations
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 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-expectations
-Version: 3.9.0
+Version: 3.9.1
Release: 0
%define mod_name rspec-expectations
%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-expectations
+URL: https://github.com/rspec/rspec-expectations
Source: https://rubygems.org/gems/%{mod_full_name}.gem
Source1: gem2rpm.yml
Summary: API to express expected outcomes of a code example
++++++ rspec-expectations-3.9.0.gem -> rspec-expectations-3.9.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Changelog.md new/Changelog.md
--- old/Changelog.md 2019-10-07 23:35:25.000000000 +0200
+++ new/Changelog.md 2020-03-13 11:36:02.000000000 +0100
@@ -1,5 +1,13 @@
-### 3.9.0 / 2019-10-02
-[Full
Changelog](http://github.com/rspec/rspec-expectations/compare/v3.8.5...v3.9.0)
+### 3.9.1 / 2020-03-13
+[Full
Changelog](http://github.com/rspec/rspec-expectations/compare/v3.9.0...v3.9.1)
+
+Bug Fixes:
+
+* Issue an improved warning when using `respond_to(...).with(n).arguments` and
ignore
+ the warning when using with `have_attributes(...)`. (Jon Rowe, #1164)
+
+### 3.9.0 / 2019-10-08
+[Full
Changelog](http://github.com/rspec/rspec-expectations/compare/v3.8.6...v3.9.0)
Enhancements:
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/expectations/version.rb
new/lib/rspec/expectations/version.rb
--- old/lib/rspec/expectations/version.rb 2019-10-07 23:35:25.000000000
+0200
+++ new/lib/rspec/expectations/version.rb 2020-03-13 11:36:02.000000000
+0100
@@ -2,7 +2,7 @@
module Expectations
# @private
module Version
- STRING = '3.9.0'
+ STRING = '3.9.1'
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rspec/matchers/built_in/have_attributes.rb
new/lib/rspec/matchers/built_in/have_attributes.rb
--- old/lib/rspec/matchers/built_in/have_attributes.rb 2019-10-07
23:35:25.000000000 +0200
+++ new/lib/rspec/matchers/built_in/have_attributes.rb 2020-03-13
11:36:02.000000000 +0100
@@ -93,7 +93,7 @@
end
def respond_to_matcher
- @respond_to_matcher ||=
RespondTo.new(*expected.keys).with(0).arguments
+ @respond_to_matcher ||=
RespondTo.new(*expected.keys).with(0).arguments.tap { |m|
m.ignoring_method_signature_failure! }
end
def respond_to_failure_message_or
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rspec/matchers/built_in/respond_to.rb
new/lib/rspec/matchers/built_in/respond_to.rb
--- old/lib/rspec/matchers/built_in/respond_to.rb 2019-10-07
23:35:25.000000000 +0200
+++ new/lib/rspec/matchers/built_in/respond_to.rb 2020-03-13
11:36:02.000000000 +0100
@@ -1,5 +1,7 @@
RSpec::Support.require_rspec_support "method_signature_verifier"
+# TODO: Refactor this file to be under our class length
+# rubocop:disable ClassLength
module RSpec
module Matchers
module BuiltIn
@@ -11,6 +13,7 @@
@names = names
@expected_arity = nil
@expected_keywords = []
+ @ignoring_method_signature_failure = false
@unlimited_arguments = nil
@arbitrary_keywords = nil
end
@@ -100,6 +103,12 @@
"respond to #{pp_names}#{with_arity}"
end
+ # @api private
+ # Used by other matchers to suppress a check
+ def ignoring_method_signature_failure!
+ @ignoring_method_signature_failure = true
+ end
+
private
def find_failing_method_names(actual, filter_method)
@@ -109,7 +118,7 @@
end
end
- def matches_arity?(actual, name)
+ def setup_method_signature_expectation
expectation = Support::MethodSignatureExpectation.new
if @expected_arity.is_a?(Range)
@@ -123,10 +132,25 @@
expectation.expect_unlimited_arguments = @unlimited_arguments
expectation.expect_arbitrary_keywords = @arbitrary_keywords
+ expectation
+ end
+
+ def matches_arity?(actual, name)
+ expectation = setup_method_signature_expectation
+
return true if expectation.empty?
- Support::StrictSignatureVerifier.new(method_signature_for(actual,
name)).
- with_expectation(expectation).valid?
+ begin
+ Support::StrictSignatureVerifier.new(method_signature_for(actual,
name)).
+ with_expectation(expectation).valid?
+ rescue NameError
+ return true if @ignoring_method_signature_failure
+ raise ArgumentError, "The #{matcher_name} matcher requires that " \
+ "the actual object define the method(s) in " \
+ "order to check arity, but the method " \
+ "`#{name}` is not defined. Remove the arity "
\
+ "check or define the method to continue."
+ end
end
def method_signature_for(actual, name)
@@ -172,3 +196,4 @@
end
end
end
+# rubocop:enable ClassLength
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2019-10-07 23:35:25.000000000 +0200
+++ new/metadata 2020-03-13 11:36:02.000000000 +0100
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: rspec-expectations
version: !ruby/object:Gem::Version
- version: 3.9.0
+ version: 3.9.1
platform: ruby
authors:
- Steven Baker
@@ -45,7 +45,7 @@
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
F3MdtaDehhjC
-----END CERTIFICATE-----
-date: 2019-10-07 00:00:00.000000000 Z
+date: 2020-03-13 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rspec-support
@@ -202,7 +202,7 @@
- MIT
metadata:
bug_tracker_uri: https://github.com/rspec/rspec-expectations/issues
- changelog_uri:
https://github.com/rspec/rspec-expectations/blob/v3.9.0/Changelog.md
+ changelog_uri:
https://github.com/rspec/rspec-expectations/blob/v3.9.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-expectations
@@ -222,8 +222,8 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.0.6
+rubygems_version: 3.1.2
signing_key:
specification_version: 4
-summary: rspec-expectations-3.9.0
+summary: rspec-expectations-3.9.1
test_files: []
Binary files old/metadata.gz.sig and new/metadata.gz.sig differ