bungie_sdk 0.1.1

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 (108) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +147 -0
  5. data/.solargraph.yml +23 -0
  6. data/.travis.yml +6 -0
  7. data/.vim/coc-settings.json +12 -0
  8. data/CODE_OF_CONDUCT.md +74 -0
  9. data/Gemfile +19 -0
  10. data/Gemfile.lock +133 -0
  11. data/LICENSE.txt +21 -0
  12. data/README.md +56 -0
  13. data/Rakefile +6 -0
  14. data/bin/console +15 -0
  15. data/bin/setup +8 -0
  16. data/bin/tapioca +29 -0
  17. data/bungie_sdk.gemspec +35 -0
  18. data/lib/bungie_sdk/agent.rb +166 -0
  19. data/lib/bungie_sdk/character.rb +82 -0
  20. data/lib/bungie_sdk/client.rb +72 -0
  21. data/lib/bungie_sdk/item.rb +83 -0
  22. data/lib/bungie_sdk/membership.rb +30 -0
  23. data/lib/bungie_sdk/profile.rb +36 -0
  24. data/lib/bungie_sdk/token_manager.rb +136 -0
  25. data/lib/bungie_sdk/vendor.rb +64 -0
  26. data/lib/bungie_sdk/version.rb +4 -0
  27. data/lib/bungie_sdk.rb +104 -0
  28. data/sorbet/config +3 -0
  29. data/sorbet/rbi/gems/addressable.rbi +151 -0
  30. data/sorbet/rbi/gems/addressable@2.8.0.rbi +224 -0
  31. data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
  32. data/sorbet/rbi/gems/bungie_sdk.rbi +15 -0
  33. data/sorbet/rbi/gems/coderay.rbi +285 -0
  34. data/sorbet/rbi/gems/coderay@1.1.3.rbi +1005 -0
  35. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +185 -0
  36. data/sorbet/rbi/gems/dotenv.rbi +68 -0
  37. data/sorbet/rbi/gems/dotenv@2.7.6.rbi +88 -0
  38. data/sorbet/rbi/gems/ethon.rbi +716 -0
  39. data/sorbet/rbi/gems/ethon@0.15.0.rbi +883 -0
  40. data/sorbet/rbi/gems/faraday-net_http.rbi +33 -0
  41. data/sorbet/rbi/gems/faraday-net_http@2.0.1.rbi +78 -0
  42. data/sorbet/rbi/gems/faraday.rbi +696 -0
  43. data/sorbet/rbi/gems/faraday@2.2.0.rbi +685 -0
  44. data/sorbet/rbi/gems/ffi.rbi +560 -0
  45. data/sorbet/rbi/gems/ffi@1.15.5.rbi +849 -0
  46. data/sorbet/rbi/gems/gem-release.rbi +582 -0
  47. data/sorbet/rbi/gems/gem-release@2.2.2.rbi +644 -0
  48. data/sorbet/rbi/gems/hashie.rbi +160 -0
  49. data/sorbet/rbi/gems/jwt.rbi +274 -0
  50. data/sorbet/rbi/gems/jwt@2.3.0.rbi +437 -0
  51. data/sorbet/rbi/gems/launchy.rbi +226 -0
  52. data/sorbet/rbi/gems/launchy@2.5.0.rbi +327 -0
  53. data/sorbet/rbi/gems/method_source.rbi +64 -0
  54. data/sorbet/rbi/gems/method_source@1.0.0.rbi +72 -0
  55. data/sorbet/rbi/gems/multi_json.rbi +62 -0
  56. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +96 -0
  57. data/sorbet/rbi/gems/multi_xml.rbi +35 -0
  58. data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +36 -0
  59. data/sorbet/rbi/gems/oauth2.rbi +143 -0
  60. data/sorbet/rbi/gems/oauth2@1.4.9.rbi +181 -0
  61. data/sorbet/rbi/gems/parallel@1.22.1.rbi +8 -0
  62. data/sorbet/rbi/gems/parser@3.1.1.0.rbi +1196 -0
  63. data/sorbet/rbi/gems/pry.rbi +1898 -0
  64. data/sorbet/rbi/gems/pry@0.14.1.rbi +2486 -0
  65. data/sorbet/rbi/gems/public_suffix.rbi +104 -0
  66. data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +145 -0
  67. data/sorbet/rbi/gems/rack.rbi +21 -0
  68. data/sorbet/rbi/gems/rack@2.2.3.rbi +1622 -0
  69. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +8 -0
  70. data/sorbet/rbi/gems/rake.rbi +644 -0
  71. data/sorbet/rbi/gems/rake@12.3.3.rbi +804 -0
  72. data/sorbet/rbi/gems/rbi@0.0.14.rbi +2073 -0
  73. data/sorbet/rbi/gems/regexp_parser@2.3.0.rbi +8 -0
  74. data/sorbet/rbi/gems/rexml@3.2.5.rbi +672 -0
  75. data/sorbet/rbi/gems/rspec-core.rbi +1898 -0
  76. data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +2468 -0
  77. data/sorbet/rbi/gems/rspec-expectations.rbi +1171 -0
  78. data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +1634 -0
  79. data/sorbet/rbi/gems/rspec-mocks.rbi +1094 -0
  80. data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +1497 -0
  81. data/sorbet/rbi/gems/rspec-support.rbi +280 -0
  82. data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +511 -0
  83. data/sorbet/rbi/gems/rspec.rbi +15 -0
  84. data/sorbet/rbi/gems/rspec@3.11.0.rbi +40 -0
  85. data/sorbet/rbi/gems/rubocop-ast@1.17.0.rbi +8 -0
  86. data/sorbet/rbi/gems/rubocop-sorbet@0.6.7.rbi +8 -0
  87. data/sorbet/rbi/gems/rubocop@1.27.0.rbi +8 -0
  88. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +8 -0
  89. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
  90. data/sorbet/rbi/gems/spoom@1.1.11.rbi +1445 -0
  91. data/sorbet/rbi/gems/tapioca@0.7.1.rbi +1677 -0
  92. data/sorbet/rbi/gems/thor@1.2.1.rbi +844 -0
  93. data/sorbet/rbi/gems/typhoeus.rbi +301 -0
  94. data/sorbet/rbi/gems/typhoeus@1.4.0.rbi +450 -0
  95. data/sorbet/rbi/gems/unicode-display_width@2.1.0.rbi +8 -0
  96. data/sorbet/rbi/gems/unparser@0.6.4.rbi +8 -0
  97. data/sorbet/rbi/gems/webrick@1.7.0.rbi +601 -0
  98. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +235 -0
  99. data/sorbet/rbi/gems/yard@0.9.27.rbi +3966 -0
  100. data/sorbet/rbi/hidden-definitions/errors.txt +4013 -0
  101. data/sorbet/rbi/hidden-definitions/hidden.rbi +8945 -0
  102. data/sorbet/rbi/sorbet-typed/lib/faraday/all/faraday.rbi +82 -0
  103. data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +645 -0
  104. data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +24 -0
  105. data/sorbet/rbi/todo.rbi +8 -0
  106. data/sorbet/tapioca/config.yml +13 -0
  107. data/sorbet/tapioca/require.rb +4 -0
  108. metadata +236 -0
@@ -0,0 +1,1497 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `rspec-mocks` gem.
5
+ # Please instead update this file by running `bin/tapioca gem rspec-mocks`.
6
+
7
+ module RSpec
8
+ extend ::RSpec::Support::Warnings
9
+ extend ::RSpec::Core::Warnings
10
+
11
+ class << self
12
+ def clear_examples; end
13
+ def configuration; end
14
+ def configuration=(_arg0); end
15
+ def configure; end
16
+ def const_missing(name); end
17
+ def context(*args, &example_group_block); end
18
+ def current_example; end
19
+ def current_example=(example); end
20
+ def current_scope; end
21
+ def current_scope=(scope); end
22
+ def describe(*args, &example_group_block); end
23
+ def example_group(*args, &example_group_block); end
24
+ def fcontext(*args, &example_group_block); end
25
+ def fdescribe(*args, &example_group_block); end
26
+ def reset; end
27
+ def shared_context(name, *args, &block); end
28
+ def shared_examples(name, *args, &block); end
29
+ def shared_examples_for(name, *args, &block); end
30
+ def world; end
31
+ def world=(_arg0); end
32
+ def xcontext(*args, &example_group_block); end
33
+ def xdescribe(*args, &example_group_block); end
34
+ end
35
+ end
36
+
37
+ RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash)
38
+
39
+ module RSpec::Mocks
40
+ class << self
41
+ def allow_message(subject, message, opts = T.unsafe(nil), &block); end
42
+ def configuration; end
43
+ def error_generator; end
44
+ def expect_message(subject, message, opts = T.unsafe(nil), &block); end
45
+ def setup; end
46
+ def space; end
47
+ def teardown; end
48
+ def verify; end
49
+ def with_temporary_scope; end
50
+ end
51
+ end
52
+
53
+ class RSpec::Mocks::AllowanceTarget < ::RSpec::Mocks::TargetBase
54
+ def expression; end
55
+ def not_to(matcher, *_args); end
56
+ def to(matcher, &block); end
57
+ def to_not(matcher, *_args); end
58
+ end
59
+
60
+ class RSpec::Mocks::AndInvokeImplementation
61
+ def initialize(procs_to_invoke); end
62
+
63
+ def call(*args, &block); end
64
+ end
65
+
66
+ class RSpec::Mocks::AndReturnImplementation
67
+ def initialize(values_to_return); end
68
+
69
+ def call(*_args_to_ignore, &_block); end
70
+ end
71
+
72
+ class RSpec::Mocks::AndWrapOriginalImplementation
73
+ def initialize(method, block); end
74
+
75
+ def call(*args, &block); end
76
+ def initial_action=(_value); end
77
+ def inner_action; end
78
+ def inner_action=(_value); end
79
+ def present?; end
80
+ def terminal_action=(_value); end
81
+
82
+ private
83
+
84
+ def cannot_modify_further_error; end
85
+ end
86
+
87
+ class RSpec::Mocks::AndWrapOriginalImplementation::CannotModifyFurtherError < ::StandardError; end
88
+
89
+ class RSpec::Mocks::AndYieldImplementation
90
+ def initialize(args_to_yield, eval_context, error_generator); end
91
+
92
+ def call(*_args_to_ignore, &block); end
93
+ end
94
+
95
+ module RSpec::Mocks::AnyInstance
96
+ class << self
97
+ def error_generator; end
98
+ end
99
+ end
100
+
101
+ class RSpec::Mocks::AnyInstance::Chain
102
+ include ::RSpec::Mocks::AnyInstance::Chain::Customizations
103
+
104
+ def initialize(recorder, *args, &block); end
105
+
106
+ def constrained_to_any_of?(*constraints); end
107
+ def expectation_fulfilled!; end
108
+ def matches_args?(*args); end
109
+ def never; end
110
+ def playback!(instance); end
111
+ def with(*args, &block); end
112
+
113
+ private
114
+
115
+ def last_message; end
116
+ def messages; end
117
+ def negated?; end
118
+ def record(rspec_method_name, *args, &block); end
119
+ end
120
+
121
+ module RSpec::Mocks::AnyInstance::Chain::Customizations
122
+ def and_call_original(*args, &block); end
123
+ def and_raise(*args, &block); end
124
+ def and_return(*args, &block); end
125
+ def and_throw(*args, &block); end
126
+ def and_wrap_original(*args, &block); end
127
+ def and_yield(*args, &block); end
128
+ def at_least(*args, &block); end
129
+ def at_most(*args, &block); end
130
+ def exactly(*args, &block); end
131
+ def never(*args, &block); end
132
+ def once(*args, &block); end
133
+ def thrice(*args, &block); end
134
+ def time(*args, &block); end
135
+ def times(*args, &block); end
136
+ def twice(*args, &block); end
137
+ def with(*args, &block); end
138
+
139
+ class << self
140
+ def record(method_name); end
141
+ end
142
+ end
143
+
144
+ class RSpec::Mocks::AnyInstance::ErrorGenerator < ::RSpec::Mocks::ErrorGenerator
145
+ def raise_does_not_implement_error(klass, method_name); end
146
+ def raise_message_already_received_by_other_instance_error(method_name, object_inspect, invoked_instance); end
147
+ def raise_not_supported_with_prepend_error(method_name, problem_mod); end
148
+ def raise_second_instance_received_message_error(unfulfilled_expectations); end
149
+ end
150
+
151
+ class RSpec::Mocks::AnyInstance::ExpectChainChain < ::RSpec::Mocks::AnyInstance::StubChain
152
+ def initialize(*args); end
153
+
154
+ def expectation_fulfilled?; end
155
+ def playback!(instance); end
156
+
157
+ private
158
+
159
+ def create_message_expectation_on(instance); end
160
+ def invocation_order; end
161
+ end
162
+
163
+ class RSpec::Mocks::AnyInstance::ExpectationChain < ::RSpec::Mocks::AnyInstance::Chain
164
+ def initialize(*args, &block); end
165
+
166
+ def expectation_fulfilled?; end
167
+
168
+ private
169
+
170
+ def verify_invocation_order(_rspec_method_name, *_args, &_block); end
171
+ end
172
+
173
+ class RSpec::Mocks::AnyInstance::FluentInterfaceProxy
174
+ def initialize(targets); end
175
+
176
+ def method_missing(*args, &block); end
177
+
178
+ private
179
+
180
+ def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end
181
+ end
182
+
183
+ class RSpec::Mocks::AnyInstance::MessageChains
184
+ def initialize; end
185
+
186
+ def [](method_name); end
187
+ def add(method_name, chain); end
188
+ def all_expectations_fulfilled?; end
189
+ def each_unfulfilled_expectation_matching(method_name, *args); end
190
+ def has_expectation?(method_name); end
191
+ def playback!(instance, method_name); end
192
+ def received_expected_message!(method_name); end
193
+ def remove_stub_chains_for!(method_name); end
194
+ def unfulfilled_expectations; end
195
+
196
+ private
197
+
198
+ def raise_if_second_instance_to_receive_message(instance); end
199
+ end
200
+
201
+ class RSpec::Mocks::AnyInstance::PositiveExpectationChain < ::RSpec::Mocks::AnyInstance::ExpectationChain
202
+ private
203
+
204
+ def create_message_expectation_on(instance); end
205
+ def invocation_order; end
206
+ end
207
+
208
+ RSpec::Mocks::AnyInstance::PositiveExpectationChain::ExpectationInvocationOrder = T.let(T.unsafe(nil), Hash)
209
+
210
+ class RSpec::Mocks::AnyInstance::Proxy
211
+ def initialize(recorder, target_proxies); end
212
+
213
+ def expect_chain(*chain, &block); end
214
+ def klass; end
215
+ def should_not_receive(method_name, &block); end
216
+ def should_receive(method_name, &block); end
217
+ def stub(method_name_or_method_map, &block); end
218
+ def stub_chain(*chain, &block); end
219
+ def unstub(method_name); end
220
+
221
+ private
222
+
223
+ def perform_proxying(method_name, args, block, &target_proxy_block); end
224
+ end
225
+
226
+ class RSpec::Mocks::AnyInstance::Recorder
227
+ def initialize(klass); end
228
+
229
+ def already_observing?(method_name); end
230
+ def build_alias_method_name(method_name); end
231
+ def expect_chain(*method_names_and_optional_return_values, &block); end
232
+ def instance_that_received(method_name); end
233
+ def klass; end
234
+ def message_chains; end
235
+ def notify_received_message(_object, message, args, _blk); end
236
+ def playback!(instance, method_name); end
237
+ def should_not_receive(method_name, &block); end
238
+ def should_receive(method_name, &block); end
239
+ def stop_all_observation!; end
240
+ def stub(method_name, &block); end
241
+ def stub_chain(*method_names_and_optional_return_values, &block); end
242
+ def stubs; end
243
+ def unstub(method_name); end
244
+ def verify; end
245
+
246
+ protected
247
+
248
+ def stop_observing!(method_name); end
249
+
250
+ private
251
+
252
+ def allow_no_prepended_module_definition_of(method_name); end
253
+ def ancestor_is_an_observer?(method_name); end
254
+ def backup_method!(method_name); end
255
+ def mark_invoked!(method_name); end
256
+ def normalize_chain(*args); end
257
+ def observe!(method_name); end
258
+ def public_protected_or_private_method_defined?(method_name); end
259
+ def received_expected_message!(method_name); end
260
+ def remove_dummy_method!(method_name); end
261
+ def restore_method!(method_name); end
262
+ def restore_original_method!(method_name); end
263
+ def super_class_observers_for(method_name); end
264
+ def super_class_observing?(method_name); end
265
+ end
266
+
267
+ class RSpec::Mocks::AnyInstance::StubChain < ::RSpec::Mocks::AnyInstance::Chain
268
+ def expectation_fulfilled?; end
269
+
270
+ private
271
+
272
+ def create_message_expectation_on(instance); end
273
+ def invocation_order; end
274
+ def verify_invocation_order(rspec_method_name, *_args, &_block); end
275
+ end
276
+
277
+ RSpec::Mocks::AnyInstance::StubChain::EmptyInvocationOrder = T.let(T.unsafe(nil), Hash)
278
+ RSpec::Mocks::AnyInstance::StubChain::InvocationOrder = T.let(T.unsafe(nil), Hash)
279
+
280
+ class RSpec::Mocks::AnyInstance::StubChainChain < ::RSpec::Mocks::AnyInstance::StubChain
281
+ def initialize(*args); end
282
+
283
+ private
284
+
285
+ def create_message_expectation_on(instance); end
286
+ def invocation_order; end
287
+ end
288
+
289
+ class RSpec::Mocks::AnyInstanceAllowanceTarget < ::RSpec::Mocks::TargetBase
290
+ def expression; end
291
+ def not_to(matcher, *_args); end
292
+ def to(matcher, &block); end
293
+ def to_not(matcher, *_args); end
294
+ end
295
+
296
+ class RSpec::Mocks::AnyInstanceExpectationTarget < ::RSpec::Mocks::TargetBase
297
+ def expression; end
298
+ def not_to(matcher, &block); end
299
+ def to(matcher, &block); end
300
+ def to_not(matcher, &block); end
301
+ end
302
+
303
+ class RSpec::Mocks::ArgumentListMatcher
304
+ def initialize(*expected_args); end
305
+
306
+ def args_match?(*actual_args); end
307
+ def expected_args; end
308
+ def resolve_expected_args_based_on(actual_args); end
309
+
310
+ private
311
+
312
+ def ensure_expected_args_valid!; end
313
+ def replace_any_args_with_splat_of_anything(before_count, actual_args_count); end
314
+ end
315
+
316
+ RSpec::Mocks::ArgumentListMatcher::MATCH_ALL = T.let(T.unsafe(nil), RSpec::Mocks::ArgumentListMatcher)
317
+
318
+ module RSpec::Mocks::ArgumentMatchers
319
+ def a_kind_of(klass); end
320
+ def an_instance_of(klass); end
321
+ def any_args; end
322
+ def anything; end
323
+ def array_including(*args); end
324
+ def boolean; end
325
+ def duck_type(*args); end
326
+ def hash_excluding(*args); end
327
+ def hash_including(*args); end
328
+ def hash_not_including(*args); end
329
+ def instance_of(klass); end
330
+ def kind_of(klass); end
331
+ def no_args; end
332
+
333
+ class << self
334
+ def anythingize_lonely_keys(*args); end
335
+ end
336
+ end
337
+
338
+ class RSpec::Mocks::ArgumentMatchers::AnyArgMatcher < ::RSpec::Mocks::ArgumentMatchers::SingletonMatcher
339
+ def ===(_other); end
340
+ def description; end
341
+ end
342
+
343
+ RSpec::Mocks::ArgumentMatchers::AnyArgMatcher::INSTANCE = T.let(T.unsafe(nil), RSpec::Mocks::ArgumentMatchers::AnyArgMatcher)
344
+
345
+ class RSpec::Mocks::ArgumentMatchers::AnyArgsMatcher < ::RSpec::Mocks::ArgumentMatchers::SingletonMatcher
346
+ def description; end
347
+ end
348
+
349
+ RSpec::Mocks::ArgumentMatchers::AnyArgsMatcher::INSTANCE = T.let(T.unsafe(nil), RSpec::Mocks::ArgumentMatchers::AnyArgsMatcher)
350
+
351
+ class RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher
352
+ def initialize(expected); end
353
+
354
+ def ===(actual); end
355
+ def description; end
356
+
357
+ private
358
+
359
+ def formatted_expected_values; end
360
+ end
361
+
362
+ class RSpec::Mocks::ArgumentMatchers::BaseHashMatcher
363
+ def initialize(expected); end
364
+
365
+ def ===(predicate, actual); end
366
+ def description(name); end
367
+
368
+ private
369
+
370
+ def formatted_expected_hash; end
371
+ end
372
+
373
+ class RSpec::Mocks::ArgumentMatchers::BooleanMatcher < ::RSpec::Mocks::ArgumentMatchers::SingletonMatcher
374
+ def ===(value); end
375
+ def description; end
376
+ end
377
+
378
+ RSpec::Mocks::ArgumentMatchers::BooleanMatcher::INSTANCE = T.let(T.unsafe(nil), RSpec::Mocks::ArgumentMatchers::BooleanMatcher)
379
+
380
+ class RSpec::Mocks::ArgumentMatchers::DuckTypeMatcher
381
+ def initialize(*methods_to_respond_to); end
382
+
383
+ def ===(value); end
384
+ def description; end
385
+ end
386
+
387
+ class RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher < ::RSpec::Mocks::ArgumentMatchers::BaseHashMatcher
388
+ def ===(actual); end
389
+ def description; end
390
+ end
391
+
392
+ class RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher < ::RSpec::Mocks::ArgumentMatchers::BaseHashMatcher
393
+ def ===(actual); end
394
+ def description; end
395
+ end
396
+
397
+ class RSpec::Mocks::ArgumentMatchers::InstanceOf
398
+ def initialize(klass); end
399
+
400
+ def ===(actual); end
401
+ def description; end
402
+ end
403
+
404
+ class RSpec::Mocks::ArgumentMatchers::KindOf
405
+ def initialize(klass); end
406
+
407
+ def ===(actual); end
408
+ def description; end
409
+ end
410
+
411
+ class RSpec::Mocks::ArgumentMatchers::NoArgsMatcher < ::RSpec::Mocks::ArgumentMatchers::SingletonMatcher
412
+ def description; end
413
+ end
414
+
415
+ RSpec::Mocks::ArgumentMatchers::NoArgsMatcher::INSTANCE = T.let(T.unsafe(nil), RSpec::Mocks::ArgumentMatchers::NoArgsMatcher)
416
+
417
+ class RSpec::Mocks::ArgumentMatchers::SingletonMatcher
418
+ class << self
419
+ def inherited(subklass); end
420
+ end
421
+ end
422
+
423
+ class RSpec::Mocks::CallbackInvocationStrategy
424
+ def call(doubled_module); end
425
+ end
426
+
427
+ class RSpec::Mocks::CannotSupportArgMutationsError < ::StandardError; end
428
+
429
+ class RSpec::Mocks::ClassNewMethodReference < ::RSpec::Mocks::ObjectMethodReference
430
+ def with_signature; end
431
+
432
+ class << self
433
+ def applies_to?(method_name); end
434
+ end
435
+ end
436
+
437
+ class RSpec::Mocks::ClassVerifyingDouble < ::Module
438
+ include ::RSpec::Mocks::TestDouble
439
+ include ::RSpec::Mocks::VerifyingDouble
440
+ include ::RSpec::Mocks::ObjectVerifyingDoubleMethods
441
+ end
442
+
443
+ class RSpec::Mocks::Configuration
444
+ def initialize; end
445
+
446
+ def add_stub_and_should_receive_to(*modules); end
447
+ def allow_message_expectations_on_nil; end
448
+ def allow_message_expectations_on_nil=(_arg0); end
449
+ def before_verifying_doubles(&block); end
450
+ def color?; end
451
+ def patch_marshal_to_support_partial_doubles=(val); end
452
+ def reset_syntaxes_to_default; end
453
+ def syntax; end
454
+ def syntax=(*values); end
455
+ def temporarily_suppress_partial_double_verification; end
456
+ def temporarily_suppress_partial_double_verification=(_arg0); end
457
+ def transfer_nested_constants=(_arg0); end
458
+ def transfer_nested_constants?; end
459
+ def verify_doubled_constant_names=(_arg0); end
460
+ def verify_doubled_constant_names?; end
461
+ def verify_partial_doubles=(val); end
462
+ def verify_partial_doubles?; end
463
+ def verifying_double_callbacks; end
464
+ def when_declaring_verifying_double(&block); end
465
+ def yield_receiver_to_any_instance_implementation_blocks=(_arg0); end
466
+ def yield_receiver_to_any_instance_implementation_blocks?; end
467
+ end
468
+
469
+ class RSpec::Mocks::Constant
470
+ extend ::RSpec::Support::RecursiveConstMethods
471
+
472
+ def initialize(name); end
473
+
474
+ def hidden=(_arg0); end
475
+ def hidden?; end
476
+ def inspect; end
477
+ def mutated?; end
478
+ def name; end
479
+ def original_value; end
480
+ def original_value=(_arg0); end
481
+ def previously_defined=(_arg0); end
482
+ def previously_defined?; end
483
+ def stubbed=(_arg0); end
484
+ def stubbed?; end
485
+ def to_s; end
486
+ def valid_name=(_arg0); end
487
+ def valid_name?; end
488
+
489
+ class << self
490
+ def original(name); end
491
+ def unmutated(name); end
492
+ end
493
+ end
494
+
495
+ class RSpec::Mocks::ConstantMutator
496
+ extend ::RSpec::Support::RecursiveConstMethods
497
+
498
+ class << self
499
+ def hide(constant_name); end
500
+ def mutate(mutator); end
501
+ def raise_on_invalid_const; end
502
+ def stub(constant_name, value, options = T.unsafe(nil)); end
503
+ end
504
+ end
505
+
506
+ class RSpec::Mocks::ConstantMutator::BaseMutator
507
+ include ::RSpec::Support::RecursiveConstMethods
508
+
509
+ def initialize(full_constant_name, mutated_value, transfer_nested_constants); end
510
+
511
+ def full_constant_name; end
512
+ def idempotently_reset; end
513
+ def original_value; end
514
+ def to_constant; end
515
+ end
516
+
517
+ class RSpec::Mocks::ConstantMutator::ConstantHider < ::RSpec::Mocks::ConstantMutator::BaseMutator
518
+ def mutate; end
519
+ def reset; end
520
+ def to_constant; end
521
+ end
522
+
523
+ class RSpec::Mocks::ConstantMutator::DefinedConstantReplacer < ::RSpec::Mocks::ConstantMutator::BaseMutator
524
+ def initialize(*args); end
525
+
526
+ def mutate; end
527
+ def reset; end
528
+ def should_transfer_nested_constants?; end
529
+ def to_constant; end
530
+ def transfer_nested_constants; end
531
+ def verify_constants_to_transfer!; end
532
+ end
533
+
534
+ class RSpec::Mocks::ConstantMutator::UndefinedConstantSetter < ::RSpec::Mocks::ConstantMutator::BaseMutator
535
+ def mutate; end
536
+ def reset; end
537
+ def to_constant; end
538
+
539
+ private
540
+
541
+ def name_for(parent, name); end
542
+ end
543
+
544
+ RSpec::Mocks::DEFAULT_CALLBACK_INVOCATION_STRATEGY = T.let(T.unsafe(nil), RSpec::Mocks::CallbackInvocationStrategy)
545
+
546
+ class RSpec::Mocks::DirectObjectReference
547
+ def initialize(object); end
548
+
549
+ def const_to_replace; end
550
+ def defined?; end
551
+ def description; end
552
+ def target; end
553
+ def when_loaded; end
554
+ end
555
+
556
+ class RSpec::Mocks::Double
557
+ include ::RSpec::Mocks::TestDouble
558
+ end
559
+
560
+ class RSpec::Mocks::ErrorGenerator
561
+ def initialize(target = T.unsafe(nil)); end
562
+
563
+ def default_error_message(expectation, expected_args, actual_args); end
564
+ def describe_expectation(verb, message, expected_received_count, _actual_received_count, args); end
565
+ def expectation_on_nil_message(method_name); end
566
+ def intro(unwrapped = T.unsafe(nil)); end
567
+ def method_call_args_description(args, generic_prefix = T.unsafe(nil), matcher_prefix = T.unsafe(nil)); end
568
+ def opts; end
569
+ def opts=(_arg0); end
570
+ def raise_already_invoked_error(message, calling_customization); end
571
+ def raise_cant_constrain_count_for_negated_have_received_error(count_constraint); end
572
+ def raise_double_negation_error(wrapped_expression); end
573
+ def raise_expectation_error(message, expected_received_count, argument_list_matcher, actual_received_count, expectation_count_type, args, backtrace_line = T.unsafe(nil), source_id = T.unsafe(nil)); end
574
+ def raise_expectation_on_mocked_method(method); end
575
+ def raise_expectation_on_nil_error(method_name); end
576
+ def raise_expectation_on_unstubbed_method(method); end
577
+ def raise_expired_test_double_error; end
578
+ def raise_have_received_disallowed(type, reason); end
579
+ def raise_invalid_arguments_error(verifier); end
580
+ def raise_method_not_stubbed_error(method_name); end
581
+ def raise_missing_block_error(args_to_yield); end
582
+ def raise_missing_default_stub_error(expectation, args_for_multiple_calls); end
583
+ def raise_non_public_error(method_name, visibility); end
584
+ def raise_only_valid_on_a_partial_double(method); end
585
+ def raise_out_of_order_error(message); end
586
+ def raise_similar_message_args_error(expectation, args_for_multiple_calls, backtrace_line = T.unsafe(nil)); end
587
+ def raise_unexpected_message_args_error(expectation, args_for_multiple_calls, source_id = T.unsafe(nil)); end
588
+ def raise_unexpected_message_error(message, args); end
589
+ def raise_unimplemented_error(doubled_module, method_name, object); end
590
+ def raise_verifying_double_not_defined_error(ref); end
591
+ def raise_wrong_arity_error(args_to_yield, signature); end
592
+
593
+ private
594
+
595
+ def __raise(message, backtrace_line = T.unsafe(nil), source_id = T.unsafe(nil)); end
596
+ def arg_list(args); end
597
+ def count_message(count, expectation_count_type = T.unsafe(nil)); end
598
+ def diff_message(expected_args, actual_args); end
599
+ def differ; end
600
+ def error_message(expectation, args_for_multiple_calls); end
601
+ def expected_part_of_expectation_error(expected_received_count, expectation_count_type, argument_list_matcher); end
602
+ def format_args(args); end
603
+ def format_received_args(args_for_multiple_calls); end
604
+ def group_count(index, args); end
605
+ def grouped_args(args); end
606
+ def list_of_exactly_one_string?(args); end
607
+ def notify(*args); end
608
+ def prepend_to_backtrace(exception, line); end
609
+ def received_part_of_expectation_error(actual_received_count, args); end
610
+ def times(count); end
611
+ def unexpected_arguments_message(expected_args_string, actual_args_string); end
612
+ def unpack_string_args(formatted_expected_args, actual_args); end
613
+ end
614
+
615
+ module RSpec::Mocks::ExampleMethods
616
+ include ::RSpec::Mocks::ArgumentMatchers
617
+ include ::RSpec::Mocks::ExampleMethods::ExpectHost
618
+
619
+ def allow(target); end
620
+ def allow_any_instance_of(klass); end
621
+ def allow_message_expectations_on_nil; end
622
+ def class_double(doubled_class, *args); end
623
+ def class_spy(*args); end
624
+ def double(*args); end
625
+ def expect_any_instance_of(klass); end
626
+ def have_received(method_name, &block); end
627
+ def hide_const(constant_name); end
628
+ def instance_double(doubled_class, *args); end
629
+ def instance_spy(*args); end
630
+ def object_double(object_or_name, *args); end
631
+ def object_spy(*args); end
632
+ def receive(method_name, &block); end
633
+ def receive_message_chain(*messages, &block); end
634
+ def receive_messages(message_return_value_hash); end
635
+ def spy(*args); end
636
+ def stub_const(constant_name, value, options = T.unsafe(nil)); end
637
+ def without_partial_double_verification; end
638
+
639
+ class << self
640
+ def declare_double(type, *args); end
641
+ def declare_verifying_double(type, ref, *args); end
642
+ def extended(object); end
643
+ def included(klass); end
644
+ end
645
+ end
646
+
647
+ module RSpec::Mocks::ExampleMethods::ExpectHost
648
+ def expect(target); end
649
+ end
650
+
651
+ class RSpec::Mocks::ExpectChain < ::RSpec::Mocks::MessageChain
652
+ private
653
+
654
+ def expectation(object, message, &return_block); end
655
+
656
+ class << self
657
+ def expect_chain_on(object, *chain, &blk); end
658
+ end
659
+ end
660
+
661
+ class RSpec::Mocks::ExpectationTarget < ::RSpec::Mocks::TargetBase
662
+ include ::RSpec::Mocks::ExpectationTargetMethods
663
+ end
664
+
665
+ module RSpec::Mocks::ExpectationTargetMethods
666
+ include ::RSpec::Mocks::TargetDelegationInstanceMethods
667
+ extend ::RSpec::Mocks::TargetDelegationClassMethods
668
+
669
+ def expression; end
670
+ def not_to(matcher, &block); end
671
+ def to(matcher, &block); end
672
+ def to_not(matcher, &block); end
673
+ end
674
+
675
+ class RSpec::Mocks::ExpiredTestDoubleError < ::RSpec::Mocks::MockExpectationError; end
676
+ RSpec::Mocks::IGNORED_BACKTRACE_LINE = T.let(T.unsafe(nil), String)
677
+
678
+ class RSpec::Mocks::Implementation
679
+ def call(*args, &block); end
680
+ def initial_action; end
681
+ def initial_action=(_arg0); end
682
+ def inner_action; end
683
+ def inner_action=(_arg0); end
684
+ def present?; end
685
+ def terminal_action; end
686
+ def terminal_action=(_arg0); end
687
+
688
+ private
689
+
690
+ def actions; end
691
+ end
692
+
693
+ class RSpec::Mocks::InstanceMethodReference < ::RSpec::Mocks::MethodReference
694
+ private
695
+
696
+ def find_method(mod); end
697
+ def method_defined?(mod); end
698
+ def method_implemented?(mod); end
699
+ def visibility_from(mod); end
700
+ end
701
+
702
+ class RSpec::Mocks::InstanceMethodStasher
703
+ def initialize(object, method); end
704
+
705
+ def handle_restoration_failures; end
706
+ def method_is_stashed?; end
707
+ def original_method; end
708
+ def restore; end
709
+ def stash; end
710
+
711
+ private
712
+
713
+ def method_defined_directly_on_klass?; end
714
+ def method_defined_on_klass?(klass = T.unsafe(nil)); end
715
+ def method_owned_by_klass?; end
716
+ end
717
+
718
+ class RSpec::Mocks::InstanceVerifyingDouble
719
+ include ::RSpec::Mocks::TestDouble
720
+ include ::RSpec::Mocks::VerifyingDouble
721
+
722
+ def __build_mock_proxy(order_group); end
723
+ end
724
+
725
+ class RSpec::Mocks::MarshalExtension
726
+ class << self
727
+ def patch!; end
728
+ def unpatch!; end
729
+ end
730
+ end
731
+
732
+ module RSpec::Mocks::Matchers; end
733
+
734
+ class RSpec::Mocks::Matchers::ExpectationCustomization
735
+ def initialize(method_name, args, block); end
736
+
737
+ def block; end
738
+ def block=(_arg0); end
739
+ def playback_onto(expectation); end
740
+ end
741
+
742
+ class RSpec::Mocks::Matchers::HaveReceived
743
+ include ::RSpec::Mocks::Matchers::Matcher
744
+
745
+ def initialize(method_name, &block); end
746
+
747
+ def at_least(*args); end
748
+ def at_most(*args); end
749
+ def description; end
750
+ def does_not_match?(subject); end
751
+ def exactly(*args); end
752
+ def failure_message; end
753
+ def failure_message_when_negated; end
754
+ def matches?(subject, &block); end
755
+ def name; end
756
+ def once(*args); end
757
+ def ordered(*args); end
758
+ def setup_allowance(_subject, &_block); end
759
+ def setup_any_instance_allowance(_subject, &_block); end
760
+ def setup_any_instance_expectation(_subject, &_block); end
761
+ def setup_any_instance_negative_expectation(_subject, &_block); end
762
+ def setup_expectation(subject, &block); end
763
+ def setup_negative_expectation(subject, &block); end
764
+ def thrice(*args); end
765
+ def time(*args); end
766
+ def times(*args); end
767
+ def twice(*args); end
768
+ def with(*args); end
769
+
770
+ private
771
+
772
+ def apply_constraints_to(expectation); end
773
+ def capture_failure_message; end
774
+ def count_constraint; end
775
+ def disallow(type, reason = T.unsafe(nil)); end
776
+ def ensure_count_unconstrained; end
777
+ def expect; end
778
+ def expected_messages_received_in_order?; end
779
+ def mock_proxy; end
780
+ def notify_failure_message; end
781
+ end
782
+
783
+ RSpec::Mocks::Matchers::HaveReceived::ARGS_CONSTRAINTS = T.let(T.unsafe(nil), Array)
784
+ RSpec::Mocks::Matchers::HaveReceived::CONSTRAINTS = T.let(T.unsafe(nil), Array)
785
+ RSpec::Mocks::Matchers::HaveReceived::COUNT_CONSTRAINTS = T.let(T.unsafe(nil), Array)
786
+ module RSpec::Mocks::Matchers::Matcher; end
787
+
788
+ class RSpec::Mocks::Matchers::Receive
789
+ include ::RSpec::Mocks::Matchers::Matcher
790
+
791
+ def initialize(message, block); end
792
+
793
+ def and_call_original(*args, &block); end
794
+ def and_invoke(*args, &block); end
795
+ def and_raise(*args, &block); end
796
+ def and_return(*args, &block); end
797
+ def and_throw(*args, &block); end
798
+ def and_wrap_original(*args, &block); end
799
+ def and_yield(*args, &block); end
800
+ def at_least(*args, &block); end
801
+ def at_most(*args, &block); end
802
+ def description; end
803
+ def does_not_match?(subject, &block); end
804
+ def exactly(*args, &block); end
805
+ def matches?(subject, &block); end
806
+ def name; end
807
+ def never(*args, &block); end
808
+ def once(*args, &block); end
809
+ def ordered(*args, &block); end
810
+ def setup_allowance(subject, &block); end
811
+ def setup_any_instance_allowance(subject, &block); end
812
+ def setup_any_instance_expectation(subject, &block); end
813
+ def setup_any_instance_negative_expectation(subject, &block); end
814
+ def setup_expectation(subject, &block); end
815
+ def setup_negative_expectation(subject, &block); end
816
+ def thrice(*args, &block); end
817
+ def time(*args, &block); end
818
+ def times(*args, &block); end
819
+ def twice(*args, &block); end
820
+ def with(*args, &block); end
821
+
822
+ private
823
+
824
+ def describable; end
825
+ def move_block_to_last_customization(block); end
826
+ def setup_any_instance_method_substitute(subject, method, block); end
827
+ def setup_method_substitute(host, method, block, *args); end
828
+ def setup_mock_proxy_method_substitute(subject, method, block); end
829
+ def warn_if_any_instance(expression, subject); end
830
+ end
831
+
832
+ class RSpec::Mocks::Matchers::Receive::DefaultDescribable
833
+ def initialize(message); end
834
+
835
+ def description_for(verb); end
836
+ end
837
+
838
+ class RSpec::Mocks::Matchers::ReceiveMessageChain
839
+ include ::RSpec::Mocks::Matchers::Matcher
840
+
841
+ def initialize(chain, &block); end
842
+
843
+ def and_call_original(*args, &block); end
844
+ def and_invoke(*args, &block); end
845
+ def and_raise(*args, &block); end
846
+ def and_return(*args, &block); end
847
+ def and_throw(*args, &block); end
848
+ def and_yield(*args, &block); end
849
+ def description; end
850
+ def does_not_match?(*_args); end
851
+ def matches?(subject, &block); end
852
+ def name; end
853
+ def setup_allowance(subject, &block); end
854
+ def setup_any_instance_allowance(subject, &block); end
855
+ def setup_any_instance_expectation(subject, &block); end
856
+ def setup_expectation(subject, &block); end
857
+ def setup_negative_expectation(*_args); end
858
+ def with(*args, &block); end
859
+
860
+ private
861
+
862
+ def formatted_chain; end
863
+ def replay_customizations(chain); end
864
+ end
865
+
866
+ class RSpec::Mocks::Matchers::ReceiveMessages
867
+ include ::RSpec::Mocks::Matchers::Matcher
868
+
869
+ def initialize(message_return_value_hash); end
870
+
871
+ def description; end
872
+ def does_not_match?(_subject); end
873
+ def matches?(subject); end
874
+ def name; end
875
+ def setup_allowance(subject); end
876
+ def setup_any_instance_allowance(subject); end
877
+ def setup_any_instance_expectation(subject); end
878
+ def setup_expectation(subject); end
879
+ def setup_negative_expectation(_subject); end
880
+ def warn_about_block; end
881
+
882
+ private
883
+
884
+ def any_instance_of(subject); end
885
+ def each_message_on(host); end
886
+ def proxy_on(subject); end
887
+ end
888
+
889
+ class RSpec::Mocks::MessageChain
890
+ def initialize(object, *chain, &blk); end
891
+
892
+ def block; end
893
+ def chain; end
894
+ def object; end
895
+ def setup_chain; end
896
+
897
+ private
898
+
899
+ def chain_on(object, *chain, &block); end
900
+ def find_matching_expectation; end
901
+ def find_matching_stub; end
902
+ def format_chain(*chain, &blk); end
903
+ end
904
+
905
+ class RSpec::Mocks::MessageExpectation
906
+ include ::RSpec::Mocks::MessageExpectation::ImplementationDetails
907
+
908
+ def and_call_original; end
909
+ def and_invoke(first_proc, *procs); end
910
+ def and_raise(*args); end
911
+ def and_return(first_value, *values); end
912
+ def and_throw(*args); end
913
+ def and_wrap_original(&block); end
914
+ def and_yield(*args, &block); end
915
+ def at_least(n, &block); end
916
+ def at_most(n, &block); end
917
+ def exactly(n, &block); end
918
+ def inspect; end
919
+ def never; end
920
+ def once(&block); end
921
+ def ordered(&block); end
922
+ def thrice(&block); end
923
+ def time(&block); end
924
+ def times(&block); end
925
+ def to_s; end
926
+ def twice(&block); end
927
+ def with(*args, &block); end
928
+ end
929
+
930
+ module RSpec::Mocks::MessageExpectation::ImplementationDetails
931
+ def initialize(error_generator, expectation_ordering, expected_from, method_double, type = T.unsafe(nil), opts = T.unsafe(nil), &implementation_block); end
932
+
933
+ def actual_received_count_matters?; end
934
+ def additional_expected_calls; end
935
+ def advise(*args); end
936
+ def and_yield_receiver_to_implementation; end
937
+ def argument_list_matcher=(_arg0); end
938
+ def called_max_times?; end
939
+ def description_for(verb); end
940
+ def ensure_expected_ordering_received!; end
941
+ def error_generator; end
942
+ def expectation_count_type; end
943
+ def expected_args; end
944
+ def expected_messages_received?; end
945
+ def generate_error; end
946
+ def ignoring_args?; end
947
+ def implementation; end
948
+ def increase_actual_received_count!; end
949
+ def invoke(parent_stub, *args, &block); end
950
+ def invoke_without_incrementing_received_count(parent_stub, *args, &block); end
951
+ def matches?(message, *args); end
952
+ def matches_at_least_count?; end
953
+ def matches_at_most_count?; end
954
+ def matches_exact_count?; end
955
+ def matches_name_but_not_args(message, *args); end
956
+ def message; end
957
+ def negative?; end
958
+ def negative_expectation_for?(message); end
959
+ def ordered?; end
960
+ def orig_object; end
961
+ def raise_out_of_order_error; end
962
+ def raise_unexpected_message_args_error(args_for_multiple_calls); end
963
+ def safe_invoke(parent_stub, *args, &block); end
964
+ def similar_messages; end
965
+ def type; end
966
+ def unadvise(args); end
967
+ def verify_messages_received; end
968
+ def yield_receiver_to_implementation_block?; end
969
+
970
+ protected
971
+
972
+ def error_generator=(_arg0); end
973
+ def expected_from=(_arg0); end
974
+ def expected_received_count=(_arg0); end
975
+ def implementation=(_arg0); end
976
+
977
+ private
978
+
979
+ def exception_source_id; end
980
+ def has_been_invoked?; end
981
+ def initial_implementation_action=(action); end
982
+ def inner_implementation_action=(action); end
983
+ def invoke_incrementing_actual_calls_by(increment, allowed_to_fail, parent_stub, *args, &block); end
984
+ def raise_already_invoked_error_if_necessary(calling_customization); end
985
+ def set_expected_received_count(relativity, n); end
986
+ def terminal_implementation_action=(action); end
987
+ def warn_about_stub_override; end
988
+ def wrap_original(method_name, &block); end
989
+ end
990
+
991
+ class RSpec::Mocks::MethodDouble
992
+ def initialize(object, method_name, proxy); end
993
+
994
+ def add_default_stub(*args, &implementation); end
995
+ def add_expectation(error_generator, expectation_ordering, expected_from, opts, &implementation); end
996
+ def add_simple_expectation(method_name, response, error_generator, backtrace_line); end
997
+ def add_simple_stub(method_name, response); end
998
+ def add_stub(error_generator, expectation_ordering, expected_from, opts = T.unsafe(nil), &implementation); end
999
+ def build_expectation(error_generator, expectation_ordering); end
1000
+ def clear; end
1001
+ def configure_method; end
1002
+ def define_proxy_method; end
1003
+ def expectations; end
1004
+ def message_expectation_class; end
1005
+ def method_name; end
1006
+ def method_stasher; end
1007
+ def object; end
1008
+ def object_singleton_class; end
1009
+ def original_implementation_callable; end
1010
+ def original_method; end
1011
+ def proxy_method_invoked(_obj, *args, &block); end
1012
+ def raise_method_not_stubbed_error; end
1013
+ def remove_stub; end
1014
+ def remove_stub_if_present; end
1015
+ def reset; end
1016
+ def restore_original_method; end
1017
+ def restore_original_visibility; end
1018
+ def save_original_implementation_callable!; end
1019
+ def setup_simple_method_double(method_name, response, collection, error_generator = T.unsafe(nil), backtrace_line = T.unsafe(nil)); end
1020
+ def show_frozen_warning; end
1021
+ def stubs; end
1022
+ def verify; end
1023
+ def visibility; end
1024
+
1025
+ private
1026
+
1027
+ def definition_target; end
1028
+ def new_rspec_prepended_module; end
1029
+ def remove_method_from_definition_target; end
1030
+ def usable_rspec_prepended_module; end
1031
+ end
1032
+
1033
+ class RSpec::Mocks::MethodDouble::RSpecPrependedModule < ::Module; end
1034
+
1035
+ class RSpec::Mocks::MethodReference
1036
+ def initialize(object_reference, method_name); end
1037
+
1038
+ def defined?; end
1039
+ def implemented?; end
1040
+ def unimplemented?; end
1041
+ def visibility; end
1042
+ def with_signature; end
1043
+
1044
+ private
1045
+
1046
+ def original_method; end
1047
+
1048
+ class << self
1049
+ def for(object_reference, method_name); end
1050
+ def instance_method_visibility_for(klass, method_name); end
1051
+ def method_defined_at_any_visibility?(klass, method_name); end
1052
+ def method_visibility_for(object, method_name); end
1053
+ end
1054
+ end
1055
+
1056
+ class RSpec::Mocks::MockExpectationAlreadyInvokedError < ::Exception; end
1057
+ class RSpec::Mocks::MockExpectationError < ::Exception; end
1058
+
1059
+ class RSpec::Mocks::NamedObjectReference
1060
+ def initialize(const_name); end
1061
+
1062
+ def const_to_replace; end
1063
+ def defined?; end
1064
+ def description; end
1065
+ def target; end
1066
+ def when_loaded; end
1067
+
1068
+ private
1069
+
1070
+ def object; end
1071
+ end
1072
+
1073
+ class RSpec::Mocks::NegationUnsupportedError < ::StandardError; end
1074
+
1075
+ class RSpec::Mocks::NestedSpace < ::RSpec::Mocks::Space
1076
+ def initialize(parent); end
1077
+
1078
+ def constant_mutator_for(name); end
1079
+ def proxies_of(klass); end
1080
+ def registered?(object); end
1081
+
1082
+ private
1083
+
1084
+ def any_instance_recorder_not_found_for(id, klass); end
1085
+ def proxy_not_found_for(id, object); end
1086
+ end
1087
+
1088
+ class RSpec::Mocks::NoCallbackInvocationStrategy
1089
+ def call(_doubled_module); end
1090
+ end
1091
+
1092
+ class RSpec::Mocks::ObjectMethodReference < ::RSpec::Mocks::MethodReference
1093
+ private
1094
+
1095
+ def find_method(object); end
1096
+ def method_defined?(object); end
1097
+ def method_implemented?(object); end
1098
+ def visibility_from(object); end
1099
+
1100
+ class << self
1101
+ def for(object_reference, method_name); end
1102
+ end
1103
+ end
1104
+
1105
+ class RSpec::Mocks::ObjectReference
1106
+ class << self
1107
+ def for(object_module_or_name, allow_direct_object_refs = T.unsafe(nil)); end
1108
+
1109
+ private
1110
+
1111
+ def anonymous_module?(mod); end
1112
+ def name_of(mod); end
1113
+ end
1114
+ end
1115
+
1116
+ RSpec::Mocks::ObjectReference::MODULE_NAME_METHOD = T.let(T.unsafe(nil), UnboundMethod)
1117
+
1118
+ class RSpec::Mocks::ObjectVerifyingDouble
1119
+ include ::RSpec::Mocks::TestDouble
1120
+ include ::RSpec::Mocks::VerifyingDouble
1121
+ include ::RSpec::Mocks::ObjectVerifyingDoubleMethods
1122
+ end
1123
+
1124
+ module RSpec::Mocks::ObjectVerifyingDoubleMethods
1125
+ include ::RSpec::Mocks::TestDouble
1126
+ include ::RSpec::Mocks::VerifyingDouble
1127
+
1128
+ def as_stubbed_const(options = T.unsafe(nil)); end
1129
+
1130
+ private
1131
+
1132
+ def __build_mock_proxy(order_group); end
1133
+ end
1134
+
1135
+ class RSpec::Mocks::OrderGroup
1136
+ def initialize; end
1137
+
1138
+ def clear; end
1139
+ def consume; end
1140
+ def empty?; end
1141
+ def handle_order_constraint(expectation); end
1142
+ def invoked(message); end
1143
+ def ready_for?(expectation); end
1144
+ def register(expectation); end
1145
+ def verify_invocation_order(expectation); end
1146
+
1147
+ private
1148
+
1149
+ def expectation_for(message); end
1150
+ def expectations_invoked_in_order?; end
1151
+ def expected_invocations; end
1152
+ def invoked_expectations; end
1153
+ def remaining_expectations; end
1154
+ end
1155
+
1156
+ class RSpec::Mocks::OutsideOfExampleError < ::StandardError; end
1157
+
1158
+ class RSpec::Mocks::PartialClassDoubleProxy < ::RSpec::Mocks::PartialDoubleProxy
1159
+ include ::RSpec::Mocks::PartialClassDoubleProxyMethods
1160
+ end
1161
+
1162
+ module RSpec::Mocks::PartialClassDoubleProxyMethods
1163
+ def initialize(source_space, *args); end
1164
+
1165
+ def original_method_handle_for(message); end
1166
+
1167
+ protected
1168
+
1169
+ def method_double_from_ancestor_for(message); end
1170
+ def original_unbound_method_handle_from_ancestor_for(message); end
1171
+ def superclass_proxy; end
1172
+ end
1173
+
1174
+ class RSpec::Mocks::PartialDoubleProxy < ::RSpec::Mocks::Proxy
1175
+ def add_simple_expectation(method_name, response, location); end
1176
+ def add_simple_stub(method_name, response); end
1177
+ def message_received(message, *args, &block); end
1178
+ def original_method_handle_for(message); end
1179
+ def reset; end
1180
+ def visibility_for(method_name); end
1181
+
1182
+ private
1183
+
1184
+ def any_instance_class_recorder_observing_method?(klass, method_name); end
1185
+ end
1186
+
1187
+ class RSpec::Mocks::Proxy
1188
+ def initialize(object, order_group, options = T.unsafe(nil)); end
1189
+
1190
+ def add_message_expectation(method_name, opts = T.unsafe(nil), &block); end
1191
+ def add_simple_expectation(method_name, response, location); end
1192
+ def add_simple_stub(method_name, response); end
1193
+ def add_stub(method_name, opts = T.unsafe(nil), &implementation); end
1194
+ def as_null_object; end
1195
+ def build_expectation(method_name); end
1196
+ def check_for_unexpected_arguments(expectation); end
1197
+ def ensure_can_be_proxied!(object); end
1198
+ def ensure_implemented(*_args); end
1199
+ def has_negative_expectation?(message); end
1200
+ def message_received(message, *args, &block); end
1201
+ def messages_arg_list; end
1202
+ def method_double_if_exists_for_message(message); end
1203
+ def null_object?; end
1204
+ def object; end
1205
+ def original_method_handle_for(_message); end
1206
+ def prepended_modules_of_singleton_class; end
1207
+ def raise_missing_default_stub_error(expectation, args_for_multiple_calls); end
1208
+ def raise_unexpected_message_error(method_name, args); end
1209
+ def received_message?(method_name, *args, &block); end
1210
+ def record_message_received(message, *args, &block); end
1211
+ def remove_stub(method_name); end
1212
+ def remove_stub_if_present(method_name); end
1213
+ def replay_received_message_on(expectation, &block); end
1214
+ def reset; end
1215
+ def verify; end
1216
+ def visibility_for(_method_name); end
1217
+
1218
+ private
1219
+
1220
+ def find_almost_matching_expectation(method_name, *args); end
1221
+ def find_almost_matching_stub(method_name, *args); end
1222
+ def find_best_matching_expectation_for(method_name); end
1223
+ def find_matching_expectation(method_name, *args); end
1224
+ def find_matching_method_stub(method_name, *args); end
1225
+ def method_double_for(message); end
1226
+
1227
+ class << self
1228
+ def prepended_modules_of(klass); end
1229
+ end
1230
+ end
1231
+
1232
+ RSpec::Mocks::Proxy::DEFAULT_MESSAGE_EXPECTATION_OPTS = T.let(T.unsafe(nil), Hash)
1233
+
1234
+ class RSpec::Mocks::Proxy::SpecificMessage < ::Struct
1235
+ def ==(expectation); end
1236
+ def args; end
1237
+ def args=(_); end
1238
+ def message; end
1239
+ def message=(_); end
1240
+ def object; end
1241
+ def object=(_); end
1242
+
1243
+ class << self
1244
+ def [](*_arg0); end
1245
+ def inspect; end
1246
+ def members; end
1247
+ def new(*_arg0); end
1248
+ end
1249
+ end
1250
+
1251
+ class RSpec::Mocks::ProxyForNil < ::RSpec::Mocks::PartialDoubleProxy
1252
+ def initialize(order_group); end
1253
+
1254
+ def add_message_expectation(method_name, opts = T.unsafe(nil), &block); end
1255
+ def add_stub(method_name, opts = T.unsafe(nil), &implementation); end
1256
+ def disallow_expectations; end
1257
+ def disallow_expectations=(_arg0); end
1258
+ def warn_about_expectations; end
1259
+ def warn_about_expectations=(_arg0); end
1260
+
1261
+ private
1262
+
1263
+ def raise_error(method_name); end
1264
+ def set_expectation_behavior; end
1265
+ def warn(method_name); end
1266
+ def warn_or_raise!(method_name); end
1267
+ end
1268
+
1269
+ class RSpec::Mocks::RootSpace
1270
+ def any_instance_proxy_for(*_args); end
1271
+ def any_instance_recorder_for(*_args); end
1272
+ def any_instance_recorders_from_ancestry_of(_object); end
1273
+ def new_scope; end
1274
+ def proxy_for(*_args); end
1275
+ def register_constant_mutator(_mutator); end
1276
+ def registered?(_object); end
1277
+ def reset_all; end
1278
+ def superclass_proxy_for(*_args); end
1279
+ def verify_all; end
1280
+
1281
+ private
1282
+
1283
+ def raise_lifecycle_message; end
1284
+ end
1285
+
1286
+ class RSpec::Mocks::SimpleMessageExpectation
1287
+ def initialize(message, response, error_generator, backtrace_line = T.unsafe(nil)); end
1288
+
1289
+ def called_max_times?; end
1290
+ def invoke(*_); end
1291
+ def matches?(message, *_); end
1292
+ def unadvise(_); end
1293
+ def verify_messages_received; end
1294
+ end
1295
+
1296
+ class RSpec::Mocks::Space
1297
+ def initialize; end
1298
+
1299
+ def any_instance_mutex; end
1300
+ def any_instance_proxy_for(klass); end
1301
+ def any_instance_recorder_for(klass, only_return_existing = T.unsafe(nil)); end
1302
+ def any_instance_recorders; end
1303
+ def any_instance_recorders_from_ancestry_of(object); end
1304
+ def constant_mutator_for(name); end
1305
+ def ensure_registered(object); end
1306
+ def new_scope; end
1307
+ def proxies; end
1308
+ def proxies_of(klass); end
1309
+ def proxy_for(object); end
1310
+ def proxy_mutex; end
1311
+ def register_constant_mutator(mutator); end
1312
+ def registered?(object); end
1313
+ def reset_all; end
1314
+ def superclass_proxy_for(klass); end
1315
+ def verify_all; end
1316
+
1317
+ private
1318
+
1319
+ def any_instance_recorder_not_found_for(id, klass); end
1320
+ def class_proxy_with_callback_verification_strategy(object, strategy); end
1321
+ def id_for(object); end
1322
+ def new_mutex; end
1323
+ def proxy_not_found_for(id, object); end
1324
+ def superclass_proxy_not_found_for(id, object); end
1325
+ end
1326
+
1327
+ class RSpec::Mocks::StubChain < ::RSpec::Mocks::MessageChain
1328
+ private
1329
+
1330
+ def expectation(object, message, &return_block); end
1331
+
1332
+ class << self
1333
+ def stub_chain_on(object, *chain, &blk); end
1334
+ end
1335
+ end
1336
+
1337
+ module RSpec::Mocks::Syntax
1338
+ class << self
1339
+ def default_should_syntax_host; end
1340
+ def disable_expect(syntax_host = T.unsafe(nil)); end
1341
+ def disable_should(syntax_host = T.unsafe(nil)); end
1342
+ def enable_expect(syntax_host = T.unsafe(nil)); end
1343
+ def enable_should(syntax_host = T.unsafe(nil)); end
1344
+ def expect_enabled?(syntax_host = T.unsafe(nil)); end
1345
+ def should_enabled?(syntax_host = T.unsafe(nil)); end
1346
+ def warn_about_should!; end
1347
+ def warn_unless_should_configured(method_name, replacement = T.unsafe(nil)); end
1348
+ end
1349
+ end
1350
+
1351
+ class RSpec::Mocks::TargetBase
1352
+ include ::RSpec::Mocks::TargetDelegationInstanceMethods
1353
+ extend ::RSpec::Mocks::TargetDelegationClassMethods
1354
+
1355
+ def initialize(target); end
1356
+ end
1357
+
1358
+ module RSpec::Mocks::TargetDelegationClassMethods
1359
+ def delegate_not_to(matcher_method, options = T.unsafe(nil)); end
1360
+ def delegate_to(matcher_method); end
1361
+ def disallow_negation(method_name); end
1362
+ end
1363
+
1364
+ module RSpec::Mocks::TargetDelegationInstanceMethods
1365
+ def target; end
1366
+
1367
+ private
1368
+
1369
+ def define_matcher(matcher, name, &block); end
1370
+ def matcher_allowed?(matcher); end
1371
+ def raise_negation_unsupported(method_name, matcher); end
1372
+ def raise_unsupported_matcher(method_name, matcher); end
1373
+ end
1374
+
1375
+ module RSpec::Mocks::TestDouble
1376
+ def initialize(name = T.unsafe(nil), stubs = T.unsafe(nil)); end
1377
+
1378
+ def ==(other); end
1379
+ def __build_mock_proxy_unless_expired(order_group); end
1380
+ def __disallow_further_usage!; end
1381
+ def as_null_object; end
1382
+ def freeze; end
1383
+ def inspect; end
1384
+ def null_object?; end
1385
+ def respond_to?(message, incl_private = T.unsafe(nil)); end
1386
+ def to_s; end
1387
+
1388
+ private
1389
+
1390
+ def __build_mock_proxy(order_group); end
1391
+ def __mock_proxy; end
1392
+ def __raise_expired_error; end
1393
+ def assign_stubs(stubs); end
1394
+ def initialize_copy(other); end
1395
+ def method_missing(message, *args, &block); end
1396
+ end
1397
+
1398
+ module RSpec::Mocks::TestDoubleFormatter
1399
+ class << self
1400
+ def format(dbl, unwrap = T.unsafe(nil)); end
1401
+
1402
+ private
1403
+
1404
+ def name_desc(dbl); end
1405
+ def type_desc(dbl); end
1406
+ def verified_module_desc(dbl); end
1407
+ end
1408
+ end
1409
+
1410
+ class RSpec::Mocks::TestDoubleProxy < ::RSpec::Mocks::Proxy
1411
+ def reset; end
1412
+ end
1413
+
1414
+ class RSpec::Mocks::UnsupportedMatcherError < ::StandardError; end
1415
+
1416
+ module RSpec::Mocks::VerifyingDouble
1417
+ def initialize(doubled_module, *args); end
1418
+
1419
+ def __send__(name, *args, &block); end
1420
+ def method_missing(message, *args, &block); end
1421
+ def respond_to?(message, include_private = T.unsafe(nil)); end
1422
+ def send(name, *args, &block); end
1423
+ end
1424
+
1425
+ class RSpec::Mocks::VerifyingDoubleNotDefinedError < ::StandardError; end
1426
+
1427
+ class RSpec::Mocks::VerifyingExistingClassNewMethodDouble < ::RSpec::Mocks::VerifyingExistingMethodDouble
1428
+ def with_signature; end
1429
+ end
1430
+
1431
+ class RSpec::Mocks::VerifyingExistingMethodDouble < ::RSpec::Mocks::VerifyingMethodDouble
1432
+ def initialize(object, method_name, proxy); end
1433
+
1434
+ def unimplemented?; end
1435
+ def with_signature; end
1436
+
1437
+ class << self
1438
+ def for(object, method_name, proxy); end
1439
+ end
1440
+ end
1441
+
1442
+ class RSpec::Mocks::VerifyingMessageExpectation < ::RSpec::Mocks::MessageExpectation
1443
+ def initialize(*args); end
1444
+
1445
+ def method_reference; end
1446
+ def method_reference=(_arg0); end
1447
+ def with(*args, &block); end
1448
+
1449
+ private
1450
+
1451
+ def validate_expected_arguments!; end
1452
+ end
1453
+
1454
+ class RSpec::Mocks::VerifyingMethodDouble < ::RSpec::Mocks::MethodDouble
1455
+ def initialize(object, method_name, proxy, method_reference); end
1456
+
1457
+ def add_expectation(*args, &block); end
1458
+ def add_stub(*args, &block); end
1459
+ def message_expectation_class; end
1460
+ def proxy_method_invoked(obj, *args, &block); end
1461
+ def validate_arguments!(actual_args); end
1462
+ end
1463
+
1464
+ class RSpec::Mocks::VerifyingPartialClassDoubleProxy < ::RSpec::Mocks::VerifyingPartialDoubleProxy
1465
+ include ::RSpec::Mocks::PartialClassDoubleProxyMethods
1466
+ end
1467
+
1468
+ class RSpec::Mocks::VerifyingPartialDoubleProxy < ::RSpec::Mocks::PartialDoubleProxy
1469
+ include ::RSpec::Mocks::VerifyingProxyMethods
1470
+
1471
+ def initialize(object, expectation_ordering, optional_callback_invocation_strategy = T.unsafe(nil)); end
1472
+
1473
+ def ensure_implemented(_method_name); end
1474
+ def method_reference; end
1475
+ end
1476
+
1477
+ class RSpec::Mocks::VerifyingProxy < ::RSpec::Mocks::TestDoubleProxy
1478
+ include ::RSpec::Mocks::VerifyingProxyMethods
1479
+
1480
+ def initialize(object, order_group, doubled_module, method_reference_class); end
1481
+
1482
+ def method_reference; end
1483
+ def validate_arguments!(method_name, args); end
1484
+ def visibility_for(method_name); end
1485
+ end
1486
+
1487
+ module RSpec::Mocks::VerifyingProxyMethods
1488
+ def add_message_expectation(method_name, opts = T.unsafe(nil), &block); end
1489
+ def add_simple_stub(method_name, *args); end
1490
+ def add_stub(method_name, opts = T.unsafe(nil), &implementation); end
1491
+ def ensure_implemented(method_name); end
1492
+ def ensure_publicly_implemented(method_name, _object); end
1493
+ end
1494
+
1495
+ module RSpec::Mocks::Version; end
1496
+ RSpec::Mocks::Version::STRING = T.let(T.unsafe(nil), String)
1497
+ RSpec::SharedContext = RSpec::Core::SharedContext