mootool 0.1.2 → 0.2.2

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.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/.DS_Store +0 -0
  3. data/.github/workflows/ci.yml +15 -15
  4. data/.github/workflows/gem-push.yml +26 -26
  5. data/.overcommit.yml +79 -0
  6. data/.rubocop.yml +147 -0
  7. data/.ruby-version +1 -1
  8. data/.run/All Specs.run.xml +46 -0
  9. data/CODE_OF_CONDUCT.md +2 -1
  10. data/Gemfile +14 -11
  11. data/Gemfile.lock +90 -32
  12. data/README.md +12 -6
  13. data/bin/tapioca +27 -0
  14. data/lib/mootool/command.rb +1 -0
  15. data/lib/mootool/controller_base.rb +4 -1
  16. data/lib/mootool/controllers/dwarf.rb +8 -0
  17. data/lib/mootool/controllers/dyld_linker.rb +8 -0
  18. data/lib/mootool/controllers/dyld_shared_cache.rb +8 -0
  19. data/lib/mootool/controllers/fat_binary.rb +8 -0
  20. data/lib/mootool/controllers/kernel_collection.rb +21 -15
  21. data/lib/mootool/controllers/sections.rb +8 -0
  22. data/lib/mootool/core_extensions.rb +26 -0
  23. data/lib/mootool/models/device_tree.rb +85 -0
  24. data/lib/mootool/models/img4.rb +49 -0
  25. data/lib/mootool/models/ipsw.rb +19 -0
  26. data/lib/mootool/version.rb +1 -1
  27. data/lib/mootool/views/sections.full.erb +2 -2
  28. data/lib/mootool.rb +10 -3
  29. data/mootool.gemspec +17 -12
  30. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  31. data/sorbet/rbi/gems/ast@2.4.2.rbi +618 -0
  32. data/sorbet/rbi/gems/childprocess@4.1.0.rbi +447 -0
  33. data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
  34. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1219 -0
  35. data/sorbet/rbi/gems/iniparse@1.5.0.rbi +1007 -0
  36. data/sorbet/rbi/gems/json@2.6.2.rbi +1650 -0
  37. data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
  38. data/sorbet/rbi/gems/netrc@0.11.0.rbi +186 -0
  39. data/sorbet/rbi/gems/overcommit@0.59.1.rbi +2747 -0
  40. data/sorbet/rbi/gems/parallel@1.22.1.rbi +353 -0
  41. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +6198 -0
  42. data/sorbet/rbi/gems/plist@3.6.0.rbi +212 -0
  43. data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
  44. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +452 -0
  45. data/sorbet/rbi/gems/rake@13.0.6.rbi +3587 -0
  46. data/sorbet/rbi/gems/rbi@0.0.15.rbi +3619 -0
  47. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +3927 -0
  48. data/sorbet/rbi/gems/rexml@3.2.5.rbi +5238 -0
  49. data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +12834 -0
  50. data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +9151 -0
  51. data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +6506 -0
  52. data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +2040 -0
  53. data/sorbet/rbi/gems/rspec@3.11.0.rbi +120 -0
  54. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +7990 -0
  55. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +413 -0
  56. data/sorbet/rbi/gems/rubocop-rspec@2.12.1.rbi +7604 -0
  57. data/sorbet/rbi/gems/rubocop@1.35.0.rbi +62260 -0
  58. data/sorbet/rbi/gems/ruby-macho@3.0.0.rbi +5039 -0
  59. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1445 -0
  60. data/sorbet/rbi/gems/rubyzip@2.3.2.rbi +2868 -0
  61. data/sorbet/rbi/gems/spoom@1.1.12.rbi +2829 -0
  62. data/sorbet/rbi/gems/tapioca@0.9.3.rbi +2151 -0
  63. data/sorbet/rbi/gems/thor@1.2.1.rbi +4532 -0
  64. data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +60 -0
  65. data/sorbet/rbi/gems/unparser@0.6.5.rbi +8 -0
  66. data/sorbet/rbi/gems/webrick@1.7.0.rbi +3075 -0
  67. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +458 -0
  68. data/sorbet/rbi/gems/yard@0.9.28.rbi +20844 -0
  69. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +72 -24
  70. data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +1697 -385
  71. data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +30 -7
  72. data/sorbet/rbi/sorbet-typed/lib/rubocop/>=1.8/rubocop.rbi +3 -1
  73. data/sorbet/rbi/todo.rbi +7 -0
  74. data/sorbet/tapioca/config.yml +13 -0
  75. data/sorbet/tapioca/require.rb +4 -0
  76. metadata +90 -10
@@ -0,0 +1,2040 @@
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
+ # Share the top-level RSpec namespace, because we are a core supported
8
+ # extension.
9
+ #
10
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:1
11
+ module RSpec
12
+ extend ::RSpec::Support::Warnings
13
+
14
+ class << self
15
+ # Used to ensure examples get reloaded between multiple runs in the same
16
+ # process and ensures user configuration is persisted.
17
+ #
18
+ # Users must invoke this if they want to clear all examples but preserve
19
+ # current configuration when they use the runner multiple times within the
20
+ # same process.
21
+ #
22
+ # source://rspec-core-3.11.0/lib/rspec/core.rb:70
23
+ def clear_examples; end
24
+
25
+ # Returns the global [Configuration](RSpec/Core/Configuration) object. While
26
+ # you _can_ use this method to access the configuration, the more common
27
+ # convention is to use [RSpec.configure](RSpec#configure-class_method).
28
+ #
29
+ # @example
30
+ # RSpec.configuration.drb_port = 1234
31
+ # @see RSpec.configure
32
+ # @see Core::Configuration
33
+ #
34
+ # source://rspec-core-3.11.0/lib/rspec/core.rb:85
35
+ def configuration; end
36
+
37
+ # Setters for shared global objects
38
+ #
39
+ # @api private
40
+ #
41
+ # source://rspec-core-3.11.0/lib/rspec/core.rb:49
42
+ def configuration=(_arg0)
43
+ ;
44
+ end
45
+
46
+ # Yields the global configuration to a block.
47
+ #
48
+ # @example
49
+ # RSpec.configure do |config|
50
+ # config.add_formatter 'documentation'
51
+ # end
52
+ # @see Core::Configuration
53
+ # @yield [Configuration] global configuration
54
+ #
55
+ # source://rspec-core-3.11.0/lib/rspec/core.rb:97
56
+ def configure; end
57
+
58
+ # @private
59
+ #
60
+ # source://rspec-core-3.11.0/lib/rspec/core.rb:194
61
+ def const_missing(name)
62
+ ;
63
+ end
64
+
65
+ # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42
66
+ def context(*args, &example_group_block)
67
+ ;
68
+ end
69
+
70
+ # The example being executed.
71
+ #
72
+ # The primary audience for this method is library authors who need access
73
+ # to the example currently being executed and also want to support all
74
+ # versions of RSpec 2 and 3.
75
+ #
76
+ # @example
77
+ #
78
+ # RSpec.configure do |c|
79
+ # # context.example is deprecated, but RSpec.current_example is not
80
+ # # available until RSpec 3.0.
81
+ # fetch_current_example = RSpec.respond_to?(:current_example) ?
82
+ # proc { RSpec.current_example } : proc { |context| context.example }
83
+ #
84
+ # c.before(:example) do
85
+ # example = fetch_current_example.call(self)
86
+ #
87
+ # # ...
88
+ # end
89
+ # end
90
+ #
91
+ # source://rspec-core-3.11.0/lib/rspec/core.rb:122
92
+ def current_example; end
93
+
94
+ # Set the current example being executed.
95
+ #
96
+ # @api private
97
+ #
98
+ # source://rspec-core-3.11.0/lib/rspec/core.rb:128
99
+ def current_example=(example)
100
+ ;
101
+ end
102
+
103
+ # Get the current RSpec execution scope
104
+ #
105
+ # Returns (in order of lifecycle):
106
+ # * `:suite` as an initial value, this is outside of the test lifecycle.
107
+ # * `:before_suite_hook` during `before(:suite)` hooks.
108
+ # * `:before_context_hook` during `before(:context)` hooks.
109
+ # * `:before_example_hook` during `before(:example)` hooks and `around(:example)` before `example.run`.
110
+ # * `:example` within the example run.
111
+ # * `:after_example_hook` during `after(:example)` hooks and `around(:example)` after `example.run`.
112
+ # * `:after_context_hook` during `after(:context)` hooks.
113
+ # * `:after_suite_hook` during `after(:suite)` hooks.
114
+ # * `:suite` as a final value, again this is outside of the test lifecycle.
115
+ #
116
+ # Reminder, `:context` hooks have `:all` alias and `:example` hooks have `:each` alias.
117
+ #
118
+ # @return [Symbol]
119
+ #
120
+ # source://rspec-core-3.11.0/lib/rspec/core.rb:154
121
+ def current_scope; end
122
+
123
+ # Set the current scope rspec is executing in
124
+ #
125
+ # @api private
126
+ #
127
+ # source://rspec-core-3.11.0/lib/rspec/core.rb:134
128
+ def current_scope=(scope)
129
+ ;
130
+ end
131
+
132
+ # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42
133
+ def describe(*args, &example_group_block)
134
+ ;
135
+ end
136
+
137
+ # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42
138
+ def example_group(*args, &example_group_block)
139
+ ;
140
+ end
141
+
142
+ # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42
143
+ def fcontext(*args, &example_group_block)
144
+ ;
145
+ end
146
+
147
+ # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42
148
+ def fdescribe(*args, &example_group_block)
149
+ ;
150
+ end
151
+
152
+ # Used to ensure examples get reloaded and user configuration gets reset to
153
+ # defaults between multiple runs in the same process.
154
+ #
155
+ # Users must invoke this if they want to have the configuration reset when
156
+ # they use the runner multiple times within the same process. Users must deal
157
+ # themselves with re-configuration of RSpec before run.
158
+ #
159
+ # source://rspec-core-3.11.0/lib/rspec/core.rb:58
160
+ def reset; end
161
+
162
+ # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110
163
+ def shared_context(name, *args, &block)
164
+ ;
165
+ end
166
+
167
+ # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110
168
+ def shared_examples(name, *args, &block)
169
+ ;
170
+ end
171
+
172
+ # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110
173
+ def shared_examples_for(name, *args, &block)
174
+ ;
175
+ end
176
+
177
+ # Internal container for global non-configuration data.
178
+ #
179
+ # @private
180
+ #
181
+ # source://rspec-core-3.11.0/lib/rspec/core.rb:160
182
+ def world; end
183
+
184
+ # Setters for shared global objects
185
+ #
186
+ # @api private
187
+ #
188
+ # source://rspec-core-3.11.0/lib/rspec/core.rb:49
189
+ def world=(_arg0)
190
+ ;
191
+ end
192
+
193
+ # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42
194
+ def xcontext(*args, &example_group_block)
195
+ ;
196
+ end
197
+
198
+ # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42
199
+ def xdescribe(*args, &example_group_block)
200
+ ;
201
+ end
202
+ end
203
+ end
204
+
205
+ # Consistent implementation for "cleaning" the caller method to strip out
206
+ # non-rspec lines. This enables errors to be reported at the call site in
207
+ # the code using the library, which is far more useful than the particular
208
+ # internal method that raised an error.
209
+ #
210
+ # source://rspec-support-3.11.0/lib/rspec/support/caller_filter.rb:8
211
+ class RSpec::CallerFilter
212
+ class << self
213
+ # Earlier rubies do not support the two argument form of `caller`. This
214
+ # fallback is logically the same, but slower.
215
+ #
216
+ # source://rspec-support-3.11.0/lib/rspec/support/caller_filter.rb:47
217
+ def first_non_rspec_line(skip_frames = T.unsafe(nil), increment = T.unsafe(nil))
218
+ ;
219
+ end
220
+ end
221
+ end
222
+
223
+ # source://rspec-support-3.11.0/lib/rspec/support/caller_filter.rb:18
224
+ RSpec::CallerFilter::ADDITIONAL_TOP_LEVEL_FILES = T.let(T.unsafe(nil), Array)
225
+
226
+ # rubygems/core_ext/kernel_require.rb isn't actually part of rspec (obviously) but we want
227
+ # it ignored when we are looking for the first meaningful line of the backtrace outside
228
+ # of RSpec. It can show up in the backtrace as the immediate first caller
229
+ # when `CallerFilter.first_non_rspec_line` is called from the top level of a required
230
+ # file, but it depends on if rubygems is loaded or not. We don't want to have to deal
231
+ # with this complexity in our `RSpec.deprecate` calls, so we ignore it here.
232
+ #
233
+ # source://rspec-support-3.11.0/lib/rspec/support/caller_filter.rb:28
234
+ RSpec::CallerFilter::IGNORE_REGEX = T.let(T.unsafe(nil), Regexp)
235
+
236
+ # source://rspec-support-3.11.0/lib/rspec/support/caller_filter.rb:20
237
+ RSpec::CallerFilter::LIB_REGEX = T.let(T.unsafe(nil), Regexp)
238
+
239
+ # source://rspec-support-3.11.0/lib/rspec/support/caller_filter.rb:9
240
+ RSpec::CallerFilter::RSPEC_LIBS = T.let(T.unsafe(nil), Array)
241
+
242
+ # @private
243
+ #
244
+ # source://rspec-core-3.11.0/lib/rspec/core.rb:187
245
+ RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash)
246
+
247
+ # @private
248
+ #
249
+ # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:54
250
+ RSpec::SharedContext = RSpec::Core::SharedContext
251
+
252
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:2
253
+ module RSpec::Support
254
+ class << self
255
+ # Used internally to get a class of a given object, even if it does not respond to #class.
256
+ #
257
+ # @api private
258
+ #
259
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:84
260
+ def class_of(object)
261
+ ;
262
+ end
263
+
264
+ # Defines a helper method that is optimized to require files from the
265
+ # named lib. The passed block MUST be `{ |f| require_relative f }`
266
+ # because for `require_relative` to work properly from within the named
267
+ # lib the line of code must be IN that lib.
268
+ #
269
+ # `require_relative` is preferred when available because it is always O(1),
270
+ # regardless of the number of dirs in $LOAD_PATH. `require`, on the other
271
+ # hand, does a linear O(N) search over the dirs in the $LOAD_PATH until
272
+ # it can resolve the file relative to one of the dirs.
273
+ #
274
+ # @api private
275
+ #
276
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:14
277
+ def define_optimized_require_for_rspec(lib, &require_relative)
278
+ ;
279
+ end
280
+
281
+ # Remove a previously registered matcher. Useful for cleaning up after
282
+ # yourself in specs.
283
+ #
284
+ # @private
285
+ #
286
+ # source://rspec-support-3.11.0/lib/rspec/support/matcher_definition.rb:22
287
+ def deregister_matcher_definition(&block)
288
+ ;
289
+ end
290
+
291
+ # @api private
292
+ #
293
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:105
294
+ def failure_notifier; end
295
+
296
+ # @api private
297
+ #
298
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:97
299
+ def failure_notifier=(callable)
300
+ ;
301
+ end
302
+
303
+ # @private
304
+ # @return [Boolean]
305
+ #
306
+ # source://rspec-support-3.11.0/lib/rspec/support/matcher_definition.rb:27
307
+ def is_a_matcher?(object)
308
+ ;
309
+ end
310
+
311
+ # @private
312
+ #
313
+ # source://rspec-support-3.11.0/lib/rspec/support/matcher_definition.rb:4
314
+ def matcher_definitions; end
315
+
316
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:52
317
+ def method_handle_for(object, method_name)
318
+ ;
319
+ end
320
+
321
+ # @api private
322
+ #
323
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:110
324
+ def notify_failure(failure, options = T.unsafe(nil))
325
+ ;
326
+ end
327
+
328
+ # Used internally to break cyclic dependency between mocks, expectations,
329
+ # and support. We don't currently have a consistent implementation of our
330
+ # matchers, though we are considering changing that:
331
+ # https://github.com/rspec/rspec-mocks/issues/513
332
+ #
333
+ # @private
334
+ #
335
+ # source://rspec-support-3.11.0/lib/rspec/support/matcher_definition.rb:14
336
+ def register_matcher_definition(&block)
337
+ ;
338
+ end
339
+
340
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:23
341
+ def require_rspec_core(f)
342
+ ;
343
+ end
344
+
345
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:23
346
+ def require_rspec_expectations(f)
347
+ ;
348
+ end
349
+
350
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:23
351
+ def require_rspec_matchers(f)
352
+ ;
353
+ end
354
+
355
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:23
356
+ def require_rspec_mocks(f)
357
+ ;
358
+ end
359
+
360
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:23
361
+ def require_rspec_support(f)
362
+ ;
363
+ end
364
+
365
+ # gives a string representation of an object for use in RSpec descriptions
366
+ #
367
+ # @api private
368
+ #
369
+ # source://rspec-support-3.11.0/lib/rspec/support/matcher_definition.rb:34
370
+ def rspec_description_for_object(object)
371
+ ;
372
+ end
373
+
374
+ # A single thread local variable so we don't excessively pollute that namespace.
375
+ #
376
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:92
377
+ def thread_local_data; end
378
+
379
+ # @api private
380
+ #
381
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:132
382
+ def warning_notifier; end
383
+
384
+ # @api private
385
+ #
386
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:125
387
+ def warning_notifier=(_arg0)
388
+ ;
389
+ end
390
+
391
+ # @api private
392
+ #
393
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:115
394
+ def with_failure_notifier(callable)
395
+ ;
396
+ end
397
+ end
398
+ end
399
+
400
+ # @private
401
+ #
402
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:137
403
+ module RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue
404
+ class << self
405
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:142
406
+ def ===(exception)
407
+ ;
408
+ end
409
+ end
410
+ end
411
+
412
+ # These exceptions are dangerous to rescue as rescuing them
413
+ # would interfere with things we should not interfere with.
414
+ #
415
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:140
416
+ RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue::AVOID_RESCUING = T.let(T.unsafe(nil), Array)
417
+
418
+ # Deals with the slightly different semantics of block arguments.
419
+ # For methods, arguments are required unless a default value is provided.
420
+ # For blocks, arguments are optional, even if no default value is provided.
421
+ #
422
+ # However, we want to treat block args as required since you virtually
423
+ # always want to pass a value for each received argument and our
424
+ # `and_yield` has treated block args as required for many years.
425
+ #
426
+ # @api private
427
+ #
428
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:266
429
+ class RSpec::Support::BlockSignature < ::RSpec::Support::MethodSignature
430
+ # @api private
431
+ #
432
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:268
433
+ def classify_parameters; end
434
+ end
435
+
436
+ # @private
437
+ #
438
+ # source://rspec-support-3.11.0/lib/rspec/support/comparable_version.rb:4
439
+ class RSpec::Support::ComparableVersion
440
+ include ::Comparable
441
+
442
+ # @return [ComparableVersion] a new instance of ComparableVersion
443
+ #
444
+ # source://rspec-support-3.11.0/lib/rspec/support/comparable_version.rb:9
445
+ def initialize(string)
446
+ ;
447
+ end
448
+
449
+ # source://rspec-support-3.11.0/lib/rspec/support/comparable_version.rb:13
450
+ def <=>(other)
451
+ ;
452
+ end
453
+
454
+ # source://rspec-support-3.11.0/lib/rspec/support/comparable_version.rb:35
455
+ def segments; end
456
+
457
+ # Returns the value of attribute string.
458
+ #
459
+ # source://rspec-support-3.11.0/lib/rspec/support/comparable_version.rb:7
460
+ def string; end
461
+ end
462
+
463
+ # @private
464
+ #
465
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:102
466
+ RSpec::Support::DEFAULT_FAILURE_NOTIFIER = T.let(T.unsafe(nil), Proc)
467
+
468
+ # @private
469
+ #
470
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:129
471
+ RSpec::Support::DEFAULT_WARNING_NOTIFIER = T.let(T.unsafe(nil), Proc)
472
+
473
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:10
474
+ class RSpec::Support::Differ
475
+ # @return [Differ] a new instance of Differ
476
+ #
477
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:67
478
+ def initialize(opts = T.unsafe(nil))
479
+ ;
480
+ end
481
+
482
+ # @return [Boolean]
483
+ #
484
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:63
485
+ def color?; end
486
+
487
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:11
488
+ def diff(actual, expected)
489
+ ;
490
+ end
491
+
492
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:57
493
+ def diff_as_object(actual, expected)
494
+ ;
495
+ end
496
+
497
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:28
498
+ def diff_as_string(actual, expected)
499
+ ;
500
+ end
501
+
502
+ private
503
+
504
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:128
505
+ def add_old_hunk_to_hunk(hunk, oldhunk)
506
+ ;
507
+ end
508
+
509
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:124
510
+ def add_to_output(output, string)
511
+ ;
512
+ end
513
+
514
+ # @return [Boolean]
515
+ #
516
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:78
517
+ def all_strings?(*args)
518
+ ;
519
+ end
520
+
521
+ # @return [Boolean]
522
+ #
523
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:82
524
+ def any_multiline_strings?(*args)
525
+ ;
526
+ end
527
+
528
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:153
529
+ def blue(text)
530
+ ;
531
+ end
532
+
533
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:115
534
+ def build_hunks(actual, expected)
535
+ ;
536
+ end
537
+
538
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:90
539
+ def coerce_to_string(string_or_array)
540
+ ;
541
+ end
542
+
543
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:141
544
+ def color(text, color_code)
545
+ ;
546
+ end
547
+
548
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:161
549
+ def color_diff(diff)
550
+ ;
551
+ end
552
+
553
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:95
554
+ def diffably_stringify(array)
555
+ ;
556
+ end
557
+
558
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:119
559
+ def finalize_output(output, final_line)
560
+ ;
561
+ end
562
+
563
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:137
564
+ def format_type; end
565
+
566
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:149
567
+ def green(text)
568
+ ;
569
+ end
570
+
571
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:202
572
+ def handle_encoding_errors(actual, expected)
573
+ ;
574
+ end
575
+
576
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:192
577
+ def hash_to_string(hash)
578
+ ;
579
+ end
580
+
581
+ # @return [Boolean]
582
+ #
583
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:106
584
+ def multiline?(string)
585
+ ;
586
+ end
587
+
588
+ # @return [Boolean]
589
+ #
590
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:86
591
+ def no_numbers?(*args)
592
+ ;
593
+ end
594
+
595
+ # @return [Boolean]
596
+ #
597
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:74
598
+ def no_procs?(*args)
599
+ ;
600
+ end
601
+
602
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:157
603
+ def normal(text)
604
+ ;
605
+ end
606
+
607
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:178
608
+ def object_to_string(object)
609
+ ;
610
+ end
611
+
612
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:145
613
+ def red(text)
614
+ ;
615
+ end
616
+
617
+ # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:132
618
+ def safely_flatten(array)
619
+ ;
620
+ end
621
+ end
622
+
623
+ # Replacement for fileutils#mkdir_p because we don't want to require parts
624
+ # of stdlib in RSpec.
625
+ #
626
+ # @api private
627
+ #
628
+ # source://rspec-support-3.11.0/lib/rspec/support/directory_maker.rb:9
629
+ class RSpec::Support::DirectoryMaker
630
+ class << self
631
+ # Implements nested directory construction
632
+ #
633
+ # @api private
634
+ #
635
+ # source://rspec-support-3.11.0/lib/rspec/support/directory_maker.rb:13
636
+ def mkdir_p(path)
637
+ ;
638
+ end
639
+
640
+ private
641
+
642
+ # @api private
643
+ # @return [Boolean]
644
+ #
645
+ # source://rspec-support-3.11.0/lib/rspec/support/directory_maker.rb:55
646
+ def directory_exists?(dirname)
647
+ ;
648
+ end
649
+
650
+ # @api private
651
+ #
652
+ # source://rspec-support-3.11.0/lib/rspec/support/directory_maker.rb:50
653
+ def generate_path(stack, part)
654
+ ;
655
+ end
656
+
657
+ # @api private
658
+ #
659
+ # source://rspec-support-3.11.0/lib/rspec/support/directory_maker.rb:47
660
+ def generate_stack(path)
661
+ ;
662
+ end
663
+ end
664
+ end
665
+
666
+ # @private
667
+ #
668
+ # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:4
669
+ class RSpec::Support::EncodedString
670
+ # @return [EncodedString] a new instance of EncodedString
671
+ #
672
+ # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:14
673
+ def initialize(string, encoding = T.unsafe(nil))
674
+ ;
675
+ end
676
+
677
+ # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:26
678
+ def <<(string)
679
+ ;
680
+ end
681
+
682
+ # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:23
683
+ def ==(*args, &block)
684
+ ;
685
+ end
686
+
687
+ # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:23
688
+ def empty?(*args, &block)
689
+ ;
690
+ end
691
+
692
+ # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:23
693
+ def encoding(*args, &block)
694
+ ;
695
+ end
696
+
697
+ # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:23
698
+ def eql?(*args, &block)
699
+ ;
700
+ end
701
+
702
+ # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:23
703
+ def lines(*args, &block)
704
+ ;
705
+ end
706
+
707
+ # Returns the value of attribute source_encoding.
708
+ #
709
+ # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:19
710
+ def source_encoding; end
711
+
712
+ # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:39
713
+ def split(regex_or_string)
714
+ ;
715
+ end
716
+
717
+ # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:44
718
+ def to_s; end
719
+
720
+ # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:44
721
+ def to_str; end
722
+
723
+ private
724
+
725
+ # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:137
726
+ def detect_source_encoding(string)
727
+ ;
728
+ end
729
+
730
+ # Encoding Exceptions:
731
+ #
732
+ # Raised by Encoding and String methods:
733
+ # Encoding::UndefinedConversionError:
734
+ # when a transcoding operation fails
735
+ # if the String contains characters invalid for the target encoding
736
+ # e.g. "\x80".encode('UTF-8','ASCII-8BIT')
737
+ # vs "\x80".encode('UTF-8','ASCII-8BIT', undef: :replace, replace: '<undef>')
738
+ # # => '<undef>'
739
+ # Encoding::CompatibilityError
740
+ # when Encoding.compatibile?(str1, str2) is nil
741
+ # e.g. utf_16le_emoji_string.split("\n")
742
+ # e.g. valid_unicode_string.encode(utf8_encoding) << ascii_string
743
+ # Encoding::InvalidByteSequenceError:
744
+ # when the string being transcoded contains a byte invalid for
745
+ # either the source or target encoding
746
+ # e.g. "\x80".encode('UTF-8','US-ASCII')
747
+ # vs "\x80".encode('UTF-8','US-ASCII', invalid: :replace, replace: '<byte>')
748
+ # # => '<byte>'
749
+ # ArgumentError
750
+ # when operating on a string with invalid bytes
751
+ # e.g."\x80".split("\n")
752
+ # TypeError
753
+ # when a symbol is passed as an encoding
754
+ # Encoding.find(:"UTF-8")
755
+ # when calling force_encoding on an object
756
+ # that doesn't respond to #to_str
757
+ #
758
+ # Raised by transcoding methods:
759
+ # Encoding::ConverterNotFoundError:
760
+ # when a named encoding does not correspond with a known converter
761
+ # e.g. 'abc'.force_encoding('UTF-8').encode('foo')
762
+ # or a converter path cannot be found
763
+ # e.g. "\x80".force_encoding('ASCII-8BIT').encode('Emacs-Mule')
764
+ #
765
+ # Raised by byte <-> char conversions
766
+ # RangeError: out of char range
767
+ # e.g. the UTF-16LE emoji: 128169.chr
768
+ #
769
+ # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:91
770
+ def matching_encoding(string)
771
+ ;
772
+ end
773
+
774
+ # http://stackoverflow.com/a/8711118/879854
775
+ # Loop over chars in a string replacing chars
776
+ # with invalid encoding, which is a pretty good proxy
777
+ # for the invalid byte sequence that causes an ArgumentError
778
+ #
779
+ # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:122
780
+ def remove_invalid_bytes(string)
781
+ ;
782
+ end
783
+
784
+ class << self
785
+ # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:141
786
+ def pick_encoding(source_a, source_b)
787
+ ;
788
+ end
789
+ end
790
+ end
791
+
792
+ # Ruby's default replacement string is:
793
+ # U+FFFD ("\xEF\xBF\xBD"), for Unicode encoding forms, else
794
+ # ? ("\x3F")
795
+ #
796
+ # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:12
797
+ RSpec::Support::EncodedString::REPLACE = T.let(T.unsafe(nil), String)
798
+
799
+ # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:7
800
+ RSpec::Support::EncodedString::US_ASCII = T.let(T.unsafe(nil), String)
801
+
802
+ # Reduce allocations by storing constants.
803
+ #
804
+ # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:6
805
+ RSpec::Support::EncodedString::UTF_8 = T.let(T.unsafe(nil), String)
806
+
807
+ # Provides a means to fuzzy-match between two arbitrary objects.
808
+ # Understands array/hash nesting. Uses `===` or `==` to
809
+ # perform the matching.
810
+ #
811
+ # source://rspec-support-3.11.0/lib/rspec/support/fuzzy_matcher.rb:6
812
+ module RSpec::Support::FuzzyMatcher
813
+ class << self
814
+ # @api private
815
+ # @return [Boolean]
816
+ #
817
+ # source://rspec-support-3.11.0/lib/rspec/support/fuzzy_matcher.rb:8
818
+ def values_match?(expected, actual)
819
+ ;
820
+ end
821
+
822
+ private
823
+
824
+ # @private
825
+ # @return [Boolean]
826
+ #
827
+ # source://rspec-support-3.11.0/lib/rspec/support/fuzzy_matcher.rb:27
828
+ def arrays_match?(expected_list, actual_list)
829
+ ;
830
+ end
831
+
832
+ # @private
833
+ # @return [Boolean]
834
+ #
835
+ # source://rspec-support-3.11.0/lib/rspec/support/fuzzy_matcher.rb:36
836
+ def hashes_match?(expected_hash, actual_hash)
837
+ ;
838
+ end
839
+ end
840
+ end
841
+
842
+ # @private
843
+ #
844
+ # source://rspec-support-3.11.0/lib/rspec/support/hunk_generator.rb:7
845
+ class RSpec::Support::HunkGenerator
846
+ # @return [HunkGenerator] a new instance of HunkGenerator
847
+ #
848
+ # source://rspec-support-3.11.0/lib/rspec/support/hunk_generator.rb:8
849
+ def initialize(actual, expected)
850
+ ;
851
+ end
852
+
853
+ # source://rspec-support-3.11.0/lib/rspec/support/hunk_generator.rb:13
854
+ def hunks; end
855
+
856
+ private
857
+
858
+ # source://rspec-support-3.11.0/lib/rspec/support/hunk_generator.rb:30
859
+ def actual_lines; end
860
+
861
+ # source://rspec-support-3.11.0/lib/rspec/support/hunk_generator.rb:34
862
+ def build_hunk(piece)
863
+ ;
864
+ end
865
+
866
+ # source://rspec-support-3.11.0/lib/rspec/support/hunk_generator.rb:42
867
+ def context_lines; end
868
+
869
+ # source://rspec-support-3.11.0/lib/rspec/support/hunk_generator.rb:22
870
+ def diffs; end
871
+
872
+ # source://rspec-support-3.11.0/lib/rspec/support/hunk_generator.rb:26
873
+ def expected_lines; end
874
+ end
875
+
876
+ # @api private
877
+ #
878
+ # source://rspec-support-3.11.0/lib/rspec/support.rb:38
879
+ RSpec::Support::KERNEL_METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod)
880
+
881
+ # Allows matchers to be used instead of providing keyword arguments. In
882
+ # practice, when this happens only the arity of the method is verified.
883
+ #
884
+ # @private
885
+ #
886
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:391
887
+ class RSpec::Support::LooseSignatureVerifier < ::RSpec::Support::MethodSignatureVerifier
888
+ private
889
+
890
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:394
891
+ def split_args(*args)
892
+ ;
893
+ end
894
+ end
895
+
896
+ # If a matcher is used in a signature in place of keyword arguments, all
897
+ # keyword argument validation needs to be skipped since the matcher is
898
+ # opaque.
899
+ #
900
+ # Instead, keyword arguments will be validated when the method is called
901
+ # and they are actually known.
902
+ #
903
+ # @private
904
+ #
905
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:411
906
+ class RSpec::Support::LooseSignatureVerifier::SignatureWithKeywordArgumentsMatcher
907
+ # @return [SignatureWithKeywordArgumentsMatcher] a new instance of SignatureWithKeywordArgumentsMatcher
908
+ #
909
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:412
910
+ def initialize(signature)
911
+ ;
912
+ end
913
+
914
+ # @return [Boolean]
915
+ #
916
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:432
917
+ def has_kw_args_in?(args)
918
+ ;
919
+ end
920
+
921
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:420
922
+ def invalid_kw_args_from(_kw_args)
923
+ ;
924
+ end
925
+
926
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:416
927
+ def missing_kw_args_from(_kw_args)
928
+ ;
929
+ end
930
+
931
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:424
932
+ def non_kw_args_arity_description; end
933
+
934
+ # @return [Boolean]
935
+ #
936
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:428
937
+ def valid_non_kw_args?(*args)
938
+ ;
939
+ end
940
+ end
941
+
942
+ # Extracts info about the number of arguments and allowed/required
943
+ # keyword args of a given method.
944
+ #
945
+ # @private
946
+ #
947
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:11
948
+ class RSpec::Support::MethodSignature
949
+ # @return [MethodSignature] a new instance of MethodSignature
950
+ #
951
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:14
952
+ def initialize(method)
953
+ ;
954
+ end
955
+
956
+ # @return [Boolean]
957
+ #
958
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:96
959
+ def arbitrary_kw_args?; end
960
+
961
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:36
962
+ def classify_arity(arity = T.unsafe(nil))
963
+ ;
964
+ end
965
+
966
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:104
967
+ def classify_parameters; end
968
+
969
+ # Without considering what the last arg is, could it
970
+ # contain keyword arguments?
971
+ #
972
+ # @return [Boolean]
973
+ #
974
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:90
975
+ def could_contain_kw_args?(args)
976
+ ;
977
+ end
978
+
979
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:49
980
+ def description; end
981
+
982
+ # If the last argument is Hash, Ruby will treat only symbol keys as keyword arguments
983
+ # the rest will be grouped in another Hash and passed as positional argument.
984
+ #
985
+ # @return [Boolean]
986
+ #
987
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:82
988
+ def has_kw_args_in?(args)
989
+ ;
990
+ end
991
+
992
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:75
993
+ def invalid_kw_args_from(given_kw_args)
994
+ ;
995
+ end
996
+
997
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:12
998
+ def max_non_kw_args; end
999
+
1000
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:12
1001
+ def min_non_kw_args; end
1002
+
1003
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:71
1004
+ def missing_kw_args_from(given_kw_args)
1005
+ ;
1006
+ end
1007
+
1008
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:21
1009
+ def non_kw_args_arity_description; end
1010
+
1011
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:12
1012
+ def optional_kw_args; end
1013
+
1014
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:12
1015
+ def required_kw_args; end
1016
+
1017
+ # @return [Boolean]
1018
+ #
1019
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:100
1020
+ def unlimited_args?; end
1021
+
1022
+ # @return [Boolean]
1023
+ #
1024
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:29
1025
+ def valid_non_kw_args?(positional_arg_count, optional_max_arg_count = T.unsafe(nil))
1026
+ ;
1027
+ end
1028
+ end
1029
+
1030
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:160
1031
+ RSpec::Support::MethodSignature::INFINITY = T.let(T.unsafe(nil), Float)
1032
+
1033
+ # Encapsulates expectations about the number of arguments and
1034
+ # allowed/required keyword args of a given method.
1035
+ #
1036
+ # @api private
1037
+ #
1038
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:217
1039
+ class RSpec::Support::MethodSignatureExpectation
1040
+ # @api private
1041
+ # @return [MethodSignatureExpectation] a new instance of MethodSignatureExpectation
1042
+ #
1043
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:218
1044
+ def initialize; end
1045
+
1046
+ # @api private
1047
+ # @return [Boolean]
1048
+ #
1049
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:245
1050
+ def empty?; end
1051
+
1052
+ # @api private
1053
+ #
1054
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:229
1055
+ def expect_arbitrary_keywords; end
1056
+
1057
+ # @api private
1058
+ #
1059
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:229
1060
+ def expect_arbitrary_keywords=(_arg0)
1061
+ ;
1062
+ end
1063
+
1064
+ # @api private
1065
+ #
1066
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:229
1067
+ def expect_unlimited_arguments; end
1068
+
1069
+ # @api private
1070
+ #
1071
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:229
1072
+ def expect_unlimited_arguments=(_arg0)
1073
+ ;
1074
+ end
1075
+
1076
+ # @api private
1077
+ #
1078
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:227
1079
+ def keywords; end
1080
+
1081
+ # @api private
1082
+ #
1083
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:252
1084
+ def keywords=(values)
1085
+ ;
1086
+ end
1087
+
1088
+ # @api private
1089
+ #
1090
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:227
1091
+ def max_count; end
1092
+
1093
+ # @api private
1094
+ # @raise [ArgumentError]
1095
+ #
1096
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:231
1097
+ def max_count=(number)
1098
+ ;
1099
+ end
1100
+
1101
+ # @api private
1102
+ #
1103
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:227
1104
+ def min_count; end
1105
+
1106
+ # @api private
1107
+ # @raise [ArgumentError]
1108
+ #
1109
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:238
1110
+ def min_count=(number)
1111
+ ;
1112
+ end
1113
+ end
1114
+
1115
+ # Abstract base class for signature verifiers.
1116
+ #
1117
+ # @api private
1118
+ #
1119
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:278
1120
+ class RSpec::Support::MethodSignatureVerifier
1121
+ # @api private
1122
+ # @return [MethodSignatureVerifier] a new instance of MethodSignatureVerifier
1123
+ #
1124
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:281
1125
+ def initialize(signature, args = T.unsafe(nil))
1126
+ ;
1127
+ end
1128
+
1129
+ # @api private
1130
+ #
1131
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:324
1132
+ def error_message; end
1133
+
1134
+ # @api private
1135
+ #
1136
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:279
1137
+ def kw_args; end
1138
+
1139
+ # @api private
1140
+ #
1141
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:279
1142
+ def max_non_kw_args; end
1143
+
1144
+ # @api private
1145
+ #
1146
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:279
1147
+ def min_non_kw_args; end
1148
+
1149
+ # @api private
1150
+ #
1151
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:279
1152
+ def non_kw_args; end
1153
+
1154
+ # @api private
1155
+ # @return [Boolean]
1156
+ #
1157
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:316
1158
+ def valid?; end
1159
+
1160
+ # @api private
1161
+ #
1162
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:288
1163
+ def with_expectation(expectation)
1164
+ ;
1165
+ end
1166
+
1167
+ private
1168
+
1169
+ # @api private
1170
+ # @return [Boolean]
1171
+ #
1172
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:355
1173
+ def arbitrary_kw_args?; end
1174
+
1175
+ # @api private
1176
+ #
1177
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:351
1178
+ def invalid_kw_args; end
1179
+
1180
+ # @api private
1181
+ #
1182
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:347
1183
+ def missing_kw_args; end
1184
+
1185
+ # @api private
1186
+ #
1187
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:363
1188
+ def split_args(*args)
1189
+ ;
1190
+ end
1191
+
1192
+ # @api private
1193
+ # @return [Boolean]
1194
+ #
1195
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:359
1196
+ def unlimited_args?; end
1197
+
1198
+ # @api private
1199
+ # @return [Boolean]
1200
+ #
1201
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:343
1202
+ def valid_non_kw_args?; end
1203
+ end
1204
+
1205
+ # On 1.9 and up, this is in core, so we just use the real one
1206
+ #
1207
+ # source://rspec-support-3.11.0/lib/rspec/support/reentrant_mutex.rb:65
1208
+ class RSpec::Support::Mutex < ::Thread::Mutex
1209
+ class << self
1210
+ # source://rspec-support-3.11.0/lib/rspec/support/reentrant_mutex.rb:68
1211
+ def new; end
1212
+ end
1213
+ end
1214
+
1215
+ # If you mock Mutex.new you break our usage of Mutex, so
1216
+ # instead we capture the original method to return Mutexs.
1217
+ #
1218
+ # source://rspec-support-3.11.0/lib/rspec/support/reentrant_mutex.rb:66
1219
+ RSpec::Support::Mutex::NEW_MUTEX_METHOD = T.let(T.unsafe(nil), Method)
1220
+
1221
+ # Provides query methods for different OS or OS features.
1222
+ #
1223
+ # @api private
1224
+ #
1225
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:9
1226
+ module RSpec::Support::OS
1227
+ private
1228
+
1229
+ # @api private
1230
+ #
1231
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:12
1232
+ def windows?; end
1233
+
1234
+ # @api private
1235
+ #
1236
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:16
1237
+ def windows_file_path?; end
1238
+
1239
+ class << self
1240
+ # @api private
1241
+ # @return [Boolean]
1242
+ #
1243
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:12
1244
+ def windows?; end
1245
+
1246
+ # @api private
1247
+ # @return [Boolean]
1248
+ #
1249
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:16
1250
+ def windows_file_path?; end
1251
+ end
1252
+ end
1253
+
1254
+ # Provide additional output details beyond what `inspect` provides when
1255
+ # printing Time, DateTime, or BigDecimal
1256
+ #
1257
+ # @api private
1258
+ #
1259
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:8
1260
+ class RSpec::Support::ObjectFormatter
1261
+ # @api private
1262
+ # @return [ObjectFormatter] a new instance of ObjectFormatter
1263
+ #
1264
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:27
1265
+ def initialize(max_formatted_output_length = T.unsafe(nil))
1266
+ ;
1267
+ end
1268
+
1269
+ # @api private
1270
+ #
1271
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:32
1272
+ def format(object)
1273
+ ;
1274
+ end
1275
+
1276
+ # @api private
1277
+ #
1278
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:11
1279
+ def max_formatted_output_length; end
1280
+
1281
+ # @api private
1282
+ #
1283
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:11
1284
+ def max_formatted_output_length=(_arg0)
1285
+ ;
1286
+ end
1287
+
1288
+ # @api private
1289
+ #
1290
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:68
1291
+ def prepare_array(array)
1292
+ ;
1293
+ end
1294
+
1295
+ # @api private
1296
+ #
1297
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:92
1298
+ def prepare_element(element)
1299
+ ;
1300
+ end
1301
+
1302
+ # Prepares the provided object to be formatted by wrapping it as needed
1303
+ # in something that, when `inspect` is called on it, will produce the
1304
+ # desired output.
1305
+ #
1306
+ # This allows us to apply the desired formatting to hash/array data structures
1307
+ # at any level of nesting, simply by walking that structure and replacing items
1308
+ # with custom items that have `inspect` defined to return the desired output
1309
+ # for that item. Then we can just use `Array#inspect` or `Hash#inspect` to
1310
+ # format the entire thing.
1311
+ #
1312
+ # @api private
1313
+ #
1314
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:56
1315
+ def prepare_for_inspection(object)
1316
+ ;
1317
+ end
1318
+
1319
+ # @api private
1320
+ #
1321
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:74
1322
+ def prepare_hash(input_hash)
1323
+ ;
1324
+ end
1325
+
1326
+ # @api private
1327
+ # @return [Boolean]
1328
+ #
1329
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:111
1330
+ def recursive_structure?(object)
1331
+ ;
1332
+ end
1333
+
1334
+ # @api private
1335
+ #
1336
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:84
1337
+ def sort_hash_keys(input_hash)
1338
+ ;
1339
+ end
1340
+
1341
+ # @api private
1342
+ #
1343
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:104
1344
+ def with_entering_structure(structure)
1345
+ ;
1346
+ end
1347
+
1348
+ private
1349
+
1350
+ # Returns the substring defined by the start_index and end_index
1351
+ # If the string ends with a partial ANSI code code then that
1352
+ # will be removed as printing partial ANSI
1353
+ # codes to the terminal can lead to corruption
1354
+ #
1355
+ # @api private
1356
+ #
1357
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:266
1358
+ def truncate_string(str, start_index, end_index)
1359
+ ;
1360
+ end
1361
+
1362
+ class << self
1363
+ # Methods are deferred to a default instance of the class to maintain the interface
1364
+ # For example, calling ObjectFormatter.format is still possible
1365
+ #
1366
+ # @api private
1367
+ #
1368
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:15
1369
+ def default_instance; end
1370
+
1371
+ # @api private
1372
+ #
1373
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:19
1374
+ def format(object)
1375
+ ;
1376
+ end
1377
+
1378
+ # @api private
1379
+ #
1380
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:23
1381
+ def prepare_for_inspection(object)
1382
+ ;
1383
+ end
1384
+ end
1385
+ end
1386
+
1387
+ # @api private
1388
+ #
1389
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:125
1390
+ class RSpec::Support::ObjectFormatter::BaseInspector < ::Struct
1391
+ # Returns the value of attribute formatter
1392
+ #
1393
+ # @return [Object] the current value of formatter
1394
+ def formatter; end
1395
+
1396
+ # Sets the attribute formatter
1397
+ #
1398
+ # @param value [Object] the value to set the attribute formatter to.
1399
+ # @return [Object] the newly set value
1400
+ def formatter=(_)
1401
+ ;
1402
+ end
1403
+
1404
+ # @api private
1405
+ # @raise [NotImplementedError]
1406
+ #
1407
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:130
1408
+ def inspect; end
1409
+
1410
+ # Returns the value of attribute object
1411
+ #
1412
+ # @return [Object] the current value of object
1413
+ def object; end
1414
+
1415
+ # Sets the attribute object
1416
+ #
1417
+ # @param value [Object] the value to set the attribute object to.
1418
+ # @return [Object] the newly set value
1419
+ def object=(_)
1420
+ ;
1421
+ end
1422
+
1423
+ # @api private
1424
+ #
1425
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:134
1426
+ def pretty_print(pp)
1427
+ ;
1428
+ end
1429
+
1430
+ class << self
1431
+ def [](*_arg0)
1432
+ ;
1433
+ end
1434
+
1435
+ # @api private
1436
+ # @raise [NotImplementedError]
1437
+ # @return [Boolean]
1438
+ #
1439
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:126
1440
+ def can_inspect?(_object)
1441
+ ;
1442
+ end
1443
+
1444
+ def inspect; end
1445
+
1446
+ def keyword_init?; end
1447
+
1448
+ def members; end
1449
+
1450
+ def new(*_arg0)
1451
+ ;
1452
+ end
1453
+ end
1454
+ end
1455
+
1456
+ # @api private
1457
+ #
1458
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:175
1459
+ class RSpec::Support::ObjectFormatter::BigDecimalInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
1460
+ # @api private
1461
+ #
1462
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:180
1463
+ def inspect; end
1464
+
1465
+ class << self
1466
+ # @api private
1467
+ # @return [Boolean]
1468
+ #
1469
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:176
1470
+ def can_inspect?(object)
1471
+ ;
1472
+ end
1473
+ end
1474
+ end
1475
+
1476
+ # @api private
1477
+ #
1478
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:157
1479
+ class RSpec::Support::ObjectFormatter::DateTimeInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
1480
+ # ActiveSupport sometimes overrides inspect. If `ActiveSupport` is
1481
+ # defined use a custom format string that includes more time precision.
1482
+ #
1483
+ # @api private
1484
+ #
1485
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:166
1486
+ def inspect; end
1487
+
1488
+ class << self
1489
+ # @api private
1490
+ # @return [Boolean]
1491
+ #
1492
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:160
1493
+ def can_inspect?(object)
1494
+ ;
1495
+ end
1496
+ end
1497
+ end
1498
+
1499
+ # @api private
1500
+ #
1501
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:158
1502
+ RSpec::Support::ObjectFormatter::DateTimeInspector::FORMAT = T.let(T.unsafe(nil), String)
1503
+
1504
+ # @api private
1505
+ #
1506
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:222
1507
+ class RSpec::Support::ObjectFormatter::DelegatorInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
1508
+ # @api private
1509
+ #
1510
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:227
1511
+ def inspect; end
1512
+
1513
+ class << self
1514
+ # @api private
1515
+ # @return [Boolean]
1516
+ #
1517
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:223
1518
+ def can_inspect?(object)
1519
+ ;
1520
+ end
1521
+ end
1522
+ end
1523
+
1524
+ # @api private
1525
+ #
1526
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:185
1527
+ class RSpec::Support::ObjectFormatter::DescribableMatcherInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
1528
+ # @api private
1529
+ #
1530
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:190
1531
+ def inspect; end
1532
+
1533
+ class << self
1534
+ # @api private
1535
+ # @return [Boolean]
1536
+ #
1537
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:186
1538
+ def can_inspect?(object)
1539
+ ;
1540
+ end
1541
+ end
1542
+ end
1543
+
1544
+ # @api private
1545
+ #
1546
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:9
1547
+ RSpec::Support::ObjectFormatter::ELLIPSIS = T.let(T.unsafe(nil), String)
1548
+
1549
+ # @api private
1550
+ #
1551
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:245
1552
+ RSpec::Support::ObjectFormatter::INSPECTOR_CLASSES = T.let(T.unsafe(nil), Array)
1553
+
1554
+ # @api private
1555
+ #
1556
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:115
1557
+ class RSpec::Support::ObjectFormatter::InspectableItem < ::Struct
1558
+ # @api private
1559
+ #
1560
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:116
1561
+ def inspect; end
1562
+
1563
+ # @api private
1564
+ #
1565
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:120
1566
+ def pretty_print(pp)
1567
+ ;
1568
+ end
1569
+
1570
+ # Returns the value of attribute text
1571
+ #
1572
+ # @return [Object] the current value of text
1573
+ def text; end
1574
+
1575
+ # Sets the attribute text
1576
+ #
1577
+ # @param value [Object] the value to set the attribute text to.
1578
+ # @return [Object] the newly set value
1579
+ def text=(_)
1580
+ ;
1581
+ end
1582
+
1583
+ class << self
1584
+ def [](*_arg0)
1585
+ ;
1586
+ end
1587
+
1588
+ def inspect; end
1589
+
1590
+ def keyword_init?; end
1591
+
1592
+ def members; end
1593
+
1594
+ def new(*_arg0)
1595
+ ;
1596
+ end
1597
+ end
1598
+ end
1599
+
1600
+ # @api private
1601
+ #
1602
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:232
1603
+ class RSpec::Support::ObjectFormatter::InspectableObjectInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
1604
+ # @api private
1605
+ #
1606
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:240
1607
+ def inspect; end
1608
+
1609
+ class << self
1610
+ # @api private
1611
+ # @return [Boolean]
1612
+ #
1613
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:233
1614
+ def can_inspect?(object)
1615
+ ;
1616
+ end
1617
+ end
1618
+ end
1619
+
1620
+ # @api private
1621
+ #
1622
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:139
1623
+ class RSpec::Support::ObjectFormatter::TimeInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
1624
+ # for 1.8.7
1625
+ #
1626
+ # @api private
1627
+ #
1628
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:147
1629
+ def inspect; end
1630
+
1631
+ class << self
1632
+ # @api private
1633
+ # @return [Boolean]
1634
+ #
1635
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:142
1636
+ def can_inspect?(object)
1637
+ ;
1638
+ end
1639
+ end
1640
+ end
1641
+
1642
+ # @api private
1643
+ #
1644
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:140
1645
+ RSpec::Support::ObjectFormatter::TimeInspector::FORMAT = T.let(T.unsafe(nil), String)
1646
+
1647
+ # @api private
1648
+ #
1649
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:195
1650
+ class RSpec::Support::ObjectFormatter::UninspectableObjectInspector < ::RSpec::Support::ObjectFormatter::BaseInspector
1651
+ # @api private
1652
+ #
1653
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:205
1654
+ def inspect; end
1655
+
1656
+ # @api private
1657
+ #
1658
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:209
1659
+ def klass; end
1660
+
1661
+ # http://stackoverflow.com/a/2818916
1662
+ #
1663
+ # @api private
1664
+ #
1665
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:214
1666
+ def native_object_id; end
1667
+
1668
+ class << self
1669
+ # @api private
1670
+ # @return [Boolean]
1671
+ #
1672
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:198
1673
+ def can_inspect?(object)
1674
+ ;
1675
+ end
1676
+ end
1677
+ end
1678
+
1679
+ # @api private
1680
+ #
1681
+ # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:196
1682
+ RSpec::Support::ObjectFormatter::UninspectableObjectInspector::OBJECT_ID_FORMAT = T.let(T.unsafe(nil), String)
1683
+
1684
+ # Provides recursive constant lookup methods useful for
1685
+ # constant stubbing.
1686
+ #
1687
+ # source://rspec-support-3.11.0/lib/rspec/support/recursive_const_methods.rb:5
1688
+ module RSpec::Support::RecursiveConstMethods
1689
+ # @return [Boolean]
1690
+ #
1691
+ # source://rspec-support-3.11.0/lib/rspec/support/recursive_const_methods.rb:43
1692
+ def const_defined_on?(mod, const_name)
1693
+ ;
1694
+ end
1695
+
1696
+ # source://rspec-support-3.11.0/lib/rspec/support/recursive_const_methods.rb:51
1697
+ def constants_defined_on(mod)
1698
+ ;
1699
+ end
1700
+
1701
+ # @raise [NameError]
1702
+ #
1703
+ # source://rspec-support-3.11.0/lib/rspec/support/recursive_const_methods.rb:47
1704
+ def get_const_defined_on(mod, const_name)
1705
+ ;
1706
+ end
1707
+
1708
+ # source://rspec-support-3.11.0/lib/rspec/support/recursive_const_methods.rb:71
1709
+ def normalize_const_name(const_name)
1710
+ ;
1711
+ end
1712
+
1713
+ # @return [Boolean]
1714
+ #
1715
+ # source://rspec-support-3.11.0/lib/rspec/support/recursive_const_methods.rb:62
1716
+ def recursive_const_defined?(const_name)
1717
+ ;
1718
+ end
1719
+
1720
+ # source://rspec-support-3.11.0/lib/rspec/support/recursive_const_methods.rb:56
1721
+ def recursive_const_get(const_name)
1722
+ ;
1723
+ end
1724
+ end
1725
+
1726
+ # Allows a thread to lock out other threads from a critical section of code,
1727
+ # while allowing the thread with the lock to reenter that section.
1728
+ #
1729
+ # Based on Monitor as of 2.2 -
1730
+ # https://github.com/ruby/ruby/blob/eb7ddaa3a47bf48045d26c72eb0f263a53524ebc/lib/monitor.rb#L9
1731
+ #
1732
+ # Depends on Mutex, but Mutex is only available as part of core since 1.9.1:
1733
+ # exists - http://ruby-doc.org/core-1.9.1/Mutex.html
1734
+ # dne - http://ruby-doc.org/core-1.9.0/Mutex.html
1735
+ #
1736
+ # @private
1737
+ #
1738
+ # source://rspec-support-3.11.0/lib/rspec/support/reentrant_mutex.rb:14
1739
+ class RSpec::Support::ReentrantMutex
1740
+ # @return [ReentrantMutex] a new instance of ReentrantMutex
1741
+ #
1742
+ # source://rspec-support-3.11.0/lib/rspec/support/reentrant_mutex.rb:15
1743
+ def initialize; end
1744
+
1745
+ # source://rspec-support-3.11.0/lib/rspec/support/reentrant_mutex.rb:21
1746
+ def synchronize; end
1747
+
1748
+ private
1749
+
1750
+ # source://rspec-support-3.11.0/lib/rspec/support/reentrant_mutex.rb:33
1751
+ def enter; end
1752
+
1753
+ # source://rspec-support-3.11.0/lib/rspec/support/reentrant_mutex.rb:38
1754
+ def exit; end
1755
+ end
1756
+
1757
+ # Provides query methods for different rubies
1758
+ #
1759
+ # @api private
1760
+ #
1761
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:24
1762
+ module RSpec::Support::Ruby
1763
+ private
1764
+
1765
+ # @api private
1766
+ #
1767
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:27
1768
+ def jruby?; end
1769
+
1770
+ # @api private
1771
+ #
1772
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:35
1773
+ def jruby_9000?; end
1774
+
1775
+ # @api private
1776
+ #
1777
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:31
1778
+ def jruby_version; end
1779
+
1780
+ # @api private
1781
+ #
1782
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:47
1783
+ def mri?; end
1784
+
1785
+ # @api private
1786
+ #
1787
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:43
1788
+ def non_mri?; end
1789
+
1790
+ # @api private
1791
+ #
1792
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:39
1793
+ def rbx?; end
1794
+
1795
+ # @api private
1796
+ #
1797
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:51
1798
+ def truffleruby?; end
1799
+
1800
+ class << self
1801
+ # @api private
1802
+ # @return [Boolean]
1803
+ #
1804
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:27
1805
+ def jruby?; end
1806
+
1807
+ # @api private
1808
+ # @return [Boolean]
1809
+ #
1810
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:35
1811
+ def jruby_9000?; end
1812
+
1813
+ # @api private
1814
+ #
1815
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:31
1816
+ def jruby_version; end
1817
+
1818
+ # @api private
1819
+ # @return [Boolean]
1820
+ #
1821
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:47
1822
+ def mri?; end
1823
+
1824
+ # @api private
1825
+ # @return [Boolean]
1826
+ #
1827
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:43
1828
+ def non_mri?; end
1829
+
1830
+ # @api private
1831
+ # @return [Boolean]
1832
+ #
1833
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:39
1834
+ def rbx?; end
1835
+
1836
+ # @api private
1837
+ # @return [Boolean]
1838
+ #
1839
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:51
1840
+ def truffleruby?; end
1841
+ end
1842
+ end
1843
+
1844
+ # Provides query methods for ruby features that differ among
1845
+ # implementations.
1846
+ #
1847
+ # @api private
1848
+ #
1849
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:60
1850
+ module RSpec::Support::RubyFeatures
1851
+ private
1852
+
1853
+ # @api private
1854
+ #
1855
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:83
1856
+ def caller_locations_supported?; end
1857
+
1858
+ # On JRuby 1.7 `--1.8` mode, `Process.respond_to?(:fork)` returns true,
1859
+ # but when you try to fork, it raises an error:
1860
+ # NotImplementedError: fork is not available on this platform
1861
+ #
1862
+ # When we drop support for JRuby 1.7 and/or Ruby 1.8, we can drop
1863
+ # this special case.
1864
+ #
1865
+ # @api private
1866
+ # @return [Boolean]
1867
+ #
1868
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:74
1869
+ def fork_supported?; end
1870
+
1871
+ # @api private
1872
+ # @return [Boolean]
1873
+ #
1874
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:130
1875
+ def kw_args_supported?; end
1876
+
1877
+ # @api private
1878
+ #
1879
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:186
1880
+ def module_prepends_supported?; end
1881
+
1882
+ # @api private
1883
+ #
1884
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:182
1885
+ def module_refinement_supported?; end
1886
+
1887
+ # @api private
1888
+ #
1889
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:79
1890
+ def optional_and_splat_args_supported?; end
1891
+
1892
+ # @api private
1893
+ # @return [Boolean]
1894
+ #
1895
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:134
1896
+ def required_kw_args_supported?; end
1897
+
1898
+ # @api private
1899
+ # @return [Boolean]
1900
+ #
1901
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:120
1902
+ def ripper_supported?; end
1903
+
1904
+ # @api private
1905
+ # @return [Boolean]
1906
+ #
1907
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:88
1908
+ def supports_exception_cause?; end
1909
+
1910
+ # @api private
1911
+ # @return [Boolean]
1912
+ #
1913
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:138
1914
+ def supports_rebinding_module_methods?; end
1915
+
1916
+ # @api private
1917
+ # @return [Boolean]
1918
+ #
1919
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:98
1920
+ def supports_taint?; end
1921
+
1922
+ class << self
1923
+ # @api private
1924
+ # @return [Boolean]
1925
+ #
1926
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:83
1927
+ def caller_locations_supported?; end
1928
+
1929
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:74
1930
+ def fork_supported?; end
1931
+
1932
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:130
1933
+ def kw_args_supported?; end
1934
+
1935
+ # @api private
1936
+ # @return [Boolean]
1937
+ #
1938
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:186
1939
+ def module_prepends_supported?; end
1940
+
1941
+ # @api private
1942
+ # @return [Boolean]
1943
+ #
1944
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:182
1945
+ def module_refinement_supported?; end
1946
+
1947
+ # @api private
1948
+ # @return [Boolean]
1949
+ #
1950
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:79
1951
+ def optional_and_splat_args_supported?; end
1952
+
1953
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:134
1954
+ def required_kw_args_supported?; end
1955
+
1956
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:120
1957
+ def ripper_supported?; end
1958
+
1959
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:88
1960
+ def supports_exception_cause?; end
1961
+
1962
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:138
1963
+ def supports_rebinding_module_methods?; end
1964
+
1965
+ # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:98
1966
+ def supports_taint?; end
1967
+ end
1968
+ end
1969
+
1970
+ # Figures out wether a given method can accept various arguments.
1971
+ # Surprisingly non-trivial.
1972
+ #
1973
+ # @private
1974
+ #
1975
+ # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:385
1976
+ RSpec::Support::StrictSignatureVerifier = RSpec::Support::MethodSignatureVerifier
1977
+
1978
+ # source://rspec-support-3.11.0/lib/rspec/support/version.rb:3
1979
+ module RSpec::Support::Version
1980
+ ;
1981
+ end
1982
+
1983
+ # source://rspec-support-3.11.0/lib/rspec/support/version.rb:4
1984
+ RSpec::Support::Version::STRING = T.let(T.unsafe(nil), String)
1985
+
1986
+ # source://rspec-support-3.11.0/lib/rspec/support/warnings.rb:6
1987
+ module RSpec::Support::Warnings
1988
+ # source://rspec-support-3.11.0/lib/rspec/support/warnings.rb:7
1989
+ def deprecate(deprecated, options = T.unsafe(nil))
1990
+ ;
1991
+ end
1992
+
1993
+ # Used internally to print deprecation warnings
1994
+ # when rspec-core isn't loaded
1995
+ #
1996
+ # @private
1997
+ #
1998
+ # source://rspec-support-3.11.0/lib/rspec/support/warnings.rb:15
1999
+ def warn_deprecation(message, options = T.unsafe(nil))
2000
+ ;
2001
+ end
2002
+
2003
+ # Used internally to print longer warnings
2004
+ #
2005
+ # @private
2006
+ #
2007
+ # source://rspec-support-3.11.0/lib/rspec/support/warnings.rb:29
2008
+ def warn_with(message, options = T.unsafe(nil))
2009
+ ;
2010
+ end
2011
+
2012
+ # Used internally to print warnings
2013
+ #
2014
+ # @private
2015
+ #
2016
+ # source://rspec-support-3.11.0/lib/rspec/support/warnings.rb:22
2017
+ def warning(text, options = T.unsafe(nil))
2018
+ ;
2019
+ end
2020
+ end
2021
+
2022
+ # source://rspec-support-3.11.0/lib/rspec/support/with_keywords_when_needed.rb:5
2023
+ module RSpec::Support::WithKeywordsWhenNeeded
2024
+ private
2025
+
2026
+ # Remove this in RSpec 4 in favour of explictly passed in kwargs where
2027
+ # this is used. Works around a warning in Ruby 2.7
2028
+ #
2029
+ # source://rspec-support-3.11.0/lib/rspec/support/with_keywords_when_needed.rb:15
2030
+ def class_exec(klass, *args, **_arg2, &block)
2031
+ ;
2032
+ end
2033
+
2034
+ class << self
2035
+ # source://rspec-support-3.11.0/lib/rspec/support/with_keywords_when_needed.rb:15
2036
+ def class_exec(klass, *args, **_arg2, &block)
2037
+ ;
2038
+ end
2039
+ end
2040
+ end