workos 4.0.0 → 4.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +37 -0
  3. data/.github/workflows/release.yml +43 -0
  4. data/.rubocop.yml +8 -1
  5. data/Gemfile.lock +22 -69
  6. data/lib/workos/audit_log_export.rb +8 -31
  7. data/lib/workos/audit_logs.rb +0 -26
  8. data/lib/workos/authentication_factor_and_challenge.rb +0 -3
  9. data/lib/workos/authentication_response.rb +12 -5
  10. data/lib/workos/challenge.rb +9 -28
  11. data/lib/workos/client.rb +0 -41
  12. data/lib/workos/configuration.rb +0 -1
  13. data/lib/workos/connection.rb +11 -35
  14. data/lib/workos/directory.rb +10 -37
  15. data/lib/workos/directory_group.rb +9 -36
  16. data/lib/workos/directory_sync.rb +0 -21
  17. data/lib/workos/directory_user.rb +17 -51
  18. data/lib/workos/errors.rb +0 -16
  19. data/lib/workos/event.rb +5 -26
  20. data/lib/workos/events.rb +0 -7
  21. data/lib/workos/factor.rb +9 -28
  22. data/lib/workos/hash_provider.rb +0 -1
  23. data/lib/workos/impersonator.rb +23 -0
  24. data/lib/workos/invitation.rb +12 -37
  25. data/lib/workos/mfa.rb +0 -42
  26. data/lib/workos/organization.rb +8 -31
  27. data/lib/workos/organization_membership.rb +8 -27
  28. data/lib/workos/organizations.rb +0 -26
  29. data/lib/workos/passwordless.rb +0 -14
  30. data/lib/workos/portal.rb +1 -13
  31. data/lib/workos/profile.rb +12 -39
  32. data/lib/workos/profile_and_token.rb +1 -4
  33. data/lib/workos/refresh_authentication_response.rb +24 -0
  34. data/lib/workos/sso.rb +1 -43
  35. data/lib/workos/types/intent.rb +16 -0
  36. data/lib/workos/types/list_struct.rb +8 -5
  37. data/lib/workos/types/passwordless_session_struct.rb +10 -9
  38. data/lib/workos/types/provider.rb +15 -0
  39. data/lib/workos/types.rb +5 -23
  40. data/lib/workos/user.rb +10 -31
  41. data/lib/workos/user_and_token.rb +1 -4
  42. data/lib/workos/user_management.rb +108 -219
  43. data/lib/workos/user_response.rb +0 -3
  44. data/lib/workos/verify_challenge.rb +4 -18
  45. data/lib/workos/version.rb +1 -2
  46. data/lib/workos/webhook.rb +5 -26
  47. data/lib/workos/webhooks.rb +1 -38
  48. data/lib/workos.rb +2 -2
  49. data/spec/lib/workos/audit_logs_spec.rb +2 -3
  50. data/spec/lib/workos/configuration_spec.rb +0 -1
  51. data/spec/lib/workos/directory_sync_spec.rb +0 -1
  52. data/spec/lib/workos/directory_user_spec.rb +0 -1
  53. data/spec/lib/workos/event_spec.rb +0 -1
  54. data/spec/lib/workos/mfa_spec.rb +0 -1
  55. data/spec/lib/workos/organizations_spec.rb +0 -1
  56. data/spec/lib/workos/passwordless_spec.rb +0 -1
  57. data/spec/lib/workos/portal_spec.rb +0 -1
  58. data/spec/lib/workos/sso_spec.rb +0 -1
  59. data/spec/lib/workos/user_management_spec.rb +59 -10
  60. data/spec/lib/workos/webhooks_spec.rb +0 -1
  61. data/spec/spec_helper.rb +6 -9
  62. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/valid.yml +1 -1
  63. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/valid_with_impersonator.yml +80 -0
  64. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/valid.yml +1 -1
  65. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_magic_auth/valid.yml +1 -1
  66. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/valid.yml +1 -1
  67. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/valid.yml +1 -1
  68. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_refresh_code/invalid.yml +81 -0
  69. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_refresh_token/valid.yml +81 -0
  70. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_totp/valid.yml +1 -1
  71. data/spec/support/shared_examples/client_spec.rb +0 -1
  72. data/workos.gemspec +1 -6
  73. metadata +19 -129
  74. data/.semaphore/rubygems.yml +0 -24
  75. data/.semaphore/semaphore.yml +0 -51
  76. data/bin/tapioca +0 -29
  77. data/codecov.yml +0 -12
  78. data/devbox.json +0 -18
  79. data/devbox.lock +0 -11
  80. data/lib/workos/types/audit_log_export_struct.rb +0 -17
  81. data/lib/workos/types/challenge_struct.rb +0 -18
  82. data/lib/workos/types/connection_struct.rb +0 -20
  83. data/lib/workos/types/directory_group_struct.rb +0 -19
  84. data/lib/workos/types/directory_struct.rb +0 -19
  85. data/lib/workos/types/directory_user_struct.rb +0 -26
  86. data/lib/workos/types/event_struct.rb +0 -15
  87. data/lib/workos/types/factor_struct.rb +0 -18
  88. data/lib/workos/types/intent_enum.rb +0 -17
  89. data/lib/workos/types/invitation_struct.rb +0 -20
  90. data/lib/workos/types/magic_auth_challenge_struct.rb +0 -12
  91. data/lib/workos/types/organization_membership_struct.rb +0 -16
  92. data/lib/workos/types/organization_struct.rb +0 -17
  93. data/lib/workos/types/profile_struct.rb +0 -21
  94. data/lib/workos/types/provider_enum.rb +0 -16
  95. data/lib/workos/types/user_struct.rb +0 -18
  96. data/lib/workos/types/verify_challenge_struct.rb +0 -13
  97. data/lib/workos/types/webhook_struct.rb +0 -15
  98. data/sorbet/config +0 -2
  99. data/sorbet/rbi/gems/addressable@2.8.0.rbi +0 -290
  100. data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -54
  101. data/sorbet/rbi/gems/codecov@0.2.12.rbi +0 -55
  102. data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
  103. data/sorbet/rbi/gems/crack@0.4.5.rbi +0 -57
  104. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +0 -185
  105. data/sorbet/rbi/gems/docile@1.3.5.rbi +0 -54
  106. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +0 -82
  107. data/sorbet/rbi/gems/json@2.5.1.rbi +0 -109
  108. data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -8
  109. data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -113
  110. data/sorbet/rbi/gems/parser@3.0.1.0.rbi +0 -1187
  111. data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -8
  112. data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +0 -146
  113. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -153
  114. data/sorbet/rbi/gems/rake@13.0.3.rbi +0 -807
  115. data/sorbet/rbi/gems/rbi@0.0.16.rbi +0 -2118
  116. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -1117
  117. data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -709
  118. data/sorbet/rbi/gems/rspec-core@3.9.3.rbi +0 -2467
  119. data/sorbet/rbi/gems/rspec-expectations@3.9.4.rbi +0 -1569
  120. data/sorbet/rbi/gems/rspec-mocks@3.9.1.rbi +0 -1493
  121. data/sorbet/rbi/gems/rspec-support@3.9.4.rbi +0 -511
  122. data/sorbet/rbi/gems/rspec@3.9.0.rbi +0 -38
  123. data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +0 -1881
  124. data/sorbet/rbi/gems/rubocop@0.93.1.rbi +0 -11497
  125. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -405
  126. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -89
  127. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +0 -577
  128. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.2.rbi +0 -8
  129. data/sorbet/rbi/gems/spoom@1.1.15.rbi +0 -1549
  130. data/sorbet/rbi/gems/tapioca@0.7.3.rbi +0 -1718
  131. data/sorbet/rbi/gems/thor@1.2.1.rbi +0 -844
  132. data/sorbet/rbi/gems/unicode-display_width@1.7.0.rbi +0 -22
  133. data/sorbet/rbi/gems/unparser@0.6.2.rbi +0 -8
  134. data/sorbet/rbi/gems/vcr@5.0.0.rbi +0 -699
  135. data/sorbet/rbi/gems/webmock@3.12.2.rbi +0 -662
  136. data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +0 -268
  137. data/sorbet/rbi/gems/yard@0.9.26.rbi +0 -4048
  138. data/sorbet/tapioca/config.yml +0 -13
  139. data/sorbet/tapioca/require.rb +0 -4
@@ -1,1569 +0,0 @@
1
- # typed: true
2
-
3
- # DO NOT EDIT MANUALLY
4
- # This is an autogenerated file for types exported from the `rspec-expectations` gem.
5
- # Please instead update this file by running `bin/tapioca gem rspec-expectations`.
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 describe(*args, &example_group_block); end
21
- def example_group(*args, &example_group_block); end
22
- def fcontext(*args, &example_group_block); end
23
- def fdescribe(*args, &example_group_block); end
24
- def reset; end
25
- def shared_context(name, *args, &block); end
26
- def shared_examples(name, *args, &block); end
27
- def shared_examples_for(name, *args, &block); end
28
- def world; end
29
- def world=(_arg0); end
30
- def xcontext(*args, &example_group_block); end
31
- def xdescribe(*args, &example_group_block); end
32
- end
33
- end
34
-
35
- module RSpec::Expectations
36
- class << self
37
- def configuration; end
38
- def differ; end
39
- def fail_with(message, expected = T.unsafe(nil), actual = T.unsafe(nil)); end
40
- end
41
- end
42
-
43
- class RSpec::Expectations::BlockExpectationTarget < ::RSpec::Expectations::ExpectationTarget
44
- def not_to(matcher, message = T.unsafe(nil), &block); end
45
- def to(matcher, message = T.unsafe(nil), &block); end
46
- def to_not(matcher, message = T.unsafe(nil), &block); end
47
-
48
- private
49
-
50
- def enforce_block_expectation(matcher); end
51
- def supports_block_expectations?(matcher); end
52
- end
53
-
54
- class RSpec::Expectations::BlockSnippetExtractor
55
- def initialize(proc, method_name); end
56
-
57
- def body_content_lines; end
58
- def method_name; end
59
- def proc; end
60
-
61
- private
62
-
63
- def beginning_line_number; end
64
- def block_token_extractor; end
65
- def file_path; end
66
- def raw_body_lines; end
67
- def raw_body_snippet; end
68
- def source; end
69
- def source_location; end
70
-
71
- class << self
72
- def try_extracting_single_line_body_of(proc, method_name); end
73
- end
74
- end
75
-
76
- class RSpec::Expectations::BlockSnippetExtractor::AmbiguousTargetError < ::RSpec::Expectations::BlockSnippetExtractor::Error; end
77
-
78
- class RSpec::Expectations::BlockSnippetExtractor::BlockLocator < ::Struct
79
- def beginning_line_number; end
80
- def beginning_line_number=(_); end
81
- def body_content_locations; end
82
- def method_call_location; end
83
- def method_name; end
84
- def method_name=(_); end
85
- def source; end
86
- def source=(_); end
87
-
88
- private
89
-
90
- def block_body_node; end
91
- def block_wrapper_node; end
92
- def candidate_block_wrapper_nodes; end
93
- def candidate_method_ident_nodes; end
94
- def method_ident_node; end
95
- def method_ident_node?(node); end
96
-
97
- class << self
98
- def [](*_arg0); end
99
- def inspect; end
100
- def keyword_init?; end
101
- def members; end
102
- def new(*_arg0); end
103
- end
104
- end
105
-
106
- class RSpec::Expectations::BlockSnippetExtractor::BlockTokenExtractor < ::Struct
107
- def initialize(*_arg0); end
108
-
109
- def beginning_line_number; end
110
- def beginning_line_number=(_); end
111
- def body_tokens; end
112
- def method_name; end
113
- def method_name=(_); end
114
- def source; end
115
- def source=(_); end
116
- def state; end
117
-
118
- private
119
-
120
- def after_beginning_of_args_state(token); end
121
- def after_beginning_of_body_state(token); end
122
- def after_method_call_state(token); end
123
- def after_opener_state(token); end
124
- def block_locator; end
125
- def correct_block?(body_tokens); end
126
- def finalize_pending_tokens!; end
127
- def finish!; end
128
- def finish_or_find_next_block_if_incorrect!; end
129
- def handle_closer_token(token); end
130
- def handle_opener_token(token); end
131
- def initial_state(token); end
132
- def invoke_state_handler(token); end
133
- def opener_token?(token); end
134
- def opener_token_stack; end
135
- def parse!; end
136
- def pending_tokens; end
137
- def pipe_token?(token); end
138
-
139
- class << self
140
- def [](*_arg0); end
141
- def inspect; end
142
- def keyword_init?; end
143
- def members; end
144
- def new(*_arg0); end
145
- end
146
- end
147
-
148
- class RSpec::Expectations::BlockSnippetExtractor::Error < ::StandardError; end
149
- class RSpec::Expectations::BlockSnippetExtractor::TargetNotFoundError < ::RSpec::Expectations::BlockSnippetExtractor::Error; end
150
-
151
- class RSpec::Expectations::Configuration
152
- def initialize; end
153
-
154
- def add_should_and_should_not_to(*modules); end
155
- def backtrace_formatter; end
156
- def backtrace_formatter=(_arg0); end
157
- def color?; end
158
- def false_positives_handler; end
159
- def include_chain_clauses_in_custom_matcher_descriptions=(_arg0); end
160
- def include_chain_clauses_in_custom_matcher_descriptions?; end
161
- def max_formatted_output_length=(length); end
162
- def on_potential_false_positives; end
163
- def on_potential_false_positives=(behavior); end
164
- def reset_syntaxes_to_default; end
165
- def syntax; end
166
- def syntax=(values); end
167
- def warn_about_potential_false_positives=(boolean); end
168
- def warn_about_potential_false_positives?; end
169
- end
170
-
171
- RSpec::Expectations::Configuration::FALSE_POSITIVE_BEHAVIOURS = T.let(T.unsafe(nil), Hash)
172
-
173
- module RSpec::Expectations::Configuration::NullBacktraceFormatter
174
- class << self
175
- def format_backtrace(backtrace); end
176
- end
177
- end
178
-
179
- module RSpec::Expectations::ExpectationHelper
180
- class << self
181
- def check_message(msg); end
182
- def handle_failure(matcher, message, failure_message_method); end
183
- def modern_matcher_from(matcher); end
184
- def with_matcher(handler, matcher, message); end
185
- end
186
- end
187
-
188
- class RSpec::Expectations::ExpectationNotMetError < ::Exception; end
189
-
190
- class RSpec::Expectations::ExpectationTarget
191
- include ::RSpec::Expectations::ExpectationTarget::InstanceMethods
192
-
193
- def initialize(value); end
194
-
195
- def target; end
196
-
197
- class << self
198
- def for(value, block); end
199
- end
200
- end
201
-
202
- module RSpec::Expectations::ExpectationTarget::InstanceMethods
203
- def not_to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end
204
- def to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end
205
- def to_not(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end
206
-
207
- private
208
-
209
- def prevent_operator_matchers(verb); end
210
- end
211
-
212
- module RSpec::Expectations::ExpectationTarget::UndefinedValue; end
213
-
214
- class RSpec::Expectations::FailureAggregator
215
- def initialize(block_label, metadata); end
216
-
217
- def aggregate; end
218
- def block_label; end
219
- def call(failure, options); end
220
- def failures; end
221
- def metadata; end
222
- def other_errors; end
223
-
224
- private
225
-
226
- def assign_backtrace(failure); end
227
- def notify_aggregated_failures; end
228
- end
229
-
230
- RSpec::Expectations::LegacyMacherAdapter = RSpec::Expectations::LegacyMatcherAdapter
231
-
232
- class RSpec::Expectations::LegacyMatcherAdapter < ::RSpec::Matchers::MatcherDelegator
233
- def initialize(matcher); end
234
-
235
- class << self
236
- def wrap(matcher); end
237
- end
238
- end
239
-
240
- class RSpec::Expectations::LegacyMatcherAdapter::RSpec1 < ::RSpec::Expectations::LegacyMatcherAdapter
241
- def failure_message; end
242
- def failure_message_when_negated; end
243
-
244
- class << self
245
- def interface_matches?(matcher); end
246
- end
247
- end
248
-
249
- class RSpec::Expectations::LegacyMatcherAdapter::RSpec2 < ::RSpec::Expectations::LegacyMatcherAdapter
250
- def failure_message; end
251
- def failure_message_when_negated; end
252
-
253
- class << self
254
- def interface_matches?(matcher); end
255
- end
256
- end
257
-
258
- class RSpec::Expectations::MultipleExpectationsNotMetError < ::RSpec::Expectations::ExpectationNotMetError
259
- def initialize(failure_aggregator); end
260
-
261
- def aggregation_block_label; end
262
- def aggregation_metadata; end
263
- def all_exceptions; end
264
- def exception_count_description; end
265
- def failures; end
266
- def message; end
267
- def other_errors; end
268
- def summary; end
269
-
270
- private
271
-
272
- def block_description; end
273
- def enumerated(exceptions, index_offset); end
274
- def enumerated_errors; end
275
- def enumerated_failures; end
276
- def indentation; end
277
- def indented(failure_message, index); end
278
- def index_label(index); end
279
- def longest_index_label_width; end
280
- def pluralize(noun, count); end
281
- def width_of_label(index); end
282
- end
283
-
284
- class RSpec::Expectations::NegativeExpectationHandler
285
- class << self
286
- def does_not_match?(matcher, actual, &block); end
287
- def handle_matcher(actual, initial_matcher, message = T.unsafe(nil), &block); end
288
- def opposite_should_method; end
289
- def should_method; end
290
- def verb; end
291
- end
292
- end
293
-
294
- class RSpec::Expectations::PositiveExpectationHandler
295
- class << self
296
- def handle_matcher(actual, initial_matcher, message = T.unsafe(nil), &block); end
297
- def opposite_should_method; end
298
- def should_method; end
299
- def verb; end
300
- end
301
- end
302
-
303
- module RSpec::Expectations::Syntax
304
- private
305
-
306
- def default_should_host; end
307
- def disable_expect(syntax_host = T.unsafe(nil)); end
308
- def disable_should(syntax_host = T.unsafe(nil)); end
309
- def enable_expect(syntax_host = T.unsafe(nil)); end
310
- def enable_should(syntax_host = T.unsafe(nil)); end
311
- def expect_enabled?(syntax_host = T.unsafe(nil)); end
312
- def should_enabled?(syntax_host = T.unsafe(nil)); end
313
- def warn_about_should!; end
314
- def warn_about_should_unless_configured(method_name); end
315
-
316
- class << self
317
- def default_should_host; end
318
- def disable_expect(syntax_host = T.unsafe(nil)); end
319
- def disable_should(syntax_host = T.unsafe(nil)); end
320
- def enable_expect(syntax_host = T.unsafe(nil)); end
321
- def enable_should(syntax_host = T.unsafe(nil)); end
322
- def expect_enabled?(syntax_host = T.unsafe(nil)); end
323
- def should_enabled?(syntax_host = T.unsafe(nil)); end
324
- def warn_about_should!; end
325
- def warn_about_should_unless_configured(method_name); end
326
- end
327
- end
328
-
329
- module RSpec::Expectations::Version; end
330
- RSpec::Expectations::Version::STRING = T.let(T.unsafe(nil), String)
331
- RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash)
332
-
333
- module RSpec::Matchers
334
- extend ::RSpec::Matchers::DSL
335
-
336
- def a_block_changing(*args, &block); end
337
- def a_block_outputting(*args, &block); end
338
- def a_block_raising(*args, &block); end
339
- def a_block_throwing(*args, &block); end
340
- def a_block_yielding_control(*args, &block); end
341
- def a_block_yielding_successive_args(*args, &block); end
342
- def a_block_yielding_with_args(*args, &block); end
343
- def a_block_yielding_with_no_args(*args, &block); end
344
- def a_collection_containing_exactly(*args, &block); end
345
- def a_collection_ending_with(*args, &block); end
346
- def a_collection_including(*args, &block); end
347
- def a_collection_starting_with(*args, &block); end
348
- def a_falsey_value(*args, &block); end
349
- def a_falsy_value(*args, &block); end
350
- def a_hash_including(*args, &block); end
351
- def a_kind_of(*args, &block); end
352
- def a_nil_value(*args, &block); end
353
- def a_range_covering(*args, &block); end
354
- def a_string_ending_with(*args, &block); end
355
- def a_string_including(*args, &block); end
356
- def a_string_matching(*args, &block); end
357
- def a_string_starting_with(*args, &block); end
358
- def a_truthy_value(*args, &block); end
359
- def a_value(*args, &block); end
360
- def a_value_between(*args, &block); end
361
- def a_value_within(*args, &block); end
362
- def aggregate_failures(label = T.unsafe(nil), metadata = T.unsafe(nil), &block); end
363
- def all(expected); end
364
- def an_instance_of(*args, &block); end
365
- def an_object_eq_to(*args, &block); end
366
- def an_object_eql_to(*args, &block); end
367
- def an_object_equal_to(*args, &block); end
368
- def an_object_existing(*args, &block); end
369
- def an_object_having_attributes(*args, &block); end
370
- def an_object_matching(*args, &block); end
371
- def an_object_responding_to(*args, &block); end
372
- def an_object_satisfying(*args, &block); end
373
- def be(*args); end
374
- def be_a(klass); end
375
- def be_a_kind_of(expected); end
376
- def be_an(klass); end
377
- def be_an_instance_of(expected); end
378
- def be_between(min, max); end
379
- def be_falsey; end
380
- def be_falsy(*args, &block); end
381
- def be_instance_of(expected); end
382
- def be_kind_of(expected); end
383
- def be_nil; end
384
- def be_truthy; end
385
- def be_within(delta); end
386
- def change(receiver = T.unsafe(nil), message = T.unsafe(nil), &block); end
387
- def changing(*args, &block); end
388
- def contain_exactly(*items); end
389
- def containing_exactly(*args, &block); end
390
- def cover(*values); end
391
- def covering(*args, &block); end
392
- def end_with(*expected); end
393
- def ending_with(*args, &block); end
394
- def eq(expected); end
395
- def eq_to(*args, &block); end
396
- def eql(expected); end
397
- def eql_to(*args, &block); end
398
- def equal(expected); end
399
- def equal_to(*args, &block); end
400
- def exist(*args); end
401
- def existing(*args, &block); end
402
- def expect(value = T.unsafe(nil), &block); end
403
- def have_attributes(expected); end
404
- def having_attributes(*args, &block); end
405
- def include(*expected); end
406
- def including(*args, &block); end
407
- def match(expected); end
408
- def match_array(items); end
409
- def match_regex(*args, &block); end
410
- def matching(*args, &block); end
411
- def output(expected = T.unsafe(nil)); end
412
- def raise_error(error = T.unsafe(nil), message = T.unsafe(nil), &block); end
413
- def raise_exception(error = T.unsafe(nil), message = T.unsafe(nil), &block); end
414
- def raising(*args, &block); end
415
- def respond_to(*names); end
416
- def responding_to(*args, &block); end
417
- def satisfy(description = T.unsafe(nil), &block); end
418
- def satisfying(*args, &block); end
419
- def start_with(*expected); end
420
- def starting_with(*args, &block); end
421
- def throw_symbol(expected_symbol = T.unsafe(nil), expected_arg = T.unsafe(nil)); end
422
- def throwing(*args, &block); end
423
- def within(*args, &block); end
424
- def yield_control; end
425
- def yield_successive_args(*args); end
426
- def yield_with_args(*args); end
427
- def yield_with_no_args; end
428
- def yielding_control(*args, &block); end
429
- def yielding_successive_args(*args, &block); end
430
- def yielding_with_args(*args, &block); end
431
- def yielding_with_no_args(*args, &block); end
432
-
433
- private
434
-
435
- def method_missing(method, *args, **_arg2, &block); end
436
- def respond_to_missing?(method, *_arg1); end
437
-
438
- class << self
439
- def alias_matcher(*args, &block); end
440
- def clear_generated_description; end
441
- def configuration; end
442
- def generated_description; end
443
- def is_a_describable_matcher?(obj); end
444
- def is_a_matcher?(obj); end
445
- def last_description; end
446
- def last_expectation_handler; end
447
- def last_expectation_handler=(_arg0); end
448
- def last_matcher; end
449
- def last_matcher=(_arg0); end
450
- end
451
- end
452
-
453
- class RSpec::Matchers::AliasedMatcher < ::RSpec::Matchers::MatcherDelegator
454
- def initialize(base_matcher, description_block); end
455
-
456
- def description; end
457
- def failure_message; end
458
- def failure_message_when_negated; end
459
- def method_missing(*_arg0); end
460
- end
461
-
462
- class RSpec::Matchers::AliasedMatcherWithOperatorSupport < ::RSpec::Matchers::AliasedMatcher; end
463
-
464
- class RSpec::Matchers::AliasedNegatedMatcher < ::RSpec::Matchers::AliasedMatcher
465
- def does_not_match?(*args, &block); end
466
- def failure_message; end
467
- def failure_message_when_negated; end
468
- def matches?(*args, &block); end
469
-
470
- private
471
-
472
- def optimal_failure_message(same, inverted); end
473
- end
474
-
475
- RSpec::Matchers::AliasedNegatedMatcher::DefaultFailureMessages = RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
476
- RSpec::Matchers::BE_PREDICATE_REGEX = T.let(T.unsafe(nil), Regexp)
477
- module RSpec::Matchers::BuiltIn; end
478
-
479
- class RSpec::Matchers::BuiltIn::All < ::RSpec::Matchers::BuiltIn::BaseMatcher
480
- def initialize(matcher); end
481
-
482
- def description; end
483
- def does_not_match?(_actual); end
484
- def failed_objects; end
485
- def failure_message; end
486
- def matcher; end
487
-
488
- private
489
-
490
- def add_new_line_if_needed(message); end
491
- def failure_message_for_item(index, failure_message); end
492
- def indent_multiline_message(message); end
493
- def index_failed_objects; end
494
- def initialize_copy(other); end
495
- def iterable?; end
496
- def match(_expected, _actual); end
497
- end
498
-
499
- class RSpec::Matchers::BuiltIn::BaseMatcher
500
- include ::RSpec::Matchers::Composable
501
- include ::RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting
502
- include ::RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
503
-
504
- def initialize(expected = T.unsafe(nil)); end
505
-
506
- def actual; end
507
- def actual_formatted; end
508
- def description; end
509
- def diffable?; end
510
- def expected; end
511
- def expected_formatted; end
512
- def expects_call_stack_jump?; end
513
- def match_unless_raises(*exceptions); end
514
- def matcher_name; end
515
- def matcher_name=(_arg0); end
516
- def matches?(actual); end
517
- def present_ivars; end
518
- def rescued_exception; end
519
- def supports_block_expectations?; end
520
-
521
- private
522
-
523
- def assert_ivars(*expected_ivars); end
524
-
525
- class << self
526
- def matcher_name; end
527
-
528
- private
529
-
530
- def underscore(camel_cased_word); end
531
- end
532
- end
533
-
534
- module RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
535
- def failure_message; end
536
- def failure_message_when_negated; end
537
-
538
- class << self
539
- def has_default_failure_messages?(matcher); end
540
- end
541
- end
542
-
543
- module RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting
544
- private
545
-
546
- def improve_hash_formatting(inspect_string); end
547
-
548
- class << self
549
- def improve_hash_formatting(inspect_string); end
550
- end
551
- end
552
-
553
- RSpec::Matchers::BuiltIn::BaseMatcher::UNDEFINED = T.let(T.unsafe(nil), Object)
554
-
555
- class RSpec::Matchers::BuiltIn::Be < ::RSpec::Matchers::BuiltIn::BaseMatcher
556
- include ::RSpec::Matchers::BuiltIn::BeHelpers
557
-
558
- def initialize(*args); end
559
-
560
- def <(operand); end
561
- def <=(operand); end
562
- def ==(operand); end
563
- def ===(operand); end
564
- def =~(operand); end
565
- def >(operand); end
566
- def >=(operand); end
567
- def failure_message; end
568
- def failure_message_when_negated; end
569
-
570
- private
571
-
572
- def match(_, actual); end
573
- end
574
-
575
- class RSpec::Matchers::BuiltIn::BeAKindOf < ::RSpec::Matchers::BuiltIn::BaseMatcher
576
- private
577
-
578
- def match(expected, actual); end
579
- end
580
-
581
- class RSpec::Matchers::BuiltIn::BeAnInstanceOf < ::RSpec::Matchers::BuiltIn::BaseMatcher
582
- def description; end
583
-
584
- private
585
-
586
- def match(expected, actual); end
587
- end
588
-
589
- class RSpec::Matchers::BuiltIn::BeBetween < ::RSpec::Matchers::BuiltIn::BaseMatcher
590
- def initialize(min, max); end
591
-
592
- def description; end
593
- def exclusive; end
594
- def failure_message; end
595
- def inclusive; end
596
- def matches?(actual); end
597
-
598
- private
599
-
600
- def comparable?; end
601
- def compare; end
602
- def not_comparable_clause; end
603
- end
604
-
605
- class RSpec::Matchers::BuiltIn::BeComparedTo < ::RSpec::Matchers::BuiltIn::BaseMatcher
606
- include ::RSpec::Matchers::BuiltIn::BeHelpers
607
-
608
- def initialize(operand, operator); end
609
-
610
- def description; end
611
- def does_not_match?(actual); end
612
- def failure_message; end
613
- def failure_message_when_negated; end
614
- def matches?(actual); end
615
-
616
- private
617
-
618
- def perform_match(actual); end
619
- end
620
-
621
- class RSpec::Matchers::BuiltIn::BeFalsey < ::RSpec::Matchers::BuiltIn::BaseMatcher
622
- def failure_message; end
623
- def failure_message_when_negated; end
624
-
625
- private
626
-
627
- def match(_, actual); end
628
- end
629
-
630
- module RSpec::Matchers::BuiltIn::BeHelpers
631
- private
632
-
633
- def args_to_s; end
634
- def args_to_sentence; end
635
- def expected_to_sentence; end
636
- def inspected_args; end
637
- def parenthesize(string); end
638
- end
639
-
640
- class RSpec::Matchers::BuiltIn::BeNil < ::RSpec::Matchers::BuiltIn::BaseMatcher
641
- def failure_message; end
642
- def failure_message_when_negated; end
643
-
644
- private
645
-
646
- def match(_, actual); end
647
- end
648
-
649
- class RSpec::Matchers::BuiltIn::BePredicate < ::RSpec::Matchers::BuiltIn::BaseMatcher
650
- include ::RSpec::Matchers::BuiltIn::BeHelpers
651
-
652
- def initialize(*args, **_arg1, &block); end
653
-
654
- def description; end
655
- def does_not_match?(actual, &block); end
656
- def failure_message; end
657
- def failure_message_when_negated; end
658
- def matches?(actual, &block); end
659
-
660
- private
661
-
662
- def failure_message_expecting(value); end
663
- def parse_expected(expected); end
664
- def predicate; end
665
- def predicate_accessible?; end
666
- def predicate_matches?; end
667
- def prefix_and_expected(symbol); end
668
- def prefix_to_sentence; end
669
- def present_tense_predicate; end
670
- def private_predicate?; end
671
- def validity_message; end
672
- end
673
-
674
- class RSpec::Matchers::BuiltIn::BeTruthy < ::RSpec::Matchers::BuiltIn::BaseMatcher
675
- def failure_message; end
676
- def failure_message_when_negated; end
677
-
678
- private
679
-
680
- def match(_, actual); end
681
- end
682
-
683
- class RSpec::Matchers::BuiltIn::BeWithin < ::RSpec::Matchers::BuiltIn::BaseMatcher
684
- def initialize(delta); end
685
-
686
- def description; end
687
- def failure_message; end
688
- def failure_message_when_negated; end
689
- def matches?(actual); end
690
- def of(expected); end
691
- def percent_of(expected); end
692
-
693
- private
694
-
695
- def needs_expected; end
696
- def not_numeric_clause; end
697
- def numeric?; end
698
- end
699
-
700
- module RSpec::Matchers::BuiltIn::CaptureStderr
701
- class << self
702
- def capture(block); end
703
- def name; end
704
- end
705
- end
706
-
707
- module RSpec::Matchers::BuiltIn::CaptureStdout
708
- class << self
709
- def capture(block); end
710
- def name; end
711
- end
712
- end
713
-
714
- class RSpec::Matchers::BuiltIn::CaptureStreamToTempfile < ::Struct
715
- def capture(block); end
716
- end
717
-
718
- class RSpec::Matchers::BuiltIn::Change < ::RSpec::Matchers::BuiltIn::BaseMatcher
719
- def initialize(receiver = T.unsafe(nil), message = T.unsafe(nil), &block); end
720
-
721
- def by(expected_delta); end
722
- def by_at_least(minimum); end
723
- def by_at_most(maximum); end
724
- def description; end
725
- def does_not_match?(event_proc); end
726
- def failure_message; end
727
- def failure_message_when_negated; end
728
- def from(value); end
729
- def matches?(event_proc); end
730
- def supports_block_expectations?; end
731
- def to(value); end
732
-
733
- private
734
-
735
- def change_details; end
736
- def negative_failure_reason; end
737
- def perform_change(event_proc); end
738
- def positive_failure_reason; end
739
- def raise_block_syntax_error; end
740
- end
741
-
742
- class RSpec::Matchers::BuiltIn::ChangeDetails
743
- def initialize(matcher_name, receiver = T.unsafe(nil), message = T.unsafe(nil), &block); end
744
-
745
- def actual_after; end
746
- def actual_delta; end
747
- def changed?; end
748
- def perform_change(event_proc); end
749
- def value_representation; end
750
-
751
- private
752
-
753
- def evaluate_value_proc; end
754
- def extract_value_block_snippet; end
755
- def message_notation(receiver, message); end
756
- end
757
-
758
- class RSpec::Matchers::BuiltIn::ChangeFromValue < ::RSpec::Matchers::BuiltIn::SpecificValuesChange
759
- def initialize(change_details, expected_before); end
760
-
761
- def does_not_match?(event_proc); end
762
- def failure_message_when_negated; end
763
- def to(value); end
764
-
765
- private
766
-
767
- def change_description; end
768
- end
769
-
770
- class RSpec::Matchers::BuiltIn::ChangeRelatively < ::RSpec::Matchers::BuiltIn::BaseMatcher
771
- def initialize(change_details, expected_delta, relativity, &comparer); end
772
-
773
- def description; end
774
- def does_not_match?(_event_proc); end
775
- def failure_message; end
776
- def matches?(event_proc); end
777
- def supports_block_expectations?; end
778
-
779
- private
780
-
781
- def failure_reason; end
782
- end
783
-
784
- class RSpec::Matchers::BuiltIn::ChangeToValue < ::RSpec::Matchers::BuiltIn::SpecificValuesChange
785
- def initialize(change_details, expected_after); end
786
-
787
- def does_not_match?(_event_proc); end
788
- def from(value); end
789
-
790
- private
791
-
792
- def change_description; end
793
- end
794
-
795
- class RSpec::Matchers::BuiltIn::Compound < ::RSpec::Matchers::BuiltIn::BaseMatcher
796
- def initialize(matcher_1, matcher_2); end
797
-
798
- def description; end
799
- def diffable?; end
800
- def does_not_match?(_actual); end
801
- def evaluator; end
802
- def expected; end
803
- def expects_call_stack_jump?; end
804
- def matcher_1; end
805
- def matcher_2; end
806
- def supports_block_expectations?; end
807
-
808
- protected
809
-
810
- def diffable_matcher_list; end
811
-
812
- private
813
-
814
- def compound_failure_message; end
815
- def diffable_matcher_list_for(matcher); end
816
- def indent_multiline_message(message); end
817
- def initialize_copy(other); end
818
- def match(_expected, actual); end
819
- def matcher_1_matches?; end
820
- def matcher_2_matches?; end
821
- def matcher_is_diffable?(matcher); end
822
- def matcher_supports_block_expectations?(matcher); end
823
- end
824
-
825
- class RSpec::Matchers::BuiltIn::Compound::And < ::RSpec::Matchers::BuiltIn::Compound
826
- def failure_message; end
827
-
828
- private
829
-
830
- def conjunction; end
831
- def match(*_arg0); end
832
- end
833
-
834
- class RSpec::Matchers::BuiltIn::Compound::NestedEvaluator
835
- def initialize(actual, matcher_1, matcher_2); end
836
-
837
- def matcher_matches?(matcher); end
838
-
839
- private
840
-
841
- def inner_matcher_block(outer_args); end
842
- def order_block_matchers; end
843
-
844
- class << self
845
- def matcher_expects_call_stack_jump?(matcher); end
846
- end
847
- end
848
-
849
- class RSpec::Matchers::BuiltIn::Compound::Or < ::RSpec::Matchers::BuiltIn::Compound
850
- def failure_message; end
851
-
852
- private
853
-
854
- def conjunction; end
855
- def match(*_arg0); end
856
- end
857
-
858
- class RSpec::Matchers::BuiltIn::Compound::SequentialEvaluator
859
- def initialize(actual, *_arg1); end
860
-
861
- def matcher_matches?(matcher); end
862
- end
863
-
864
- class RSpec::Matchers::BuiltIn::ContainExactly < ::RSpec::Matchers::BuiltIn::BaseMatcher
865
- def description; end
866
- def failure_message; end
867
- def failure_message_when_negated; end
868
-
869
- private
870
-
871
- def actual_collection_line; end
872
- def best_solution; end
873
- def convert_actual_to_an_array; end
874
- def describe_collection(collection, surface_descriptions = T.unsafe(nil)); end
875
- def expected_collection_line; end
876
- def extra_elements_line; end
877
- def extra_items; end
878
- def generate_failure_message; end
879
- def match(_expected, _actual); end
880
- def match_when_sorted?; end
881
- def message_line(prefix, collection, surface_descriptions = T.unsafe(nil)); end
882
- def missing_elements_line; end
883
- def missing_items; end
884
- def pairings_maximizer; end
885
- def safe_sort(array); end
886
- def to_a_disallowed?(object); end
887
- end
888
-
889
- class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer
890
- def initialize(expected_to_actual_matched_indexes, actual_to_expected_matched_indexes); end
891
-
892
- def actual_to_expected_matched_indexes; end
893
- def expected_to_actual_matched_indexes; end
894
- def find_best_solution; end
895
- def solution; end
896
-
897
- private
898
-
899
- def apply_pairing_to(indeterminates, original_matches, other_list_index); end
900
- def best_solution_for_pairing(expected_index, actual_index); end
901
- def categorize_indexes(indexes_to_categorize, other_indexes); end
902
- def reciprocal_single_match?(matches, index, other_list); end
903
- end
904
-
905
- class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::NullSolution
906
- class << self
907
- def worse_than?(_other); end
908
- end
909
- end
910
-
911
- class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::Solution < ::Struct
912
- def +(derived_candidate_solution); end
913
- def candidate?; end
914
- def ideal?; end
915
- def indeterminate_actual_indexes; end
916
- def indeterminate_actual_indexes=(_); end
917
- def indeterminate_expected_indexes; end
918
- def indeterminate_expected_indexes=(_); end
919
- def unmatched_actual_indexes; end
920
- def unmatched_actual_indexes=(_); end
921
- def unmatched_expected_indexes; end
922
- def unmatched_expected_indexes=(_); end
923
- def unmatched_item_count; end
924
- def worse_than?(other); end
925
-
926
- class << self
927
- def [](*_arg0); end
928
- def inspect; end
929
- def keyword_init?; end
930
- def members; end
931
- def new(*_arg0); end
932
- end
933
- end
934
-
935
- class RSpec::Matchers::BuiltIn::Cover < ::RSpec::Matchers::BuiltIn::BaseMatcher
936
- def initialize(*expected); end
937
-
938
- def does_not_match?(range); end
939
- def matches?(range); end
940
- end
941
-
942
- class RSpec::Matchers::BuiltIn::EndWith < ::RSpec::Matchers::BuiltIn::StartOrEndWith
943
- private
944
-
945
- def element_matches?; end
946
- def subset_matches?; end
947
- end
948
-
949
- class RSpec::Matchers::BuiltIn::Eq < ::RSpec::Matchers::BuiltIn::BaseMatcher
950
- def description; end
951
- def diffable?; end
952
- def failure_message; end
953
- def failure_message_when_negated; end
954
-
955
- private
956
-
957
- def match(expected, actual); end
958
- end
959
-
960
- class RSpec::Matchers::BuiltIn::Eql < ::RSpec::Matchers::BuiltIn::BaseMatcher
961
- def diffable?; end
962
- def failure_message; end
963
- def failure_message_when_negated; end
964
-
965
- private
966
-
967
- def match(expected, actual); end
968
- end
969
-
970
- class RSpec::Matchers::BuiltIn::Equal < ::RSpec::Matchers::BuiltIn::BaseMatcher
971
- def diffable?; end
972
- def failure_message; end
973
- def failure_message_when_negated; end
974
-
975
- private
976
-
977
- def actual_inspected; end
978
- def detailed_failure_message; end
979
- def expected_is_a_literal_singleton?; end
980
- def inspect_object(o); end
981
- def match(expected, actual); end
982
- def simple_failure_message; end
983
- end
984
-
985
- RSpec::Matchers::BuiltIn::Equal::LITERAL_SINGLETONS = T.let(T.unsafe(nil), Array)
986
-
987
- class RSpec::Matchers::BuiltIn::Exist < ::RSpec::Matchers::BuiltIn::BaseMatcher
988
- def initialize(*expected); end
989
-
990
- def does_not_match?(actual); end
991
- def failure_message; end
992
- def failure_message_when_negated; end
993
- def matches?(actual); end
994
- end
995
-
996
- class RSpec::Matchers::BuiltIn::Exist::ExistenceTest < ::Struct
997
- def actual_exists?; end
998
- def valid_test?; end
999
- def validity_message; end
1000
-
1001
- private
1002
-
1003
- def deprecated(predicate, actual); end
1004
- def existence_values; end
1005
- def predicates; end
1006
- def uniq_truthy_values; end
1007
- end
1008
-
1009
- class RSpec::Matchers::BuiltIn::Has < ::RSpec::Matchers::BuiltIn::BaseMatcher
1010
- def initialize(method_name, *args, **_arg2, &block); end
1011
-
1012
- def description; end
1013
- def does_not_match?(actual, &block); end
1014
- def failure_message; end
1015
- def failure_message_when_negated; end
1016
- def matches?(actual, &block); end
1017
-
1018
- private
1019
-
1020
- def args_description; end
1021
- def failure_message_args_description; end
1022
- def method_description; end
1023
- def predicate; end
1024
- def predicate_accessible?; end
1025
- def predicate_exists?; end
1026
- def predicate_matches?; end
1027
- def private_predicate?; end
1028
- def validity_message; end
1029
- end
1030
-
1031
- class RSpec::Matchers::BuiltIn::HaveAttributes < ::RSpec::Matchers::BuiltIn::BaseMatcher
1032
- def initialize(expected); end
1033
-
1034
- def actual; end
1035
- def description; end
1036
- def diffable?; end
1037
- def does_not_match?(actual); end
1038
- def failure_message; end
1039
- def failure_message_when_negated; end
1040
- def matches?(actual); end
1041
- def respond_to_failed; end
1042
-
1043
- private
1044
-
1045
- def actual_has_attribute?(attribute_key, attribute_value); end
1046
- def cache_all_values; end
1047
- def formatted_values; end
1048
- def perform_match(predicate); end
1049
- def respond_to_attributes?; end
1050
- def respond_to_failure_message_or; end
1051
- def respond_to_matcher; end
1052
- end
1053
-
1054
- class RSpec::Matchers::BuiltIn::Include < ::RSpec::Matchers::BuiltIn::BaseMatcher
1055
- def initialize(*expecteds); end
1056
-
1057
- def description; end
1058
- def diffable?; end
1059
- def does_not_match?(actual); end
1060
- def expected; end
1061
- def expecteds; end
1062
- def failure_message; end
1063
- def failure_message_when_negated; end
1064
- def matches?(actual); end
1065
-
1066
- private
1067
-
1068
- def actual_collection_includes?(expected_item); end
1069
- def actual_hash_has_key?(expected_key); end
1070
- def actual_hash_includes?(expected_key, expected_value); end
1071
- def comparing_hash_keys?(expected_item); end
1072
- def comparing_hash_to_a_subset?(expected_item); end
1073
- def convert_to_hash?(obj); end
1074
- def diff_would_wrongly_highlight_matched_item?; end
1075
- def excluded_from_actual; end
1076
- def format_failure_message(preposition); end
1077
- def perform_match(actual, &block); end
1078
- def readable_list_of(items); end
1079
- end
1080
-
1081
- class RSpec::Matchers::BuiltIn::Match < ::RSpec::Matchers::BuiltIn::BaseMatcher
1082
- def initialize(expected); end
1083
-
1084
- def description; end
1085
- def diffable?; end
1086
- def with_captures(*captures); end
1087
-
1088
- private
1089
-
1090
- def can_safely_call_match?(expected, actual); end
1091
- def match(expected, actual); end
1092
- def match_captures(expected, actual); end
1093
- end
1094
-
1095
- class RSpec::Matchers::BuiltIn::NegativeOperatorMatcher < ::RSpec::Matchers::BuiltIn::OperatorMatcher
1096
- def __delegate_operator(actual, operator, expected); end
1097
- end
1098
-
1099
- module RSpec::Matchers::BuiltIn::NullCapture
1100
- class << self
1101
- def capture(_block); end
1102
- def name; end
1103
- end
1104
- end
1105
-
1106
- class RSpec::Matchers::BuiltIn::OperatorMatcher
1107
- def initialize(actual); end
1108
-
1109
- def !=(_expected); end
1110
- def !~(_expected); end
1111
- def <(expected); end
1112
- def <=(expected); end
1113
- def ==(expected); end
1114
- def ===(expected); end
1115
- def =~(expected); end
1116
- def >(expected); end
1117
- def >=(expected); end
1118
- def description; end
1119
- def fail_with_message(message); end
1120
-
1121
- private
1122
-
1123
- def eval_match(actual, operator, expected); end
1124
- def has_non_generic_implementation_of?(op); end
1125
-
1126
- class << self
1127
- def get(klass, operator); end
1128
- def register(klass, operator, matcher); end
1129
- def registry; end
1130
- def unregister(klass, operator); end
1131
- def use_custom_matcher_or_delegate(operator); end
1132
- end
1133
- end
1134
-
1135
- class RSpec::Matchers::BuiltIn::Output < ::RSpec::Matchers::BuiltIn::BaseMatcher
1136
- def initialize(expected); end
1137
-
1138
- def description; end
1139
- def diffable?; end
1140
- def does_not_match?(block); end
1141
- def failure_message; end
1142
- def failure_message_when_negated; end
1143
- def matches?(block); end
1144
- def supports_block_expectations?; end
1145
- def to_stderr; end
1146
- def to_stderr_from_any_process; end
1147
- def to_stdout; end
1148
- def to_stdout_from_any_process; end
1149
-
1150
- private
1151
-
1152
- def actual_output_description; end
1153
- def captured?; end
1154
- def negative_failure_reason; end
1155
- def positive_failure_reason; end
1156
- end
1157
-
1158
- class RSpec::Matchers::BuiltIn::PositiveOperatorMatcher < ::RSpec::Matchers::BuiltIn::OperatorMatcher
1159
- def __delegate_operator(actual, operator, expected); end
1160
- end
1161
-
1162
- class RSpec::Matchers::BuiltIn::RaiseError
1163
- include ::RSpec::Matchers::Composable
1164
-
1165
- def initialize(expected_error_or_message = T.unsafe(nil), expected_message = T.unsafe(nil), &block); end
1166
-
1167
- def description; end
1168
- def does_not_match?(given_proc); end
1169
- def expects_call_stack_jump?; end
1170
- def failure_message; end
1171
- def failure_message_when_negated; end
1172
- def matches?(given_proc, negative_expectation = T.unsafe(nil), &block); end
1173
- def supports_block_expectations?; end
1174
- def with_message(expected_message); end
1175
-
1176
- private
1177
-
1178
- def block_matches?; end
1179
- def error_and_message_match?; end
1180
- def eval_block; end
1181
- def expectation_matched?; end
1182
- def expected_error; end
1183
- def expecting_specific_exception?; end
1184
- def format_backtrace(backtrace); end
1185
- def given_error; end
1186
- def handle_warning(message); end
1187
- def raise_message_already_set; end
1188
- def ready_to_eval_block?; end
1189
- def verify_message; end
1190
- def warn_about_bare_error; end
1191
- def warn_about_negative_false_positive(expression); end
1192
- def warn_for_false_positives; end
1193
- def warning; end
1194
- def warning_about_bare_error; end
1195
- end
1196
-
1197
- class RSpec::Matchers::BuiltIn::ReliableMatchData
1198
- def initialize(match_data); end
1199
-
1200
- def captures; end
1201
- def names; end
1202
-
1203
- protected
1204
-
1205
- def match_data; end
1206
- end
1207
-
1208
- class RSpec::Matchers::BuiltIn::RespondTo < ::RSpec::Matchers::BuiltIn::BaseMatcher
1209
- def initialize(*names); end
1210
-
1211
- def and_any_keywords; end
1212
- def and_keywords(*keywords); end
1213
- def and_unlimited_arguments; end
1214
- def argument; end
1215
- def arguments; end
1216
- def description; end
1217
- def does_not_match?(actual); end
1218
- def failure_message; end
1219
- def failure_message_when_negated; end
1220
- def ignoring_method_signature_failure!; end
1221
- def matches?(actual); end
1222
- def with(n); end
1223
- def with_any_keywords; end
1224
- def with_keywords(*keywords); end
1225
- def with_unlimited_arguments; end
1226
-
1227
- private
1228
-
1229
- def find_failing_method_names(actual, filter_method); end
1230
- def matches_arity?(actual, name); end
1231
- def method_signature_for(actual, name); end
1232
- def pp_names; end
1233
- def setup_method_signature_expectation; end
1234
- def with_arity; end
1235
- def with_arity_string; end
1236
- def with_keywords_string; end
1237
- end
1238
-
1239
- class RSpec::Matchers::BuiltIn::Satisfy < ::RSpec::Matchers::BuiltIn::BaseMatcher
1240
- def initialize(description = T.unsafe(nil), &block); end
1241
-
1242
- def description; end
1243
- def failure_message; end
1244
- def failure_message_when_negated; end
1245
- def matches?(actual, &block); end
1246
-
1247
- private
1248
-
1249
- def block_representation; end
1250
- def extract_block_snippet; end
1251
- end
1252
-
1253
- class RSpec::Matchers::BuiltIn::SpecificValuesChange < ::RSpec::Matchers::BuiltIn::BaseMatcher
1254
- def initialize(change_details, from, to); end
1255
-
1256
- def description; end
1257
- def failure_message; end
1258
- def matches?(event_proc); end
1259
- def supports_block_expectations?; end
1260
-
1261
- private
1262
-
1263
- def after_value_failure; end
1264
- def before_value_failure; end
1265
- def did_change_failure; end
1266
- def did_not_change_failure; end
1267
- def matches_after?; end
1268
- def not_given_a_block_failure; end
1269
- def perform_change(event_proc); end
1270
- end
1271
-
1272
- RSpec::Matchers::BuiltIn::SpecificValuesChange::MATCH_ANYTHING = BasicObject
1273
- RSpec::Matchers::BuiltIn::StartAndEndWith = RSpec::Matchers::BuiltIn::StartOrEndWith
1274
-
1275
- class RSpec::Matchers::BuiltIn::StartOrEndWith < ::RSpec::Matchers::BuiltIn::BaseMatcher
1276
- def initialize(*expected); end
1277
-
1278
- def description; end
1279
- def failure_message; end
1280
-
1281
- private
1282
-
1283
- def match(_expected, actual); end
1284
- def subsets_comparable?; end
1285
- end
1286
-
1287
- class RSpec::Matchers::BuiltIn::StartWith < ::RSpec::Matchers::BuiltIn::StartOrEndWith
1288
- private
1289
-
1290
- def element_matches?; end
1291
- def subset_matches?; end
1292
- end
1293
-
1294
- class RSpec::Matchers::BuiltIn::ThrowSymbol
1295
- include ::RSpec::Matchers::Composable
1296
-
1297
- def initialize(expected_symbol = T.unsafe(nil), expected_arg = T.unsafe(nil)); end
1298
-
1299
- def description; end
1300
- def does_not_match?(given_proc); end
1301
- def expects_call_stack_jump?; end
1302
- def failure_message; end
1303
- def failure_message_when_negated; end
1304
- def matches?(given_proc); end
1305
- def supports_block_expectations?; end
1306
-
1307
- private
1308
-
1309
- def actual_result; end
1310
- def caught; end
1311
- def expected(symbol_desc = T.unsafe(nil)); end
1312
- def throw_description(symbol, arg); end
1313
- end
1314
-
1315
- class RSpec::Matchers::BuiltIn::YieldControl < ::RSpec::Matchers::BuiltIn::BaseMatcher
1316
- def initialize; end
1317
-
1318
- def at_least(number); end
1319
- def at_most(number); end
1320
- def does_not_match?(block); end
1321
- def exactly(number); end
1322
- def failure_message; end
1323
- def failure_message_when_negated; end
1324
- def matches?(block); end
1325
- def once; end
1326
- def supports_block_expectations?; end
1327
- def thrice; end
1328
- def times; end
1329
- def twice; end
1330
-
1331
- private
1332
-
1333
- def count_constraint_to_number(n); end
1334
- def failure_reason; end
1335
- def human_readable_count(count); end
1336
- def human_readable_expectation_type; end
1337
- def set_expected_yields_count(relativity, n); end
1338
- end
1339
-
1340
- class RSpec::Matchers::BuiltIn::YieldProbe
1341
- def initialize(block, &callback); end
1342
-
1343
- def assert_used!; end
1344
- def assert_valid_expect_block!; end
1345
- def has_block?; end
1346
- def num_yields; end
1347
- def num_yields=(_arg0); end
1348
- def probe; end
1349
- def single_yield_args; end
1350
- def to_proc; end
1351
- def yielded_args; end
1352
- def yielded_args=(_arg0); end
1353
- def yielded_once?(matcher_name); end
1354
-
1355
- class << self
1356
- def probe(block, &callback); end
1357
- end
1358
- end
1359
-
1360
- class RSpec::Matchers::BuiltIn::YieldSuccessiveArgs < ::RSpec::Matchers::BuiltIn::BaseMatcher
1361
- def initialize(*args); end
1362
-
1363
- def description; end
1364
- def does_not_match?(block); end
1365
- def failure_message; end
1366
- def failure_message_when_negated; end
1367
- def matches?(block); end
1368
- def supports_block_expectations?; end
1369
-
1370
- private
1371
-
1372
- def expected_arg_description; end
1373
- def negative_failure_reason; end
1374
- def positive_failure_reason; end
1375
- end
1376
-
1377
- class RSpec::Matchers::BuiltIn::YieldWithArgs < ::RSpec::Matchers::BuiltIn::BaseMatcher
1378
- def initialize(*args); end
1379
-
1380
- def description; end
1381
- def does_not_match?(block); end
1382
- def failure_message; end
1383
- def failure_message_when_negated; end
1384
- def matches?(block); end
1385
- def supports_block_expectations?; end
1386
-
1387
- private
1388
-
1389
- def all_args_match?; end
1390
- def args_currently_match?; end
1391
- def expected_arg_description; end
1392
- def negative_failure_reason; end
1393
- def positive_failure_reason; end
1394
- end
1395
-
1396
- class RSpec::Matchers::BuiltIn::YieldWithNoArgs < ::RSpec::Matchers::BuiltIn::BaseMatcher
1397
- def does_not_match?(block); end
1398
- def failure_message; end
1399
- def failure_message_when_negated; end
1400
- def matches?(block); end
1401
- def supports_block_expectations?; end
1402
-
1403
- private
1404
-
1405
- def negative_failure_reason; end
1406
- def positive_failure_reason; end
1407
- end
1408
-
1409
- module RSpec::Matchers::Composable
1410
- def &(matcher); end
1411
- def ===(value); end
1412
- def and(matcher); end
1413
- def or(matcher); end
1414
- def |(matcher); end
1415
-
1416
- private
1417
-
1418
- def description_of(object); end
1419
- def should_enumerate?(item); end
1420
- def surface_descriptions_in(item); end
1421
- def unreadable_io?(object); end
1422
- def values_match?(expected, actual); end
1423
- def with_matchers_cloned(object); end
1424
-
1425
- class << self
1426
- def should_enumerate?(item); end
1427
- def surface_descriptions_in(item); end
1428
- def unreadable_io?(object); end
1429
- end
1430
- end
1431
-
1432
- class RSpec::Matchers::Composable::DescribableItem < ::Struct
1433
- def inspect; end
1434
- def item; end
1435
- def item=(_); end
1436
- def pretty_print(pp); end
1437
-
1438
- class << self
1439
- def [](*_arg0); end
1440
- def inspect; end
1441
- def keyword_init?; end
1442
- def members; end
1443
- def new(*_arg0); end
1444
- end
1445
- end
1446
-
1447
- module RSpec::Matchers::DSL
1448
- def alias_matcher(new_name, old_name, options = T.unsafe(nil), &description_override); end
1449
- def define(name, &declarations); end
1450
- def define_negated_matcher(negated_name, base_name, &description_override); end
1451
- def matcher(name, &declarations); end
1452
-
1453
- private
1454
-
1455
- def warn_about_block_args(name, declarations); end
1456
- end
1457
-
1458
- module RSpec::Matchers::DSL::DefaultImplementations
1459
- include ::RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
1460
-
1461
- def description; end
1462
- def diffable?; end
1463
- def expects_call_stack_jump?; end
1464
- def supports_block_expectations?; end
1465
-
1466
- private
1467
-
1468
- def chained_method_clause_sentences; end
1469
- end
1470
-
1471
- module RSpec::Matchers::DSL::Macros
1472
- def chain(method_name, *attr_names, &definition); end
1473
- def description(&definition); end
1474
- def diffable; end
1475
- def failure_message(&definition); end
1476
- def failure_message_when_negated(&definition); end
1477
- def match(options = T.unsafe(nil), &match_block); end
1478
- def match_unless_raises(expected_exception = T.unsafe(nil), &match_block); end
1479
- def match_when_negated(options = T.unsafe(nil), &match_block); end
1480
- def supports_block_expectations; end
1481
-
1482
- private
1483
-
1484
- def assign_attributes(attr_names); end
1485
- def define_user_override(method_name, user_def, &our_def); end
1486
- end
1487
-
1488
- module RSpec::Matchers::DSL::Macros::Deprecated
1489
- def failure_message_for_should(&definition); end
1490
- def failure_message_for_should_not(&definition); end
1491
- def match_for_should(&definition); end
1492
- def match_for_should_not(&definition); end
1493
- end
1494
-
1495
- RSpec::Matchers::DSL::Macros::RAISE_NOTIFIER = T.let(T.unsafe(nil), Proc)
1496
-
1497
- class RSpec::Matchers::DSL::Matcher
1498
- include ::RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages
1499
- include ::RSpec::Matchers::DSL::DefaultImplementations
1500
- include ::RSpec::Matchers
1501
- include ::RSpec::Matchers::Composable
1502
- extend ::RSpec::Matchers::DSL::Macros
1503
- extend ::RSpec::Matchers::DSL::Macros::Deprecated
1504
-
1505
- def initialize(name, declarations, matcher_execution_context, *expected, &block_arg); end
1506
-
1507
- def actual; end
1508
- def block_arg; end
1509
- def expected; end
1510
- def expected_as_array; end
1511
- def inspect; end
1512
- def name; end
1513
- def rescued_exception; end
1514
-
1515
- private
1516
-
1517
- def actual_arg_for(block); end
1518
- def method_missing(method, *args, **_arg2, &block); end
1519
- def respond_to_missing?(method, include_private = T.unsafe(nil)); end
1520
- end
1521
-
1522
- RSpec::Matchers::DYNAMIC_MATCHER_REGEX = T.let(T.unsafe(nil), Regexp)
1523
-
1524
- module RSpec::Matchers::EnglishPhrasing
1525
- class << self
1526
- def list(obj); end
1527
- def split_words(sym); end
1528
- end
1529
- end
1530
-
1531
- class RSpec::Matchers::ExpectedsForMultipleDiffs
1532
- def initialize(expected_list); end
1533
-
1534
- def message_with_diff(message, differ, actual); end
1535
-
1536
- private
1537
-
1538
- def diffs(differ, actual); end
1539
-
1540
- class << self
1541
- def for_many_matchers(matchers); end
1542
- def from(expected); end
1543
-
1544
- private
1545
-
1546
- def diff_label_for(matcher); end
1547
- def truncated(description); end
1548
- end
1549
- end
1550
-
1551
- RSpec::Matchers::ExpectedsForMultipleDiffs::DEFAULT_DIFF_LABEL = T.let(T.unsafe(nil), String)
1552
- RSpec::Matchers::ExpectedsForMultipleDiffs::DESCRIPTION_MAX_LENGTH = T.let(T.unsafe(nil), Integer)
1553
- RSpec::Matchers::HAS_REGEX = T.let(T.unsafe(nil), Regexp)
1554
-
1555
- class RSpec::Matchers::MatcherDelegator
1556
- include ::RSpec::Matchers::Composable
1557
-
1558
- def initialize(base_matcher); end
1559
-
1560
- def base_matcher; end
1561
- def method_missing(*args, &block); end
1562
-
1563
- private
1564
-
1565
- def initialize_copy(other); end
1566
- def respond_to_missing?(name, include_all = T.unsafe(nil)); end
1567
- end
1568
-
1569
- RSpec::SharedContext = RSpec::Core::SharedContext