rspec-mocks 3.12.2 → 3.12.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b87ed98b8274a1dffb52bebf68a399548e97474d11f3416d0d931e2c9266aae
4
- data.tar.gz: c807a54e37b46700d810b2a93bfac5e4d64411e05785c0fbf7405792ce3541a8
3
+ metadata.gz: efbe21159038369570929be696cd7f44b23c367f6e96d3c037aa791454a1c739
4
+ data.tar.gz: 7a5d840187a13422c78b8ac6fffc205bd6b4841b8ba2c150be8026a5e650d381
5
5
  SHA512:
6
- metadata.gz: bc2aa6ade579ce757b1ccf004aca65e0f28109cc72664ce1c6dedf67946981f6c05a7b3ad04b2418f018a2057a6c393c698fed99e67fd350744a82cee6bb7047
7
- data.tar.gz: cecbb9425505d14aa7eb8abf591eb91efe50b99c9ca7773be8fb56fe0005d7f5e447a4a0b8f1c9b0f0a7f6401b3929435fdd7deef6b91916550ca337c8b91dab
6
+ metadata.gz: 325a0c1eee0cd639bb0645f927bae2a41793eaaaadc9871046906f1101d515585dbea17320d56840ff9741d19a61c9203c2fa9073297a10f9ba90fb21b068c5a
7
+ data.tar.gz: 3334fed9cb0f29768ed9faa0d335572a42484f4930f7bc2f837045a6d7f250d9357059468fed3eb67aa67464cddb4a728e95beb21e0c8c282a75f731167c4fcb
checksums.yaml.gz.sig CHANGED
Binary file
data/Changelog.md CHANGED
@@ -1,5 +1,22 @@
1
1
  ### Development
2
- [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.1...3-12-maintenance)
2
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.4...3-12-maintenance)
3
+
4
+ ### 3.12.4 / 2023-01-17
5
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.3...v3.12.4)
6
+
7
+ Bug Fixes:
8
+
9
+ * Fix an issue with asserting that Array#reverse is never called. (Brad Trick, #1533)
10
+ * Fix compatibility issue with Rails where active_support monkey patches `with`.
11
+ (Jean Boussier, #1531, #1534)
12
+
13
+ ### 3.12.3 / 2023-01-17
14
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.2...v3.12.3)
15
+
16
+ Bug Fixes:
17
+
18
+ * Fix keyword delegation in `send` for verifying doubles on Ruby 3.
19
+ (Charlie Honig, #1485)
3
20
 
4
21
  ### 3.12.2 / 2023-01-07
5
22
  [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.1...v3.12.2)
@@ -55,8 +55,9 @@ module RSpec
55
55
  setup_any_instance_method_substitute(subject, :stub, block)
56
56
  end
57
57
 
58
+ own_methods = (instance_methods - superclass.instance_methods)
58
59
  MessageExpectation.public_instance_methods(false).each do |method|
59
- next if method_defined?(method)
60
+ next if own_methods.include?(method)
60
61
 
61
62
  define_method(method) do |*args, &block|
62
63
  @recorded_customizations << ExpectationCustomization.new(method, args, block)
@@ -77,9 +77,9 @@ module RSpec
77
77
 
78
78
  def reset_all
79
79
  proxies.each_value { |proxy| proxy.reset }
80
- @constant_mutators.reverse.each { |mut| mut.idempotently_reset }
81
80
  any_instance_recorders.each_value { |recorder| recorder.stop_all_observation! }
82
81
  any_instance_recorders.clear
82
+ @constant_mutators.reverse.each { |mut| mut.idempotently_reset }
83
83
  end
84
84
 
85
85
  def register_constant_mutator(mutator)
@@ -42,11 +42,13 @@ module RSpec
42
42
  ensure
43
43
  @__sending_message = nil
44
44
  end
45
+ ruby2_keywords :__send__ if respond_to?(:ruby2_keywords, true)
45
46
  $VERBOSE = old
46
47
 
47
48
  def send(name, *args, &block)
48
49
  __send__(name, *args, &block)
49
50
  end
51
+ ruby2_keywords :send if respond_to?(:ruby2_keywords, true)
50
52
 
51
53
  def initialize(doubled_module, *args)
52
54
  @doubled_module = doubled_module
@@ -3,7 +3,7 @@ module RSpec
3
3
  # Version information for RSpec mocks.
4
4
  module Version
5
5
  # Version of RSpec mocks currently in use in SemVer format.
6
- STRING = '3.12.2'
6
+ STRING = '3.12.4'
7
7
  end
8
8
  end
9
9
  end
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.2
4
+ version: 3.12.4
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-01-07 00:00:00.000000000 Z
48
+ date: 2023-03-12 00:00:00.000000000 Z
49
49
  dependencies:
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: rspec-support
@@ -115,14 +115,14 @@ dependencies:
115
115
  requirements:
116
116
  - - "~>"
117
117
  - !ruby/object:Gem::Version
118
- version: 0.14.10
118
+ version: '1.1'
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - "~>"
124
124
  - !ruby/object:Gem::Version
125
- version: 0.14.10
125
+ version: '1.1'
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: minitest
128
128
  requirement: !ruby/object:Gem::Requirement
@@ -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.2/Changelog.md
197
+ changelog_uri: https://github.com/rspec/rspec-mocks/blob/v3.12.4/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
@@ -214,8 +214,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  requirements: []
217
- rubygems_version: 3.3.26
217
+ rubygems_version: 3.4.1
218
218
  signing_key:
219
219
  specification_version: 4
220
- summary: rspec-mocks-3.12.2
220
+ summary: rspec-mocks-3.12.4
221
221
  test_files: []
metadata.gz.sig CHANGED
Binary file