hierarchical_config 0.11 → 0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/ruby.yml +52 -0
  3. data/.gitignore +2 -0
  4. data/.rubocop.yml +68 -0
  5. data/.ruby-version +1 -0
  6. data/Gemfile +15 -2
  7. data/Gemfile.2.4 +19 -0
  8. data/Gemfile.2.4.lock +117 -0
  9. data/Gemfile.lock +124 -25
  10. data/README.md +0 -2
  11. data/bin/console +3 -3
  12. data/bin/tapioca +29 -0
  13. data/hierarchical_config.gemspec +14 -13
  14. data/lib/hierarchical_config/version.rb +3 -1
  15. data/lib/hierarchical_config.rb +164 -102
  16. data/sorbet/config +2 -0
  17. data/sorbet/rbi/annotations/activesupport.rbi +128 -0
  18. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  19. data/sorbet/rbi/gems/activesupport@7.0.4.2.rbi +16155 -0
  20. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  21. data/sorbet/rbi/gems/binding_of_caller@1.0.0.rbi +55 -0
  22. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3426 -0
  23. data/sorbet/rbi/gems/concurrent-ruby@1.2.2.rbi +11545 -0
  24. data/sorbet/rbi/gems/debug_inspector@1.1.0.rbi +23 -0
  25. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1083 -0
  26. data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
  27. data/sorbet/rbi/gems/interception@0.5.rbi +138 -0
  28. data/sorbet/rbi/gems/json@2.6.3.rbi +1541 -0
  29. data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
  30. data/sorbet/rbi/gems/minitest@5.17.0.rbi +1457 -0
  31. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  32. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  33. data/sorbet/rbi/gems/parser@3.2.1.0.rbi +7252 -0
  34. data/sorbet/rbi/gems/pry-rescue@1.5.2.rbi +186 -0
  35. data/sorbet/rbi/gems/pry-stack_explorer@0.6.1.rbi +295 -0
  36. data/sorbet/rbi/gems/pry@0.14.2.rbi +10081 -0
  37. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
  38. data/sorbet/rbi/gems/rake@13.0.6.rbi +3018 -0
  39. data/sorbet/rbi/gems/rbi@0.0.16.rbi +3008 -0
  40. data/sorbet/rbi/gems/regexp_parser@2.7.0.rbi +3580 -0
  41. data/sorbet/rbi/gems/rexml@3.2.5.rbi +4717 -0
  42. data/sorbet/rbi/gems/rspec-core@3.12.1.rbi +10845 -0
  43. data/sorbet/rbi/gems/rspec-expectations@3.12.2.rbi +8100 -0
  44. data/sorbet/rbi/gems/rspec-mocks@3.12.3.rbi +5299 -0
  45. data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +1611 -0
  46. data/sorbet/rbi/gems/rspec@3.12.0.rbi +82 -0
  47. data/sorbet/rbi/gems/rubocop-ast@1.27.0.rbi +6998 -0
  48. data/sorbet/rbi/gems/rubocop-performance@1.16.0.rbi +3004 -0
  49. data/sorbet/rbi/gems/rubocop@1.46.0.rbi +54549 -0
  50. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1239 -0
  51. data/sorbet/rbi/gems/spoom@1.1.15.rbi +2383 -0
  52. data/sorbet/rbi/gems/tapioca@0.11.1.rbi +3255 -0
  53. data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
  54. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5917 -0
  55. data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +65 -0
  56. data/sorbet/rbi/gems/unparser@0.6.7.rbi +4524 -0
  57. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2555 -0
  58. data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +441 -0
  59. data/sorbet/rbi/gems/yard@0.9.28.rbi +17841 -0
  60. data/sorbet/tapioca/config.yml +13 -0
  61. data/sorbet/tapioca/require.rb +4 -0
  62. metadata +74 -50
  63. data/.travis.yml +0 -6
@@ -0,0 +1,1611 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `rspec-support` gem.
5
+ # Please instead update this file by running `bin/tapioca gem rspec-support`.
6
+
7
+ # source://rspec-support//lib/rspec/support.rb#1
8
+ module RSpec
9
+ extend ::RSpec::Support::Warnings
10
+
11
+ class << self
12
+ # source://rspec-core/3.12.1/lib/rspec/core.rb#70
13
+ def clear_examples; end
14
+
15
+ # source://rspec-core/3.12.1/lib/rspec/core.rb#85
16
+ def configuration; end
17
+
18
+ # source://rspec-core/3.12.1/lib/rspec/core.rb#49
19
+ def configuration=(_arg0); end
20
+
21
+ # source://rspec-core/3.12.1/lib/rspec/core.rb#97
22
+ def configure; end
23
+
24
+ # source://rspec-core/3.12.1/lib/rspec/core.rb#194
25
+ def const_missing(name); end
26
+
27
+ # source://rspec-core/3.12.1/lib/rspec/core/dsl.rb#42
28
+ def context(*args, &example_group_block); end
29
+
30
+ # source://rspec-core/3.12.1/lib/rspec/core.rb#122
31
+ def current_example; end
32
+
33
+ # source://rspec-core/3.12.1/lib/rspec/core.rb#128
34
+ def current_example=(example); end
35
+
36
+ # source://rspec-core/3.12.1/lib/rspec/core.rb#154
37
+ def current_scope; end
38
+
39
+ # source://rspec-core/3.12.1/lib/rspec/core.rb#134
40
+ def current_scope=(scope); end
41
+
42
+ # source://rspec-core/3.12.1/lib/rspec/core/dsl.rb#42
43
+ def describe(*args, &example_group_block); end
44
+
45
+ # source://rspec-core/3.12.1/lib/rspec/core/dsl.rb#42
46
+ def example_group(*args, &example_group_block); end
47
+
48
+ # source://rspec-core/3.12.1/lib/rspec/core/dsl.rb#42
49
+ def fcontext(*args, &example_group_block); end
50
+
51
+ # source://rspec-core/3.12.1/lib/rspec/core/dsl.rb#42
52
+ def fdescribe(*args, &example_group_block); end
53
+
54
+ # source://rspec-core/3.12.1/lib/rspec/core.rb#58
55
+ def reset; end
56
+
57
+ # source://rspec-core/3.12.1/lib/rspec/core/shared_example_group.rb#110
58
+ def shared_context(name, *args, &block); end
59
+
60
+ # source://rspec-core/3.12.1/lib/rspec/core/shared_example_group.rb#110
61
+ def shared_examples(name, *args, &block); end
62
+
63
+ # source://rspec-core/3.12.1/lib/rspec/core/shared_example_group.rb#110
64
+ def shared_examples_for(name, *args, &block); end
65
+
66
+ # source://rspec-core/3.12.1/lib/rspec/core.rb#160
67
+ def world; end
68
+
69
+ # source://rspec-core/3.12.1/lib/rspec/core.rb#49
70
+ def world=(_arg0); end
71
+
72
+ # source://rspec-core/3.12.1/lib/rspec/core/dsl.rb#42
73
+ def xcontext(*args, &example_group_block); end
74
+
75
+ # source://rspec-core/3.12.1/lib/rspec/core/dsl.rb#42
76
+ def xdescribe(*args, &example_group_block); end
77
+ end
78
+ end
79
+
80
+ # Consistent implementation for "cleaning" the caller method to strip out
81
+ # non-rspec lines. This enables errors to be reported at the call site in
82
+ # the code using the library, which is far more useful than the particular
83
+ # internal method that raised an error.
84
+ #
85
+ # source://rspec-support//lib/rspec/support/caller_filter.rb#8
86
+ class RSpec::CallerFilter
87
+ class << self
88
+ # Earlier rubies do not support the two argument form of `caller`. This
89
+ # fallback is logically the same, but slower.
90
+ #
91
+ # source://rspec-support//lib/rspec/support/caller_filter.rb#47
92
+ def first_non_rspec_line(skip_frames = T.unsafe(nil), increment = T.unsafe(nil)); end
93
+ end
94
+ end
95
+
96
+ # source://rspec-support//lib/rspec/support/caller_filter.rb#18
97
+ RSpec::CallerFilter::ADDITIONAL_TOP_LEVEL_FILES = T.let(T.unsafe(nil), Array)
98
+
99
+ # rubygems/core_ext/kernel_require.rb isn't actually part of rspec (obviously) but we want
100
+ # it ignored when we are looking for the first meaningful line of the backtrace outside
101
+ # of RSpec. It can show up in the backtrace as the immediate first caller
102
+ # when `CallerFilter.first_non_rspec_line` is called from the top level of a required
103
+ # file, but it depends on if rubygems is loaded or not. We don't want to have to deal
104
+ # with this complexity in our `RSpec.deprecate` calls, so we ignore it here.
105
+ #
106
+ # source://rspec-support//lib/rspec/support/caller_filter.rb#28
107
+ RSpec::CallerFilter::IGNORE_REGEX = T.let(T.unsafe(nil), Regexp)
108
+
109
+ # source://rspec-support//lib/rspec/support/caller_filter.rb#20
110
+ RSpec::CallerFilter::LIB_REGEX = T.let(T.unsafe(nil), Regexp)
111
+
112
+ # source://rspec-support//lib/rspec/support/caller_filter.rb#9
113
+ RSpec::CallerFilter::RSPEC_LIBS = T.let(T.unsafe(nil), Array)
114
+
115
+ # source://rspec-support//lib/rspec/support.rb#2
116
+ module RSpec::Support
117
+ class << self
118
+ # Used internally to get a class of a given object, even if it does not respond to #class.
119
+ #
120
+ # @api private
121
+ #
122
+ # source://rspec-support//lib/rspec/support.rb#84
123
+ def class_of(object); end
124
+
125
+ # Defines a helper method that is optimized to require files from the
126
+ # named lib. The passed block MUST be `{ |f| require_relative f }`
127
+ # because for `require_relative` to work properly from within the named
128
+ # lib the line of code must be IN that lib.
129
+ #
130
+ # `require_relative` is preferred when available because it is always O(1),
131
+ # regardless of the number of dirs in $LOAD_PATH. `require`, on the other
132
+ # hand, does a linear O(N) search over the dirs in the $LOAD_PATH until
133
+ # it can resolve the file relative to one of the dirs.
134
+ #
135
+ # @api private
136
+ #
137
+ # source://rspec-support//lib/rspec/support.rb#14
138
+ def define_optimized_require_for_rspec(lib, &require_relative); end
139
+
140
+ # Remove a previously registered matcher. Useful for cleaning up after
141
+ # yourself in specs.
142
+ #
143
+ # @private
144
+ #
145
+ # source://rspec-support//lib/rspec/support/matcher_definition.rb#22
146
+ def deregister_matcher_definition(&block); end
147
+
148
+ # @api private
149
+ #
150
+ # source://rspec-support//lib/rspec/support.rb#105
151
+ def failure_notifier; end
152
+
153
+ # @api private
154
+ #
155
+ # source://rspec-support//lib/rspec/support.rb#97
156
+ def failure_notifier=(callable); end
157
+
158
+ # @private
159
+ # @return [Boolean]
160
+ #
161
+ # source://rspec-support//lib/rspec/support/matcher_definition.rb#27
162
+ def is_a_matcher?(object); end
163
+
164
+ # @private
165
+ #
166
+ # source://rspec-support//lib/rspec/support/matcher_definition.rb#4
167
+ def matcher_definitions; end
168
+
169
+ # source://rspec-support//lib/rspec/support.rb#52
170
+ def method_handle_for(object, method_name); end
171
+
172
+ # @api private
173
+ #
174
+ # source://rspec-support//lib/rspec/support.rb#110
175
+ def notify_failure(failure, options = T.unsafe(nil)); end
176
+
177
+ # Used internally to break cyclic dependency between mocks, expectations,
178
+ # and support. We don't currently have a consistent implementation of our
179
+ # matchers, though we are considering changing that:
180
+ # https://github.com/rspec/rspec-mocks/issues/513
181
+ #
182
+ # @private
183
+ #
184
+ # source://rspec-support//lib/rspec/support/matcher_definition.rb#14
185
+ def register_matcher_definition(&block); end
186
+
187
+ # source://rspec-support//lib/rspec/support.rb#23
188
+ def require_rspec_core(f); end
189
+
190
+ # source://rspec-support//lib/rspec/support.rb#23
191
+ def require_rspec_support(f); end
192
+
193
+ # gives a string representation of an object for use in RSpec descriptions
194
+ #
195
+ # @api private
196
+ #
197
+ # source://rspec-support//lib/rspec/support/matcher_definition.rb#34
198
+ def rspec_description_for_object(object); end
199
+
200
+ # A single thread local variable so we don't excessively pollute that namespace.
201
+ #
202
+ # source://rspec-support//lib/rspec/support.rb#92
203
+ def thread_local_data; end
204
+
205
+ # @api private
206
+ #
207
+ # source://rspec-support//lib/rspec/support.rb#132
208
+ def warning_notifier; end
209
+
210
+ # @api private
211
+ #
212
+ # source://rspec-support//lib/rspec/support.rb#125
213
+ def warning_notifier=(_arg0); end
214
+
215
+ # @api private
216
+ #
217
+ # source://rspec-support//lib/rspec/support.rb#115
218
+ def with_failure_notifier(callable); end
219
+ end
220
+ end
221
+
222
+ # @private
223
+ #
224
+ # source://rspec-support//lib/rspec/support.rb#137
225
+ module RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue
226
+ class << self
227
+ # source://rspec-support//lib/rspec/support.rb#142
228
+ def ===(exception); end
229
+ end
230
+ end
231
+
232
+ # These exceptions are dangerous to rescue as rescuing them
233
+ # would interfere with things we should not interfere with.
234
+ #
235
+ # source://rspec-support//lib/rspec/support.rb#140
236
+ RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue::AVOID_RESCUING = T.let(T.unsafe(nil), Array)
237
+
238
+ # Deals with the slightly different semantics of block arguments.
239
+ # For methods, arguments are required unless a default value is provided.
240
+ # For blocks, arguments are optional, even if no default value is provided.
241
+ #
242
+ # However, we want to treat block args as required since you virtually
243
+ # always want to pass a value for each received argument and our
244
+ # `and_yield` has treated block args as required for many years.
245
+ #
246
+ # @api private
247
+ #
248
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#266
249
+ class RSpec::Support::BlockSignature < ::RSpec::Support::MethodSignature
250
+ # @api private
251
+ #
252
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#268
253
+ def classify_parameters; end
254
+ end
255
+
256
+ # @private
257
+ #
258
+ # source://rspec-support//lib/rspec/support/comparable_version.rb#4
259
+ class RSpec::Support::ComparableVersion
260
+ include ::Comparable
261
+
262
+ # @return [ComparableVersion] a new instance of ComparableVersion
263
+ #
264
+ # source://rspec-support//lib/rspec/support/comparable_version.rb#9
265
+ def initialize(string); end
266
+
267
+ # source://rspec-support//lib/rspec/support/comparable_version.rb#13
268
+ def <=>(other); end
269
+
270
+ # source://rspec-support//lib/rspec/support/comparable_version.rb#35
271
+ def segments; end
272
+
273
+ # Returns the value of attribute string.
274
+ #
275
+ # source://rspec-support//lib/rspec/support/comparable_version.rb#7
276
+ def string; end
277
+ end
278
+
279
+ # @private
280
+ #
281
+ # source://rspec-support//lib/rspec/support.rb#102
282
+ RSpec::Support::DEFAULT_FAILURE_NOTIFIER = T.let(T.unsafe(nil), Proc)
283
+
284
+ # @private
285
+ #
286
+ # source://rspec-support//lib/rspec/support.rb#129
287
+ RSpec::Support::DEFAULT_WARNING_NOTIFIER = T.let(T.unsafe(nil), Proc)
288
+
289
+ # source://rspec-support//lib/rspec/support/differ.rb#10
290
+ class RSpec::Support::Differ
291
+ # @return [Differ] a new instance of Differ
292
+ #
293
+ # source://rspec-support//lib/rspec/support/differ.rb#67
294
+ def initialize(opts = T.unsafe(nil)); end
295
+
296
+ # @return [Boolean]
297
+ #
298
+ # source://rspec-support//lib/rspec/support/differ.rb#63
299
+ def color?; end
300
+
301
+ # source://rspec-support//lib/rspec/support/differ.rb#11
302
+ def diff(actual, expected); end
303
+
304
+ # source://rspec-support//lib/rspec/support/differ.rb#57
305
+ def diff_as_object(actual, expected); end
306
+
307
+ # source://rspec-support//lib/rspec/support/differ.rb#28
308
+ def diff_as_string(actual, expected); end
309
+
310
+ private
311
+
312
+ # source://rspec-support//lib/rspec/support/differ.rb#128
313
+ def add_old_hunk_to_hunk(hunk, oldhunk); end
314
+
315
+ # source://rspec-support//lib/rspec/support/differ.rb#124
316
+ def add_to_output(output, string); end
317
+
318
+ # @return [Boolean]
319
+ #
320
+ # source://rspec-support//lib/rspec/support/differ.rb#78
321
+ def all_strings?(*args); end
322
+
323
+ # @return [Boolean]
324
+ #
325
+ # source://rspec-support//lib/rspec/support/differ.rb#82
326
+ def any_multiline_strings?(*args); end
327
+
328
+ # source://rspec-support//lib/rspec/support/differ.rb#153
329
+ def blue(text); end
330
+
331
+ # source://rspec-support//lib/rspec/support/differ.rb#115
332
+ def build_hunks(actual, expected); end
333
+
334
+ # source://rspec-support//lib/rspec/support/differ.rb#90
335
+ def coerce_to_string(string_or_array); end
336
+
337
+ # source://rspec-support//lib/rspec/support/differ.rb#141
338
+ def color(text, color_code); end
339
+
340
+ # source://rspec-support//lib/rspec/support/differ.rb#161
341
+ def color_diff(diff); end
342
+
343
+ # source://rspec-support//lib/rspec/support/differ.rb#95
344
+ def diffably_stringify(array); end
345
+
346
+ # source://rspec-support//lib/rspec/support/differ.rb#119
347
+ def finalize_output(output, final_line); end
348
+
349
+ # source://rspec-support//lib/rspec/support/differ.rb#137
350
+ def format_type; end
351
+
352
+ # source://rspec-support//lib/rspec/support/differ.rb#149
353
+ def green(text); end
354
+
355
+ # source://rspec-support//lib/rspec/support/differ.rb#202
356
+ def handle_encoding_errors(actual, expected); end
357
+
358
+ # source://rspec-support//lib/rspec/support/differ.rb#192
359
+ def hash_to_string(hash); end
360
+
361
+ # @return [Boolean]
362
+ #
363
+ # source://rspec-support//lib/rspec/support/differ.rb#106
364
+ def multiline?(string); end
365
+
366
+ # @return [Boolean]
367
+ #
368
+ # source://rspec-support//lib/rspec/support/differ.rb#86
369
+ def no_numbers?(*args); end
370
+
371
+ # @return [Boolean]
372
+ #
373
+ # source://rspec-support//lib/rspec/support/differ.rb#74
374
+ def no_procs?(*args); end
375
+
376
+ # source://rspec-support//lib/rspec/support/differ.rb#157
377
+ def normal(text); end
378
+
379
+ # source://rspec-support//lib/rspec/support/differ.rb#178
380
+ def object_to_string(object); end
381
+
382
+ # source://rspec-support//lib/rspec/support/differ.rb#145
383
+ def red(text); end
384
+
385
+ # source://rspec-support//lib/rspec/support/differ.rb#132
386
+ def safely_flatten(array); end
387
+ end
388
+
389
+ # Replacement for fileutils#mkdir_p because we don't want to require parts
390
+ # of stdlib in RSpec.
391
+ #
392
+ # @api private
393
+ #
394
+ # source://rspec-support//lib/rspec/support/directory_maker.rb#9
395
+ class RSpec::Support::DirectoryMaker
396
+ class << self
397
+ # Implements nested directory construction
398
+ #
399
+ # @api private
400
+ #
401
+ # source://rspec-support//lib/rspec/support/directory_maker.rb#13
402
+ def mkdir_p(path); end
403
+
404
+ private
405
+
406
+ # @api private
407
+ # @return [Boolean]
408
+ #
409
+ # source://rspec-support//lib/rspec/support/directory_maker.rb#55
410
+ def directory_exists?(dirname); end
411
+
412
+ # @api private
413
+ #
414
+ # source://rspec-support//lib/rspec/support/directory_maker.rb#50
415
+ def generate_path(stack, part); end
416
+
417
+ # @api private
418
+ #
419
+ # source://rspec-support//lib/rspec/support/directory_maker.rb#47
420
+ def generate_stack(path); end
421
+ end
422
+ end
423
+
424
+ # @private
425
+ #
426
+ # source://rspec-support//lib/rspec/support/encoded_string.rb#4
427
+ class RSpec::Support::EncodedString
428
+ # @return [EncodedString] a new instance of EncodedString
429
+ #
430
+ # source://rspec-support//lib/rspec/support/encoded_string.rb#14
431
+ def initialize(string, encoding = T.unsafe(nil)); end
432
+
433
+ # source://rspec-support//lib/rspec/support/encoded_string.rb#26
434
+ def <<(string); end
435
+
436
+ # source://rspec-support//lib/rspec/support/encoded_string.rb#23
437
+ def ==(*args, &block); end
438
+
439
+ # source://rspec-support//lib/rspec/support/encoded_string.rb#23
440
+ def empty?(*args, &block); end
441
+
442
+ # source://rspec-support//lib/rspec/support/encoded_string.rb#23
443
+ def encoding(*args, &block); end
444
+
445
+ # source://rspec-support//lib/rspec/support/encoded_string.rb#23
446
+ def eql?(*args, &block); end
447
+
448
+ # source://rspec-support//lib/rspec/support/encoded_string.rb#23
449
+ def lines(*args, &block); end
450
+
451
+ # Returns the value of attribute source_encoding.
452
+ #
453
+ # source://rspec-support//lib/rspec/support/encoded_string.rb#19
454
+ def source_encoding; end
455
+
456
+ # source://rspec-support//lib/rspec/support/encoded_string.rb#39
457
+ def split(regex_or_string); end
458
+
459
+ # source://rspec-support//lib/rspec/support/encoded_string.rb#44
460
+ def to_s; end
461
+
462
+ # source://rspec-support//lib/rspec/support/encoded_string.rb#44
463
+ def to_str; end
464
+
465
+ private
466
+
467
+ # source://rspec-support//lib/rspec/support/encoded_string.rb#137
468
+ def detect_source_encoding(string); end
469
+
470
+ # Encoding Exceptions:
471
+ #
472
+ # Raised by Encoding and String methods:
473
+ # Encoding::UndefinedConversionError:
474
+ # when a transcoding operation fails
475
+ # if the String contains characters invalid for the target encoding
476
+ # e.g. "\x80".encode('UTF-8','ASCII-8BIT')
477
+ # vs "\x80".encode('UTF-8','ASCII-8BIT', undef: :replace, replace: '<undef>')
478
+ # # => '<undef>'
479
+ # Encoding::CompatibilityError
480
+ # when Encoding.compatible?(str1, str2) is nil
481
+ # e.g. utf_16le_emoji_string.split("\n")
482
+ # e.g. valid_unicode_string.encode(utf8_encoding) << ascii_string
483
+ # Encoding::InvalidByteSequenceError:
484
+ # when the string being transcoded contains a byte invalid for
485
+ # either the source or target encoding
486
+ # e.g. "\x80".encode('UTF-8','US-ASCII')
487
+ # vs "\x80".encode('UTF-8','US-ASCII', invalid: :replace, replace: '<byte>')
488
+ # # => '<byte>'
489
+ # ArgumentError
490
+ # when operating on a string with invalid bytes
491
+ # e.g."\x80".split("\n")
492
+ # TypeError
493
+ # when a symbol is passed as an encoding
494
+ # Encoding.find(:"UTF-8")
495
+ # when calling force_encoding on an object
496
+ # that doesn't respond to #to_str
497
+ #
498
+ # Raised by transcoding methods:
499
+ # Encoding::ConverterNotFoundError:
500
+ # when a named encoding does not correspond with a known converter
501
+ # e.g. 'abc'.force_encoding('UTF-8').encode('foo')
502
+ # or a converter path cannot be found
503
+ # e.g. "\x80".force_encoding('ASCII-8BIT').encode('Emacs-Mule')
504
+ #
505
+ # Raised by byte <-> char conversions
506
+ # RangeError: out of char range
507
+ # e.g. the UTF-16LE emoji: 128169.chr
508
+ #
509
+ # source://rspec-support//lib/rspec/support/encoded_string.rb#91
510
+ def matching_encoding(string); end
511
+
512
+ # http://stackoverflow.com/a/8711118/879854
513
+ # Loop over chars in a string replacing chars
514
+ # with invalid encoding, which is a pretty good proxy
515
+ # for the invalid byte sequence that causes an ArgumentError
516
+ #
517
+ # source://rspec-support//lib/rspec/support/encoded_string.rb#122
518
+ def remove_invalid_bytes(string); end
519
+
520
+ class << self
521
+ # source://rspec-support//lib/rspec/support/encoded_string.rb#141
522
+ def pick_encoding(source_a, source_b); end
523
+ end
524
+ end
525
+
526
+ # Ruby's default replacement string is:
527
+ # U+FFFD ("\xEF\xBF\xBD"), for Unicode encoding forms, else
528
+ # ? ("\x3F")
529
+ #
530
+ # source://rspec-support//lib/rspec/support/encoded_string.rb#12
531
+ RSpec::Support::EncodedString::REPLACE = T.let(T.unsafe(nil), String)
532
+
533
+ # source://rspec-support//lib/rspec/support/encoded_string.rb#7
534
+ RSpec::Support::EncodedString::US_ASCII = T.let(T.unsafe(nil), String)
535
+
536
+ # Reduce allocations by storing constants.
537
+ #
538
+ # source://rspec-support//lib/rspec/support/encoded_string.rb#6
539
+ RSpec::Support::EncodedString::UTF_8 = T.let(T.unsafe(nil), String)
540
+
541
+ # @private
542
+ #
543
+ # source://rspec-support//lib/rspec/support/hunk_generator.rb#7
544
+ class RSpec::Support::HunkGenerator
545
+ # @return [HunkGenerator] a new instance of HunkGenerator
546
+ #
547
+ # source://rspec-support//lib/rspec/support/hunk_generator.rb#8
548
+ def initialize(actual, expected); end
549
+
550
+ # source://rspec-support//lib/rspec/support/hunk_generator.rb#13
551
+ def hunks; end
552
+
553
+ private
554
+
555
+ # source://rspec-support//lib/rspec/support/hunk_generator.rb#30
556
+ def actual_lines; end
557
+
558
+ # source://rspec-support//lib/rspec/support/hunk_generator.rb#34
559
+ def build_hunk(piece); end
560
+
561
+ # source://rspec-support//lib/rspec/support/hunk_generator.rb#42
562
+ def context_lines; end
563
+
564
+ # source://rspec-support//lib/rspec/support/hunk_generator.rb#22
565
+ def diffs; end
566
+
567
+ # source://rspec-support//lib/rspec/support/hunk_generator.rb#26
568
+ def expected_lines; end
569
+ end
570
+
571
+ # @api private
572
+ #
573
+ # source://rspec-support//lib/rspec/support.rb#38
574
+ RSpec::Support::KERNEL_METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod)
575
+
576
+ # Allows matchers to be used instead of providing keyword arguments. In
577
+ # practice, when this happens only the arity of the method is verified.
578
+ #
579
+ # @private
580
+ #
581
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#391
582
+ class RSpec::Support::LooseSignatureVerifier < ::RSpec::Support::MethodSignatureVerifier
583
+ private
584
+
585
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#394
586
+ def split_args(*args); end
587
+ end
588
+
589
+ # If a matcher is used in a signature in place of keyword arguments, all
590
+ # keyword argument validation needs to be skipped since the matcher is
591
+ # opaque.
592
+ #
593
+ # Instead, keyword arguments will be validated when the method is called
594
+ # and they are actually known.
595
+ #
596
+ # @private
597
+ #
598
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#411
599
+ class RSpec::Support::LooseSignatureVerifier::SignatureWithKeywordArgumentsMatcher
600
+ # @return [SignatureWithKeywordArgumentsMatcher] a new instance of SignatureWithKeywordArgumentsMatcher
601
+ #
602
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#412
603
+ def initialize(signature); end
604
+
605
+ # @return [Boolean]
606
+ #
607
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#432
608
+ def has_kw_args_in?(args); end
609
+
610
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#420
611
+ def invalid_kw_args_from(_kw_args); end
612
+
613
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#416
614
+ def missing_kw_args_from(_kw_args); end
615
+
616
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#424
617
+ def non_kw_args_arity_description; end
618
+
619
+ # @return [Boolean]
620
+ #
621
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#428
622
+ def valid_non_kw_args?(*args); end
623
+ end
624
+
625
+ # Extracts info about the number of arguments and allowed/required
626
+ # keyword args of a given method.
627
+ #
628
+ # @private
629
+ #
630
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#11
631
+ class RSpec::Support::MethodSignature
632
+ # @return [MethodSignature] a new instance of MethodSignature
633
+ #
634
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#14
635
+ def initialize(method); end
636
+
637
+ # @return [Boolean]
638
+ #
639
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#96
640
+ def arbitrary_kw_args?; end
641
+
642
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#36
643
+ def classify_arity(arity = T.unsafe(nil)); end
644
+
645
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#104
646
+ def classify_parameters; end
647
+
648
+ # Without considering what the last arg is, could it
649
+ # contain keyword arguments?
650
+ #
651
+ # @return [Boolean]
652
+ #
653
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#90
654
+ def could_contain_kw_args?(args); end
655
+
656
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#49
657
+ def description; end
658
+
659
+ # If the last argument is Hash, Ruby will treat only symbol keys as keyword arguments
660
+ # the rest will be grouped in another Hash and passed as positional argument.
661
+ #
662
+ # @return [Boolean]
663
+ #
664
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#82
665
+ def has_kw_args_in?(args); end
666
+
667
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#75
668
+ def invalid_kw_args_from(given_kw_args); end
669
+
670
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#12
671
+ def max_non_kw_args; end
672
+
673
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#12
674
+ def min_non_kw_args; end
675
+
676
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#71
677
+ def missing_kw_args_from(given_kw_args); end
678
+
679
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#21
680
+ def non_kw_args_arity_description; end
681
+
682
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#12
683
+ def optional_kw_args; end
684
+
685
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#12
686
+ def required_kw_args; end
687
+
688
+ # @return [Boolean]
689
+ #
690
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#100
691
+ def unlimited_args?; end
692
+
693
+ # @return [Boolean]
694
+ #
695
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#29
696
+ def valid_non_kw_args?(positional_arg_count, optional_max_arg_count = T.unsafe(nil)); end
697
+ end
698
+
699
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#160
700
+ RSpec::Support::MethodSignature::INFINITY = T.let(T.unsafe(nil), Float)
701
+
702
+ # Encapsulates expectations about the number of arguments and
703
+ # allowed/required keyword args of a given method.
704
+ #
705
+ # @api private
706
+ #
707
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#217
708
+ class RSpec::Support::MethodSignatureExpectation
709
+ # @api private
710
+ # @return [MethodSignatureExpectation] a new instance of MethodSignatureExpectation
711
+ #
712
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#218
713
+ def initialize; end
714
+
715
+ # @api private
716
+ # @return [Boolean]
717
+ #
718
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#245
719
+ def empty?; end
720
+
721
+ # @api private
722
+ #
723
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229
724
+ def expect_arbitrary_keywords; end
725
+
726
+ # @api private
727
+ #
728
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229
729
+ def expect_arbitrary_keywords=(_arg0); end
730
+
731
+ # @api private
732
+ #
733
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229
734
+ def expect_unlimited_arguments; end
735
+
736
+ # @api private
737
+ #
738
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229
739
+ def expect_unlimited_arguments=(_arg0); end
740
+
741
+ # @api private
742
+ #
743
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#227
744
+ def keywords; end
745
+
746
+ # @api private
747
+ #
748
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#252
749
+ def keywords=(values); end
750
+
751
+ # @api private
752
+ #
753
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#227
754
+ def max_count; end
755
+
756
+ # @api private
757
+ # @raise [ArgumentError]
758
+ #
759
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#231
760
+ def max_count=(number); end
761
+
762
+ # @api private
763
+ #
764
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#227
765
+ def min_count; end
766
+
767
+ # @api private
768
+ # @raise [ArgumentError]
769
+ #
770
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#238
771
+ def min_count=(number); end
772
+ end
773
+
774
+ # Abstract base class for signature verifiers.
775
+ #
776
+ # @api private
777
+ #
778
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#278
779
+ class RSpec::Support::MethodSignatureVerifier
780
+ # @api private
781
+ # @return [MethodSignatureVerifier] a new instance of MethodSignatureVerifier
782
+ #
783
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#281
784
+ def initialize(signature, args = T.unsafe(nil)); end
785
+
786
+ # @api private
787
+ #
788
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#324
789
+ def error_message; end
790
+
791
+ # @api private
792
+ #
793
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#279
794
+ def kw_args; end
795
+
796
+ # @api private
797
+ #
798
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#279
799
+ def max_non_kw_args; end
800
+
801
+ # @api private
802
+ #
803
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#279
804
+ def min_non_kw_args; end
805
+
806
+ # @api private
807
+ #
808
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#279
809
+ def non_kw_args; end
810
+
811
+ # @api private
812
+ # @return [Boolean]
813
+ #
814
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#316
815
+ def valid?; end
816
+
817
+ # @api private
818
+ #
819
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#288
820
+ def with_expectation(expectation); end
821
+
822
+ private
823
+
824
+ # @api private
825
+ # @return [Boolean]
826
+ #
827
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#355
828
+ def arbitrary_kw_args?; end
829
+
830
+ # @api private
831
+ #
832
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#351
833
+ def invalid_kw_args; end
834
+
835
+ # @api private
836
+ #
837
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#347
838
+ def missing_kw_args; end
839
+
840
+ # @api private
841
+ #
842
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#363
843
+ def split_args(*args); end
844
+
845
+ # @api private
846
+ # @return [Boolean]
847
+ #
848
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#359
849
+ def unlimited_args?; end
850
+
851
+ # @api private
852
+ # @return [Boolean]
853
+ #
854
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#343
855
+ def valid_non_kw_args?; end
856
+ end
857
+
858
+ # On 1.9 and up, this is in core, so we just use the real one
859
+ #
860
+ # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#65
861
+ class RSpec::Support::Mutex < ::Thread::Mutex
862
+ class << self
863
+ # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#68
864
+ def new; end
865
+ end
866
+ end
867
+
868
+ # If you mock Mutex.new you break our usage of Mutex, so
869
+ # instead we capture the original method to return Mutexs.
870
+ #
871
+ # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#66
872
+ RSpec::Support::Mutex::NEW_MUTEX_METHOD = T.let(T.unsafe(nil), Method)
873
+
874
+ # Provides query methods for different OS or OS features.
875
+ #
876
+ # @api private
877
+ #
878
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#9
879
+ module RSpec::Support::OS
880
+ private
881
+
882
+ # @api private
883
+ #
884
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#12
885
+ def windows?; end
886
+
887
+ # @api private
888
+ #
889
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#16
890
+ def windows_file_path?; end
891
+
892
+ class << self
893
+ # @api private
894
+ # @return [Boolean]
895
+ #
896
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#12
897
+ def windows?; end
898
+
899
+ # @api private
900
+ # @return [Boolean]
901
+ #
902
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#16
903
+ def windows_file_path?; end
904
+ end
905
+ end
906
+
907
+ # Provide additional output details beyond what `inspect` provides when
908
+ # printing Time, DateTime, or BigDecimal
909
+ #
910
+ # @api private
911
+ #
912
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#8
913
+ class RSpec::Support::ObjectFormatter
914
+ # @api private
915
+ # @return [ObjectFormatter] a new instance of ObjectFormatter
916
+ #
917
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#27
918
+ def initialize(max_formatted_output_length = T.unsafe(nil)); end
919
+
920
+ # @api private
921
+ #
922
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#32
923
+ def format(object); end
924
+
925
+ # @api private
926
+ #
927
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#11
928
+ def max_formatted_output_length; end
929
+
930
+ # @api private
931
+ #
932
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#11
933
+ def max_formatted_output_length=(_arg0); end
934
+
935
+ # @api private
936
+ #
937
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#68
938
+ def prepare_array(array); end
939
+
940
+ # @api private
941
+ #
942
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#92
943
+ def prepare_element(element); end
944
+
945
+ # Prepares the provided object to be formatted by wrapping it as needed
946
+ # in something that, when `inspect` is called on it, will produce the
947
+ # desired output.
948
+ #
949
+ # This allows us to apply the desired formatting to hash/array data structures
950
+ # at any level of nesting, simply by walking that structure and replacing items
951
+ # with custom items that have `inspect` defined to return the desired output
952
+ # for that item. Then we can just use `Array#inspect` or `Hash#inspect` to
953
+ # format the entire thing.
954
+ #
955
+ # @api private
956
+ #
957
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#56
958
+ def prepare_for_inspection(object); end
959
+
960
+ # @api private
961
+ #
962
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#74
963
+ def prepare_hash(input_hash); end
964
+
965
+ # @api private
966
+ # @return [Boolean]
967
+ #
968
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#111
969
+ def recursive_structure?(object); end
970
+
971
+ # @api private
972
+ #
973
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#84
974
+ def sort_hash_keys(input_hash); end
975
+
976
+ # @api private
977
+ #
978
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#104
979
+ def with_entering_structure(structure); end
980
+
981
+ private
982
+
983
+ # Returns the substring defined by the start_index and end_index
984
+ # If the string ends with a partial ANSI code code then that
985
+ # will be removed as printing partial ANSI
986
+ # codes to the terminal can lead to corruption
987
+ #
988
+ # @api private
989
+ #
990
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#266
991
+ def truncate_string(str, start_index, end_index); end
992
+
993
+ class << self
994
+ # Methods are deferred to a default instance of the class to maintain the interface
995
+ # For example, calling ObjectFormatter.format is still possible
996
+ #
997
+ # @api private
998
+ #
999
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#15
1000
+ def default_instance; end
1001
+
1002
+ # @api private
1003
+ #
1004
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#19
1005
+ def format(object); end
1006
+
1007
+ # @api private
1008
+ #
1009
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#23
1010
+ def prepare_for_inspection(object); end
1011
+ end
1012
+ end
1013
+
1014
+ # @api private
1015
+ #
1016
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#125
1017
+ class RSpec::Support::ObjectFormatter::BaseInspector < ::Struct
1018
+ # Returns the value of attribute formatter
1019
+ #
1020
+ # @return [Object] the current value of formatter
1021
+ def formatter; end
1022
+
1023
+ # Sets the attribute formatter
1024
+ #
1025
+ # @param value [Object] the value to set the attribute formatter to.
1026
+ # @return [Object] the newly set value
1027
+ def formatter=(_); end
1028
+
1029
+ # @api private
1030
+ # @raise [NotImplementedError]
1031
+ #
1032
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#130
1033
+ def inspect; end
1034
+
1035
+ # Returns the value of attribute object
1036
+ #
1037
+ # @return [Object] the current value of object
1038
+ def object; end
1039
+
1040
+ # Sets the attribute object
1041
+ #
1042
+ # @param value [Object] the value to set the attribute object to.
1043
+ # @return [Object] the newly set value
1044
+ def object=(_); end
1045
+
1046
+ # @api private
1047
+ #
1048
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#134
1049
+ def pretty_print(pp); end
1050
+
1051
+ class << self
1052
+ def [](*_arg0); end
1053
+
1054
+ # @api private
1055
+ # @raise [NotImplementedError]
1056
+ # @return [Boolean]
1057
+ #
1058
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#126
1059
+ def can_inspect?(_object); end
1060
+
1061
+ def inspect; end
1062
+ def keyword_init?; end
1063
+ def members; end
1064
+ def new(*_arg0); end
1065
+ end
1066
+ end
1067
+
1068
+ # @api private
1069
+ #
1070
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#175
1071
+ class RSpec::Support::ObjectFormatter::BigDecimalInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
1072
+ # @api private
1073
+ #
1074
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#180
1075
+ def inspect; end
1076
+
1077
+ class << self
1078
+ # @api private
1079
+ # @return [Boolean]
1080
+ #
1081
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#176
1082
+ def can_inspect?(object); end
1083
+ end
1084
+ end
1085
+
1086
+ # @api private
1087
+ #
1088
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#157
1089
+ class RSpec::Support::ObjectFormatter::DateTimeInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
1090
+ # ActiveSupport sometimes overrides inspect. If `ActiveSupport` is
1091
+ # defined use a custom format string that includes more time precision.
1092
+ #
1093
+ # @api private
1094
+ #
1095
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#166
1096
+ def inspect; end
1097
+
1098
+ class << self
1099
+ # @api private
1100
+ # @return [Boolean]
1101
+ #
1102
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#160
1103
+ def can_inspect?(object); end
1104
+ end
1105
+ end
1106
+
1107
+ # @api private
1108
+ #
1109
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#158
1110
+ RSpec::Support::ObjectFormatter::DateTimeInspector::FORMAT = T.let(T.unsafe(nil), String)
1111
+
1112
+ # @api private
1113
+ #
1114
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#222
1115
+ class RSpec::Support::ObjectFormatter::DelegatorInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
1116
+ # @api private
1117
+ #
1118
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#227
1119
+ def inspect; end
1120
+
1121
+ class << self
1122
+ # @api private
1123
+ # @return [Boolean]
1124
+ #
1125
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#223
1126
+ def can_inspect?(object); end
1127
+ end
1128
+ end
1129
+
1130
+ # @api private
1131
+ #
1132
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#185
1133
+ class RSpec::Support::ObjectFormatter::DescribableMatcherInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
1134
+ # @api private
1135
+ #
1136
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#190
1137
+ def inspect; end
1138
+
1139
+ class << self
1140
+ # @api private
1141
+ # @return [Boolean]
1142
+ #
1143
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#186
1144
+ def can_inspect?(object); end
1145
+ end
1146
+ end
1147
+
1148
+ # @api private
1149
+ #
1150
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#9
1151
+ RSpec::Support::ObjectFormatter::ELLIPSIS = T.let(T.unsafe(nil), String)
1152
+
1153
+ # @api private
1154
+ #
1155
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#245
1156
+ RSpec::Support::ObjectFormatter::INSPECTOR_CLASSES = T.let(T.unsafe(nil), Array)
1157
+
1158
+ # @api private
1159
+ #
1160
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#115
1161
+ class RSpec::Support::ObjectFormatter::InspectableItem < ::Struct
1162
+ # @api private
1163
+ #
1164
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#116
1165
+ def inspect; end
1166
+
1167
+ # @api private
1168
+ #
1169
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#120
1170
+ def pretty_print(pp); end
1171
+
1172
+ # Returns the value of attribute text
1173
+ #
1174
+ # @return [Object] the current value of text
1175
+ def text; end
1176
+
1177
+ # Sets the attribute text
1178
+ #
1179
+ # @param value [Object] the value to set the attribute text to.
1180
+ # @return [Object] the newly set value
1181
+ def text=(_); end
1182
+
1183
+ class << self
1184
+ def [](*_arg0); end
1185
+ def inspect; end
1186
+ def keyword_init?; end
1187
+ def members; end
1188
+ def new(*_arg0); end
1189
+ end
1190
+ end
1191
+
1192
+ # @api private
1193
+ #
1194
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#232
1195
+ class RSpec::Support::ObjectFormatter::InspectableObjectInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
1196
+ # @api private
1197
+ #
1198
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#240
1199
+ def inspect; end
1200
+
1201
+ class << self
1202
+ # @api private
1203
+ # @return [Boolean]
1204
+ #
1205
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#233
1206
+ def can_inspect?(object); end
1207
+ end
1208
+ end
1209
+
1210
+ # @api private
1211
+ #
1212
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#139
1213
+ class RSpec::Support::ObjectFormatter::TimeInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
1214
+ # for 1.8.7
1215
+ #
1216
+ # @api private
1217
+ #
1218
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#147
1219
+ def inspect; end
1220
+
1221
+ class << self
1222
+ # @api private
1223
+ # @return [Boolean]
1224
+ #
1225
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#142
1226
+ def can_inspect?(object); end
1227
+ end
1228
+ end
1229
+
1230
+ # @api private
1231
+ #
1232
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#140
1233
+ RSpec::Support::ObjectFormatter::TimeInspector::FORMAT = T.let(T.unsafe(nil), String)
1234
+
1235
+ # @api private
1236
+ #
1237
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#195
1238
+ class RSpec::Support::ObjectFormatter::UninspectableObjectInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
1239
+ # @api private
1240
+ #
1241
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#205
1242
+ def inspect; end
1243
+
1244
+ # @api private
1245
+ #
1246
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#209
1247
+ def klass; end
1248
+
1249
+ # http://stackoverflow.com/a/2818916
1250
+ #
1251
+ # @api private
1252
+ #
1253
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#214
1254
+ def native_object_id; end
1255
+
1256
+ class << self
1257
+ # @api private
1258
+ # @return [Boolean]
1259
+ #
1260
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#198
1261
+ def can_inspect?(object); end
1262
+ end
1263
+ end
1264
+
1265
+ # @api private
1266
+ #
1267
+ # source://rspec-support//lib/rspec/support/object_formatter.rb#196
1268
+ RSpec::Support::ObjectFormatter::UninspectableObjectInspector::OBJECT_ID_FORMAT = T.let(T.unsafe(nil), String)
1269
+
1270
+ # Provides recursive constant lookup methods useful for
1271
+ # constant stubbing.
1272
+ #
1273
+ # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#5
1274
+ module RSpec::Support::RecursiveConstMethods
1275
+ # @return [Boolean]
1276
+ #
1277
+ # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#43
1278
+ def const_defined_on?(mod, const_name); end
1279
+
1280
+ # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#51
1281
+ def constants_defined_on(mod); end
1282
+
1283
+ # @raise [NameError]
1284
+ #
1285
+ # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#47
1286
+ def get_const_defined_on(mod, const_name); end
1287
+
1288
+ # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#71
1289
+ def normalize_const_name(const_name); end
1290
+
1291
+ # @return [Boolean]
1292
+ #
1293
+ # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#62
1294
+ def recursive_const_defined?(const_name); end
1295
+
1296
+ # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#56
1297
+ def recursive_const_get(const_name); end
1298
+ end
1299
+
1300
+ # Allows a thread to lock out other threads from a critical section of code,
1301
+ # while allowing the thread with the lock to reenter that section.
1302
+ #
1303
+ # Based on Monitor as of 2.2 -
1304
+ # https://github.com/ruby/ruby/blob/eb7ddaa3a47bf48045d26c72eb0f263a53524ebc/lib/monitor.rb#L9
1305
+ #
1306
+ # Depends on Mutex, but Mutex is only available as part of core since 1.9.1:
1307
+ # exists - http://ruby-doc.org/core-1.9.1/Mutex.html
1308
+ # dne - http://ruby-doc.org/core-1.9.0/Mutex.html
1309
+ #
1310
+ # @private
1311
+ #
1312
+ # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#14
1313
+ class RSpec::Support::ReentrantMutex
1314
+ # @return [ReentrantMutex] a new instance of ReentrantMutex
1315
+ #
1316
+ # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#15
1317
+ def initialize; end
1318
+
1319
+ # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#21
1320
+ def synchronize; end
1321
+
1322
+ private
1323
+
1324
+ # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#33
1325
+ def enter; end
1326
+
1327
+ # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#38
1328
+ def exit; end
1329
+ end
1330
+
1331
+ # Provides query methods for different rubies
1332
+ #
1333
+ # @api private
1334
+ #
1335
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#24
1336
+ module RSpec::Support::Ruby
1337
+ private
1338
+
1339
+ # @api private
1340
+ #
1341
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#27
1342
+ def jruby?; end
1343
+
1344
+ # @api private
1345
+ #
1346
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#35
1347
+ def jruby_9000?; end
1348
+
1349
+ # @api private
1350
+ #
1351
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#31
1352
+ def jruby_version; end
1353
+
1354
+ # @api private
1355
+ #
1356
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#47
1357
+ def mri?; end
1358
+
1359
+ # @api private
1360
+ #
1361
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#43
1362
+ def non_mri?; end
1363
+
1364
+ # @api private
1365
+ #
1366
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#39
1367
+ def rbx?; end
1368
+
1369
+ # @api private
1370
+ #
1371
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#51
1372
+ def truffleruby?; end
1373
+
1374
+ class << self
1375
+ # @api private
1376
+ # @return [Boolean]
1377
+ #
1378
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#27
1379
+ def jruby?; end
1380
+
1381
+ # @api private
1382
+ # @return [Boolean]
1383
+ #
1384
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#35
1385
+ def jruby_9000?; end
1386
+
1387
+ # @api private
1388
+ #
1389
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#31
1390
+ def jruby_version; end
1391
+
1392
+ # @api private
1393
+ # @return [Boolean]
1394
+ #
1395
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#47
1396
+ def mri?; end
1397
+
1398
+ # @api private
1399
+ # @return [Boolean]
1400
+ #
1401
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#43
1402
+ def non_mri?; end
1403
+
1404
+ # @api private
1405
+ # @return [Boolean]
1406
+ #
1407
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#39
1408
+ def rbx?; end
1409
+
1410
+ # @api private
1411
+ # @return [Boolean]
1412
+ #
1413
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#51
1414
+ def truffleruby?; end
1415
+ end
1416
+ end
1417
+
1418
+ # Provides query methods for ruby features that differ among
1419
+ # implementations.
1420
+ #
1421
+ # @api private
1422
+ #
1423
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#60
1424
+ module RSpec::Support::RubyFeatures
1425
+ private
1426
+
1427
+ # @api private
1428
+ #
1429
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#83
1430
+ def caller_locations_supported?; end
1431
+
1432
+ # @api private
1433
+ #
1434
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#132
1435
+ def distincts_kw_args_from_positional_hash?; end
1436
+
1437
+ # On JRuby 1.7 `--1.8` mode, `Process.respond_to?(:fork)` returns true,
1438
+ # but when you try to fork, it raises an error:
1439
+ # NotImplementedError: fork is not available on this platform
1440
+ #
1441
+ # When we drop support for JRuby 1.7 and/or Ruby 1.8, we can drop
1442
+ # this special case.
1443
+ #
1444
+ # @api private
1445
+ # @return [Boolean]
1446
+ #
1447
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#74
1448
+ def fork_supported?; end
1449
+
1450
+ # @api private
1451
+ # @return [Boolean]
1452
+ #
1453
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#137
1454
+ def kw_args_supported?; end
1455
+
1456
+ # @api private
1457
+ #
1458
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#193
1459
+ def module_prepends_supported?; end
1460
+
1461
+ # @api private
1462
+ #
1463
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#189
1464
+ def module_refinement_supported?; end
1465
+
1466
+ # @api private
1467
+ #
1468
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#79
1469
+ def optional_and_splat_args_supported?; end
1470
+
1471
+ # @api private
1472
+ # @return [Boolean]
1473
+ #
1474
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#141
1475
+ def required_kw_args_supported?; end
1476
+
1477
+ # @api private
1478
+ # @return [Boolean]
1479
+ #
1480
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#123
1481
+ def ripper_supported?; end
1482
+
1483
+ # @api private
1484
+ # @return [Boolean]
1485
+ #
1486
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#88
1487
+ def supports_exception_cause?; end
1488
+
1489
+ # @api private
1490
+ # @return [Boolean]
1491
+ #
1492
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#145
1493
+ def supports_rebinding_module_methods?; end
1494
+
1495
+ # @api private
1496
+ # @return [Boolean]
1497
+ #
1498
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#98
1499
+ def supports_taint?; end
1500
+
1501
+ class << self
1502
+ # @api private
1503
+ # @return [Boolean]
1504
+ #
1505
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#83
1506
+ def caller_locations_supported?; end
1507
+
1508
+ # @api private
1509
+ # @return [Boolean]
1510
+ #
1511
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#132
1512
+ def distincts_kw_args_from_positional_hash?; end
1513
+
1514
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#74
1515
+ def fork_supported?; end
1516
+
1517
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#137
1518
+ def kw_args_supported?; end
1519
+
1520
+ # @api private
1521
+ # @return [Boolean]
1522
+ #
1523
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#193
1524
+ def module_prepends_supported?; end
1525
+
1526
+ # @api private
1527
+ # @return [Boolean]
1528
+ #
1529
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#189
1530
+ def module_refinement_supported?; end
1531
+
1532
+ # @api private
1533
+ # @return [Boolean]
1534
+ #
1535
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#79
1536
+ def optional_and_splat_args_supported?; end
1537
+
1538
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#141
1539
+ def required_kw_args_supported?; end
1540
+
1541
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#123
1542
+ def ripper_supported?; end
1543
+
1544
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#88
1545
+ def supports_exception_cause?; end
1546
+
1547
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#145
1548
+ def supports_rebinding_module_methods?; end
1549
+
1550
+ # source://rspec-support//lib/rspec/support/ruby_features.rb#98
1551
+ def supports_taint?; end
1552
+ end
1553
+ end
1554
+
1555
+ # Figures out wether a given method can accept various arguments.
1556
+ # Surprisingly non-trivial.
1557
+ #
1558
+ # @private
1559
+ #
1560
+ # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#385
1561
+ RSpec::Support::StrictSignatureVerifier = RSpec::Support::MethodSignatureVerifier
1562
+
1563
+ # source://rspec-support//lib/rspec/support/version.rb#3
1564
+ module RSpec::Support::Version; end
1565
+
1566
+ # source://rspec-support//lib/rspec/support/version.rb#4
1567
+ RSpec::Support::Version::STRING = T.let(T.unsafe(nil), String)
1568
+
1569
+ # source://rspec-support//lib/rspec/support/warnings.rb#6
1570
+ module RSpec::Support::Warnings
1571
+ # source://rspec-support//lib/rspec/support/warnings.rb#7
1572
+ def deprecate(deprecated, options = T.unsafe(nil)); end
1573
+
1574
+ # Used internally to print deprecation warnings
1575
+ # when rspec-core isn't loaded
1576
+ #
1577
+ # @private
1578
+ #
1579
+ # source://rspec-support//lib/rspec/support/warnings.rb#15
1580
+ def warn_deprecation(message, options = T.unsafe(nil)); end
1581
+
1582
+ # Used internally to print longer warnings
1583
+ #
1584
+ # @private
1585
+ #
1586
+ # source://rspec-support//lib/rspec/support/warnings.rb#29
1587
+ def warn_with(message, options = T.unsafe(nil)); end
1588
+
1589
+ # Used internally to print warnings
1590
+ #
1591
+ # @private
1592
+ #
1593
+ # source://rspec-support//lib/rspec/support/warnings.rb#22
1594
+ def warning(text, options = T.unsafe(nil)); end
1595
+ end
1596
+
1597
+ # source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#5
1598
+ module RSpec::Support::WithKeywordsWhenNeeded
1599
+ private
1600
+
1601
+ # Remove this in RSpec 4 in favour of explicitly passed in kwargs where
1602
+ # this is used. Works around a warning in Ruby 2.7
1603
+ #
1604
+ # source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#15
1605
+ def class_exec(klass, *args, **_arg2, &block); end
1606
+
1607
+ class << self
1608
+ # source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#15
1609
+ def class_exec(klass, *args, **_arg2, &block); end
1610
+ end
1611
+ end