rspec-mocks 3.12.4 → 3.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/Changelog.md +10 -2
- data/lib/rspec/mocks/any_instance/proxy.rb +11 -2
- data/lib/rspec/mocks/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +4 -4
- 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: 9ac306bd185750c3017ee678b47a8049e734c0442b6cef60e8e7a04aa13c29c4
|
|
4
|
+
data.tar.gz: bde012659ef5fb279c0dee84a6788ba3a58156bfca1d3bdf934c99e6b96c26dc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ccde683caf2726c2f7e9f27d982550a779fdaead2c595495107dab5cdab04609568aedb882fcf47456528a4630dd55ed8c4097fc169ff71e34cc28e724306879
|
|
7
|
+
data.tar.gz: dec3ab40874ab16f87a20f0332f15afe7a487dd024bcd111843e1edcbfff91366954012d56e2c90e8b7b0518f721cc4f1e9771afad0e0a265034d63c3c6d9b24
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/Changelog.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
### Development
|
|
2
|
-
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.
|
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.5...3-12-maintenance)
|
|
3
3
|
|
|
4
|
-
### 3.12.
|
|
4
|
+
### 3.12.5 / 2023-03-30
|
|
5
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.4...v3.12.5)
|
|
6
|
+
|
|
7
|
+
Bug Fixes:
|
|
8
|
+
|
|
9
|
+
* Fix compatibility issue with Rails where active_support monkey patches `with`
|
|
10
|
+
when using any instance. (Lachlan Sylvester, #1540)
|
|
11
|
+
|
|
12
|
+
### 3.12.4 / 2023-03-12
|
|
5
13
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.3...v3.12.4)
|
|
6
14
|
|
|
7
15
|
Bug Fixes:
|
|
@@ -83,6 +83,15 @@ module RSpec
|
|
|
83
83
|
end
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
+
unless defined?(BasicObject)
|
|
87
|
+
class BasicObject
|
|
88
|
+
# Remove all methods except those expected to be defined on BasicObject
|
|
89
|
+
(instance_methods.map(&:to_sym) - [:__send__, :"!", :instance_eval, :==, :instance_exec, :"!=", :equal?, :__id__, :__binding__, :object_id]).each do |method|
|
|
90
|
+
undef_method method
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
86
95
|
# @private
|
|
87
96
|
# Delegates messages to each of the given targets in order to
|
|
88
97
|
# provide the fluent interface that is available off of message
|
|
@@ -91,12 +100,12 @@ module RSpec
|
|
|
91
100
|
# `targets` will typically contain 1 of the `AnyInstance::Recorder`
|
|
92
101
|
# return values and N `MessageExpectation` instances (one per instance
|
|
93
102
|
# of the `any_instance` klass).
|
|
94
|
-
class FluentInterfaceProxy
|
|
103
|
+
class FluentInterfaceProxy < BasicObject
|
|
95
104
|
def initialize(targets)
|
|
96
105
|
@targets = targets
|
|
97
106
|
end
|
|
98
107
|
|
|
99
|
-
if RUBY_VERSION.to_f > 1.8
|
|
108
|
+
if ::RUBY_VERSION.to_f > 1.8
|
|
100
109
|
def respond_to_missing?(method_name, include_private=false)
|
|
101
110
|
super || @targets.first.respond_to?(method_name, include_private)
|
|
102
111
|
end
|
data/lib/rspec/mocks/version.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-mocks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.12.
|
|
4
|
+
version: 3.12.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steven Baker
|
|
@@ -45,7 +45,7 @@ cert_chain:
|
|
|
45
45
|
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
|
|
46
46
|
F3MdtaDehhjC
|
|
47
47
|
-----END CERTIFICATE-----
|
|
48
|
-
date: 2023-03-
|
|
48
|
+
date: 2023-03-30 00:00:00.000000000 Z
|
|
49
49
|
dependencies:
|
|
50
50
|
- !ruby/object:Gem::Dependency
|
|
51
51
|
name: rspec-support
|
|
@@ -194,7 +194,7 @@ licenses:
|
|
|
194
194
|
- MIT
|
|
195
195
|
metadata:
|
|
196
196
|
bug_tracker_uri: https://github.com/rspec/rspec-mocks/issues
|
|
197
|
-
changelog_uri: https://github.com/rspec/rspec-mocks/blob/v3.12.
|
|
197
|
+
changelog_uri: https://github.com/rspec/rspec-mocks/blob/v3.12.5/Changelog.md
|
|
198
198
|
documentation_uri: https://rspec.info/documentation/
|
|
199
199
|
mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
|
|
200
200
|
source_code_uri: https://github.com/rspec/rspec-mocks
|
|
@@ -217,5 +217,5 @@ requirements: []
|
|
|
217
217
|
rubygems_version: 3.4.1
|
|
218
218
|
signing_key:
|
|
219
219
|
specification_version: 4
|
|
220
|
-
summary: rspec-mocks-3.12.
|
|
220
|
+
summary: rspec-mocks-3.12.5
|
|
221
221
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|