rspec-mocks 3.13.1 → 3.13.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/Changelog.md +8 -1
- data/lib/rspec/mocks/message_expectation.rb +3 -2
- data/lib/rspec/mocks/syntax.rb +1 -1
- data/lib/rspec/mocks/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +5 -8
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 560dd3294f2da199bebf87e99715e41d9a5859b2a47408121fe449b8614008e1
|
4
|
+
data.tar.gz: 0baffd51e9e653573998948c8057918b0e133caa13435026ad30a30848e15094
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ec16d16de43a63521e1e89111df5b26b009e1dfa6738e802fb79c485a3894a4bdf60b63f08a5420c7a37934f367c93250f112d630f727a552c9ac86ece41b7a
|
7
|
+
data.tar.gz: 7a8e8e5b56dd7e362b7109bce4137c4f77a95eb50d1904fef38c2ff5cb28d605398b653ba9801ca8eab28b6c894d8f787275132d34193f031d7d10c305791e95
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
### Development
|
2
|
-
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.13.
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.13.2...3-13-maintennace)
|
3
|
+
|
4
|
+
### 3.13.2 / 2024-10-02
|
5
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.13.1...v3.13.2)
|
6
|
+
|
7
|
+
Bug Fixes:
|
8
|
+
|
9
|
+
* Support keyword arguments in callables passed to `and_invoke`. (Jon Rowe, #1595)
|
3
10
|
|
4
11
|
### 3.13.1 / 2024-05-08
|
5
12
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.13.0...v3.13.1)
|
@@ -68,7 +68,7 @@ module RSpec
|
|
68
68
|
# counter.count # => 3
|
69
69
|
# counter.count # => 3
|
70
70
|
# # etc
|
71
|
-
def and_return(first_value, *values)
|
71
|
+
def and_return(first_value, *values, &_block)
|
72
72
|
raise_already_invoked_error_if_necessary(__method__)
|
73
73
|
if negative?
|
74
74
|
raise "`and_return` is not supported with negative message expectations"
|
@@ -106,7 +106,7 @@ module RSpec
|
|
106
106
|
# api.get_foo # => :a_foo
|
107
107
|
# api.get_foo # => :a_foo
|
108
108
|
# # etc
|
109
|
-
def and_invoke(first_proc, *procs)
|
109
|
+
def and_invoke(first_proc, *procs, &_block)
|
110
110
|
raise_already_invoked_error_if_necessary(__method__)
|
111
111
|
if negative?
|
112
112
|
raise "`and_invoke` is not supported with negative message expectations"
|
@@ -748,6 +748,7 @@ module RSpec
|
|
748
748
|
|
749
749
|
proc.call(*args, &block)
|
750
750
|
end
|
751
|
+
ruby2_keywords(:call) if respond_to?(:ruby2_keywords, true)
|
751
752
|
end
|
752
753
|
|
753
754
|
# Represents a configured implementation. Takes into account
|
data/lib/rspec/mocks/syntax.rb
CHANGED
@@ -115,7 +115,7 @@ module RSpec
|
|
115
115
|
Matchers::Receive.new(method_name, block)
|
116
116
|
end
|
117
117
|
|
118
|
-
def receive_messages(message_return_value_hash)
|
118
|
+
def receive_messages(message_return_value_hash, &_block)
|
119
119
|
matcher = Matchers::ReceiveMessages.new(message_return_value_hash)
|
120
120
|
matcher.warn_about_block if block_given?
|
121
121
|
matcher
|
data/lib/rspec/mocks/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-mocks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.13.
|
4
|
+
version: 3.13.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Baker
|
8
8
|
- David Chelimsky
|
9
9
|
- Myron Marston
|
10
|
-
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain:
|
13
12
|
- |
|
@@ -45,7 +44,7 @@ cert_chain:
|
|
45
44
|
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
|
46
45
|
F3MdtaDehhjC
|
47
46
|
-----END CERTIFICATE-----
|
48
|
-
date: 2024-
|
47
|
+
date: 2024-10-02 00:00:00.000000000 Z
|
49
48
|
dependencies:
|
50
49
|
- !ruby/object:Gem::Dependency
|
51
50
|
name: rspec-support
|
@@ -200,11 +199,10 @@ licenses:
|
|
200
199
|
- MIT
|
201
200
|
metadata:
|
202
201
|
bug_tracker_uri: https://github.com/rspec/rspec-mocks/issues
|
203
|
-
changelog_uri: https://github.com/rspec/rspec-mocks/blob/v3.13.
|
202
|
+
changelog_uri: https://github.com/rspec/rspec-mocks/blob/v3.13.2/Changelog.md
|
204
203
|
documentation_uri: https://rspec.info/documentation/
|
205
204
|
mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
|
206
205
|
source_code_uri: https://github.com/rspec/rspec-mocks
|
207
|
-
post_install_message:
|
208
206
|
rdoc_options:
|
209
207
|
- "--charset=UTF-8"
|
210
208
|
require_paths:
|
@@ -220,8 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
218
|
- !ruby/object:Gem::Version
|
221
219
|
version: '0'
|
222
220
|
requirements: []
|
223
|
-
rubygems_version: 3.
|
224
|
-
signing_key:
|
221
|
+
rubygems_version: 3.6.0.dev
|
225
222
|
specification_version: 4
|
226
|
-
summary: rspec-mocks-3.13.
|
223
|
+
summary: rspec-mocks-3.13.2
|
227
224
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|