dear_inventory 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +7 -0
  2. data/.env.example +2 -0
  3. data/.gitignore +15 -0
  4. data/.rspec +5 -0
  5. data/.rubocop.yml +84 -0
  6. data/.travis.yml +7 -0
  7. data/CODE_OF_CONDUCT.md +74 -0
  8. data/Gemfile +6 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +69 -0
  11. data/Rakefile +8 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/dear_inventory.gemspec +45 -0
  15. data/lib/dear_inventory.rb +79 -0
  16. data/lib/dear_inventory/config.rb +55 -0
  17. data/lib/dear_inventory/environment.rb +54 -0
  18. data/lib/dear_inventory/error.rb +16 -0
  19. data/lib/dear_inventory/errors/request.rb +40 -0
  20. data/lib/dear_inventory/errors/validation.rb +6 -0
  21. data/lib/dear_inventory/lib/date_time.rb +18 -0
  22. data/lib/dear_inventory/lib/endpoint_class.rb +57 -0
  23. data/lib/dear_inventory/lib/is_a_subclass.rb +19 -0
  24. data/lib/dear_inventory/model.rb +98 -0
  25. data/lib/dear_inventory/models/additional_attributes.rb +53 -0
  26. data/lib/dear_inventory/models/additional_charge.rb +45 -0
  27. data/lib/dear_inventory/models/address.rb +45 -0
  28. data/lib/dear_inventory/models/attachment.rb +33 -0
  29. data/lib/dear_inventory/models/inventory_movement.rb +29 -0
  30. data/lib/dear_inventory/models/sale.rb +217 -0
  31. data/lib/dear_inventory/models/sale_list.rb +133 -0
  32. data/lib/dear_inventory/models/sale_lists.rb +26 -0
  33. data/lib/dear_inventory/models/sales/credit_note.rb +75 -0
  34. data/lib/dear_inventory/models/sales/fulfilment.rb +46 -0
  35. data/lib/dear_inventory/models/sales/fulfilments/pick_pack.rb +26 -0
  36. data/lib/dear_inventory/models/sales/fulfilments/pick_pack_line.rb +57 -0
  37. data/lib/dear_inventory/models/sales/fulfilments/ship.rb +35 -0
  38. data/lib/dear_inventory/models/sales/fulfilments/ship_line.rb +45 -0
  39. data/lib/dear_inventory/models/sales/invoice.rb +86 -0
  40. data/lib/dear_inventory/models/sales/invoice_line.rb +19 -0
  41. data/lib/dear_inventory/models/sales/line.rb +59 -0
  42. data/lib/dear_inventory/models/sales/manual_journal.rb +24 -0
  43. data/lib/dear_inventory/models/sales/manual_journal_line.rb +35 -0
  44. data/lib/dear_inventory/models/sales/order.rb +49 -0
  45. data/lib/dear_inventory/models/sales/payment_line.rb +43 -0
  46. data/lib/dear_inventory/models/sales/quote.rb +50 -0
  47. data/lib/dear_inventory/models/shipping_address.rb +25 -0
  48. data/lib/dear_inventory/models/transaction.rb +41 -0
  49. data/lib/dear_inventory/parameters.rb +209 -0
  50. data/lib/dear_inventory/parameters/sale/index.rb +35 -0
  51. data/lib/dear_inventory/parameters/sale_list/index.rb +119 -0
  52. data/lib/dear_inventory/resource.rb +59 -0
  53. data/lib/dear_inventory/resources/sale.rb +22 -0
  54. data/lib/dear_inventory/resources/sale_list.rb +24 -0
  55. data/lib/dear_inventory/response.rb +75 -0
  56. data/lib/dear_inventory/validator.rb +61 -0
  57. data/lib/dear_inventory/validators/boolean.rb +18 -0
  58. data/lib/dear_inventory/validators/enum.rb +23 -0
  59. data/lib/dear_inventory/validators/guid.rb +27 -0
  60. data/lib/dear_inventory/validators/integer.rb +19 -0
  61. data/lib/dear_inventory/validators/required.rb +17 -0
  62. data/lib/dear_inventory/validators/string.rb +35 -0
  63. data/lib/dear_inventory/validators/time.rb +21 -0
  64. data/lib/dear_inventory/version.rb +6 -0
  65. data/sorbet/config +2 -0
  66. data/sorbet/rbi/gems/addressable.rbi +199 -0
  67. data/sorbet/rbi/gems/ast.rbi +48 -0
  68. data/sorbet/rbi/gems/byebug.rbi +1040 -0
  69. data/sorbet/rbi/gems/coderay.rbi +92 -0
  70. data/sorbet/rbi/gems/crack.rbi +48 -0
  71. data/sorbet/rbi/gems/domain_name.rbi +52 -0
  72. data/sorbet/rbi/gems/dotenv.rbi +68 -0
  73. data/sorbet/rbi/gems/ffi-compiler.rbi +27 -0
  74. data/sorbet/rbi/gems/ffi.rbi +560 -0
  75. data/sorbet/rbi/gems/hashdiff.rbi +66 -0
  76. data/sorbet/rbi/gems/http-cookie.rbi +93 -0
  77. data/sorbet/rbi/gems/http-form_data.rbi +76 -0
  78. data/sorbet/rbi/gems/http-parser.rbi +121 -0
  79. data/sorbet/rbi/gems/http.rbi +616 -0
  80. data/sorbet/rbi/gems/jaro_winkler.rbi +15 -0
  81. data/sorbet/rbi/gems/method_source.rbi +64 -0
  82. data/sorbet/rbi/gems/parallel.rbi +82 -0
  83. data/sorbet/rbi/gems/parser.rbi +857 -0
  84. data/sorbet/rbi/gems/pry-byebug.rbi +155 -0
  85. data/sorbet/rbi/gems/pry.rbi +1965 -0
  86. data/sorbet/rbi/gems/public_suffix.rbi +104 -0
  87. data/sorbet/rbi/gems/rainbow.rbi +118 -0
  88. data/sorbet/rbi/gems/rake.rbi +646 -0
  89. data/sorbet/rbi/gems/rspec-core.rbi +1732 -0
  90. data/sorbet/rbi/gems/rspec-expectations.rbi +388 -0
  91. data/sorbet/rbi/gems/rspec-mocks.rbi +820 -0
  92. data/sorbet/rbi/gems/rspec-support.rbi +269 -0
  93. data/sorbet/rbi/gems/rspec.rbi +15 -0
  94. data/sorbet/rbi/gems/rubocop-performance.rbi +277 -0
  95. data/sorbet/rbi/gems/rubocop-rspec.rbi +887 -0
  96. data/sorbet/rbi/gems/rubocop.rbi +6952 -0
  97. data/sorbet/rbi/gems/ruby-progressbar.rbi +305 -0
  98. data/sorbet/rbi/gems/unf.rbi +19 -0
  99. data/sorbet/rbi/gems/unicode-display_width.rbi +17 -0
  100. data/sorbet/rbi/gems/vcr.rbi +572 -0
  101. data/sorbet/rbi/gems/webmock.rbi +569 -0
  102. data/sorbet/rbi/hidden-definitions/errors.txt +11809 -0
  103. data/sorbet/rbi/hidden-definitions/hidden.rbi +20627 -0
  104. data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8684 -0
  105. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +276 -0
  106. data/sorbet/rbi/sorbet-typed/lib/ruby/all/gem.rbi +4222 -0
  107. data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
  108. data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
  109. data/sorbet/rbi/todo.rbi +11 -0
  110. metadata +339 -0
@@ -0,0 +1,388 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: true
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rspec-expectations/all/rspec-expectations.rbi
9
+ #
10
+ # rspec-expectations-3.9.0
11
+
12
+ module RSpec
13
+ end
14
+ module RSpec::Matchers
15
+ def a_block_changing(*args, &block); end
16
+ def a_block_outputting(*args, &block); end
17
+ def a_block_raising(*args, &block); end
18
+ def a_block_throwing(*args, &block); end
19
+ def a_block_yielding_control(*args, &block); end
20
+ def a_block_yielding_successive_args(*args, &block); end
21
+ def a_block_yielding_with_args(*args, &block); end
22
+ def a_block_yielding_with_no_args(*args, &block); end
23
+ def a_collection_containing_exactly(*args, &block); end
24
+ def a_collection_ending_with(*args, &block); end
25
+ def a_collection_including(*args, &block); end
26
+ def a_collection_starting_with(*args, &block); end
27
+ def a_falsey_value(*args, &block); end
28
+ def a_falsy_value(*args, &block); end
29
+ def a_hash_including(*args, &block); end
30
+ def a_kind_of(*args, &block); end
31
+ def a_nil_value(*args, &block); end
32
+ def a_range_covering(*args, &block); end
33
+ def a_string_ending_with(*args, &block); end
34
+ def a_string_including(*args, &block); end
35
+ def a_string_matching(*args, &block); end
36
+ def a_string_starting_with(*args, &block); end
37
+ def a_truthy_value(*args, &block); end
38
+ def a_value(*args, &block); end
39
+ def a_value_between(*args, &block); end
40
+ def a_value_within(*args, &block); end
41
+ def aggregate_failures(label = nil, metadata = nil, &block); end
42
+ def all(expected); end
43
+ def an_instance_of(*args, &block); end
44
+ def an_object_eq_to(*args, &block); end
45
+ def an_object_eql_to(*args, &block); end
46
+ def an_object_equal_to(*args, &block); end
47
+ def an_object_existing(*args, &block); end
48
+ def an_object_having_attributes(*args, &block); end
49
+ def an_object_matching(*args, &block); end
50
+ def an_object_responding_to(*args, &block); end
51
+ def an_object_satisfying(*args, &block); end
52
+ def be(*args); end
53
+ def be_a(klass); end
54
+ def be_a_kind_of(expected); end
55
+ def be_an(klass); end
56
+ def be_an_instance_of(expected); end
57
+ def be_between(min, max); end
58
+ def be_falsey; end
59
+ def be_falsy(*args, &block); end
60
+ def be_instance_of(expected); end
61
+ def be_kind_of(expected); end
62
+ def be_nil; end
63
+ def be_truthy; end
64
+ def be_within(delta); end
65
+ def change(receiver = nil, message = nil, &block); end
66
+ def changing(*args, &block); end
67
+ def contain_exactly(*items); end
68
+ def containing_exactly(*args, &block); end
69
+ def cover(*values); end
70
+ def covering(*args, &block); end
71
+ def end_with(*expected); end
72
+ def ending_with(*args, &block); end
73
+ def eq(expected); end
74
+ def eq_to(*args, &block); end
75
+ def eql(expected); end
76
+ def eql_to(*args, &block); end
77
+ def equal(expected); end
78
+ def equal_to(*args, &block); end
79
+ def exist(*args); end
80
+ def existing(*args, &block); end
81
+ def expect(value = nil, &block); end
82
+ def have_attributes(expected); end
83
+ def having_attributes(*args, &block); end
84
+ def include(*expected); end
85
+ def including(*args, &block); end
86
+ def match(expected); end
87
+ def match_array(items); end
88
+ def match_regex(*args, &block); end
89
+ def matching(*args, &block); end
90
+ def method_missing(method, *args, &block); end
91
+ def output(expected = nil); end
92
+ def raise_error(error = nil, message = nil, &block); end
93
+ def raise_exception(error = nil, message = nil, &block); end
94
+ def raising(*args, &block); end
95
+ def respond_to(*names); end
96
+ def respond_to_missing?(method, *arg1); end
97
+ def responding_to(*args, &block); end
98
+ def satisfy(description = nil, &block); end
99
+ def satisfying(*args, &block); end
100
+ def self.alias_matcher(*args, &block); end
101
+ def self.clear_generated_description; end
102
+ def self.configuration; end
103
+ def self.generated_description; end
104
+ def self.is_a_describable_matcher?(obj); end
105
+ def self.is_a_matcher?(obj); end
106
+ def self.last_description; end
107
+ def self.last_expectation_handler; end
108
+ def self.last_expectation_handler=(arg0); end
109
+ def self.last_matcher; end
110
+ def self.last_matcher=(arg0); end
111
+ def start_with(*expected); end
112
+ def starting_with(*args, &block); end
113
+ def throw_symbol(expected_symbol = nil, expected_arg = nil); end
114
+ def throwing(*args, &block); end
115
+ def within(*args, &block); end
116
+ def yield_control; end
117
+ def yield_successive_args(*args); end
118
+ def yield_with_args(*args); end
119
+ def yield_with_no_args; end
120
+ def yielding_control(*args, &block); end
121
+ def yielding_successive_args(*args, &block); end
122
+ def yielding_with_args(*args, &block); end
123
+ def yielding_with_no_args(*args, &block); end
124
+ extend RSpec::Matchers::DSL
125
+ end
126
+ module RSpec::Matchers::EnglishPhrasing
127
+ def self.list(obj); end
128
+ def self.split_words(sym); end
129
+ end
130
+ module RSpec::Matchers::Composable
131
+ def &(matcher); end
132
+ def ===(value); end
133
+ def and(matcher); end
134
+ def description_of(object); end
135
+ def or(matcher); end
136
+ def self.should_enumerate?(item); end
137
+ def self.surface_descriptions_in(item); end
138
+ def self.unreadable_io?(object); end
139
+ def should_enumerate?(item); end
140
+ def surface_descriptions_in(item); end
141
+ def unreadable_io?(object); end
142
+ def values_match?(expected, actual); end
143
+ def with_matchers_cloned(object); end
144
+ def |(matcher); end
145
+ end
146
+ class RSpec::Matchers::Composable::DescribableItem < Struct
147
+ def inspect; end
148
+ def item; end
149
+ def item=(_); end
150
+ def pretty_print(pp); end
151
+ def self.[](*arg0); end
152
+ def self.inspect; end
153
+ def self.members; end
154
+ def self.new(*arg0); end
155
+ end
156
+ module RSpec::Matchers::BuiltIn
157
+ end
158
+ class RSpec::Matchers::BuiltIn::BaseMatcher
159
+ def actual; end
160
+ def actual_formatted; end
161
+ def assert_ivars(*expected_ivars); end
162
+ def description; end
163
+ def diffable?; end
164
+ def expected; end
165
+ def expected_formatted; end
166
+ def expects_call_stack_jump?; end
167
+ def initialize(expected = nil); end
168
+ def match_unless_raises(*exceptions); end
169
+ def matcher_name; end
170
+ def matcher_name=(arg0); end
171
+ def matches?(actual); end
172
+ def present_ivars; end
173
+ def rescued_exception; end
174
+ def self.matcher_name; end
175
+ def self.underscore(camel_cased_word); end
176
+ def supports_block_expectations?; end
177
+ include RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
178
+ include RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting
179
+ include RSpec::Matchers::Composable
180
+ end
181
+ module RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting
182
+ def improve_hash_formatting(inspect_string); end
183
+ def self.improve_hash_formatting(inspect_string); end
184
+ end
185
+ module RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
186
+ def failure_message; end
187
+ def failure_message_when_negated; end
188
+ def self.has_default_failure_messages?(matcher); end
189
+ end
190
+ module RSpec::Matchers::DSL
191
+ def alias_matcher(new_name, old_name, options = nil, &description_override); end
192
+ def define(name, &declarations); end
193
+ def define_negated_matcher(negated_name, base_name, &description_override); end
194
+ def matcher(name, &declarations); end
195
+ def warn_about_block_args(name, declarations); end
196
+ end
197
+ module RSpec::Matchers::DSL::Macros
198
+ def assign_attributes(attr_names); end
199
+ def chain(method_name, *attr_names, &definition); end
200
+ def define_user_override(method_name, user_def, &our_def); end
201
+ def description(&definition); end
202
+ def diffable; end
203
+ def failure_message(&definition); end
204
+ def failure_message_when_negated(&definition); end
205
+ def match(options = nil, &match_block); end
206
+ def match_unless_raises(expected_exception = nil, &match_block); end
207
+ def match_when_negated(options = nil, &match_block); end
208
+ def supports_block_expectations; end
209
+ end
210
+ module RSpec::Matchers::DSL::Macros::Deprecated
211
+ def failure_message_for_should(&definition); end
212
+ def failure_message_for_should_not(&definition); end
213
+ def match_for_should(&definition); end
214
+ def match_for_should_not(&definition); end
215
+ end
216
+ module RSpec::Matchers::DSL::DefaultImplementations
217
+ def chained_method_clause_sentences; end
218
+ def description; end
219
+ def diffable?; end
220
+ def expects_call_stack_jump?; end
221
+ def supports_block_expectations?; end
222
+ include RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
223
+ end
224
+ class RSpec::Matchers::DSL::Matcher
225
+ def actual; end
226
+ def actual_arg_for(block); end
227
+ def block_arg; end
228
+ def expected; end
229
+ def expected_as_array; end
230
+ def initialize(name, declarations, matcher_execution_context, *expected, &block_arg); end
231
+ def inspect; end
232
+ def method_missing(method, *args, &block); end
233
+ def name; end
234
+ def rescued_exception; end
235
+ def respond_to_missing?(method, include_private = nil); end
236
+ extend RSpec::Matchers::DSL::Macros
237
+ extend RSpec::Matchers::DSL::Macros::Deprecated
238
+ include RSpec::Matchers
239
+ include RSpec::Matchers::Composable
240
+ include RSpec::Matchers::DSL::DefaultImplementations
241
+ end
242
+ class RSpec::Matchers::MatcherDelegator
243
+ def base_matcher; end
244
+ def initialize(base_matcher); end
245
+ def initialize_copy(other); end
246
+ def method_missing(*args, &block); end
247
+ def respond_to_missing?(name, include_all = nil); end
248
+ include RSpec::Matchers::Composable
249
+ end
250
+ class RSpec::Matchers::AliasedMatcher < RSpec::Matchers::MatcherDelegator
251
+ def description; end
252
+ def failure_message; end
253
+ def failure_message_when_negated; end
254
+ def initialize(base_matcher, description_block); end
255
+ def method_missing(*arg0); end
256
+ end
257
+ class RSpec::Matchers::AliasedMatcherWithOperatorSupport < RSpec::Matchers::AliasedMatcher
258
+ end
259
+ class RSpec::Matchers::AliasedNegatedMatcher < RSpec::Matchers::AliasedMatcher
260
+ def does_not_match?(*args, &block); end
261
+ def failure_message; end
262
+ def failure_message_when_negated; end
263
+ def matches?(*args, &block); end
264
+ def optimal_failure_message(same, inverted); end
265
+ end
266
+ class RSpec::Matchers::ExpectedsForMultipleDiffs
267
+ def diffs(differ, actual); end
268
+ def initialize(expected_list); end
269
+ def message_with_diff(message, differ, actual); end
270
+ def self.diff_label_for(matcher); end
271
+ def self.for_many_matchers(matchers); end
272
+ def self.from(expected); end
273
+ def self.truncated(description); end
274
+ end
275
+ module RSpec::Support
276
+ def self.require_rspec_expectations(f); end
277
+ def self.require_rspec_matchers(f); end
278
+ end
279
+ module RSpec::Expectations
280
+ def self.configuration; end
281
+ def self.differ; end
282
+ def self.fail_with(message, expected = nil, actual = nil); end
283
+ end
284
+ class RSpec::Expectations::ExpectationTarget
285
+ def initialize(value); end
286
+ def self.for(value, block); end
287
+ def target; end
288
+ include RSpec::Expectations::ExpectationTarget::InstanceMethods
289
+ end
290
+ module RSpec::Expectations::ExpectationTarget::UndefinedValue
291
+ end
292
+ module RSpec::Expectations::ExpectationTarget::InstanceMethods
293
+ def not_to(matcher = nil, message = nil, &block); end
294
+ def prevent_operator_matchers(verb); end
295
+ def to(matcher = nil, message = nil, &block); end
296
+ def to_not(matcher = nil, message = nil, &block); end
297
+ end
298
+ class RSpec::Expectations::BlockExpectationTarget < RSpec::Expectations::ExpectationTarget
299
+ def enforce_block_expectation(matcher); end
300
+ def not_to(matcher, message = nil, &block); end
301
+ def supports_block_expectations?(matcher); end
302
+ def to(matcher, message = nil, &block); end
303
+ def to_not(matcher, message = nil, &block); end
304
+ end
305
+ module RSpec::Expectations::Syntax
306
+ def default_should_host; end
307
+ def disable_expect(syntax_host = nil); end
308
+ def disable_should(syntax_host = nil); end
309
+ def enable_expect(syntax_host = nil); end
310
+ def enable_should(syntax_host = nil); end
311
+ def expect_enabled?(syntax_host = nil); end
312
+ def self.default_should_host; end
313
+ def self.disable_expect(syntax_host = nil); end
314
+ def self.disable_should(syntax_host = nil); end
315
+ def self.enable_expect(syntax_host = nil); end
316
+ def self.enable_should(syntax_host = nil); end
317
+ def self.expect_enabled?(syntax_host = nil); end
318
+ def self.should_enabled?(syntax_host = nil); end
319
+ def self.warn_about_should!; end
320
+ def self.warn_about_should_unless_configured(method_name); end
321
+ def should_enabled?(syntax_host = nil); end
322
+ def warn_about_should!; end
323
+ def warn_about_should_unless_configured(method_name); end
324
+ end
325
+ class BasicObject
326
+ end
327
+ class RSpec::Expectations::Configuration
328
+ def add_should_and_should_not_to(*modules); end
329
+ def backtrace_formatter; end
330
+ def backtrace_formatter=(arg0); end
331
+ def color?; end
332
+ def false_positives_handler; end
333
+ def include_chain_clauses_in_custom_matcher_descriptions=(arg0); end
334
+ def include_chain_clauses_in_custom_matcher_descriptions?; end
335
+ def initialize; end
336
+ def max_formatted_output_length=(length); end
337
+ def on_potential_false_positives; end
338
+ def on_potential_false_positives=(behavior); end
339
+ def reset_syntaxes_to_default; end
340
+ def syntax; end
341
+ def syntax=(values); end
342
+ def warn_about_potential_false_positives=(boolean); end
343
+ def warn_about_potential_false_positives?; end
344
+ end
345
+ module RSpec::Expectations::Configuration::NullBacktraceFormatter
346
+ def self.format_backtrace(backtrace); end
347
+ end
348
+ class InvalidName___Class_0x00___Differ_10
349
+ end
350
+ module RSpec::Expectations::ExpectationHelper
351
+ def self.check_message(msg); end
352
+ def self.handle_failure(matcher, message, failure_message_method); end
353
+ def self.modern_matcher_from(matcher); end
354
+ def self.with_matcher(handler, matcher, message); end
355
+ end
356
+ class RSpec::Expectations::PositiveExpectationHandler
357
+ def self.handle_matcher(actual, initial_matcher, message = nil, &block); end
358
+ def self.opposite_should_method; end
359
+ def self.should_method; end
360
+ def self.verb; end
361
+ end
362
+ class RSpec::Expectations::NegativeExpectationHandler
363
+ def self.does_not_match?(matcher, actual, &block); end
364
+ def self.handle_matcher(actual, initial_matcher, message = nil, &block); end
365
+ def self.opposite_should_method; end
366
+ def self.should_method; end
367
+ def self.verb; end
368
+ end
369
+ class RSpec::Expectations::LegacyMatcherAdapter < RSpec::Matchers::MatcherDelegator
370
+ def initialize(matcher); end
371
+ def self.wrap(matcher); end
372
+ end
373
+ class RSpec::Expectations::LegacyMatcherAdapter::RSpec2 < RSpec::Expectations::LegacyMatcherAdapter
374
+ def failure_message; end
375
+ def failure_message_when_negated; end
376
+ def self.interface_matches?(matcher); end
377
+ end
378
+ class RSpec::Expectations::LegacyMatcherAdapter::RSpec1 < RSpec::Expectations::LegacyMatcherAdapter
379
+ def failure_message; end
380
+ def failure_message_when_negated; end
381
+ def self.interface_matches?(matcher); end
382
+ end
383
+ module RSpec::Expectations::Version
384
+ end
385
+ class RSpec::Expectations::ExpectationNotMetError < Exception
386
+ end
387
+ class RSpec::Expectations::MultipleExpectationsNotMetError < RSpec::Expectations::ExpectationNotMetError
388
+ end
@@ -0,0 +1,820 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: true
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rspec-mocks/all/rspec-mocks.rbi
9
+ #
10
+ # rspec-mocks-3.9.0
11
+
12
+ module RSpec
13
+ end
14
+ module RSpec::Mocks
15
+ def self.allow_message(subject, message, opts = nil, &block); end
16
+ def self.configuration; end
17
+ def self.error_generator; end
18
+ def self.expect_message(subject, message, opts = nil, &block); end
19
+ def self.setup; end
20
+ def self.space; end
21
+ def self.teardown; end
22
+ def self.verify; end
23
+ def self.with_temporary_scope; end
24
+ end
25
+ class RSpec::Mocks::InstanceMethodStasher
26
+ def handle_restoration_failures; end
27
+ def initialize(object, method); end
28
+ def method_defined_directly_on_klass?; end
29
+ def method_defined_on_klass?(klass = nil); end
30
+ def method_is_stashed?; end
31
+ def method_owned_by_klass?; end
32
+ def original_method; end
33
+ def restore; end
34
+ def stash; end
35
+ end
36
+ class RSpec::Mocks::MethodDouble
37
+ def add_default_stub(*args, &implementation); end
38
+ def add_expectation(error_generator, expectation_ordering, expected_from, opts, &implementation); end
39
+ def add_simple_expectation(method_name, response, error_generator, backtrace_line); end
40
+ def add_simple_stub(method_name, response); end
41
+ def add_stub(error_generator, expectation_ordering, expected_from, opts = nil, &implementation); end
42
+ def build_expectation(error_generator, expectation_ordering); end
43
+ def clear; end
44
+ def configure_method; end
45
+ def define_proxy_method; end
46
+ def definition_target; end
47
+ def expectations; end
48
+ def initialize(object, method_name, proxy); end
49
+ def message_expectation_class; end
50
+ def method_name; end
51
+ def method_stasher; end
52
+ def new_rspec_prepended_module; end
53
+ def object; end
54
+ def object_singleton_class; end
55
+ def original_implementation_callable; end
56
+ def original_method; end
57
+ def proxy_method_invoked(_obj, *args, &block); end
58
+ def raise_method_not_stubbed_error; end
59
+ def remove_method_from_definition_target; end
60
+ def remove_stub; end
61
+ def remove_stub_if_present; end
62
+ def reset; end
63
+ def restore_original_method; end
64
+ def restore_original_visibility; end
65
+ def save_original_implementation_callable!; end
66
+ def setup_simple_method_double(method_name, response, collection, error_generator = nil, backtrace_line = nil); end
67
+ def show_frozen_warning; end
68
+ def stubs; end
69
+ def usable_rspec_prepended_module; end
70
+ def verify; end
71
+ def visibility; end
72
+ end
73
+ class RSpec::Mocks::MethodDouble::RSpecPrependedModule < Module
74
+ end
75
+ module RSpec::Mocks::ArgumentMatchers
76
+ def a_kind_of(klass); end
77
+ def an_instance_of(klass); end
78
+ def any_args; end
79
+ def anything; end
80
+ def array_including(*args); end
81
+ def boolean; end
82
+ def duck_type(*args); end
83
+ def hash_excluding(*args); end
84
+ def hash_including(*args); end
85
+ def hash_not_including(*args); end
86
+ def instance_of(klass); end
87
+ def kind_of(klass); end
88
+ def no_args; end
89
+ def self.anythingize_lonely_keys(*args); end
90
+ end
91
+ class RSpec::Mocks::ArgumentMatchers::SingletonMatcher
92
+ def self.inherited(subklass); end
93
+ def self.new(*arg0); end
94
+ end
95
+ class RSpec::Mocks::ArgumentMatchers::AnyArgsMatcher < RSpec::Mocks::ArgumentMatchers::SingletonMatcher
96
+ def description; end
97
+ end
98
+ class RSpec::Mocks::ArgumentMatchers::AnyArgMatcher < RSpec::Mocks::ArgumentMatchers::SingletonMatcher
99
+ def ===(_other); end
100
+ def description; end
101
+ end
102
+ class RSpec::Mocks::ArgumentMatchers::NoArgsMatcher < RSpec::Mocks::ArgumentMatchers::SingletonMatcher
103
+ def description; end
104
+ end
105
+ class RSpec::Mocks::ArgumentMatchers::BooleanMatcher < RSpec::Mocks::ArgumentMatchers::SingletonMatcher
106
+ def ===(value); end
107
+ def description; end
108
+ end
109
+ class RSpec::Mocks::ArgumentMatchers::BaseHashMatcher
110
+ def ===(predicate, actual); end
111
+ def description(name); end
112
+ def formatted_expected_hash; end
113
+ def initialize(expected); end
114
+ end
115
+ class RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher < RSpec::Mocks::ArgumentMatchers::BaseHashMatcher
116
+ def ===(actual); end
117
+ def description; end
118
+ end
119
+ class RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher < RSpec::Mocks::ArgumentMatchers::BaseHashMatcher
120
+ def ===(actual); end
121
+ def description; end
122
+ end
123
+ class RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher
124
+ def ===(actual); end
125
+ def description; end
126
+ def formatted_expected_values; end
127
+ def initialize(expected); end
128
+ end
129
+ class RSpec::Mocks::ArgumentMatchers::DuckTypeMatcher
130
+ def ===(value); end
131
+ def description; end
132
+ def initialize(*methods_to_respond_to); end
133
+ end
134
+ class RSpec::Mocks::ArgumentMatchers::InstanceOf
135
+ def ===(actual); end
136
+ def description; end
137
+ def initialize(klass); end
138
+ end
139
+ class RSpec::Mocks::ArgumentMatchers::KindOf
140
+ def ===(actual); end
141
+ def description; end
142
+ def initialize(klass); end
143
+ end
144
+ class RSpec::Mocks::ObjectReference
145
+ def self.anonymous_module?(mod); end
146
+ def self.for(object_module_or_name, allow_direct_object_refs = nil); end
147
+ def self.name_of(mod); end
148
+ end
149
+ class RSpec::Mocks::DirectObjectReference
150
+ def const_to_replace; end
151
+ def defined?; end
152
+ def description; end
153
+ def initialize(object); end
154
+ def target; end
155
+ def when_loaded; end
156
+ end
157
+ class RSpec::Mocks::NamedObjectReference
158
+ def const_to_replace; end
159
+ def defined?; end
160
+ def description; end
161
+ def initialize(const_name); end
162
+ def object; end
163
+ def target; end
164
+ def when_loaded; end
165
+ end
166
+ module RSpec::Mocks::ExampleMethods
167
+ def allow(target); end
168
+ def allow_any_instance_of(klass); end
169
+ def allow_message_expectations_on_nil; end
170
+ def class_double(doubled_class, *args); end
171
+ def class_spy(*args); end
172
+ def double(*args); end
173
+ def expect_any_instance_of(klass); end
174
+ def have_received(method_name, &block); end
175
+ def hide_const(constant_name); end
176
+ def instance_double(doubled_class, *args); end
177
+ def instance_spy(*args); end
178
+ def object_double(object_or_name, *args); end
179
+ def object_spy(*args); end
180
+ def receive(method_name, &block); end
181
+ def receive_message_chain(*messages, &block); end
182
+ def receive_messages(message_return_value_hash); end
183
+ def self.declare_double(type, *args); end
184
+ def self.declare_verifying_double(type, ref, *args); end
185
+ def self.extended(object); end
186
+ def self.included(klass); end
187
+ def spy(*args); end
188
+ def stub_const(constant_name, value, options = nil); end
189
+ def without_partial_double_verification; end
190
+ include RSpec::Mocks::ArgumentMatchers
191
+ end
192
+ module RSpec::Mocks::ExampleMethods::ExpectHost
193
+ def expect(target); end
194
+ end
195
+ class RSpec::Mocks::Proxy
196
+ def add_message_expectation(method_name, opts = nil, &block); end
197
+ def add_simple_expectation(method_name, response, location); end
198
+ def add_simple_stub(method_name, response); end
199
+ def add_stub(method_name, opts = nil, &implementation); end
200
+ def as_null_object; end
201
+ def build_expectation(method_name); end
202
+ def check_for_unexpected_arguments(expectation); end
203
+ def ensure_implemented(*_args); end
204
+ def find_almost_matching_expectation(method_name, *args); end
205
+ def find_almost_matching_stub(method_name, *args); end
206
+ def find_best_matching_expectation_for(method_name); end
207
+ def find_matching_expectation(method_name, *args); end
208
+ def find_matching_method_stub(method_name, *args); end
209
+ def has_negative_expectation?(message); end
210
+ def initialize(object, order_group, options = nil); end
211
+ def message_received(message, *args, &block); end
212
+ def messages_arg_list; end
213
+ def method_double_for(message); end
214
+ def method_double_if_exists_for_message(message); end
215
+ def null_object?; end
216
+ def object; end
217
+ def original_method_handle_for(_message); end
218
+ def prepended_modules_of_singleton_class; end
219
+ def raise_missing_default_stub_error(expectation, args_for_multiple_calls); end
220
+ def raise_unexpected_message_error(method_name, args); end
221
+ def received_message?(method_name, *args, &block); end
222
+ def record_message_received(message, *args, &block); end
223
+ def remove_stub(method_name); end
224
+ def remove_stub_if_present(method_name); end
225
+ def replay_received_message_on(expectation, &block); end
226
+ def reset; end
227
+ def self.prepended_modules_of(klass); end
228
+ def verify; end
229
+ def visibility_for(_method_name); end
230
+ end
231
+ class RSpec::Mocks::Proxy::SpecificMessage < Struct
232
+ def ==(expectation); end
233
+ def args; end
234
+ def args=(_); end
235
+ def message; end
236
+ def message=(_); end
237
+ def object; end
238
+ def object=(_); end
239
+ def self.[](*arg0); end
240
+ def self.inspect; end
241
+ def self.members; end
242
+ def self.new(*arg0); end
243
+ end
244
+ class RSpec::Mocks::TestDoubleProxy < RSpec::Mocks::Proxy
245
+ def reset; end
246
+ end
247
+ class RSpec::Mocks::PartialDoubleProxy < RSpec::Mocks::Proxy
248
+ def add_simple_expectation(method_name, response, location); end
249
+ def add_simple_stub(method_name, response); end
250
+ def any_instance_class_recorder_observing_method?(klass, method_name); end
251
+ def message_received(message, *args, &block); end
252
+ def original_method_handle_for(message); end
253
+ def reset; end
254
+ def visibility_for(method_name); end
255
+ end
256
+ module RSpec::Mocks::PartialClassDoubleProxyMethods
257
+ def initialize(source_space, *args); end
258
+ def method_double_from_ancestor_for(message); end
259
+ def original_method_handle_for(message); end
260
+ def original_unbound_method_handle_from_ancestor_for(message); end
261
+ def superclass_proxy; end
262
+ end
263
+ class RSpec::Mocks::PartialClassDoubleProxy < RSpec::Mocks::PartialDoubleProxy
264
+ include RSpec::Mocks::PartialClassDoubleProxyMethods
265
+ end
266
+ class RSpec::Mocks::ProxyForNil < RSpec::Mocks::PartialDoubleProxy
267
+ def add_message_expectation(method_name, opts = nil, &block); end
268
+ def add_stub(method_name, opts = nil, &implementation); end
269
+ def disallow_expectations; end
270
+ def disallow_expectations=(arg0); end
271
+ def initialize(order_group); end
272
+ def raise_error(method_name); end
273
+ def set_expectation_behavior; end
274
+ def warn(method_name); end
275
+ def warn_about_expectations; end
276
+ def warn_about_expectations=(arg0); end
277
+ def warn_or_raise!(method_name); end
278
+ end
279
+ module RSpec::Mocks::TestDouble
280
+ def ==(other); end
281
+ def __build_mock_proxy(order_group); end
282
+ def __build_mock_proxy_unless_expired(order_group); end
283
+ def __disallow_further_usage!; end
284
+ def __mock_proxy; end
285
+ def __raise_expired_error; end
286
+ def as_null_object; end
287
+ def assign_stubs(stubs); end
288
+ def freeze; end
289
+ def initialize(name = nil, stubs = nil); end
290
+ def initialize_copy(other); end
291
+ def inspect; end
292
+ def method_missing(message, *args, &block); end
293
+ def null_object?; end
294
+ def respond_to?(message, incl_private = nil); end
295
+ def to_s; end
296
+ end
297
+ class RSpec::Mocks::Double
298
+ include RSpec::Mocks::TestDouble
299
+ end
300
+ module RSpec::Mocks::TestDoubleFormatter
301
+ def self.format(dbl, unwrap = nil); end
302
+ def self.name_desc(dbl); end
303
+ def self.type_desc(dbl); end
304
+ def self.verified_module_desc(dbl); end
305
+ end
306
+ class RSpec::Mocks::ArgumentListMatcher
307
+ def args_match?(*args); end
308
+ def ensure_expected_args_valid!; end
309
+ def expected_args; end
310
+ def initialize(*expected_args); end
311
+ def replace_any_args_with_splat_of_anything(before_count, actual_args_count); end
312
+ def resolve_expected_args_based_on(actual_args); end
313
+ end
314
+ class RSpec::Mocks::SimpleMessageExpectation
315
+ def called_max_times?; end
316
+ def initialize(message, response, error_generator, backtrace_line = nil); end
317
+ def invoke(*_); end
318
+ def matches?(message, *_); end
319
+ def unadvise(_); end
320
+ def verify_messages_received; end
321
+ end
322
+ class RSpec::Mocks::MessageExpectation
323
+ def and_call_original; end
324
+ def and_raise(*args); end
325
+ def and_return(first_value, *values); end
326
+ def and_throw(*args); end
327
+ def and_wrap_original(&block); end
328
+ def and_yield(*args, &block); end
329
+ def at_least(n, &block); end
330
+ def at_most(n, &block); end
331
+ def exactly(n, &block); end
332
+ def inspect; end
333
+ def never; end
334
+ def once(&block); end
335
+ def ordered(&block); end
336
+ def thrice(&block); end
337
+ def time(&block); end
338
+ def times(&block); end
339
+ def to_s; end
340
+ def twice(&block); end
341
+ def with(*args, &block); end
342
+ include RSpec::Mocks::MessageExpectation::ImplementationDetails
343
+ end
344
+ module RSpec::Mocks::MessageExpectation::ImplementationDetails
345
+ def actual_received_count_matters?; end
346
+ def additional_expected_calls; end
347
+ def advise(*args); end
348
+ def and_yield_receiver_to_implementation; end
349
+ def argument_list_matcher=(arg0); end
350
+ def called_max_times?; end
351
+ def description_for(verb); end
352
+ def ensure_expected_ordering_received!; end
353
+ def error_generator; end
354
+ def error_generator=(arg0); end
355
+ def exception_source_id; end
356
+ def expectation_count_type; end
357
+ def expected_args; end
358
+ def expected_from=(arg0); end
359
+ def expected_messages_received?; end
360
+ def expected_received_count=(arg0); end
361
+ def generate_error; end
362
+ def has_been_invoked?; end
363
+ def ignoring_args?; end
364
+ def implementation; end
365
+ def implementation=(arg0); end
366
+ def increase_actual_received_count!; end
367
+ def initial_implementation_action=(action); end
368
+ def initialize(error_generator, expectation_ordering, expected_from, method_double, type = nil, opts = nil, &implementation_block); end
369
+ def inner_implementation_action=(action); end
370
+ def invoke(parent_stub, *args, &block); end
371
+ def invoke_incrementing_actual_calls_by(increment, allowed_to_fail, parent_stub, *args, &block); end
372
+ def invoke_without_incrementing_received_count(parent_stub, *args, &block); end
373
+ def matches?(message, *args); end
374
+ def matches_at_least_count?; end
375
+ def matches_at_most_count?; end
376
+ def matches_exact_count?; end
377
+ def matches_name_but_not_args(message, *args); end
378
+ def message; end
379
+ def negative?; end
380
+ def negative_expectation_for?(message); end
381
+ def ordered?; end
382
+ def orig_object; end
383
+ def raise_already_invoked_error_if_necessary(calling_customization); end
384
+ def raise_out_of_order_error; end
385
+ def raise_unexpected_message_args_error(args_for_multiple_calls); end
386
+ def safe_invoke(parent_stub, *args, &block); end
387
+ def set_expected_received_count(relativity, n); end
388
+ def similar_messages; end
389
+ def terminal_implementation_action=(action); end
390
+ def type; end
391
+ def unadvise(args); end
392
+ def verify_messages_received; end
393
+ def warn_about_stub_override; end
394
+ def wrap_original(method_name, &block); end
395
+ def yield_receiver_to_implementation_block?; end
396
+ end
397
+ class RSpec::Mocks::AndYieldImplementation
398
+ def call(*_args_to_ignore, &block); end
399
+ def initialize(args_to_yield, eval_context, error_generator); end
400
+ end
401
+ class RSpec::Mocks::AndReturnImplementation
402
+ def call(*_args_to_ignore, &_block); end
403
+ def initialize(values_to_return); end
404
+ end
405
+ class RSpec::Mocks::Implementation
406
+ def actions; end
407
+ def call(*args, &block); end
408
+ def initial_action; end
409
+ def initial_action=(arg0); end
410
+ def inner_action; end
411
+ def inner_action=(arg0); end
412
+ def present?; end
413
+ def terminal_action; end
414
+ def terminal_action=(arg0); end
415
+ end
416
+ class RSpec::Mocks::AndWrapOriginalImplementation
417
+ def call(*args, &block); end
418
+ def cannot_modify_further_error; end
419
+ def initial_action=(_value); end
420
+ def initialize(method, block); end
421
+ def inner_action; end
422
+ def inner_action=(_value); end
423
+ def present?; end
424
+ def terminal_action=(_value); end
425
+ end
426
+ class RSpec::Mocks::AndWrapOriginalImplementation::CannotModifyFurtherError < StandardError
427
+ end
428
+ class RSpec::Mocks::OrderGroup
429
+ def clear; end
430
+ def consume; end
431
+ def empty?; end
432
+ def expectation_for(message); end
433
+ def expectations_invoked_in_order?; end
434
+ def expected_invocations; end
435
+ def handle_order_constraint(expectation); end
436
+ def initialize; end
437
+ def invoked(message); end
438
+ def invoked_expectations; end
439
+ def ready_for?(expectation); end
440
+ def register(expectation); end
441
+ def remaining_expectations; end
442
+ def verify_invocation_order(expectation); end
443
+ end
444
+ class RSpec::Mocks::MockExpectationError < Exception
445
+ end
446
+ class RSpec::Mocks::ExpiredTestDoubleError < RSpec::Mocks::MockExpectationError
447
+ end
448
+ class RSpec::Mocks::OutsideOfExampleError < StandardError
449
+ end
450
+ class RSpec::Mocks::MockExpectationAlreadyInvokedError < Exception
451
+ end
452
+ class RSpec::Mocks::CannotSupportArgMutationsError < StandardError
453
+ end
454
+ class RSpec::Mocks::UnsupportedMatcherError < StandardError
455
+ end
456
+ class RSpec::Mocks::NegationUnsupportedError < StandardError
457
+ end
458
+ class RSpec::Mocks::VerifyingDoubleNotDefinedError < StandardError
459
+ end
460
+ class RSpec::Mocks::ErrorGenerator
461
+ def __raise(message, backtrace_line = nil, source_id = nil); end
462
+ def arg_list(args); end
463
+ def count_message(count, expectation_count_type = nil); end
464
+ def default_error_message(expectation, expected_args, actual_args); end
465
+ def describe_expectation(verb, message, expected_received_count, _actual_received_count, args); end
466
+ def diff_message(expected_args, actual_args); end
467
+ def differ; end
468
+ def error_message(expectation, args_for_multiple_calls); end
469
+ def expectation_on_nil_message(method_name); end
470
+ def expected_part_of_expectation_error(expected_received_count, expectation_count_type, argument_list_matcher); end
471
+ def format_args(args); end
472
+ def format_received_args(args_for_multiple_calls); end
473
+ def group_count(index, args); end
474
+ def grouped_args(args); end
475
+ def initialize(target = nil); end
476
+ def intro(unwrapped = nil); end
477
+ def list_of_exactly_one_string?(args); end
478
+ def method_call_args_description(args, generic_prefix = nil, matcher_prefix = nil); end
479
+ def notify(*args); end
480
+ def opts; end
481
+ def opts=(arg0); end
482
+ def prepend_to_backtrace(exception, line); end
483
+ def raise_already_invoked_error(message, calling_customization); end
484
+ def raise_cant_constrain_count_for_negated_have_received_error(count_constraint); end
485
+ def raise_double_negation_error(wrapped_expression); end
486
+ def raise_expectation_error(message, expected_received_count, argument_list_matcher, actual_received_count, expectation_count_type, args, backtrace_line = nil, source_id = nil); end
487
+ def raise_expectation_on_mocked_method(method); end
488
+ def raise_expectation_on_nil_error(method_name); end
489
+ def raise_expectation_on_unstubbed_method(method); end
490
+ def raise_expired_test_double_error; end
491
+ def raise_have_received_disallowed(type, reason); end
492
+ def raise_invalid_arguments_error(verifier); end
493
+ def raise_method_not_stubbed_error(method_name); end
494
+ def raise_missing_block_error(args_to_yield); end
495
+ def raise_missing_default_stub_error(expectation, args_for_multiple_calls); end
496
+ def raise_non_public_error(method_name, visibility); end
497
+ def raise_only_valid_on_a_partial_double(method); end
498
+ def raise_out_of_order_error(message); end
499
+ def raise_similar_message_args_error(expectation, args_for_multiple_calls, backtrace_line = nil); end
500
+ def raise_unexpected_message_args_error(expectation, args_for_multiple_calls, source_id = nil); end
501
+ def raise_unexpected_message_error(message, args); end
502
+ def raise_unimplemented_error(doubled_module, method_name, object); end
503
+ def raise_verifying_double_not_defined_error(ref); end
504
+ def raise_wrong_arity_error(args_to_yield, signature); end
505
+ def received_part_of_expectation_error(actual_received_count, args); end
506
+ def times(count); end
507
+ def unexpected_arguments_message(expected_args_string, actual_args_string); end
508
+ def unpack_string_args(formatted_expected_args, actual_args); end
509
+ end
510
+ class RSpec::Mocks::RootSpace
511
+ def any_instance_proxy_for(*_args); end
512
+ def any_instance_recorder_for(*_args); end
513
+ def any_instance_recorders_from_ancestry_of(_object); end
514
+ def new_scope; end
515
+ def proxy_for(*_args); end
516
+ def raise_lifecycle_message; end
517
+ def register_constant_mutator(_mutator); end
518
+ def registered?(_object); end
519
+ def reset_all; end
520
+ def superclass_proxy_for(*_args); end
521
+ def verify_all; end
522
+ end
523
+ class RSpec::Mocks::Space
524
+ def any_instance_mutex; end
525
+ def any_instance_proxy_for(klass); end
526
+ def any_instance_recorder_for(klass, only_return_existing = nil); end
527
+ def any_instance_recorder_not_found_for(id, klass); end
528
+ def any_instance_recorders; end
529
+ def any_instance_recorders_from_ancestry_of(object); end
530
+ def class_proxy_with_callback_verification_strategy(object, strategy); end
531
+ def constant_mutator_for(name); end
532
+ def ensure_registered(object); end
533
+ def id_for(object); end
534
+ def initialize; end
535
+ def new_mutex; end
536
+ def new_scope; end
537
+ def proxies; end
538
+ def proxies_of(klass); end
539
+ def proxy_for(object); end
540
+ def proxy_mutex; end
541
+ def proxy_not_found_for(id, object); end
542
+ def register_constant_mutator(mutator); end
543
+ def registered?(object); end
544
+ def reset_all; end
545
+ def superclass_proxy_for(klass); end
546
+ def superclass_proxy_not_found_for(id, object); end
547
+ def verify_all; end
548
+ end
549
+ class RSpec::Mocks::NestedSpace < RSpec::Mocks::Space
550
+ def any_instance_recorder_not_found_for(id, klass); end
551
+ def constant_mutator_for(name); end
552
+ def initialize(parent); end
553
+ def proxies_of(klass); end
554
+ def proxy_not_found_for(id, object); end
555
+ def registered?(object); end
556
+ end
557
+ class RSpec::Mocks::Constant
558
+ def hidden=(arg0); end
559
+ def hidden?; end
560
+ def initialize(name); end
561
+ def inspect; end
562
+ def mutated?; end
563
+ def name; end
564
+ def original_value; end
565
+ def original_value=(arg0); end
566
+ def previously_defined=(arg0); end
567
+ def previously_defined?; end
568
+ def self.original(name); end
569
+ def self.unmutated(name); end
570
+ def stubbed=(arg0); end
571
+ def stubbed?; end
572
+ def to_s; end
573
+ def valid_name=(arg0); end
574
+ def valid_name?; end
575
+ extend RSpec::Support::RecursiveConstMethods
576
+ end
577
+ class RSpec::Mocks::ConstantMutator
578
+ def self.hide(constant_name); end
579
+ def self.mutate(mutator); end
580
+ def self.raise_on_invalid_const; end
581
+ def self.stub(constant_name, value, options = nil); end
582
+ extend RSpec::Support::RecursiveConstMethods
583
+ end
584
+ class RSpec::Mocks::ConstantMutator::BaseMutator
585
+ def full_constant_name; end
586
+ def idempotently_reset; end
587
+ def initialize(full_constant_name, mutated_value, transfer_nested_constants); end
588
+ def original_value; end
589
+ def to_constant; end
590
+ include RSpec::Support::RecursiveConstMethods
591
+ end
592
+ class RSpec::Mocks::ConstantMutator::ConstantHider < RSpec::Mocks::ConstantMutator::BaseMutator
593
+ def mutate; end
594
+ def reset; end
595
+ def to_constant; end
596
+ end
597
+ class RSpec::Mocks::ConstantMutator::DefinedConstantReplacer < RSpec::Mocks::ConstantMutator::BaseMutator
598
+ def initialize(*args); end
599
+ def mutate; end
600
+ def reset; end
601
+ def should_transfer_nested_constants?; end
602
+ def to_constant; end
603
+ def transfer_nested_constants; end
604
+ def verify_constants_to_transfer!; end
605
+ end
606
+ class RSpec::Mocks::ConstantMutator::UndefinedConstantSetter < RSpec::Mocks::ConstantMutator::BaseMutator
607
+ def mutate; end
608
+ def name_for(parent, name); end
609
+ def reset; end
610
+ def to_constant; end
611
+ end
612
+ module RSpec::Mocks::TargetDelegationClassMethods
613
+ def delegate_not_to(matcher_method, options = nil); end
614
+ def delegate_to(matcher_method); end
615
+ def disallow_negation(method_name); end
616
+ end
617
+ module RSpec::Mocks::TargetDelegationInstanceMethods
618
+ def define_matcher(matcher, name, &block); end
619
+ def matcher_allowed?(matcher); end
620
+ def raise_negation_unsupported(method_name, matcher); end
621
+ def raise_unsupported_matcher(method_name, matcher); end
622
+ def target; end
623
+ end
624
+ class RSpec::Mocks::TargetBase
625
+ def initialize(target); end
626
+ extend RSpec::Mocks::TargetDelegationClassMethods
627
+ include RSpec::Mocks::TargetDelegationInstanceMethods
628
+ end
629
+ module RSpec::Mocks::ExpectationTargetMethods
630
+ def expression; end
631
+ def not_to(matcher, &block); end
632
+ def to(matcher, &block); end
633
+ def to_not(matcher, &block); end
634
+ extend RSpec::Mocks::TargetDelegationClassMethods
635
+ include RSpec::Mocks::TargetDelegationInstanceMethods
636
+ end
637
+ class RSpec::Mocks::ExpectationTarget < RSpec::Mocks::TargetBase
638
+ include RSpec::Mocks::ExpectationTargetMethods
639
+ end
640
+ class RSpec::Mocks::AllowanceTarget < RSpec::Mocks::TargetBase
641
+ def expression; end
642
+ def not_to(matcher, *_args); end
643
+ def to(matcher, &block); end
644
+ def to_not(matcher, *_args); end
645
+ end
646
+ class RSpec::Mocks::AnyInstanceAllowanceTarget < RSpec::Mocks::TargetBase
647
+ def expression; end
648
+ def not_to(matcher, *_args); end
649
+ def to(matcher, &block); end
650
+ def to_not(matcher, *_args); end
651
+ end
652
+ class RSpec::Mocks::AnyInstanceExpectationTarget < RSpec::Mocks::TargetBase
653
+ def expression; end
654
+ def not_to(matcher, &block); end
655
+ def to(matcher, &block); end
656
+ def to_not(matcher, &block); end
657
+ end
658
+ module RSpec::Mocks::Syntax
659
+ def self.default_should_syntax_host; end
660
+ def self.disable_expect(syntax_host = nil); end
661
+ def self.disable_should(syntax_host = nil); end
662
+ def self.enable_expect(syntax_host = nil); end
663
+ def self.enable_should(syntax_host = nil); end
664
+ def self.expect_enabled?(syntax_host = nil); end
665
+ def self.should_enabled?(syntax_host = nil); end
666
+ def self.warn_about_should!; end
667
+ def self.warn_unless_should_configured(method_name, replacement = nil); end
668
+ end
669
+ class BasicObject
670
+ end
671
+ class Class < Module
672
+ end
673
+ class RSpec::Mocks::Configuration
674
+ def add_stub_and_should_receive_to(*modules); end
675
+ def allow_message_expectations_on_nil; end
676
+ def allow_message_expectations_on_nil=(arg0); end
677
+ def before_verifying_doubles(&block); end
678
+ def color?; end
679
+ def initialize; end
680
+ def patch_marshal_to_support_partial_doubles=(val); end
681
+ def reset_syntaxes_to_default; end
682
+ def syntax; end
683
+ def syntax=(*values); end
684
+ def temporarily_suppress_partial_double_verification; end
685
+ def temporarily_suppress_partial_double_verification=(arg0); end
686
+ def transfer_nested_constants=(arg0); end
687
+ def transfer_nested_constants?; end
688
+ def verify_doubled_constant_names=(arg0); end
689
+ def verify_doubled_constant_names?; end
690
+ def verify_partial_doubles=(val); end
691
+ def verify_partial_doubles?; end
692
+ def verifying_double_callbacks; end
693
+ def when_declaring_verifying_double(&block); end
694
+ def yield_receiver_to_any_instance_implementation_blocks=(arg0); end
695
+ def yield_receiver_to_any_instance_implementation_blocks?; end
696
+ end
697
+ class RSpec::Mocks::VerifyingMessageExpectation < RSpec::Mocks::MessageExpectation
698
+ def initialize(*args); end
699
+ def method_reference; end
700
+ def method_reference=(arg0); end
701
+ def validate_expected_arguments!; end
702
+ def with(*args, &block); end
703
+ end
704
+ class RSpec::Mocks::MethodReference
705
+ def defined?; end
706
+ def implemented?; end
707
+ def initialize(object_reference, method_name); end
708
+ def original_method; end
709
+ def self.for(object_reference, method_name); end
710
+ def self.instance_method_visibility_for(klass, method_name); end
711
+ def self.method_defined_at_any_visibility?(klass, method_name); end
712
+ def self.method_visibility_for(object, method_name); end
713
+ def unimplemented?; end
714
+ def visibility; end
715
+ def with_signature; end
716
+ end
717
+ class RSpec::Mocks::InstanceMethodReference < RSpec::Mocks::MethodReference
718
+ def find_method(mod); end
719
+ def method_defined?(mod); end
720
+ def method_implemented?(mod); end
721
+ def visibility_from(mod); end
722
+ end
723
+ class RSpec::Mocks::ObjectMethodReference < RSpec::Mocks::MethodReference
724
+ def find_method(object); end
725
+ def method_defined?(object); end
726
+ def method_implemented?(object); end
727
+ def self.for(object_reference, method_name); end
728
+ def visibility_from(object); end
729
+ end
730
+ class RSpec::Mocks::ClassNewMethodReference < RSpec::Mocks::ObjectMethodReference
731
+ def self.applies_to?(method_name); end
732
+ def with_signature; end
733
+ end
734
+ class RSpec::Mocks::CallbackInvocationStrategy
735
+ def call(doubled_module); end
736
+ end
737
+ class RSpec::Mocks::NoCallbackInvocationStrategy
738
+ def call(_doubled_module); end
739
+ end
740
+ module RSpec::Mocks::VerifyingProxyMethods
741
+ def add_message_expectation(method_name, opts = nil, &block); end
742
+ def add_simple_stub(method_name, *args); end
743
+ def add_stub(method_name, opts = nil, &implementation); end
744
+ def ensure_implemented(method_name); end
745
+ def ensure_publicly_implemented(method_name, _object); end
746
+ end
747
+ class RSpec::Mocks::VerifyingProxy < RSpec::Mocks::TestDoubleProxy
748
+ def initialize(object, order_group, doubled_module, method_reference_class); end
749
+ def method_reference; end
750
+ def validate_arguments!(method_name, args); end
751
+ def visibility_for(method_name); end
752
+ include RSpec::Mocks::VerifyingProxyMethods
753
+ end
754
+ class RSpec::Mocks::VerifyingPartialDoubleProxy < RSpec::Mocks::PartialDoubleProxy
755
+ def ensure_implemented(_method_name); end
756
+ def initialize(object, expectation_ordering, optional_callback_invocation_strategy = nil); end
757
+ def method_reference; end
758
+ include RSpec::Mocks::VerifyingProxyMethods
759
+ end
760
+ class RSpec::Mocks::VerifyingPartialClassDoubleProxy < RSpec::Mocks::VerifyingPartialDoubleProxy
761
+ include RSpec::Mocks::PartialClassDoubleProxyMethods
762
+ end
763
+ class RSpec::Mocks::VerifyingMethodDouble < RSpec::Mocks::MethodDouble
764
+ def add_expectation(*args, &block); end
765
+ def add_stub(*args, &block); end
766
+ def initialize(object, method_name, proxy, method_reference); end
767
+ def message_expectation_class; end
768
+ def proxy_method_invoked(obj, *args, &block); end
769
+ def validate_arguments!(actual_args); end
770
+ end
771
+ class RSpec::Mocks::VerifyingExistingMethodDouble < RSpec::Mocks::VerifyingMethodDouble
772
+ def initialize(object, method_name, proxy); end
773
+ def self.for(object, method_name, proxy); end
774
+ def unimplemented?; end
775
+ def with_signature; end
776
+ end
777
+ class RSpec::Mocks::VerifyingExistingClassNewMethodDouble < RSpec::Mocks::VerifyingExistingMethodDouble
778
+ def with_signature; end
779
+ end
780
+ module RSpec::Mocks::VerifyingDouble
781
+ def __send__(name, *args, &block); end
782
+ def initialize(doubled_module, *args); end
783
+ def method_missing(message, *args, &block); end
784
+ def respond_to?(message, include_private = nil); end
785
+ def send(name, *args, &block); end
786
+ end
787
+ module RSpec::Mocks::VerifyingDouble::SilentIO
788
+ def self.method_missing(*arg0); end
789
+ def self.respond_to?(*arg0); end
790
+ end
791
+ class RSpec::Mocks::InstanceVerifyingDouble
792
+ def __build_mock_proxy(order_group); end
793
+ include RSpec::Mocks::TestDouble
794
+ include RSpec::Mocks::VerifyingDouble
795
+ end
796
+ module RSpec::Mocks::ObjectVerifyingDoubleMethods
797
+ def __build_mock_proxy(order_group); end
798
+ def as_stubbed_const(options = nil); end
799
+ include RSpec::Mocks::TestDouble
800
+ include RSpec::Mocks::VerifyingDouble
801
+ end
802
+ class RSpec::Mocks::ObjectVerifyingDouble
803
+ include RSpec::Mocks::ObjectVerifyingDoubleMethods
804
+ end
805
+ class RSpec::Mocks::ClassVerifyingDouble < Module
806
+ include RSpec::Mocks::ObjectVerifyingDoubleMethods
807
+ end
808
+ module RSpec::Mocks::Version
809
+ end
810
+ module RSpec::Support
811
+ def self.require_rspec_mocks(f); end
812
+ end
813
+ module RSpec::Mocks::Matchers
814
+ end
815
+ module RSpec::Mocks::Matchers::Matcher
816
+ end
817
+ class RSpec::Mocks::MarshalExtension
818
+ def self.patch!; end
819
+ def self.unpatch!; end
820
+ end