rspec-support 3.13.1 → 3.13.7

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: 92bef00902f2274e73ead3711ea3c341a34b07eb11cdf647a8d737e1d0c11382
4
- data.tar.gz: 90317d4ebccad5e6da2abb4e2af56a1dbb217bd9961d3dc68ea80ff824f8117e
3
+ metadata.gz: ced51c215b6d9b3af8f27d1abe6033a633f3818312c1bd5850195a10e1ccb172
4
+ data.tar.gz: dd7afad96ac46be53ad3df4956098a7ec936828c67acb2446f9d5fa37d0bc940
5
5
  SHA512:
6
- metadata.gz: 025c00e2292a341c12cc2001f83a174749afa81802cc9df491563e9743ebcb3020c2d7c3743ddf5da43c127c7c5803e98d1640ebacd8ac6b5f4ccd51aa2b13e4
7
- data.tar.gz: '0209a2909369b4da3fa8164bf47249455f69607019a7813fb598be8987dec613c3f3707484f767222b91b5b586a0eb05f63c783287284a314531736fc293264f'
6
+ metadata.gz: '0996fd67d068112ba314ac10665a6bbc8b0c2a9c56e2147008bcf38d589de944023a27776b88f496388fb862e8f6dfa8efae4e45066f03f3672060ebfd58deb8'
7
+ data.tar.gz: 052d7bf8afb92561f555026534c8380f276aabdc0abab2572beb31788b4505e72080a8cb1179ad8c828fb4ed9fe65b5c9ccb8566d13d519c6aae4996b124caa4
checksums.yaml.gz.sig CHANGED
Binary file
data/Changelog.md CHANGED
@@ -1,5 +1,49 @@
1
1
  ### Development
2
- [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.13.1...main)
2
+ [Full Changelog](https://github.com/rspec/rspec/compare/rspec-support-v3.13.6...3-13-maintenance)
3
+
4
+ ### 3.13.7 / 2026-01-28
5
+ [Full Changelog](http://github.com/rspec/rspec/compare/rspec-support-v3.13.6...rspec-support-v3.13.7)
6
+
7
+ Bug Fixes:
8
+
9
+ * Stop fuzzy matching causing false positives from Range objects. (Eric Mueller, rspec/rspec#298)
10
+
11
+ ### 3.13.6 / 2025-08-18
12
+ [Full Changelog](http://github.com/rspec/rspec/compare/rspec-support-v3.13.5...rspec-support-v3.13.6)
13
+
14
+ Bug Fixes:
15
+
16
+ * Change `RSpec::Support::HunkGenerator` to autoload rather than manual require, avoids
17
+ a load order issue. (Jon Rowe, rspec/rspec#249)
18
+
19
+ ### 3.13.5 / 2025-05-27
20
+ [Full Changelog](http://github.com/rspec/rspec/compare/rspec-support-v3.13.4...rspec-support-v3.13.5)
21
+
22
+ Bug Fixes:
23
+
24
+ * Fix regression in `RSpec::Support::MethodSignature` where positional argument arity confused
25
+ a check for keyword arguments, meaning a hash would be wrongly detected as keyword arguments
26
+ when it should have been a positional argument. (Malcolm O'Hare, rspec/rspec#121)
27
+
28
+ ### 3.13.4 / 2025-05-01
29
+ [Full Changelog](http://github.com/rspec/rspec/compare/rspec-support-v3.13.3...rspec-support-v3.13.4)
30
+
31
+ Bug Fixes:
32
+
33
+ * Fix homepage link in gemspec. (Jon Rowe)
34
+
35
+ ### 3.13.3 / 2025-04-30
36
+ [Full Changelog](http://github.com/rspec/rspec/compare/rspec-support-v3.13.2...rspec-support-v3.13.3)
37
+
38
+ Bug Fixes:
39
+
40
+ * Support for changes in diff-lcs and Ruby 3.4 in spec helpers. (Jon Rowe, #164 etc)
41
+
42
+ ### 3.13.2 / 2024-12-02
43
+ [Full Changelog](http://github.com/rspec/rspec/compare/rspec-support-v3.13.1...rspec-support-v3.13.2)
44
+
45
+ No changes. Released during the monorepo migration to test release processes, but accidentally
46
+ contained no changes.
3
47
 
4
48
  ### 3.13.1 / 2024-02-23
5
49
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.13.0...v3.13.1)
@@ -7,24 +51,27 @@
7
51
  Bug Fixes:
8
52
 
9
53
  * Exclude ruby internal require warnings from `RSpec::Support::CallerFilter#first_non_rspec_line`.
10
- (Jon Rowe, #593)
54
+ (Jon Rowe, rspec/rspec-support#593)
11
55
 
12
56
  ### 3.13.0 / 2024-02-04
13
57
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.12.2...v3.13.0)
14
58
 
15
59
  Enchancements
16
60
 
17
- * Add `RubyFeatures#supports_syntax_suggest?`. (Jon Rowe, #571)
61
+ * Add `RubyFeatures#supports_syntax_suggest?`. (Jon Rowe, rspec/rspec-support#571)
62
+
63
+ Bug Fixes:
64
+
65
+ * Allow string keys for keyword arguments during verification of method
66
+ signatures, (but only on Ruby 3+). (@malcolmohare, rspec/rspec-support#591)
18
67
 
19
68
  ### 3.12.2 / 2024-02-04
20
69
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.12.1...v3.12.2)
21
70
 
22
71
  Bug Fixes:
23
72
 
24
- * Properly surface errors from `in_sub_process`. (Jon Rowe, #575)
25
- * Add magic comment for freezing string literals. (Josh Nichols, #586)
26
- * Allow string keys for keyword arguments during verification of method
27
- signatures, (but only on Ruby 3+). (@malcolmohare, #591)
73
+ * Properly surface errors from `in_sub_process`. (Jon Rowe, rspec/rspec-support#575)
74
+ * Add magic comment for freezing string literals. (Josh Nichols, rspec/rspec-support#586)
28
75
 
29
76
  ### 3.12.1 / 2023-06-26
30
77
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.12.0...v3.12.1)
@@ -32,21 +79,21 @@ Bug Fixes:
32
79
  Bug Fixes:
33
80
 
34
81
  * Fix `RSpec::Support.thread_local_data` to be Thread local but not Fiber local.
35
- (Jon Rowe, #581)
82
+ (Jon Rowe, rspec/rspec-support#581)
36
83
 
37
84
  ### 3.12.0 / 2022-10-26
38
85
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.11.1...v3.12.0)
39
86
  Enhancements:
40
87
 
41
88
  * Add `RSpec::Support::RubyFeatures.distincts_kw_args_from_positional_hash?`
42
- (Jean byroot Boussier, #535)
89
+ (Jean byroot Boussier, rspec/rspec-support#535)
43
90
 
44
91
  ### 3.11.1 / 2022-09-12
45
92
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.11.0...v3.11.1)
46
93
 
47
94
  Bug Fixes:
48
95
 
49
- * Fix ripper detection on TruffleRuby. (Brandon Fish, #541)
96
+ * Fix ripper detection on TruffleRuby. (Brandon Fish, rspec/rspec-support#541)
50
97
 
51
98
  ### 3.11.0 / 2022-02-09
52
99
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.10.3...v3.11.0)
@@ -59,9 +106,9 @@ No changes. Released to support other RSpec releases.
59
106
  Bug Fixes:
60
107
 
61
108
  * Use `Mutex#owned?` to allow `RSpec::Support::ReentrantMutex` to work in
62
- nested Fibers on Ruby 3.0 and later. (Benoit Daloze, #503, #504)
109
+ nested Fibers on Ruby 3.0 and later. (Benoit Daloze, rspec/rspec-support#503, rspec/rspec-support#504)
63
110
  * Support `end`-less methods in `RSpec::Support::Source::Token`
64
- so that RSpec won't hang when an `end`-less method raises an error. (Yuji Nakayama, #505)
111
+ so that RSpec won't hang when an `end`-less method raises an error. (Yuji Nakayama, rspec/rspec-support#505)
65
112
 
66
113
  ### 3.10.2 / 2021-01-28
67
114
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.10.1...v3.10.2)
@@ -69,7 +116,7 @@ Bug Fixes:
69
116
  Bug Fixes:
70
117
 
71
118
  * Fix issue with `RSpec::Support.define_optimized_require_for_rspec` on JRuby
72
- 9.1.17.0 (Jon Rowe, #492)
119
+ 9.1.17.0 (Jon Rowe, rspec/rspec-support#492)
73
120
 
74
121
  ### 3.10.1 / 2020-12-27
75
122
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.10.0...v3.10.1)
@@ -77,7 +124,7 @@ Bug Fixes:
77
124
  Bug Fixes:
78
125
 
79
126
  * Fix deprecation expectations to fail correctly when
80
- asserting on messages. (Phil Pirozhkov, #453)
127
+ asserting on messages. (Phil Pirozhkov, rspec/rspec-support#453)
81
128
 
82
129
  ### 3.10.0 / 2020-10-30
83
130
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.4...v3.10.0)
@@ -89,26 +136,26 @@ No changes. Released to support other RSpec releases.
89
136
 
90
137
  Bug Fixes:
91
138
 
92
- * Flag ripper as supported on Truffle Ruby. (Brandon Fish, #427)
139
+ * Flag ripper as supported on Truffle Ruby. (Brandon Fish, rspec/rspec-support#427)
93
140
  * Prevent stubbing `File.read` from breaking source extraction.
94
- (Jon Rowe, #431)
141
+ (Jon Rowe, rspec/rspec-support#431)
95
142
 
96
143
  ### 3.9.3 / 2020-05-02
97
144
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.2...v3.9.3)
98
145
 
99
146
  Bug Fixes:
100
147
 
101
- * Mark ripper as unsupported on Truffle Ruby. (Brandon Fish, #395)
102
- * Mark ripper as unsupported on JRuby 9.2.0.0. (Brian Hawley, #400)
148
+ * Mark ripper as unsupported on Truffle Ruby. (Brandon Fish, rspec/rspec-support#395)
149
+ * Mark ripper as unsupported on JRuby 9.2.0.0. (Brian Hawley, rspec/rspec-support#400)
103
150
  * Capture `Mutex.new` for our `RSpec::Support:Mutex` in order to
104
- allow stubbing `Mutex.new`. (Jon Rowe, #411)
151
+ allow stubbing `Mutex.new`. (Jon Rowe, rspec/rspec-support#411)
105
152
 
106
153
  ### 3.9.2 / 2019-12-30
107
154
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.1...v3.9.2)
108
155
 
109
156
  Bug Fixes:
110
157
 
111
- * Remove unneeded eval. (Matijs van Zuijlen, #394)
158
+ * Remove unneeded eval. (Matijs van Zuijlen, rspec/rspec-support#394)
112
159
 
113
160
  ### 3.9.1 / 2019-12-28
114
161
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.0...v3.9.1)
@@ -116,7 +163,7 @@ Bug Fixes:
116
163
  Bug Fixes:
117
164
 
118
165
  * Remove warning caused by keyword arguments on Ruby 2.7.0.
119
- (Jon Rowe, #392)
166
+ (Jon Rowe, rspec/rspec-support#392)
120
167
 
121
168
  ### 3.9.0 / 2019-10-07
122
169
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.3...v3.9.0)
@@ -131,9 +178,9 @@ Version 3.9.0 was released to allow other RSpec gems to release 3.9.0.
131
178
  Bug Fixes:
132
179
 
133
180
  * Escape \r when outputting strings inside arrays.
134
- (Tomita Masahiro, Jon Rowe, #378)
181
+ (Tomita Masahiro, Jon Rowe, rspec/rspec-support#378)
135
182
  * Ensure that optional hash arguments are recognised correctly vs keyword
136
- arguments. (Evgeni Dzhelyov, #366)
183
+ arguments. (Evgeni Dzhelyov, rspec/rspec-support#366)
137
184
 
138
185
  ### 3.8.2 / 2019-06-10
139
186
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.1...v3.8.2)
@@ -141,9 +188,9 @@ Bug Fixes:
141
188
  Bug Fixes:
142
189
 
143
190
  * Ensure that an empty hash is recognised as empty keyword arguments when
144
- applicable. (Thomas Walpole, #375)
191
+ applicable. (Thomas Walpole, rspec/rspec-support#375)
145
192
  * Ensure that diffing truthy values produce diffs consistently.
146
- (Lucas Nestor, #377)
193
+ (Lucas Nestor, rspec/rspec-support#377)
147
194
 
148
195
  ### 3.8.1 / 2019-03-03
149
196
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.0...v3.8.1)
@@ -151,7 +198,7 @@ Bug Fixes:
151
198
  Bug Fixes:
152
199
 
153
200
  * Ensure that inspecting a `SimpleDelegator` based object works regardless of
154
- visibility of the `__getobj__` method. (Jon Rowe, #369)
201
+ visibility of the `__getobj__` method. (Jon Rowe, rspec/rspec-support#369)
155
202
 
156
203
  ### 3.8.0 / 2018-08-04
157
204
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.7.1...v3.8.0)
@@ -159,7 +206,7 @@ Bug Fixes:
159
206
  Bug Fixes:
160
207
 
161
208
  * Order hash keys before diffing to improve diff accuracy when using mocked calls.
162
- (James Crisp, #334)
209
+ (James Crisp, rspec/rspec-support#334)
163
210
 
164
211
  ### 3.7.1 / 2018-01-29
165
212
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.7.0...v3.7.1)
@@ -167,7 +214,7 @@ Bug Fixes:
167
214
  Bug Fixes:
168
215
 
169
216
  * Fix source extraction logic so that it does not trigger a `SystemStackError`
170
- when processing deeply nested example groups. (Craig Bass, #343)
217
+ when processing deeply nested example groups. (Craig Bass, rspec/rspec-support#343)
171
218
 
172
219
  ### 3.7.0 / 2017-10-17
173
220
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.6.0...v3.7.0)
@@ -175,21 +222,21 @@ Bug Fixes:
175
222
  Enhancements:
176
223
 
177
224
  * Improve compatibility with `--enable-frozen-string-literal` option
178
- on Ruby 2.3+. (Pat Allan, #320)
225
+ on Ruby 2.3+. (Pat Allan, rspec/rspec-support#320)
179
226
  * Add `Support.class_of` for extracting class of any object.
180
- (Yuji Nakayama, #325)
227
+ (Yuji Nakayama, rspec/rspec-support#325)
181
228
 
182
229
  Bug Fixes:
183
230
 
184
231
  * Fix recursive const support to not blow up when given buggy classes
185
- that raise odd errors from `#to_str`. (Myron Marston, #317)
232
+ that raise odd errors from `#to_str`. (Myron Marston, rspec/rspec-support#317)
186
233
 
187
234
  ### 3.6.0 / 2017-05-04
188
235
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.6.0.beta2...3.6.0)
189
236
 
190
237
  Enhancements:
191
238
 
192
- * Import `Source` classes from rspec-core. (Yuji Nakayama, #315)
239
+ * Import `Source` classes from rspec-core. (Yuji Nakayama, rspec/rspec-support#315)
193
240
 
194
241
  ### 3.6.0.beta2 / 2016-12-12
195
242
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.6.0.beta1...v3.6.0.beta2)
@@ -201,7 +248,7 @@ No user-facing changes.
201
248
 
202
249
  Bug Fixes:
203
250
 
204
- * Prevent truncated formatted object output from mangling console codes. (#294, Anson Kelly)
251
+ * Prevent truncated formatted object output from mangling console codes. (rspec/rspec-support#294, Anson Kelly)
205
252
 
206
253
  ### 3.5.0 / 2016-07-01
207
254
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta4...v3.5.0)
@@ -212,7 +259,7 @@ Bug Fixes:
212
259
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta3...v3.5.0.beta4)
213
260
 
214
261
  Enhancements:
215
- * Improve `MethodSignature` to better support keyword arguments. (#250, Rob Smith).
262
+ * Improve `MethodSignature` to better support keyword arguments. (rspec/rspec-support#250, Rob Smith).
216
263
 
217
264
  ### 3.5.0.beta3 / 2016-04-02
218
265
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta2...v3.5.0.beta3)
@@ -220,12 +267,12 @@ Enhancements:
220
267
  Bug Fixes:
221
268
 
222
269
  * Fix `EncodedString` to properly handle the behavior of `String#split`
223
- on JRuby when the string contains invalid bytes. (Jon Rowe, #268)
270
+ on JRuby when the string contains invalid bytes. (Jon Rowe, rspec/rspec-support#268)
224
271
  * Fix `ObjectFormatter` so that formatting objects that don't respond to
225
272
  `#inspect` (such as `BasicObject`) does not cause `NoMethodError`.
226
- (Yuji Nakayama, #269)
273
+ (Yuji Nakayama, rspec/rspec-support#269)
227
274
  * Fix `ObjectFormatter` so that formatting recursive array or hash does not
228
- cause `SystemStackError`. (Yuji Nakayama, #270, #272)
275
+ cause `SystemStackError`. (Yuji Nakayama, rspec/rspec-support#270, rspec/rspec-support#272)
229
276
 
230
277
  ### 3.5.0.beta2 / 2016-03-10
231
278
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta1...v3.5.0.beta2)
@@ -238,7 +285,7 @@ No user-facing changes.
238
285
  Enhancements:
239
286
 
240
287
  * Improve formatting of objects by allowing truncation to a pre-configured length.
241
- (Liam M, #256)
288
+ (Liam M, rspec/rspec-support#256)
242
289
 
243
290
  ### 3.4.1 / 2015-11-20
244
291
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.4.0...v3.4.1)
@@ -248,11 +295,11 @@ Bug Fixes:
248
295
  * Fix `RSpec::Support::RubyFeature.ripper_supported?` so it returns
249
296
  `false` on Rubinius since the Rubinius team has no plans to support
250
297
  it. This prevents rspec-core from trying to load and use ripper to
251
- extract failure snippets. (Aaron Stone, #251)
298
+ extract failure snippets. (Aaron Stone, rspec/rspec-support#251)
252
299
 
253
300
  Changes:
254
301
 
255
- * Remove `VersionChecker` in favor of `ComparableVersion`. (Yuji Nakayama, #266)
302
+ * Remove `VersionChecker` in favor of `ComparableVersion`. (Yuji Nakayama, rspec/rspec-support#266)
256
303
 
257
304
  ### 3.4.0 / 2015-11-11
258
305
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.3.0...v3.4.0)
@@ -260,15 +307,15 @@ Changes:
260
307
  Enhancements:
261
308
 
262
309
  * Improve formatting of `Delegator` based objects (e.g. `SimpleDelegator`) in
263
- failure messages and diffs. (Andrew Horner, #215)
264
- * Add `ComparableVersion`. (Yuji Nakayama, #245)
265
- * Add `Ripper` support detection. (Yuji Nakayama, #245)
310
+ failure messages and diffs. (Andrew Horner, rspec/rspec-support#215)
311
+ * Add `ComparableVersion`. (Yuji Nakayama, rspec/rspec-support#245)
312
+ * Add `Ripper` support detection. (Yuji Nakayama, rspec/rspec-support#245)
266
313
 
267
314
  Bug Fixes:
268
315
 
269
316
  * Work around bug in JRuby that reports that `attr_writer` methods
270
317
  have no parameters, causing RSpec's verifying doubles to wrongly
271
- fail when mocking or stubbing a writer method on JRuby. (Myron Marston, #225)
318
+ fail when mocking or stubbing a writer method on JRuby. (Myron Marston, rspec/rspec-support#225)
272
319
 
273
320
  ### 3.3.0 / 2015-06-12
274
321
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.2.2...v3.3.0)
@@ -277,8 +324,8 @@ Enhancements:
277
324
 
278
325
  * Improve formatting of arrays and hashes in failure messages so they
279
326
  use our custom formatting of matchers, time objects, etc.
280
- (Myron Marston, Nicholas Chmielewski, #205)
281
- * Use improved formatting for diffs as well. (Nicholas Chmielewski, #205)
327
+ (Myron Marston, Nicholas Chmielewski, rspec/rspec-support#205)
328
+ * Use improved formatting for diffs as well. (Nicholas Chmielewski, rspec/rspec-support#205)
282
329
 
283
330
  Bug Fixes:
284
331
 
@@ -287,7 +334,7 @@ Bug Fixes:
287
334
  `actual` object's `==` is improperly implemented to assume that only
288
335
  objects of the same type will be given. This allows rspec-mocks'
289
336
  `anything` to match against objects with buggy `==` definitions.
290
- (Myron Marston, #193)
337
+ (Myron Marston, rspec/rspec-support#193)
291
338
 
292
339
  ### 3.2.2 / 2015-02-23
293
340
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.2.1...v3.2.2)
@@ -295,7 +342,7 @@ Bug Fixes:
295
342
  Bug Fixes:
296
343
 
297
344
  * Fix an encoding issue with `EncodedString#split` when encountering an
298
- invalid byte string. (Benjamin Fleischer, #1760)
345
+ invalid byte string. (Benjamin Fleischer, rspec/rspec-support#1760)
299
346
 
300
347
  ### 3.2.1 / 2015-02-04
301
348
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.2.0...v3.2.1)
@@ -303,20 +350,20 @@ Bug Fixes:
303
350
  Bug Fixes:
304
351
 
305
352
  * Fix `RSpec::CallerFilter` to work on Rubinius 2.2.
306
- (Myron Marston, #169)
353
+ (Myron Marston, rspec/rspec-support#169)
307
354
 
308
355
  ### 3.2.0 / 2015-02-03
309
356
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.1.2...v3.2.0)
310
357
 
311
358
  Enhancements:
312
359
 
313
- * Add extra Ruby type detection. (Jon Rowe, #133)
314
- * Make differ instance re-usable. (Alexey Fedorov, #160)
360
+ * Add extra Ruby type detection. (Jon Rowe, rspec/rspec-support#133)
361
+ * Make differ instance re-usable. (Alexey Fedorov, rspec/rspec-support#160)
315
362
 
316
363
  Bug Fixes:
317
364
 
318
365
  * Do not consider `[]` and `{}` to match when performing fuzzy matching.
319
- (Myron Marston, #157)
366
+ (Myron Marston, rspec/rspec-support#157)
320
367
 
321
368
  ### 3.1.2 / 2014-10-08
322
369
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.1.1...v3.1.2)
@@ -324,7 +371,7 @@ Bug Fixes:
324
371
  Bug Fixes:
325
372
 
326
373
  * Fix method signature to not blow up with a `NoMethodError` on 1.8.7 when
327
- verifying against an RSpec matcher. (Myron Marston, #116)
374
+ verifying against an RSpec matcher. (Myron Marston, rspec/rspec-support#116)
328
375
 
329
376
  ### 3.1.1 / 2014-09-26
330
377
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.1.0...v3.1.1)
@@ -333,7 +380,7 @@ Bug Fixes:
333
380
 
334
381
  * Fix `RSpec::Support::DirectoryMaker` (used by `rspec --init` and
335
382
  `rails generate rspec:install`) so that it detects absolute paths
336
- on Windows properly. (Scott Archer, #107, #108, #109) (Jon Rowe, #110)
383
+ on Windows properly. (Scott Archer, rspec/rspec-support#107, rspec/rspec-support#108, rspec/rspec-support#109) (Jon Rowe, rspec/rspec-support#110)
337
384
 
338
385
  ### 3.1.0 / 2014-09-04
339
386
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.4...v3.1.0)
@@ -341,9 +388,9 @@ Bug Fixes:
341
388
  Bug Fixes:
342
389
 
343
390
  * Fix `FuzzyMatcher` so that it does not wrongly match a struct against
344
- an array. (Myron Marston, #97)
391
+ an array. (Myron Marston, rspec/rspec-support#97)
345
392
  * Prevent infinitely recursing `#flatten` methods from causing the differ
346
- to hang. (Jon Rowe, #101)
393
+ to hang. (Jon Rowe, rspec/rspec-support#101)
347
394
 
348
395
  ### 3.0.4 / 2014-08-14
349
396
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.3...v3.0.4)
@@ -351,7 +398,7 @@ Bug Fixes:
351
398
  Bug Fixes:
352
399
 
353
400
  * Fix `FuzzyMatcher` so that it does not silence `ArgumentError` raised
354
- from broken implementations of `==`. (Myron Marston, #94)
401
+ from broken implementations of `==`. (Myron Marston, rspec/rspec-support#94)
355
402
 
356
403
  ### 3.0.3 / 2014-07-21
357
404
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.2...v3.0.3)
@@ -360,23 +407,23 @@ Bug Fixes:
360
407
 
361
408
  * Fix regression in `Support#method_handle_for` where proxy objects
362
409
  with method delegated would wrongly not return a method handle.
363
- (Jon Rowe, #90)
364
- * Properly detect Module#prepend support in Ruby 2.1+ (Ben Langfeld, #91)
410
+ (Jon Rowe, rspec/rspec-support#90)
411
+ * Properly detect Module#prepend support in Ruby 2.1+ (Ben Langfeld, rspec/rspec-support#91)
365
412
  * Fix `rspec/support/warnings.rb` so it can be loaded and used in
366
- isolation. (Myron Marston, #93)
413
+ isolation. (Myron Marston, rspec/rspec-support#93)
367
414
 
368
415
  ### 3.0.2 / 2014-06-20
369
416
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.1...v3.0.2)
370
417
 
371
418
  * Revert `BlockSignature` change from 3.0.1 because of a ruby bug that
372
419
  caused it to change the block's behavior (https://bugs.ruby-lang.org/issues/9967).
373
- (Myron Marston, rspec-mocks#721)
420
+ (Myron Marston, rspec-mocksrspec/rspec-support#721)
374
421
 
375
422
  ### 3.0.1 / 2014-06-19
376
423
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.0...v3.0.1)
377
424
 
378
425
  * Fix `BlockSignature` so that it correctly differentiates between
379
- required and optional block args. (Myron Marston, rspec-mocks#714)
426
+ required and optional block args. (Myron Marston, rspec-mocksrspec/rspec-support#714)
380
427
 
381
428
  ### 3.0.0 / 2014-06-01
382
429
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.0.rc1...v3.0.0)
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  RSpec::Support.require_rspec_support 'encoded_string'
4
- RSpec::Support.require_rspec_support 'hunk_generator'
5
4
  RSpec::Support.require_rspec_support "object_formatter"
6
5
 
7
6
  require 'pp'
@@ -10,6 +10,9 @@ module RSpec
10
10
  def self.values_match?(expected, actual)
11
11
  if Hash === actual
12
12
  return hashes_match?(expected, actual) if Hash === expected
13
+ elsif Range === expected
14
+ # Check that actual is an equivalent Range, rather than included/covered.
15
+ return expected == actual
13
16
  elsif Array === expected && Enumerable === actual && !(Struct === actual)
14
17
  return arrays_match?(expected, actual.to_a)
15
18
  end
@@ -79,12 +79,37 @@ module RSpec
79
79
  given_kw_args - @allowed_kw_args
80
80
  end
81
81
 
82
- # If the last argument is Hash, Ruby will treat only symbol keys as keyword arguments
83
- # the rest will be grouped in another Hash and passed as positional argument.
84
- def has_kw_args_in?(args)
85
- Hash === args.last &&
86
- could_contain_kw_args?(args) &&
87
- (RubyFeatures.kw_arg_separation? || args.last.empty? || args.last.keys.any? { |x| x.is_a?(Symbol) })
82
+ # Considering the arg types, are there kw_args?
83
+ if RubyFeatures.kw_arg_separation?
84
+ def has_kw_args_in?(args)
85
+ # If the last arg is a hash, depending on the signature it could be kw_args or a positional parameter.
86
+ return false unless Hash === args.last && could_contain_kw_args?(args)
87
+
88
+ # If the position of the hash is beyond the count of required and optional positional
89
+ # args then it is the kwargs hash
90
+ return true if args.count > @max_non_kw_args
91
+
92
+ # This is the proper way to disambiguate between positional args and keywords hash
93
+ # but relies on beginning of the call chain annotating the method with
94
+ # ruby2_keywords, so only use it for positive feedback as without the annotation
95
+ # this is always false
96
+ return true if Hash.ruby2_keywords_hash?(args[-1])
97
+
98
+ # Otherwise, the hash could be defined kw_args or an optional positional parameter
99
+ # inspect the keys against known kwargs to determine what it is
100
+ # Note: the problem with this is that if a user passes only invalid keyword args,
101
+ # rspec no longer detects is and will assign this to a positional argument
102
+ return arbitrary_kw_args? || args.last.keys.all? { |x| @allowed_kw_args.include?(x) }
103
+ end
104
+ else
105
+ def has_kw_args_in?(args)
106
+ # Version <= Ruby 2.7
107
+ # If the last argument is Hash, Ruby will treat only symbol keys as keyword arguments
108
+ # the rest will be grouped in another Hash and passed as positional argument.
109
+ Hash === args.last &&
110
+ could_contain_kw_args?(args) &&
111
+ (args.last.empty? || args.last.keys.any? { |x| x.is_a?(Symbol) })
112
+ end
88
113
  end
89
114
 
90
115
  # Without considering what the last arg is, could it
@@ -282,7 +307,7 @@ module RSpec
282
307
 
283
308
  def initialize(signature, args=[])
284
309
  @signature = signature
285
- @non_kw_args, @kw_args = split_args(*args)
310
+ @non_kw_args, @kw_args = split_args(args.clone)
286
311
  @min_non_kw_args = @max_non_kw_args = @non_kw_args
287
312
  @arbitrary_kw_args = @unlimited_args = false
288
313
  end
@@ -362,7 +387,7 @@ module RSpec
362
387
  !@unlimited_args || @signature.unlimited_args?
363
388
  end
364
389
 
365
- def split_args(*args)
390
+ def split_args(args)
366
391
  kw_args = if @signature.has_kw_args_in?(args) && !RubyFeatures.kw_arg_separation?
367
392
  last = args.pop
368
393
  non_kw_args = last.reject { |k, _| k.is_a?(Symbol) }
@@ -395,13 +420,13 @@ module RSpec
395
420
  class LooseSignatureVerifier < MethodSignatureVerifier
396
421
  private
397
422
 
398
- def split_args(*args)
423
+ def split_args(args)
399
424
  if RSpec::Support.is_a_matcher?(args.last) && @signature.could_contain_kw_args?(args)
400
425
  args.pop
401
426
  @signature = SignatureWithKeywordArgumentsMatcher.new(@signature)
402
427
  end
403
428
 
404
- super(*args)
429
+ super(args)
405
430
  end
406
431
 
407
432
  # If a matcher is used in a signature in place of keyword arguments, all
@@ -61,6 +61,8 @@ module RSpec
61
61
  prepare_array(object)
62
62
  when Hash
63
63
  prepare_hash(object)
64
+ when Symbol
65
+ object
64
66
  else
65
67
  inspector_class = INSPECTOR_CLASSES.find { |inspector| inspector.can_inspect?(object) }
66
68
  inspector_class.new(object, self)
@@ -12,13 +12,25 @@ module RSpec
12
12
  def one_line_header(line_number=2)
13
13
  "-1,#{line_number} +1,#{line_number}"
14
14
  end
15
- else
15
+ elsif ::Diff::LCS::VERSION.to_f < 1.6
16
16
  def one_line_header(_=2)
17
17
  "-1 +1"
18
18
  end
19
+ else
20
+ def one_line_header(line_number=2)
21
+ if line_number - 1 == 1
22
+ "-1 +1"
23
+ else
24
+ "-1,#{line_number - 1} +1,#{line_number - 1}"
25
+ end
26
+ end
19
27
  end
20
28
 
21
- if Diff::LCS::VERSION.to_f < 1.4 || Diff::LCS::VERSION >= "1.4.4"
29
+ if ::Diff::LCS::VERSION.to_f > 1.5
30
+ def removing_two_line_header
31
+ "-1,2 +0,0"
32
+ end
33
+ elsif Diff::LCS::VERSION.to_f < 1.4 || Diff::LCS::VERSION >= "1.4.4"
22
34
  def removing_two_line_header
23
35
  "-1,3 +1"
24
36
  end
@@ -61,7 +61,9 @@ module RSpec
61
61
  %r{bundler/source/rubygems},
62
62
  # Ignore bundler + rubygems warning.
63
63
  %r{site_ruby/\d\.\d\.\d/rubygems},
64
+ %r{site_ruby/\d\.\d\.\d/bundler},
64
65
  %r{jruby-\d\.\d\.\d+\.\d/lib/ruby/stdlib/rubygems},
66
+ %r{lib/rubygems/custom_require},
65
67
  # This is required for windows for some reason
66
68
  %r{lib/bundler/rubygems},
67
69
  # This is a JRuby file that generates warnings on 9.0.3.0
@@ -82,6 +84,9 @@ module RSpec
82
84
  # Ignore some JRuby errors for gems
83
85
  %r{jruby/\d\.\d(\.\d)?/gems/aruba},
84
86
  %r{jruby/\d\.\d(\.\d)?/gems/ffi},
87
+ %r{warning: encoding options not supported in 1\.8},
88
+ # Ignore errors from asdf
89
+ %r{\.asdf/installs},
85
90
  ]
86
91
 
87
92
  def strip_known_warnings(input)
@@ -3,7 +3,7 @@
3
3
  module RSpec
4
4
  module Support
5
5
  module Version
6
- STRING = '3.13.1'
6
+ STRING = '3.13.7'
7
7
  end
8
8
  end
9
9
  end
data/lib/rspec/support.rb CHANGED
@@ -158,5 +158,6 @@ module RSpec
158
158
  # pp, etc by avoiding an unnecessary require. Instead, autoload will take
159
159
  # care of loading the differ on first use.
160
160
  autoload :Differ, "rspec/support/differ"
161
+ autoload :HunkGenerator, "rspec/support/hunk_generator"
161
162
  end
162
163
  end
data.tar.gz.sig CHANGED
@@ -1,3 +1,4 @@
1
- <}ǘ�qSifH ��[��Zv?[�?7gC
2
- ��TR����i�u��?L ����!-�BY����5��n0@H� �v�lX�X���f�ov�leZ�Ʀ�$ ���x/��O)���
3
- ����C���~0?�3�. b��HL,�d����UVw� :�ÚA�$c���j�$\h+°���bR�F�����ɝ�A�����Y�n�9'�M�N͚�3�I Vf�D�2�S�Wk�����i�X�,u�?SG�X�ň(�rp�{��\�6�`�x)��b4_}^LM��$�bV�⦢�U�=�_�{Y��&�~K2=��o�-����� ��� t��������٦9V��{#G��֎�x�P��g]�ل�Y�j�6٨�����md��ͅ
1
+ %yz���prd�>�����мhw��%\V������UOJXHu ��_wIP�[\9Ѿ�ߧZƫ]���;a_��˨S���#�Z)O$��c`�/��B�p�~7y�٣A�) tMT�j{ik��87��p0^���j]�|���l�v��
2
+ )�^Cv<�Y�i�3D&��?�.��P=p�-��0���c���0���z�&���.�fݸi=A��3CK��(?M�
3
+ \�����l�_
4
+ �kdB���b�p=��T�S �����BDkr�;�
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.13.1
4
+ version: 3.13.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chelimsky
@@ -10,16 +10,15 @@ authors:
10
10
  - Sam Phippen
11
11
  - Xaviery Shay
12
12
  - Bradley Schaefer
13
- autorequire:
14
13
  bindir: bin
15
14
  cert_chain:
16
15
  - |
17
16
  -----BEGIN CERTIFICATE-----
18
- MIIF1TCCA72gAwIBAgIJAPXjfUbCjdXUMA0GCSqGSIb3DQEBBQUAMIGAMQswCQYD
17
+ MIIFvjCCA6agAwIBAgIJAPXjfUbCjdXVMA0GCSqGSIb3DQEBCwUAMIGAMQswCQYD
19
18
  VQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEO
20
19
  MAwGA1UECgwFUlNwZWMxEzARBgNVBAMMCnJzcGVjLmluZm8xJTAjBgkqhkiG9w0B
21
- CQEWFnJzcGVjQGdvb2dsZWdyb3Vwcy5jb20wHhcNMTQxMjIzM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+ Q0Js3GtFCuMvL+0rifqdxBOLtu0Pw9q4RvToTJIl2IR6eTgCb82B1hw9qKf7PjuL
44
+ BoEsYjjDhGw6FZvcJG8O6uj7aB+z4aF21YR74UGL7sq/RIPNNez5JI95jTGfqCPy
45
+ 6yo0w3zja3yg28QK3Fj+tbOHeSLv9SDQWi/1jiPprGzbxGvbVvjvX11YZc46vkmY
46
+ AwP+qZPPf97FXXZGEGIYhhHpnj+Ltx9nCetRPiZ4rvYBcXgCWVQSg6eiEofrMwn/
47
+ AKMCABhZ1Y2eATsfMgdkmIZk7JIPZiSi6eUxPiCMP9M/pw==
50
48
  -----END CERTIFICATE-----
51
- date: 2024-02-23 00:00:00.000000000 Z
49
+ date: 1980-01-02 00:00:00.000000000 Z
52
50
  dependencies:
53
51
  - !ruby/object:Gem::Dependency
54
52
  name: rake
@@ -120,16 +118,16 @@ files:
120
118
  - lib/rspec/support/version.rb
121
119
  - lib/rspec/support/warnings.rb
122
120
  - lib/rspec/support/with_keywords_when_needed.rb
123
- homepage: https://github.com/rspec/rspec-support
121
+ homepage: https://rspec.info
124
122
  licenses:
125
123
  - MIT
126
124
  metadata:
127
- bug_tracker_uri: https://github.com/rspec/rspec-support/issues
128
- changelog_uri: https://github.com/rspec/rspec-support/blob/v3.13.1/Changelog.md
125
+ bug_tracker_uri: https://github.com/rspec/rspec/issues
126
+ changelog_uri: https://github.com/rspec/rspec/blob/rspec-support-v3.13.7/rspec-support/Changelog.md
129
127
  documentation_uri: https://rspec.info/documentation/
130
128
  mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
131
- source_code_uri: https://github.com/rspec/rspec-support
132
- post_install_message:
129
+ rubygems_mfa_required: 'true'
130
+ source_code_uri: https://github.com/rspec/rspec/blob/rspec-support-v3.13.7/rspec-support
133
131
  rdoc_options:
134
132
  - "--charset=UTF-8"
135
133
  require_paths:
@@ -145,8 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
143
  - !ruby/object:Gem::Version
146
144
  version: '0'
147
145
  requirements: []
148
- rubygems_version: 3.5.6
149
- signing_key:
146
+ rubygems_version: 4.0.3
150
147
  specification_version: 4
151
- summary: rspec-support-3.13.1
148
+ summary: rspec-support-3.13.7
152
149
  test_files: []
metadata.gz.sig CHANGED
Binary file