Hello community,
here is the log from the commit of package rubygem-rspec-mocks for
openSUSE:Factory checked in at 2018-11-01 18:52:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-mocks (Old)
and /work/SRC/openSUSE:Factory/.rubygem-rspec-mocks.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rspec-mocks"
Thu Nov 1 18:52:06 2018 rev:17 rq:627633 version:3.8.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rspec-mocks/rubygem-rspec-mocks.changes
2017-11-01 11:08:13.424873543 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-rspec-mocks.new/rubygem-rspec-mocks.changes
2018-11-01 18:52:10.653950731 +0100
@@ -1,0 +2,17 @@
+Sun Aug 5 19:01:44 UTC 2018 - [email protected]
+
+- updated to version 3.8.0
+
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.7.0...v3.8.0)
+
+ Bug Fixes:
+
+ * Issue error when encountering invalid "counted" negative message
expectations.
+ (Sergiy Yarinovskiy, #1212)
+ * Ensure `allow_any_instance_of` and `expect_any_instance_of` can be
temporarily
+ supressed. (Jon Rowe, #1228)
+ * Ensure `expect_any_instance_of(double).to_not have_received(:some_method)`
+ fails gracefully (as its not supported) rather than issuing a
`NoMethodError`.
+ (Maxim Krizhanovsky, #1231)
+
+-------------------------------------------------------------------
Old:
----
rspec-mocks-3.7.0.gem
New:
----
rspec-mocks-3.8.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-rspec-mocks.spec ++++++
--- /var/tmp/diff_new_pack.2cEEFt/_old 2018-11-01 18:52:12.153950875 +0100
+++ /var/tmp/diff_new_pack.2cEEFt/_new 2018-11-01 18:52:12.189950879 +0100
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-rspec-mocks
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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.7.0
+Version: 3.8.0
Release: 0
%define mod_name rspec-mocks
%define mod_full_name %{mod_name}-%{version}
++++++ rspec-mocks-3.7.0.gem -> rspec-mocks-3.8.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Changelog.md new/Changelog.md
--- old/Changelog.md 2017-10-17 17:13:59.000000000 +0200
+++ new/Changelog.md 2018-08-04 21:47:51.000000000 +0200
@@ -1,5 +1,15 @@
-### 3.8 Development
-[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.7.0...master)
+### 3.8.0 / 2018-08-04
+[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.7.0...v3.8.0)
+
+Bug Fixes:
+
+* Issue error when encountering invalid "counted" negative message
expectations.
+ (Sergiy Yarinovskiy, #1212)
+* Ensure `allow_any_instance_of` and `expect_any_instance_of` can be
temporarily
+ supressed. (Jon Rowe, #1228)
+* Ensure `expect_any_instance_of(double).to_not have_received(:some_method)`
+ fails gracefully (as its not supported) rather than issuing a
`NoMethodError`.
+ (Maxim Krizhanovsky, #1231)
### 3.7.0 / 2017-10-17
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.6.0...v3.7.0)
@@ -896,7 +906,8 @@
* Fix `should_receive` so that when it is called on an `as_null_object`
double with no implementation, and there is a previous explicit stub
for the same method, the explicit stub remains (rather than being
- overriden with the null object implementation--`return self`). (Myron
Marston)
+ overridden with the null object implementation--`return self`). (Myron
+ Marston)
### 2.11.0 / 2012-07-07
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.10.1...v2.11.0)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2017-10-17 17:13:59.000000000 +0200
+++ new/README.md 2018-08-04 21:47:51.000000000 +0200
@@ -13,7 +13,7 @@
```ruby
%w[rspec-core rspec-expectations rspec-mocks rspec-support].each do |lib|
- gem lib, :git => "git://github.com/rspec/#{lib}.git", :branch => 'master'
+ gem lib, :git => "https://github.com/rspec/#{lib}.git", :branch => 'master'
end
```
## Contributing
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/any_instance/recorder.rb
new/lib/rspec/mocks/any_instance/recorder.rb
--- old/lib/rspec/mocks/any_instance/recorder.rb 2017-10-17
17:13:59.000000000 +0200
+++ new/lib/rspec/mocks/any_instance/recorder.rb 2018-08-04
21:47:51.000000000 +0200
@@ -242,7 +242,7 @@
def observe!(method_name)
allow_no_prepended_module_definition_of(method_name)
- if RSpec::Mocks.configuration.verify_partial_doubles?
+ if RSpec::Mocks.configuration.verify_partial_doubles? &&
!Mocks.configuration.temporarily_suppress_partial_double_verification
unless public_protected_or_private_method_defined?(method_name)
AnyInstance.error_generator.raise_does_not_implement_error(@klass, method_name)
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rspec/mocks/any_instance/stub_chain.rb
new/lib/rspec/mocks/any_instance/stub_chain.rb
--- old/lib/rspec/mocks/any_instance/stub_chain.rb 2017-10-17
17:13:59.000000000 +0200
+++ new/lib/rspec/mocks/any_instance/stub_chain.rb 2018-08-04
21:47:51.000000000 +0200
@@ -25,7 +25,7 @@
stub
end
- InovcationOrder =
+ InvocationOrder =
{
:and_return => [:with, nil],
:and_raise => [:with, nil],
@@ -38,7 +38,7 @@
EmptyInvocationOrder = {}.freeze
def invocation_order
- InovcationOrder
+ InvocationOrder
end
def verify_invocation_order(rspec_method_name, *_args, &_block)
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 2017-10-17 17:13:59.000000000
+0200
+++ new/lib/rspec/mocks/error_generator.rb 2018-08-04 21:47:51.000000000
+0200
@@ -72,7 +72,7 @@
"#{intro} received #{expectation.message.inspect}
#{unexpected_arguments_message(expected_args, actual_args)}".dup
end
- # rubocop:disable Style/ParameterLists
+ # rubocop:disable Metrics/ParameterLists
# @private
def raise_expectation_error(message, expected_received_count,
argument_list_matcher,
actual_received_count,
expectation_count_type, args,
@@ -81,7 +81,7 @@
received_part =
received_part_of_expectation_error(actual_received_count, args)
__raise "(#{intro(:unwrapped)}).#{message}#{format_args(args)}\n
#{expected_part}\n #{received_part}", backtrace_line, source_id
end
- # rubocop:enable Style/ParameterLists
+ # rubocop:enable Metrics/ParameterLists
# @private
def raise_unimplemented_error(doubled_module, method_name, object)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rspec/mocks/matchers/have_received.rb
new/lib/rspec/mocks/matchers/have_received.rb
--- old/lib/rspec/mocks/matchers/have_received.rb 2017-10-17
17:13:59.000000000 +0200
+++ new/lib/rspec/mocks/matchers/have_received.rb 2018-08-04
21:47:51.000000000 +0200
@@ -76,6 +76,10 @@
disallow("expect_any_instance_of")
end
+ def setup_any_instance_negative_expectation(_subject, &_block)
+ disallow("expect_any_instance_of")
+ end
+
private
def disallow(type, reason="")
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 2017-10-17 17:13:59.000000000
+0200
+++ new/lib/rspec/mocks/message_expectation.rb 2018-08-04 21:47:51.000000000
+0200
@@ -367,7 +367,7 @@
# @private
attr_reader :type
- # rubocop:disable Style/ParameterLists
+ # rubocop:disable Metrics/ParameterLists
def initialize(error_generator, expectation_ordering, expected_from,
method_double,
type=:expectation, opts={}, &implementation_block)
@type = type
@@ -395,7 +395,7 @@
@implementation = Implementation.new
self.inner_implementation_action = implementation_block
end
- # rubocop:enable Style/ParameterLists
+ # rubocop:enable Metrics/ParameterLists
def expected_args
@argument_list_matcher.expected_args
@@ -581,6 +581,7 @@
end
def set_expected_received_count(relativity, n)
+ raise "`count` is not supported with negative message expectations"
if negative?
@at_least = (relativity == :at_least)
@at_most = (relativity == :at_most)
@exactly = (relativity == :exactly)
@@ -650,7 +651,7 @@
@error_generator.raise_wrong_arity_error(args, block_signature)
end
- value = @eval_context ? @eval_context.instance_exec(*args, &block) :
block.call(*args)
+ value = @eval_context ? @eval_context.instance_exec(*args, &block) :
yield(*args)
end
value
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 2017-10-17 17:13:59.000000000
+0200
+++ new/lib/rspec/mocks/method_reference.rb 2018-08-04 21:47:51.000000000
+0200
@@ -64,14 +64,6 @@
:public
end
- private
-
- def original_method
- @object_reference.when_loaded do |m|
- self.defined? && find_method(m)
- end
- end
-
def self.instance_method_visibility_for(klass, method_name)
if klass.public_method_defined?(method_name)
:public
@@ -107,6 +99,14 @@
return :public if visible
end
+
+ private
+
+ def original_method
+ @object_reference.when_loaded do |m|
+ self.defined? && find_method(m)
+ end
+ end
end
# @private
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 2017-10-17 17:13:59.000000000 +0200
+++ new/lib/rspec/mocks/proxy.rb 2018-08-04 21:47:51.000000000 +0200
@@ -2,6 +2,7 @@
module Mocks
# @private
class Proxy
+ # @private
SpecificMessage = Struct.new(:object, :message, :args) do
def ==(expectation)
expectation.orig_object == object && expectation.matches?(message,
*args)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rspec/mocks/test_double.rb
new/lib/rspec/mocks/test_double.rb
--- old/lib/rspec/mocks/test_double.rb 2017-10-17 17:13:59.000000000 +0200
+++ new/lib/rspec/mocks/test_double.rb 2018-08-04 21:47:51.000000000 +0200
@@ -44,7 +44,7 @@
# @private
def to_s
- inspect.gsub('<', '[').gsub('>', ']')
+ inspect.tr('<', '[').tr('>', ']')
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 2017-10-17 17:13:59.000000000 +0200
+++ new/lib/rspec/mocks/version.rb 2018-08-04 21:47:51.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.7.0'
+ STRING = '3.8.0'
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2017-10-17 17:13:59.000000000 +0200
+++ new/metadata 2018-08-04 21:47:50.000000000 +0200
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: rspec-mocks
version: !ruby/object:Gem::Version
- version: 3.7.0
+ version: 3.8.0
platform: ruby
authors:
- Steven Baker
@@ -45,7 +45,7 @@
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
F3MdtaDehhjC
-----END CERTIFICATE-----
-date: 2017-10-17 00:00:00.000000000 Z
+date: 2018-08-04 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rspec-support
@@ -53,14 +53,14 @@
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: 3.7.0
+ version: 3.8.0
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: 3.7.0
+ version: 3.8.0
- !ruby/object:Gem::Dependency
name: diff-lcs
requirement: !ruby/object:Gem::Requirement
@@ -210,9 +210,8 @@
version: '0'
requirements: []
rubyforge_project:
-rubygems_version: 2.6.14
+rubygems_version: 2.6.13
signing_key:
specification_version: 4
-summary: rspec-mocks-3.7.0
+summary: rspec-mocks-3.8.0
test_files: []
-has_rdoc:
Binary files old/metadata.gz.sig and new/metadata.gz.sig differ