rspec-mocks 3.13.4 → 3.13.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70aeeb12e29656230a9a1eb6a7d5021d7dce9d6bbb548436eddfb13743ac27cd
4
- data.tar.gz: e902f36538ed12570a3b2f023f06b29731aa24c1304b3b3b1dc20467f36f9a86
3
+ metadata.gz: 3d6465ea6862f4d0ef55110b6f3c3c9496c2b6bd19c348e4dac7506abe92f588
4
+ data.tar.gz: eaf4c6a82408c91d3d379dcb388354d1484ceb2847256caf11c8016144766305
5
5
  SHA512:
6
- metadata.gz: 5273cf8c51575510fb8481c2179b7681bb70bae00f9a014339fe96316ba19c91a39531adef23b066d06d461e25c4749d13813197cabece3130f26c22ce36a1e2
7
- data.tar.gz: 69a316cce8b839cedd41441b18546a752b435c05930d197c3433be5506cdf42748a524031f7fc701610e4dfc21be1dc9ab9cb4a669df7d3032038281a24921e8
6
+ metadata.gz: 32441ae9709dfd5ce5bc535d1bb1b5daabe13de1b179ae8a9d6fe5a9d4ce13f75ef34d7d6a824bd4bbb01d3814604ce400527bf4118ddfc7ebb6a6debf9d46ec
7
+ data.tar.gz: 352b3c15cb7bc14b58e50da95edeb068c08bb6b8c2a36c131ae90a19c750d20d20ad3b1fc0a36c379a88fd5503cfbe7b68be22157a192021e51749a197d80d19
checksums.yaml.gz.sig CHANGED
Binary file
data/Changelog.md CHANGED
@@ -1,8 +1,24 @@
1
1
  ### Development
2
- [Full Changelog](https://github.com/rspec/rspec/compare/rspec-mocks-v3.13.4...3-13-maintenance)
2
+ [Full Changelog](https://github.com/rspec/rspec/compare/rspec-mocks-v3.13.6...3-13-maintenance)
3
+
4
+ ### 3.13.6 / 2025-10-14
5
+ [Full Changelog](https://github.com/rspec/rspec/compare/rspec-mocks-v3.13.5...rspec-mocks-v3.13.6)
6
+
7
+ Bug Fixes:
8
+
9
+ * Work around possible infinite loop when stubbing `is_a?`. (Erin Paget, rspec/rspec#265)
10
+
11
+ ### 3.13.5 / 2025-05-27
12
+ [Full Changelog](https://github.com/rspec/rspec/compare/rspec-mocks-v3.13.4...rspec-mocks-v3.13.5)
13
+
14
+ Bug Fixes:
15
+
16
+ * Fix regression where a previous fix (rspec/rspec#214) would leave behind thread data
17
+ between tests. (Jon Rowe, rspec/rspec#219)
18
+ * Fix links in gemspec to point to monorepo / homepage. (Jon Rowe)
3
19
 
4
20
  ### 3.13.4 / 2025-05-05
5
- [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.13.3...v3.13.4)
21
+ [Full Changelog](https://github.com/rspec/rspec/compare/rspec-mocks-v3.13.3...rspec-mocks-v3.13.4)
6
22
 
7
23
  Bug Fixes:
8
24
 
@@ -12,7 +28,7 @@ Bug Fixes:
12
28
  method calls. (Jon Rowe, rspec/rspec#214)
13
29
 
14
30
  ### 3.13.3 / 2025-05-01
15
- [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.13.2...v3.13.3)
31
+ [Full Changelog](https://github.com/rspec/rspec/compare/rspec-mocks-v3.13.2...rspec-mocks-v3.13.3)
16
32
 
17
33
  Bug Fixes:
18
34
 
@@ -370,7 +370,7 @@ module RSpec
370
370
  end
371
371
 
372
372
  def times(count)
373
- "#{count} time#{count == 1 ? '' : 's'}"
373
+ "#{count} time#{'s' unless count == 1}"
374
374
  end
375
375
 
376
376
  def grouped_args(args)
@@ -620,7 +620,14 @@ module RSpec
620
620
  end
621
621
 
622
622
  def invoking_internals=(value)
623
- RSpec::Support.thread_local_data[:"__rspec_#{object_id}_invoking_internals"] = value
623
+ # We clear the key for this rather than setting to false because otherwise the amount of
624
+ # thread local data will keep growing over the lifetime of the thread (which is a long
625
+ # time on a single threaded spec run e.g standard MRI)
626
+ if value
627
+ RSpec::Support.thread_local_data[:"__rspec_#{object_id}_invoking_internals"] = true
628
+ else
629
+ RSpec::Support.thread_local_data.delete(:"__rspec_#{object_id}_invoking_internals")
630
+ end
624
631
  end
625
632
 
626
633
  def invoke_incrementing_actual_calls_by(increment, allowed_to_fail, parent_stub, *args, &block)
@@ -32,7 +32,7 @@ module RSpec
32
32
 
33
33
  # @private
34
34
  def ensure_can_be_proxied!(object)
35
- return unless object.is_a?(Symbol)
35
+ return unless Symbol === object
36
36
 
37
37
  msg = "Cannot proxy frozen objects. Symbols such as #{object} cannot be mocked or stubbed."
38
38
  raise ArgumentError, msg
@@ -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.13.4'
6
+ STRING = '3.13.6'
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.13.4
4
+ version: 3.13.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Baker
@@ -43,7 +43,7 @@ cert_chain:
43
43
  AwP+qZPPf97FXXZGEGIYhhHpnj+Ltx9nCetRPiZ4rvYBcXgCWVQSg6eiEofrMwn/
44
44
  AKMCABhZ1Y2eATsfMgdkmIZk7JIPZiSi6eUxPiCMP9M/pw==
45
45
  -----END CERTIFICATE-----
46
- date: 2025-05-05 00:00:00.000000000 Z
46
+ date: 1980-01-02 00:00:00.000000000 Z
47
47
  dependencies:
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rspec-support
@@ -131,16 +131,16 @@ files:
131
131
  - lib/rspec/mocks/verifying_message_expectation.rb
132
132
  - lib/rspec/mocks/verifying_proxy.rb
133
133
  - lib/rspec/mocks/version.rb
134
- homepage: https://github.com/rspec/rspec-mocks
134
+ homepage: https://rspec.info
135
135
  licenses:
136
136
  - MIT
137
137
  metadata:
138
138
  bug_tracker_uri: https://github.com/rspec/rspec/issues
139
- changelog_uri: https://github.com/rspec/rspec/blob/rspec-mocks-v3.13.4/rspec-mocks/Changelog.md
139
+ changelog_uri: https://github.com/rspec/rspec/blob/rspec-mocks-v3.13.6/rspec-mocks/Changelog.md
140
140
  documentation_uri: https://rspec.info/documentation/
141
141
  mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
142
142
  rubygems_mfa_required: 'true'
143
- source_code_uri: https://github.com/rspec/rspec/blob/rspec-mocks-v3.13.4/rspec-mocks
143
+ source_code_uri: https://github.com/rspec/rspec/blob/rspec-mocks-v3.13.6/rspec-mocks
144
144
  rdoc_options:
145
145
  - "--charset=UTF-8"
146
146
  require_paths:
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  - !ruby/object:Gem::Version
157
157
  version: '0'
158
158
  requirements: []
159
- rubygems_version: 3.6.2
159
+ rubygems_version: 3.6.7
160
160
  specification_version: 4
161
- summary: rspec-mocks-3.13.4
161
+ summary: rspec-mocks-3.13.6
162
162
  test_files: []
metadata.gz.sig CHANGED
Binary file