rspec-support 3.13.0 → 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: 220efb5124746665a9d6edd89a312072ca68132e32a98f133d5f99763fed02d3
4
- data.tar.gz: e7637055abcd4dd372d577af3bf67c0a653d6f4d62a2ea18f5737c1955057933
3
+ metadata.gz: d35005fb4ae66fc37f335b75f5e4110d13bb44227d4b6a884b7a9824e808d960
4
+ data.tar.gz: 565ad2fb924d29c20b92361a7f6551862caac886a4b2126e166debd798d8f79b
5
5
  SHA512:
6
- metadata.gz: 9b9830bc0bfe3b0012f63fd34fb84acd1b6bbce0aee62bd319ec96563279ef751b19649973446b7799d17812695ac47108624ab06e62f5ebe3574e8374635450
7
- data.tar.gz: 2ce1f840dd991882eed89dbdf1fe820680933819ee49016f8acee350d0fb3295deed76d152cb73b9fb839154993cf901a0b743fc1558848e97668e3064d2bd4e
6
+ metadata.gz: 465f5fc672b71a77d5c4b12eb4fae9033bfa8462ab923b555b25f07b9d5014a283016858eede89d6e9a90487b03cb0efc7bde68d8b1d661a1128978ec36a82af
7
+ data.tar.gz: bc449675ed83f62b5764f09c2dd270d26d9cdfeaa2bdd85cf458588358ed3e0733831c5d2e47140ce626714465f5ca3ca3101e6efda804af9808bc2d8d2ce5a9
checksums.yaml.gz.sig CHANGED
Binary file
data/Changelog.md CHANGED
@@ -1,22 +1,70 @@
1
1
  ### Development
2
- [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.13.0...main)
2
+ [Full Changelog](https://github.com/rspec/rspec/compare/rspec-support-v3.13.6...3-13-maintenance)
3
+
4
+ ### 3.13.6
5
+ [Full Changelog](http://github.com/rspec/rspec/compare/rspec-support-v3.13.5...rspec-support-v3.13.6)
6
+
7
+ Bug Fixes:
8
+
9
+ * Change `RSpec::Support::HunkGenerator` to autoload rather than manual require, avoids
10
+ a load order issue. (Jon Rowe, rspec/rspec#249)
11
+
12
+ ### 3.13.5
13
+ [Full Changelog](http://github.com/rspec/rspec/compare/rspec-support-v3.13.4...rspec-support-v3.13.5)
14
+
15
+ Bug Fixes:
16
+
17
+ * Fix regression in `RSpec::Support::MethodSignature` where positional argument arity confused
18
+ a check for keyword arguments, meaning a hash would be wrongly detected as keyword arguments
19
+ when it should have been a positional argument. (Malcolm O'Hare, rspec/rspec#121)
20
+
21
+ ### 3.13.4
22
+ [Full Changelog](http://github.com/rspec/rspec/compare/rspec-support-v3.13.3...rspec-support-v3.13.4)
23
+
24
+ Bug Fixes:
25
+
26
+ * Fix homepage link in gemspec. (Jon Rowe)
27
+
28
+ ### 3.13.3 / 2025-04-30
29
+ [Full Changelog](http://github.com/rspec/rspec/compare/rspec-support-v3.13.2...rspec-support-v3.13.3)
30
+
31
+ Bug Fixes:
32
+
33
+ * Support for changes in diff-lcs and Ruby 3.4 in spec helpers. (Jon Rowe, #164 etc)
34
+
35
+ ### 3.13.2 / 2024-12-02
36
+ [Full Changelog](http://github.com/rspec/rspec/compare/rspec-support-v3.13.1...rspec-support-v3.13.2)
37
+
38
+ No changes. Released during the monorepo migration to test release processes, but accidentally
39
+ contained no changes.
40
+
41
+ ### 3.13.1 / 2024-02-23
42
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.13.0...v3.13.1)
43
+
44
+ Bug Fixes:
45
+
46
+ * Exclude ruby internal require warnings from `RSpec::Support::CallerFilter#first_non_rspec_line`.
47
+ (Jon Rowe, rspec/rspec-support#593)
3
48
 
4
49
  ### 3.13.0 / 2024-02-04
5
50
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.12.2...v3.13.0)
6
51
 
7
52
  Enchancements
8
53
 
9
- * Add `RubyFeatures#supports_syntax_suggest?`. (Jon Rowe, #571)
54
+ * Add `RubyFeatures#supports_syntax_suggest?`. (Jon Rowe, rspec/rspec-support#571)
55
+
56
+ Bug Fixes:
57
+
58
+ * Allow string keys for keyword arguments during verification of method
59
+ signatures, (but only on Ruby 3+). (@malcolmohare, rspec/rspec-support#591)
10
60
 
11
61
  ### 3.12.2 / 2024-02-04
12
62
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.12.1...v3.12.2)
13
63
 
14
64
  Bug Fixes:
15
65
 
16
- * Properly surface errors from `in_sub_process`. (Jon Rowe, #575)
17
- * Add magic comment for freezing string literals. (Josh Nichols, #586)
18
- * Allow string keys for keyword arguments during verification of method
19
- signatures, (but only on Ruby 3+). (@malcolmohare, #591)
66
+ * Properly surface errors from `in_sub_process`. (Jon Rowe, rspec/rspec-support#575)
67
+ * Add magic comment for freezing string literals. (Josh Nichols, rspec/rspec-support#586)
20
68
 
21
69
  ### 3.12.1 / 2023-06-26
22
70
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.12.0...v3.12.1)
@@ -24,21 +72,21 @@ Bug Fixes:
24
72
  Bug Fixes:
25
73
 
26
74
  * Fix `RSpec::Support.thread_local_data` to be Thread local but not Fiber local.
27
- (Jon Rowe, #581)
75
+ (Jon Rowe, rspec/rspec-support#581)
28
76
 
29
77
  ### 3.12.0 / 2022-10-26
30
78
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.11.1...v3.12.0)
31
79
  Enhancements:
32
80
 
33
81
  * Add `RSpec::Support::RubyFeatures.distincts_kw_args_from_positional_hash?`
34
- (Jean byroot Boussier, #535)
82
+ (Jean byroot Boussier, rspec/rspec-support#535)
35
83
 
36
84
  ### 3.11.1 / 2022-09-12
37
85
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.11.0...v3.11.1)
38
86
 
39
87
  Bug Fixes:
40
88
 
41
- * Fix ripper detection on TruffleRuby. (Brandon Fish, #541)
89
+ * Fix ripper detection on TruffleRuby. (Brandon Fish, rspec/rspec-support#541)
42
90
 
43
91
  ### 3.11.0 / 2022-02-09
44
92
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.10.3...v3.11.0)
@@ -51,9 +99,9 @@ No changes. Released to support other RSpec releases.
51
99
  Bug Fixes:
52
100
 
53
101
  * Use `Mutex#owned?` to allow `RSpec::Support::ReentrantMutex` to work in
54
- nested Fibers on Ruby 3.0 and later. (Benoit Daloze, #503, #504)
102
+ nested Fibers on Ruby 3.0 and later. (Benoit Daloze, rspec/rspec-support#503, rspec/rspec-support#504)
55
103
  * Support `end`-less methods in `RSpec::Support::Source::Token`
56
- so that RSpec won't hang when an `end`-less method raises an error. (Yuji Nakayama, #505)
104
+ so that RSpec won't hang when an `end`-less method raises an error. (Yuji Nakayama, rspec/rspec-support#505)
57
105
 
58
106
  ### 3.10.2 / 2021-01-28
59
107
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.10.1...v3.10.2)
@@ -61,7 +109,7 @@ Bug Fixes:
61
109
  Bug Fixes:
62
110
 
63
111
  * Fix issue with `RSpec::Support.define_optimized_require_for_rspec` on JRuby
64
- 9.1.17.0 (Jon Rowe, #492)
112
+ 9.1.17.0 (Jon Rowe, rspec/rspec-support#492)
65
113
 
66
114
  ### 3.10.1 / 2020-12-27
67
115
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.10.0...v3.10.1)
@@ -69,7 +117,7 @@ Bug Fixes:
69
117
  Bug Fixes:
70
118
 
71
119
  * Fix deprecation expectations to fail correctly when
72
- asserting on messages. (Phil Pirozhkov, #453)
120
+ asserting on messages. (Phil Pirozhkov, rspec/rspec-support#453)
73
121
 
74
122
  ### 3.10.0 / 2020-10-30
75
123
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.4...v3.10.0)
@@ -81,26 +129,26 @@ No changes. Released to support other RSpec releases.
81
129
 
82
130
  Bug Fixes:
83
131
 
84
- * Flag ripper as supported on Truffle Ruby. (Brandon Fish, #427)
132
+ * Flag ripper as supported on Truffle Ruby. (Brandon Fish, rspec/rspec-support#427)
85
133
  * Prevent stubbing `File.read` from breaking source extraction.
86
- (Jon Rowe, #431)
134
+ (Jon Rowe, rspec/rspec-support#431)
87
135
 
88
136
  ### 3.9.3 / 2020-05-02
89
137
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.2...v3.9.3)
90
138
 
91
139
  Bug Fixes:
92
140
 
93
- * Mark ripper as unsupported on Truffle Ruby. (Brandon Fish, #395)
94
- * Mark ripper as unsupported on JRuby 9.2.0.0. (Brian Hawley, #400)
141
+ * Mark ripper as unsupported on Truffle Ruby. (Brandon Fish, rspec/rspec-support#395)
142
+ * Mark ripper as unsupported on JRuby 9.2.0.0. (Brian Hawley, rspec/rspec-support#400)
95
143
  * Capture `Mutex.new` for our `RSpec::Support:Mutex` in order to
96
- allow stubbing `Mutex.new`. (Jon Rowe, #411)
144
+ allow stubbing `Mutex.new`. (Jon Rowe, rspec/rspec-support#411)
97
145
 
98
146
  ### 3.9.2 / 2019-12-30
99
147
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.1...v3.9.2)
100
148
 
101
149
  Bug Fixes:
102
150
 
103
- * Remove unneeded eval. (Matijs van Zuijlen, #394)
151
+ * Remove unneeded eval. (Matijs van Zuijlen, rspec/rspec-support#394)
104
152
 
105
153
  ### 3.9.1 / 2019-12-28
106
154
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.0...v3.9.1)
@@ -108,7 +156,7 @@ Bug Fixes:
108
156
  Bug Fixes:
109
157
 
110
158
  * Remove warning caused by keyword arguments on Ruby 2.7.0.
111
- (Jon Rowe, #392)
159
+ (Jon Rowe, rspec/rspec-support#392)
112
160
 
113
161
  ### 3.9.0 / 2019-10-07
114
162
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.3...v3.9.0)
@@ -123,9 +171,9 @@ Version 3.9.0 was released to allow other RSpec gems to release 3.9.0.
123
171
  Bug Fixes:
124
172
 
125
173
  * Escape \r when outputting strings inside arrays.
126
- (Tomita Masahiro, Jon Rowe, #378)
174
+ (Tomita Masahiro, Jon Rowe, rspec/rspec-support#378)
127
175
  * Ensure that optional hash arguments are recognised correctly vs keyword
128
- arguments. (Evgeni Dzhelyov, #366)
176
+ arguments. (Evgeni Dzhelyov, rspec/rspec-support#366)
129
177
 
130
178
  ### 3.8.2 / 2019-06-10
131
179
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.1...v3.8.2)
@@ -133,9 +181,9 @@ Bug Fixes:
133
181
  Bug Fixes:
134
182
 
135
183
  * Ensure that an empty hash is recognised as empty keyword arguments when
136
- applicable. (Thomas Walpole, #375)
184
+ applicable. (Thomas Walpole, rspec/rspec-support#375)
137
185
  * Ensure that diffing truthy values produce diffs consistently.
138
- (Lucas Nestor, #377)
186
+ (Lucas Nestor, rspec/rspec-support#377)
139
187
 
140
188
  ### 3.8.1 / 2019-03-03
141
189
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.0...v3.8.1)
@@ -143,7 +191,7 @@ Bug Fixes:
143
191
  Bug Fixes:
144
192
 
145
193
  * Ensure that inspecting a `SimpleDelegator` based object works regardless of
146
- visibility of the `__getobj__` method. (Jon Rowe, #369)
194
+ visibility of the `__getobj__` method. (Jon Rowe, rspec/rspec-support#369)
147
195
 
148
196
  ### 3.8.0 / 2018-08-04
149
197
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.7.1...v3.8.0)
@@ -151,7 +199,7 @@ Bug Fixes:
151
199
  Bug Fixes:
152
200
 
153
201
  * Order hash keys before diffing to improve diff accuracy when using mocked calls.
154
- (James Crisp, #334)
202
+ (James Crisp, rspec/rspec-support#334)
155
203
 
156
204
  ### 3.7.1 / 2018-01-29
157
205
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.7.0...v3.7.1)
@@ -159,7 +207,7 @@ Bug Fixes:
159
207
  Bug Fixes:
160
208
 
161
209
  * Fix source extraction logic so that it does not trigger a `SystemStackError`
162
- when processing deeply nested example groups. (Craig Bass, #343)
210
+ when processing deeply nested example groups. (Craig Bass, rspec/rspec-support#343)
163
211
 
164
212
  ### 3.7.0 / 2017-10-17
165
213
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.6.0...v3.7.0)
@@ -167,21 +215,21 @@ Bug Fixes:
167
215
  Enhancements:
168
216
 
169
217
  * Improve compatibility with `--enable-frozen-string-literal` option
170
- on Ruby 2.3+. (Pat Allan, #320)
218
+ on Ruby 2.3+. (Pat Allan, rspec/rspec-support#320)
171
219
  * Add `Support.class_of` for extracting class of any object.
172
- (Yuji Nakayama, #325)
220
+ (Yuji Nakayama, rspec/rspec-support#325)
173
221
 
174
222
  Bug Fixes:
175
223
 
176
224
  * Fix recursive const support to not blow up when given buggy classes
177
- that raise odd errors from `#to_str`. (Myron Marston, #317)
225
+ that raise odd errors from `#to_str`. (Myron Marston, rspec/rspec-support#317)
178
226
 
179
227
  ### 3.6.0 / 2017-05-04
180
228
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.6.0.beta2...3.6.0)
181
229
 
182
230
  Enhancements:
183
231
 
184
- * Import `Source` classes from rspec-core. (Yuji Nakayama, #315)
232
+ * Import `Source` classes from rspec-core. (Yuji Nakayama, rspec/rspec-support#315)
185
233
 
186
234
  ### 3.6.0.beta2 / 2016-12-12
187
235
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.6.0.beta1...v3.6.0.beta2)
@@ -193,7 +241,7 @@ No user-facing changes.
193
241
 
194
242
  Bug Fixes:
195
243
 
196
- * Prevent truncated formatted object output from mangling console codes. (#294, Anson Kelly)
244
+ * Prevent truncated formatted object output from mangling console codes. (rspec/rspec-support#294, Anson Kelly)
197
245
 
198
246
  ### 3.5.0 / 2016-07-01
199
247
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta4...v3.5.0)
@@ -204,7 +252,7 @@ Bug Fixes:
204
252
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta3...v3.5.0.beta4)
205
253
 
206
254
  Enhancements:
207
- * Improve `MethodSignature` to better support keyword arguments. (#250, Rob Smith).
255
+ * Improve `MethodSignature` to better support keyword arguments. (rspec/rspec-support#250, Rob Smith).
208
256
 
209
257
  ### 3.5.0.beta3 / 2016-04-02
210
258
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta2...v3.5.0.beta3)
@@ -212,12 +260,12 @@ Enhancements:
212
260
  Bug Fixes:
213
261
 
214
262
  * Fix `EncodedString` to properly handle the behavior of `String#split`
215
- on JRuby when the string contains invalid bytes. (Jon Rowe, #268)
263
+ on JRuby when the string contains invalid bytes. (Jon Rowe, rspec/rspec-support#268)
216
264
  * Fix `ObjectFormatter` so that formatting objects that don't respond to
217
265
  `#inspect` (such as `BasicObject`) does not cause `NoMethodError`.
218
- (Yuji Nakayama, #269)
266
+ (Yuji Nakayama, rspec/rspec-support#269)
219
267
  * Fix `ObjectFormatter` so that formatting recursive array or hash does not
220
- cause `SystemStackError`. (Yuji Nakayama, #270, #272)
268
+ cause `SystemStackError`. (Yuji Nakayama, rspec/rspec-support#270, rspec/rspec-support#272)
221
269
 
222
270
  ### 3.5.0.beta2 / 2016-03-10
223
271
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta1...v3.5.0.beta2)
@@ -230,7 +278,7 @@ No user-facing changes.
230
278
  Enhancements:
231
279
 
232
280
  * Improve formatting of objects by allowing truncation to a pre-configured length.
233
- (Liam M, #256)
281
+ (Liam M, rspec/rspec-support#256)
234
282
 
235
283
  ### 3.4.1 / 2015-11-20
236
284
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.4.0...v3.4.1)
@@ -240,11 +288,11 @@ Bug Fixes:
240
288
  * Fix `RSpec::Support::RubyFeature.ripper_supported?` so it returns
241
289
  `false` on Rubinius since the Rubinius team has no plans to support
242
290
  it. This prevents rspec-core from trying to load and use ripper to
243
- extract failure snippets. (Aaron Stone, #251)
291
+ extract failure snippets. (Aaron Stone, rspec/rspec-support#251)
244
292
 
245
293
  Changes:
246
294
 
247
- * Remove `VersionChecker` in favor of `ComparableVersion`. (Yuji Nakayama, #266)
295
+ * Remove `VersionChecker` in favor of `ComparableVersion`. (Yuji Nakayama, rspec/rspec-support#266)
248
296
 
249
297
  ### 3.4.0 / 2015-11-11
250
298
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.3.0...v3.4.0)
@@ -252,15 +300,15 @@ Changes:
252
300
  Enhancements:
253
301
 
254
302
  * Improve formatting of `Delegator` based objects (e.g. `SimpleDelegator`) in
255
- failure messages and diffs. (Andrew Horner, #215)
256
- * Add `ComparableVersion`. (Yuji Nakayama, #245)
257
- * Add `Ripper` support detection. (Yuji Nakayama, #245)
303
+ failure messages and diffs. (Andrew Horner, rspec/rspec-support#215)
304
+ * Add `ComparableVersion`. (Yuji Nakayama, rspec/rspec-support#245)
305
+ * Add `Ripper` support detection. (Yuji Nakayama, rspec/rspec-support#245)
258
306
 
259
307
  Bug Fixes:
260
308
 
261
309
  * Work around bug in JRuby that reports that `attr_writer` methods
262
310
  have no parameters, causing RSpec's verifying doubles to wrongly
263
- fail when mocking or stubbing a writer method on JRuby. (Myron Marston, #225)
311
+ fail when mocking or stubbing a writer method on JRuby. (Myron Marston, rspec/rspec-support#225)
264
312
 
265
313
  ### 3.3.0 / 2015-06-12
266
314
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.2.2...v3.3.0)
@@ -269,8 +317,8 @@ Enhancements:
269
317
 
270
318
  * Improve formatting of arrays and hashes in failure messages so they
271
319
  use our custom formatting of matchers, time objects, etc.
272
- (Myron Marston, Nicholas Chmielewski, #205)
273
- * Use improved formatting for diffs as well. (Nicholas Chmielewski, #205)
320
+ (Myron Marston, Nicholas Chmielewski, rspec/rspec-support#205)
321
+ * Use improved formatting for diffs as well. (Nicholas Chmielewski, rspec/rspec-support#205)
274
322
 
275
323
  Bug Fixes:
276
324
 
@@ -279,7 +327,7 @@ Bug Fixes:
279
327
  `actual` object's `==` is improperly implemented to assume that only
280
328
  objects of the same type will be given. This allows rspec-mocks'
281
329
  `anything` to match against objects with buggy `==` definitions.
282
- (Myron Marston, #193)
330
+ (Myron Marston, rspec/rspec-support#193)
283
331
 
284
332
  ### 3.2.2 / 2015-02-23
285
333
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.2.1...v3.2.2)
@@ -287,7 +335,7 @@ Bug Fixes:
287
335
  Bug Fixes:
288
336
 
289
337
  * Fix an encoding issue with `EncodedString#split` when encountering an
290
- invalid byte string. (Benjamin Fleischer, #1760)
338
+ invalid byte string. (Benjamin Fleischer, rspec/rspec-support#1760)
291
339
 
292
340
  ### 3.2.1 / 2015-02-04
293
341
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.2.0...v3.2.1)
@@ -295,20 +343,20 @@ Bug Fixes:
295
343
  Bug Fixes:
296
344
 
297
345
  * Fix `RSpec::CallerFilter` to work on Rubinius 2.2.
298
- (Myron Marston, #169)
346
+ (Myron Marston, rspec/rspec-support#169)
299
347
 
300
348
  ### 3.2.0 / 2015-02-03
301
349
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.1.2...v3.2.0)
302
350
 
303
351
  Enhancements:
304
352
 
305
- * Add extra Ruby type detection. (Jon Rowe, #133)
306
- * Make differ instance re-usable. (Alexey Fedorov, #160)
353
+ * Add extra Ruby type detection. (Jon Rowe, rspec/rspec-support#133)
354
+ * Make differ instance re-usable. (Alexey Fedorov, rspec/rspec-support#160)
307
355
 
308
356
  Bug Fixes:
309
357
 
310
358
  * Do not consider `[]` and `{}` to match when performing fuzzy matching.
311
- (Myron Marston, #157)
359
+ (Myron Marston, rspec/rspec-support#157)
312
360
 
313
361
  ### 3.1.2 / 2014-10-08
314
362
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.1.1...v3.1.2)
@@ -316,7 +364,7 @@ Bug Fixes:
316
364
  Bug Fixes:
317
365
 
318
366
  * Fix method signature to not blow up with a `NoMethodError` on 1.8.7 when
319
- verifying against an RSpec matcher. (Myron Marston, #116)
367
+ verifying against an RSpec matcher. (Myron Marston, rspec/rspec-support#116)
320
368
 
321
369
  ### 3.1.1 / 2014-09-26
322
370
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.1.0...v3.1.1)
@@ -325,7 +373,7 @@ Bug Fixes:
325
373
 
326
374
  * Fix `RSpec::Support::DirectoryMaker` (used by `rspec --init` and
327
375
  `rails generate rspec:install`) so that it detects absolute paths
328
- on Windows properly. (Scott Archer, #107, #108, #109) (Jon Rowe, #110)
376
+ on Windows properly. (Scott Archer, rspec/rspec-support#107, rspec/rspec-support#108, rspec/rspec-support#109) (Jon Rowe, rspec/rspec-support#110)
329
377
 
330
378
  ### 3.1.0 / 2014-09-04
331
379
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.4...v3.1.0)
@@ -333,9 +381,9 @@ Bug Fixes:
333
381
  Bug Fixes:
334
382
 
335
383
  * Fix `FuzzyMatcher` so that it does not wrongly match a struct against
336
- an array. (Myron Marston, #97)
384
+ an array. (Myron Marston, rspec/rspec-support#97)
337
385
  * Prevent infinitely recursing `#flatten` methods from causing the differ
338
- to hang. (Jon Rowe, #101)
386
+ to hang. (Jon Rowe, rspec/rspec-support#101)
339
387
 
340
388
  ### 3.0.4 / 2014-08-14
341
389
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.3...v3.0.4)
@@ -343,7 +391,7 @@ Bug Fixes:
343
391
  Bug Fixes:
344
392
 
345
393
  * Fix `FuzzyMatcher` so that it does not silence `ArgumentError` raised
346
- from broken implementations of `==`. (Myron Marston, #94)
394
+ from broken implementations of `==`. (Myron Marston, rspec/rspec-support#94)
347
395
 
348
396
  ### 3.0.3 / 2014-07-21
349
397
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.2...v3.0.3)
@@ -352,23 +400,23 @@ Bug Fixes:
352
400
 
353
401
  * Fix regression in `Support#method_handle_for` where proxy objects
354
402
  with method delegated would wrongly not return a method handle.
355
- (Jon Rowe, #90)
356
- * Properly detect Module#prepend support in Ruby 2.1+ (Ben Langfeld, #91)
403
+ (Jon Rowe, rspec/rspec-support#90)
404
+ * Properly detect Module#prepend support in Ruby 2.1+ (Ben Langfeld, rspec/rspec-support#91)
357
405
  * Fix `rspec/support/warnings.rb` so it can be loaded and used in
358
- isolation. (Myron Marston, #93)
406
+ isolation. (Myron Marston, rspec/rspec-support#93)
359
407
 
360
408
  ### 3.0.2 / 2014-06-20
361
409
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.1...v3.0.2)
362
410
 
363
411
  * Revert `BlockSignature` change from 3.0.1 because of a ruby bug that
364
412
  caused it to change the block's behavior (https://bugs.ruby-lang.org/issues/9967).
365
- (Myron Marston, rspec-mocks#721)
413
+ (Myron Marston, rspec-mocksrspec/rspec-support#721)
366
414
 
367
415
  ### 3.0.1 / 2014-06-19
368
416
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.0...v3.0.1)
369
417
 
370
418
  * Fix `BlockSignature` so that it correctly differentiates between
371
- required and optional block args. (Myron Marston, rspec-mocks#714)
419
+ required and optional block args. (Myron Marston, rspec-mocksrspec/rspec-support#714)
372
420
 
373
421
  ### 3.0.0 / 2014-06-01
374
422
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.0.rc1...v3.0.0)
@@ -27,7 +27,7 @@ module RSpec
27
27
  # when `CallerFilter.first_non_rspec_line` is called from the top level of a required
28
28
  # file, but it depends on if rubygems is loaded or not. We don't want to have to deal
29
29
  # with this complexity in our `RSpec.deprecate` calls, so we ignore it here.
30
- IGNORE_REGEX = Regexp.union(LIB_REGEX, "rubygems/core_ext/kernel_require.rb", "<internal:")
30
+ IGNORE_REGEX = Regexp.union(LIB_REGEX, "rubygems/core_ext/kernel_require.rb", "<internal:", %r{/lib/ruby/[^/]+/bundled_gems\.rb})
31
31
 
32
32
  if RSpec::Support::RubyFeatures.caller_locations_supported?
33
33
  # This supports args because it's more efficient when the caller specifies
@@ -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'
@@ -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.0'
6
+ STRING = '3.13.6'
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
Binary file
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.0
4
+ version: 3.13.6
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
- CQEWFnJzcGVjQGdvb2dsZWdyb3Vwcy5jb20wHhcNMTQxMjIzMDkzNTIyWhcNMjQx
22
- MjIyMDkzNTIyWjCBgDELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24x
20
+ CQEWFnJzcGVjQGdvb2dsZWdyb3Vwcy5jb20wHhcNMjUwMjA2MTE0NjU2WhcNMjYw
21
+ MjA2MTE0NjU2WjCBgDELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24x
23
22
  EDAOBgNVBAcMB1NlYXR0bGUxDjAMBgNVBAoMBVJTcGVjMRMwEQYDVQQDDApyc3Bl
24
23
  Yy5pbmZvMSUwIwYJKoZIhvcNAQkBFhZyc3BlY0Bnb29nbGVncm91cHMuY29tMIIC
25
24
  IjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAsSmjgcHaKlD0jizRJowi2bGI
@@ -33,22 +32,21 @@ cert_chain:
33
32
  Xeh3EVdWY3vMB1pkhPwlsenpcmj5gOzrd54lELOVbCGHCf48iSqeflY2Lhe0pvzK
34
33
  blXCJBDmtrebvus291rM/dHcbEfK1SVd5Wut/n131iouf6dnNCFskFygDcgBbthC
35
34
  gpEMqf80lEmhX59VUsm0Pv6OEo+ZPHBvXPiJA6DShQh9t3YtpwyA8uVDMbT/i32u
36
- 2FUsqZbbJcCmkBrGposCAwEAAaNQME4wHQYDVR0OBBYEFPPvQ5XT0Nvuhi6k+hrW
37
- Vv35J+TeMB8GA1UdIwQYMBaAFPPvQ5XT0Nvuhi6k+hrWVv35J+TeMAwGA1UdEwQF
38
- MAMBAf8wDQYJKoZIhvcNAQEFBQADggIBAIqbQSWH2aAF537DKwAMB8nMFsoe24MD
39
- gtuQAyjTtbH+QBE4N2RdQF/sU7Y3PYR7nqdrCsYc3RxyqM5XXi7I3IYdpfe1RuxY
40
- +pyPzVQsPPDhMlJlCrwJsADnxlpxZlAgxYSLKOan55ihscaAWA90wqRUrf/ZJM36
41
- 8LWCPVn5teIt5aaxZWX68RMxa+AXvpbtJOBwXLkIFk3apD8CX4DhelIdw67DbkUe
42
- ghUd/u62qrnqBTVgditt7OoWIZjzh24/Fda5d0MxZyvLILGOrf5bN4cTbe/q9Cid
43
- Xrik7Upm+mu3y3yQIfrw85xybHq6iNXyYHvCdSrFfCIKrGpd/0CAdmYnJlx59Fk/
44
- UbD3Eyx4psBSkU+WKO0Uf+3zNI7N/nVeNIwU/Ft+l8l7/K+427656c+ZGWDO0Gt/
45
- BeEOSTDKP7qQ1T+JvMrBcBQo+i0cnRT10J1aoV90BhxsvWTRizIbugbaqR6Tq3bj
46
- Akt00cIlNSplL6DenIAKSh5kF7s0tRD0tC3bNkZmNjNGkdoGEcUODEpTB3RHKKiu
47
- e6k2Jg6m00z5vGFQhOnROG/QaUzMA3A3mFBe1RHFo07xd0pFeoeWL3vF69Gx9Jwp
48
- ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
49
- F3MdtaDehhjC
35
+ 2FUsqZbbJcCmkBrGposCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
36
+ HQYDVR0OBBYEFPPvQ5XT0Nvuhi6k+hrWVv35J+TeMA0GCSqGSIb3DQEBCwUAA4IC
37
+ AQBGBr0ll2yLrkO6IeK5Q7qZFnANaUCKfi6Of9VztZJXgKAU5KAQxyOidGktoA5N
38
+ lp+bFKudRkW8jSehqoNaNBdSZ9Bc07EGMXIhUFJZF9rq7Z2SKPwUm6EaSsBK13QR
39
+ U4K6wuaw5ZJSFzklapoGOJRGnFlnNtlhNFY6+tTwCeblwZbcuYGyGY8+Rg7GbyVl
40
+ 3Tr4Gi1aS/qG/MDXKdE8HWm39dmaAMdbw6dg1VBd0JrX2VqH7xvE1dM/D3OlKrNp
41
+ gNFRNJig3Y8qPjocZR0cGkhgZoC9wribWxHSNawZm4CoV3fja2HNx9QyM7BaB+as
42
+ yuqAiBbA7vBcyc8nKATip3mxbyXYXoDD7nmO8JCPP7O/WsgG+U/B2a0kPdvYFoxE
43
+ 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-04 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.0/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.6/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.6/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.4.10
149
- signing_key:
146
+ rubygems_version: 3.6.7
150
147
  specification_version: 4
151
- summary: rspec-support-3.13.0
148
+ summary: rspec-support-3.13.6
152
149
  test_files: []
metadata.gz.sig CHANGED
Binary file