workos 2.9.0 → 2.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/pull_request_template.md +11 -0
- data/Gemfile.lock +32 -3
- data/bin/tapioca +29 -0
- data/lib/workos/portal.rb +1 -1
- data/lib/workos/types/intent_enum.rb +3 -2
- data/lib/workos/version.rb +1 -1
- data/sorbet/rbi/gems/addressable@2.8.0.rbi +290 -0
- data/sorbet/rbi/gems/{ast.rbi → ast@2.4.2.rbi} +27 -22
- data/sorbet/rbi/gems/codecov@0.2.12.rbi +55 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
- data/sorbet/rbi/gems/crack@0.4.5.rbi +57 -0
- data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +185 -0
- data/sorbet/rbi/gems/docile@1.3.5.rbi +54 -0
- data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +82 -0
- data/sorbet/rbi/gems/json@2.5.1.rbi +109 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
- data/sorbet/rbi/gems/parallel@1.20.1.rbi +113 -0
- data/sorbet/rbi/gems/parser@3.0.1.0.rbi +1187 -0
- data/sorbet/rbi/gems/pry@0.14.2.rbi +8 -0
- data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +146 -0
- data/sorbet/rbi/gems/{rainbow.rbi → rainbow@3.0.0.rbi} +90 -55
- data/sorbet/rbi/gems/{rake.rbi → rake@13.0.3.rbi} +587 -424
- data/sorbet/rbi/gems/rbi@0.0.16.rbi +2118 -0
- data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +1117 -0
- data/sorbet/rbi/gems/{rexml.rbi → rexml@3.2.5.rbi} +587 -506
- data/sorbet/rbi/gems/{rspec-core.rbi → rspec-core@3.9.3.rbi} +2321 -1752
- data/sorbet/rbi/gems/{rspec-expectations.rbi → rspec-expectations@3.9.4.rbi} +1119 -677
- data/sorbet/rbi/gems/{rspec-mocks.rbi → rspec-mocks@3.9.1.rbi} +1327 -933
- data/sorbet/rbi/gems/rspec-support@3.9.4.rbi +511 -0
- data/sorbet/rbi/gems/rspec@3.9.0.rbi +38 -0
- data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +1881 -0
- data/sorbet/rbi/gems/rubocop@0.93.1.rbi +11497 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.2.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.1.15.rbi +1549 -0
- data/sorbet/rbi/gems/tapioca@0.7.3.rbi +1718 -0
- data/sorbet/rbi/gems/thor@1.2.1.rbi +844 -0
- data/sorbet/rbi/gems/unicode-display_width@1.7.0.rbi +22 -0
- data/sorbet/rbi/gems/unparser@0.6.2.rbi +8 -0
- data/sorbet/rbi/gems/{vcr.rbi → vcr@5.0.0.rbi} +528 -401
- data/sorbet/rbi/gems/webmock@3.12.2.rbi +662 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +268 -0
- data/sorbet/rbi/gems/yard@0.9.26.rbi +4048 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- data/workos.gemspec +1 -1
- metadata +61 -50
- data/sorbet/rbi/gems/addressable.rbi +0 -199
- data/sorbet/rbi/gems/codecov.rbi +0 -37
- data/sorbet/rbi/gems/crack.rbi +0 -62
- data/sorbet/rbi/gems/docile.rbi +0 -36
- data/sorbet/rbi/gems/hashdiff.rbi +0 -66
- data/sorbet/rbi/gems/parallel.rbi +0 -83
- data/sorbet/rbi/gems/parser.rbi +0 -1429
- data/sorbet/rbi/gems/public_suffix.rbi +0 -104
- data/sorbet/rbi/gems/regexp_parser.rbi +0 -926
- data/sorbet/rbi/gems/rspec-support.rbi +0 -280
- data/sorbet/rbi/gems/rspec.rbi +0 -15
- data/sorbet/rbi/gems/rubocop-ast.rbi +0 -1355
- data/sorbet/rbi/gems/rubocop.rbi +0 -7253
- data/sorbet/rbi/gems/ruby-progressbar.rbi +0 -304
- data/sorbet/rbi/gems/simplecov-html.rbi +0 -35
- data/sorbet/rbi/gems/simplecov.rbi +0 -406
- data/sorbet/rbi/gems/unicode-display_width.rbi +0 -17
- data/sorbet/rbi/gems/webmock.rbi +0 -556
- data/sorbet/rbi/gems/yard.rbi +0 -1165
- data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +0 -276
- data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +0 -645
- data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +0 -1891
- data/sorbet/rbi/sorbet-typed/lib/rubocop/~>0.85/rubocop.rbi +0 -2072
- data/sorbet/rbi/sorbet-typed/lib/yard/all/yard.rbi +0 -1214
- data/sorbet/rbi/todo.rbi +0 -5
@@ -0,0 +1,662 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `webmock` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem webmock`.
|
6
|
+
|
7
|
+
module Net::WebMockHTTPResponse
|
8
|
+
def read_body(dest = T.unsafe(nil), &block); end
|
9
|
+
end
|
10
|
+
|
11
|
+
class Net::WebMockNetBufferedIO < ::Net::BufferedIO
|
12
|
+
def initialize(io, *args, **kwargs); end
|
13
|
+
|
14
|
+
def rbuf_fill; end
|
15
|
+
end
|
16
|
+
|
17
|
+
class PatchedStringIO < ::StringIO
|
18
|
+
def orig_read_nonblock(*_arg0); end
|
19
|
+
def read_nonblock(size, *args, **kwargs); end
|
20
|
+
end
|
21
|
+
|
22
|
+
class StubSocket
|
23
|
+
def initialize(*args); end
|
24
|
+
|
25
|
+
def close; end
|
26
|
+
def closed?; end
|
27
|
+
def continue_timeout; end
|
28
|
+
def continue_timeout=(_arg0); end
|
29
|
+
def io; end
|
30
|
+
def read_timeout; end
|
31
|
+
def read_timeout=(_arg0); end
|
32
|
+
def readuntil(*args); end
|
33
|
+
def write_timeout; end
|
34
|
+
def write_timeout=(_arg0); end
|
35
|
+
end
|
36
|
+
|
37
|
+
class StubSocket::StubIO
|
38
|
+
def setsockopt(*args); end
|
39
|
+
end
|
40
|
+
|
41
|
+
module WebMock
|
42
|
+
include ::WebMock::API
|
43
|
+
extend ::WebMock::API
|
44
|
+
|
45
|
+
def after_request(*args, &block); end
|
46
|
+
def allow_net_connect!(*args, &block); end
|
47
|
+
def disable_net_connect!(*args, &block); end
|
48
|
+
def net_connect_allowed?(*args, &block); end
|
49
|
+
def registered_request?(*args, &block); end
|
50
|
+
def reset_callbacks(*args, &block); end
|
51
|
+
def reset_webmock(*args, &block); end
|
52
|
+
|
53
|
+
class << self
|
54
|
+
def after_request(options = T.unsafe(nil), &block); end
|
55
|
+
def allow_net_connect!(options = T.unsafe(nil)); end
|
56
|
+
def disable!(options = T.unsafe(nil)); end
|
57
|
+
def disable_net_connect!(options = T.unsafe(nil)); end
|
58
|
+
def disallow_net_connect!(options = T.unsafe(nil)); end
|
59
|
+
def enable!(options = T.unsafe(nil)); end
|
60
|
+
def enable_net_connect!(options = T.unsafe(nil)); end
|
61
|
+
def globally_stub_request(order = T.unsafe(nil), &block); end
|
62
|
+
def hide_body_diff!; end
|
63
|
+
def hide_stubbing_instructions!; end
|
64
|
+
def included(clazz); end
|
65
|
+
def net_connect_allowed?(uri = T.unsafe(nil)); end
|
66
|
+
def net_connect_explicit_allowed?(allowed, uri = T.unsafe(nil)); end
|
67
|
+
def print_executed_requests; end
|
68
|
+
def registered_request?(request_signature); end
|
69
|
+
def request(method, uri); end
|
70
|
+
def reset!; end
|
71
|
+
def reset_callbacks; end
|
72
|
+
def reset_webmock; end
|
73
|
+
def show_body_diff!; end
|
74
|
+
def show_body_diff?; end
|
75
|
+
def show_stubbing_instructions!; end
|
76
|
+
def show_stubbing_instructions?; end
|
77
|
+
def version; end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
module WebMock::API
|
82
|
+
extend ::WebMock::API
|
83
|
+
|
84
|
+
def a_request(method, uri); end
|
85
|
+
def assert_not_requested(*args, &block); end
|
86
|
+
def assert_requested(*args, &block); end
|
87
|
+
def hash_excluding(*args); end
|
88
|
+
def hash_including(*args); end
|
89
|
+
def refute_requested(*args, &block); end
|
90
|
+
def remove_request_stub(stub); end
|
91
|
+
def reset_executed_requests!; end
|
92
|
+
def stub_http_request(method, uri); end
|
93
|
+
def stub_request(method, uri); end
|
94
|
+
|
95
|
+
private
|
96
|
+
|
97
|
+
def anythingize_lonely_keys(*args); end
|
98
|
+
def assert_request_not_requested(request, options = T.unsafe(nil)); end
|
99
|
+
def assert_request_requested(request, options = T.unsafe(nil)); end
|
100
|
+
def convert_uri_method_and_options_to_request_and_options(method, uri, options, &block); end
|
101
|
+
|
102
|
+
class << self
|
103
|
+
def request(method, uri); end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
class WebMock::AssertionFailure
|
108
|
+
class << self
|
109
|
+
def error_class; end
|
110
|
+
def error_class=(_arg0); end
|
111
|
+
def failure(message); end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
class WebMock::BodyPattern
|
116
|
+
include ::WebMock::RSpecMatcherDetector
|
117
|
+
|
118
|
+
def initialize(pattern); end
|
119
|
+
|
120
|
+
def matches?(body, content_type = T.unsafe(nil)); end
|
121
|
+
def pattern; end
|
122
|
+
def to_s; end
|
123
|
+
|
124
|
+
private
|
125
|
+
|
126
|
+
def assert_non_multipart_body(content_type); end
|
127
|
+
def body_as_hash(body, content_type); end
|
128
|
+
def body_format(content_type); end
|
129
|
+
def empty_string?(string); end
|
130
|
+
def matching_body_hashes?(query_parameters, pattern, content_type); end
|
131
|
+
def normalize_hash(hash); end
|
132
|
+
def url_encoded_body?(content_type); end
|
133
|
+
end
|
134
|
+
|
135
|
+
WebMock::BodyPattern::BODY_FORMATS = T.let(T.unsafe(nil), Hash)
|
136
|
+
|
137
|
+
class WebMock::CallbackRegistry
|
138
|
+
class << self
|
139
|
+
def add_callback(options, block); end
|
140
|
+
def any_callbacks?; end
|
141
|
+
def callbacks; end
|
142
|
+
def invoke_callbacks(options, request_signature, response); end
|
143
|
+
def reset; end
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
class WebMock::Config
|
148
|
+
include ::Singleton
|
149
|
+
extend ::Singleton::SingletonClassMethods
|
150
|
+
|
151
|
+
def initialize; end
|
152
|
+
|
153
|
+
def allow; end
|
154
|
+
def allow=(_arg0); end
|
155
|
+
def allow_localhost; end
|
156
|
+
def allow_localhost=(_arg0); end
|
157
|
+
def allow_net_connect; end
|
158
|
+
def allow_net_connect=(_arg0); end
|
159
|
+
def net_http_connect_on_start; end
|
160
|
+
def net_http_connect_on_start=(_arg0); end
|
161
|
+
def query_values_notation; end
|
162
|
+
def query_values_notation=(_arg0); end
|
163
|
+
def show_body_diff; end
|
164
|
+
def show_body_diff=(_arg0); end
|
165
|
+
def show_stubbing_instructions; end
|
166
|
+
def show_stubbing_instructions=(_arg0); end
|
167
|
+
end
|
168
|
+
|
169
|
+
class WebMock::Deprecation
|
170
|
+
class << self
|
171
|
+
def warning(message); end
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
class WebMock::DynamicResponse < ::WebMock::Response
|
176
|
+
def initialize(responder); end
|
177
|
+
|
178
|
+
def evaluate(request_signature); end
|
179
|
+
def responder; end
|
180
|
+
def responder=(_arg0); end
|
181
|
+
end
|
182
|
+
|
183
|
+
class WebMock::HashValidator
|
184
|
+
def initialize(hash); end
|
185
|
+
|
186
|
+
def validate_keys(*valid_keys); end
|
187
|
+
end
|
188
|
+
|
189
|
+
class WebMock::HeadersPattern
|
190
|
+
def initialize(pattern); end
|
191
|
+
|
192
|
+
def matches?(headers); end
|
193
|
+
def pp_to_s; end
|
194
|
+
def to_s; end
|
195
|
+
|
196
|
+
private
|
197
|
+
|
198
|
+
def empty_headers?(headers); end
|
199
|
+
end
|
200
|
+
|
201
|
+
class WebMock::HttpLibAdapter
|
202
|
+
class << self
|
203
|
+
def adapter_for(lib); end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
class WebMock::HttpLibAdapterRegistry
|
208
|
+
include ::Singleton
|
209
|
+
extend ::Singleton::SingletonClassMethods
|
210
|
+
|
211
|
+
def initialize; end
|
212
|
+
|
213
|
+
def each_adapter(&block); end
|
214
|
+
def http_lib_adapters; end
|
215
|
+
def http_lib_adapters=(_arg0); end
|
216
|
+
def register(lib, adapter); end
|
217
|
+
end
|
218
|
+
|
219
|
+
module WebMock::HttpLibAdapters; end
|
220
|
+
|
221
|
+
class WebMock::HttpLibAdapters::NetHttpAdapter < ::WebMock::HttpLibAdapter
|
222
|
+
class << self
|
223
|
+
def disable!; end
|
224
|
+
def enable!; end
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
WebMock::HttpLibAdapters::NetHttpAdapter::OriginalNetBufferedIO = Net::BufferedIO
|
229
|
+
WebMock::HttpLibAdapters::NetHttpAdapter::OriginalNetHTTP = Net::HTTP
|
230
|
+
module WebMock::Matchers; end
|
231
|
+
|
232
|
+
class WebMock::Matchers::AnyArgMatcher
|
233
|
+
def initialize(ignore); end
|
234
|
+
|
235
|
+
def ==(other); end
|
236
|
+
end
|
237
|
+
|
238
|
+
class WebMock::Matchers::HashArgumentMatcher
|
239
|
+
def initialize(expected); end
|
240
|
+
|
241
|
+
def ==(_actual, &block); end
|
242
|
+
|
243
|
+
class << self
|
244
|
+
def from_rspec_matcher(matcher); end
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
class WebMock::Matchers::HashExcludingMatcher < ::WebMock::Matchers::HashArgumentMatcher
|
249
|
+
def ==(actual); end
|
250
|
+
def inspect; end
|
251
|
+
end
|
252
|
+
|
253
|
+
class WebMock::Matchers::HashIncludingMatcher < ::WebMock::Matchers::HashArgumentMatcher
|
254
|
+
def ==(actual); end
|
255
|
+
def inspect; end
|
256
|
+
end
|
257
|
+
|
258
|
+
class WebMock::MethodPattern
|
259
|
+
def initialize(pattern); end
|
260
|
+
|
261
|
+
def matches?(method); end
|
262
|
+
def to_s; end
|
263
|
+
end
|
264
|
+
|
265
|
+
class WebMock::NetConnectNotAllowedError < ::Exception
|
266
|
+
def initialize(request_signature); end
|
267
|
+
end
|
268
|
+
|
269
|
+
module WebMock::NetHTTPUtility
|
270
|
+
class << self
|
271
|
+
def check_right_http_connection; end
|
272
|
+
def get_uri(net_http, path); end
|
273
|
+
def puts_warning_for_right_http_if_needed; end
|
274
|
+
def request_signature_from_request(net_http, request, body = T.unsafe(nil)); end
|
275
|
+
def validate_headers(headers); end
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
module WebMock::RSpecMatcherDetector
|
280
|
+
def rSpecHashExcludingMatcher?(matcher); end
|
281
|
+
def rSpecHashIncludingMatcher?(matcher); end
|
282
|
+
end
|
283
|
+
|
284
|
+
class WebMock::RackResponse < ::WebMock::Response
|
285
|
+
def initialize(app); end
|
286
|
+
|
287
|
+
def body_from_rack_response(response); end
|
288
|
+
def build_rack_env(request); end
|
289
|
+
def evaluate(request); end
|
290
|
+
def session; end
|
291
|
+
def session_options; end
|
292
|
+
end
|
293
|
+
|
294
|
+
class WebMock::RequestBodyDiff
|
295
|
+
def initialize(request_signature, request_stub); end
|
296
|
+
|
297
|
+
def body_diff; end
|
298
|
+
|
299
|
+
private
|
300
|
+
|
301
|
+
def parseable_json?(body_pattern); end
|
302
|
+
def request_signature; end
|
303
|
+
def request_signature_body_hash; end
|
304
|
+
def request_signature_diffable?; end
|
305
|
+
def request_signature_parseable_json?; end
|
306
|
+
def request_stub; end
|
307
|
+
def request_stub_body; end
|
308
|
+
def request_stub_body_hash; end
|
309
|
+
def request_stub_diffable?; end
|
310
|
+
def request_stub_parseable_json?; end
|
311
|
+
end
|
312
|
+
|
313
|
+
class WebMock::RequestExecutionVerifier
|
314
|
+
def initialize(request_pattern = T.unsafe(nil), expected_times_executed = T.unsafe(nil), at_least_times_executed = T.unsafe(nil), at_most_times_executed = T.unsafe(nil)); end
|
315
|
+
|
316
|
+
def at_least_times_executed; end
|
317
|
+
def at_least_times_executed=(_arg0); end
|
318
|
+
def at_most_times_executed; end
|
319
|
+
def at_most_times_executed=(_arg0); end
|
320
|
+
def description; end
|
321
|
+
def does_not_match?; end
|
322
|
+
def expected_times_executed; end
|
323
|
+
def expected_times_executed=(_arg0); end
|
324
|
+
def failure_message; end
|
325
|
+
def failure_message_when_negated; end
|
326
|
+
def matches?; end
|
327
|
+
def request_pattern; end
|
328
|
+
def request_pattern=(_arg0); end
|
329
|
+
def times_executed; end
|
330
|
+
def times_executed=(_arg0); end
|
331
|
+
|
332
|
+
private
|
333
|
+
|
334
|
+
def failure_message_phrase(is_negated = T.unsafe(nil)); end
|
335
|
+
def quantity_phrase(is_negated = T.unsafe(nil)); end
|
336
|
+
def times(times); end
|
337
|
+
|
338
|
+
class << self
|
339
|
+
def executed_requests_message; end
|
340
|
+
end
|
341
|
+
end
|
342
|
+
|
343
|
+
class WebMock::RequestPattern
|
344
|
+
def initialize(method, uri, options = T.unsafe(nil)); end
|
345
|
+
|
346
|
+
def body_pattern; end
|
347
|
+
def headers_pattern; end
|
348
|
+
def matches?(request_signature); end
|
349
|
+
def method_pattern; end
|
350
|
+
def to_s; end
|
351
|
+
def uri_pattern; end
|
352
|
+
def with(options = T.unsafe(nil), &block); end
|
353
|
+
|
354
|
+
private
|
355
|
+
|
356
|
+
def assign_options(options); end
|
357
|
+
def create_uri_pattern(uri); end
|
358
|
+
def set_basic_auth_as_headers!(options); end
|
359
|
+
def validate_basic_auth!(basic_auth); end
|
360
|
+
end
|
361
|
+
|
362
|
+
class WebMock::RequestRegistry
|
363
|
+
include ::Singleton
|
364
|
+
extend ::Singleton::SingletonClassMethods
|
365
|
+
|
366
|
+
def initialize; end
|
367
|
+
|
368
|
+
def requested_signatures; end
|
369
|
+
def requested_signatures=(_arg0); end
|
370
|
+
def reset!; end
|
371
|
+
def times_executed(request_pattern); end
|
372
|
+
def to_s; end
|
373
|
+
end
|
374
|
+
|
375
|
+
class WebMock::RequestSignature
|
376
|
+
def initialize(method, uri, options = T.unsafe(nil)); end
|
377
|
+
|
378
|
+
def ==(other); end
|
379
|
+
def body; end
|
380
|
+
def body=(_arg0); end
|
381
|
+
def eql?(other); end
|
382
|
+
def hash; end
|
383
|
+
def headers; end
|
384
|
+
def headers=(headers); end
|
385
|
+
def json_headers?; end
|
386
|
+
def method; end
|
387
|
+
def method=(_arg0); end
|
388
|
+
def to_s; end
|
389
|
+
def uri; end
|
390
|
+
def uri=(_arg0); end
|
391
|
+
def url_encoded?; end
|
392
|
+
|
393
|
+
private
|
394
|
+
|
395
|
+
def assign_options(options); end
|
396
|
+
end
|
397
|
+
|
398
|
+
class WebMock::RequestSignatureSnippet
|
399
|
+
def initialize(request_signature); end
|
400
|
+
|
401
|
+
def request_signature; end
|
402
|
+
def request_stub; end
|
403
|
+
def request_stubs; end
|
404
|
+
def stubbing_instructions; end
|
405
|
+
|
406
|
+
private
|
407
|
+
|
408
|
+
def add_body_diff(stub, text); end
|
409
|
+
def pretty_print_to_string(string_to_print); end
|
410
|
+
def request_params; end
|
411
|
+
def signature_stub_body_diff(stub); end
|
412
|
+
end
|
413
|
+
|
414
|
+
class WebMock::RequestStub
|
415
|
+
def initialize(method, uri); end
|
416
|
+
|
417
|
+
def and_raise(*exceptions); end
|
418
|
+
def and_return(*response_hashes, &block); end
|
419
|
+
def and_timeout; end
|
420
|
+
def has_responses?; end
|
421
|
+
def matches?(request_signature); end
|
422
|
+
def request_pattern; end
|
423
|
+
def request_pattern=(_arg0); end
|
424
|
+
def response; end
|
425
|
+
def then; end
|
426
|
+
def times(number); end
|
427
|
+
def to_rack(app, options = T.unsafe(nil)); end
|
428
|
+
def to_raise(*exceptions); end
|
429
|
+
def to_return(*response_hashes, &block); end
|
430
|
+
def to_s; end
|
431
|
+
def to_timeout; end
|
432
|
+
def with(params = T.unsafe(nil), &block); end
|
433
|
+
|
434
|
+
class << self
|
435
|
+
def from_request_signature(signature); end
|
436
|
+
end
|
437
|
+
end
|
438
|
+
|
439
|
+
class WebMock::Response
|
440
|
+
def initialize(options = T.unsafe(nil)); end
|
441
|
+
|
442
|
+
def ==(other); end
|
443
|
+
def body; end
|
444
|
+
def body=(body); end
|
445
|
+
def evaluate(request_signature); end
|
446
|
+
def exception; end
|
447
|
+
def exception=(exception); end
|
448
|
+
def headers; end
|
449
|
+
def headers=(headers); end
|
450
|
+
def options=(options); end
|
451
|
+
def raise_error_if_any; end
|
452
|
+
def should_timeout; end
|
453
|
+
def status; end
|
454
|
+
def status=(status); end
|
455
|
+
|
456
|
+
private
|
457
|
+
|
458
|
+
def assert_valid_body!; end
|
459
|
+
def read_raw_response(raw_response); end
|
460
|
+
def stringify_body!; end
|
461
|
+
end
|
462
|
+
|
463
|
+
class WebMock::Response::InvalidBody < ::StandardError; end
|
464
|
+
|
465
|
+
class WebMock::ResponseFactory
|
466
|
+
class << self
|
467
|
+
def response_for(options); end
|
468
|
+
end
|
469
|
+
end
|
470
|
+
|
471
|
+
class WebMock::ResponsesSequence
|
472
|
+
def initialize(responses); end
|
473
|
+
|
474
|
+
def end?; end
|
475
|
+
def next_response; end
|
476
|
+
def times_to_repeat; end
|
477
|
+
def times_to_repeat=(_arg0); end
|
478
|
+
|
479
|
+
private
|
480
|
+
|
481
|
+
def increase_position; end
|
482
|
+
end
|
483
|
+
|
484
|
+
class WebMock::StubRegistry
|
485
|
+
include ::Singleton
|
486
|
+
extend ::Singleton::SingletonClassMethods
|
487
|
+
|
488
|
+
def initialize; end
|
489
|
+
|
490
|
+
def global_stubs; end
|
491
|
+
def register_global_stub(order = T.unsafe(nil), &block); end
|
492
|
+
def register_request_stub(stub); end
|
493
|
+
def registered_request?(request_signature); end
|
494
|
+
def remove_request_stub(stub); end
|
495
|
+
def request_stubs; end
|
496
|
+
def request_stubs=(_arg0); end
|
497
|
+
def reset!; end
|
498
|
+
def response_for_request(request_signature); end
|
499
|
+
|
500
|
+
private
|
501
|
+
|
502
|
+
def evaluate_response_for_request(response, request_signature); end
|
503
|
+
def request_stub_for(request_signature); end
|
504
|
+
end
|
505
|
+
|
506
|
+
class WebMock::StubRequestSnippet
|
507
|
+
def initialize(request_stub); end
|
508
|
+
|
509
|
+
def body_pattern; end
|
510
|
+
def to_s(with_response = T.unsafe(nil)); end
|
511
|
+
end
|
512
|
+
|
513
|
+
class WebMock::URIAddressablePattern < ::WebMock::URIPattern
|
514
|
+
def add_query_params(query_params); end
|
515
|
+
|
516
|
+
private
|
517
|
+
|
518
|
+
def matches_with_variations?(uri); end
|
519
|
+
def pattern_inspect; end
|
520
|
+
def pattern_matches?(uri); end
|
521
|
+
def template_matches_uri?(template, uri); end
|
522
|
+
end
|
523
|
+
|
524
|
+
class WebMock::URICallablePattern < ::WebMock::URIPattern
|
525
|
+
private
|
526
|
+
|
527
|
+
def pattern_matches?(uri); end
|
528
|
+
end
|
529
|
+
|
530
|
+
class WebMock::URIPattern
|
531
|
+
include ::WebMock::RSpecMatcherDetector
|
532
|
+
|
533
|
+
def initialize(pattern); end
|
534
|
+
|
535
|
+
def add_query_params(query_params); end
|
536
|
+
def matches?(uri); end
|
537
|
+
def to_s; end
|
538
|
+
|
539
|
+
private
|
540
|
+
|
541
|
+
def pattern_inspect; end
|
542
|
+
def query_params_matches?(uri); end
|
543
|
+
end
|
544
|
+
|
545
|
+
class WebMock::URIRegexpPattern < ::WebMock::URIPattern
|
546
|
+
private
|
547
|
+
|
548
|
+
def pattern_matches?(uri); end
|
549
|
+
end
|
550
|
+
|
551
|
+
class WebMock::URIStringPattern < ::WebMock::URIPattern
|
552
|
+
def add_query_params(query_params); end
|
553
|
+
|
554
|
+
private
|
555
|
+
|
556
|
+
def pattern_inspect; end
|
557
|
+
def pattern_matches?(uri); end
|
558
|
+
end
|
559
|
+
|
560
|
+
module WebMock::Util; end
|
561
|
+
|
562
|
+
class WebMock::Util::HashCounter
|
563
|
+
def initialize; end
|
564
|
+
|
565
|
+
def each(&block); end
|
566
|
+
def get(key); end
|
567
|
+
def hash; end
|
568
|
+
def hash=(_arg0); end
|
569
|
+
def put(key, num = T.unsafe(nil)); end
|
570
|
+
def select(&block); end
|
571
|
+
end
|
572
|
+
|
573
|
+
class WebMock::Util::HashKeysStringifier
|
574
|
+
class << self
|
575
|
+
def stringify_keys!(arg, options = T.unsafe(nil)); end
|
576
|
+
end
|
577
|
+
end
|
578
|
+
|
579
|
+
class WebMock::Util::Headers
|
580
|
+
class << self
|
581
|
+
def basic_auth_header(*credentials); end
|
582
|
+
def decode_userinfo_from_header(header); end
|
583
|
+
def normalize_headers(headers); end
|
584
|
+
def pp_headers_string(headers); end
|
585
|
+
def sorted_headers_string(headers); end
|
586
|
+
end
|
587
|
+
end
|
588
|
+
|
589
|
+
class WebMock::Util::JSON
|
590
|
+
class << self
|
591
|
+
def convert_json_to_yaml(json); end
|
592
|
+
def parse(json); end
|
593
|
+
def unescape(str); end
|
594
|
+
end
|
595
|
+
end
|
596
|
+
|
597
|
+
class WebMock::Util::JSON::ParseError < ::StandardError; end
|
598
|
+
|
599
|
+
class WebMock::Util::QueryMapper
|
600
|
+
class << self
|
601
|
+
def collect_query_hash(query_array, empty_accumulator, options); end
|
602
|
+
def collect_query_parts(query); end
|
603
|
+
def dehash(hash); end
|
604
|
+
def fill_accumulator_for_dot(accumulator, key, value); end
|
605
|
+
def fill_accumulator_for_flat(accumulator, key, value); end
|
606
|
+
def fill_accumulator_for_flat_array(accumulator, key, value); end
|
607
|
+
def fill_accumulator_for_subscript(accumulator, key, value); end
|
608
|
+
def normalize_query_hash(query_hash, empty_accumulator, options); end
|
609
|
+
def query_to_values(query, options = T.unsafe(nil)); end
|
610
|
+
def to_query(parent, value, options = T.unsafe(nil)); end
|
611
|
+
def values_to_query(new_query_values, options = T.unsafe(nil)); end
|
612
|
+
end
|
613
|
+
end
|
614
|
+
|
615
|
+
class WebMock::Util::URI
|
616
|
+
class << self
|
617
|
+
def encode_unsafe_chars_in_userinfo(userinfo); end
|
618
|
+
def heuristic_parse(uri); end
|
619
|
+
def is_uri_localhost?(uri); end
|
620
|
+
def normalize_uri(uri); end
|
621
|
+
def sort_query_values(query_values); end
|
622
|
+
def strip_default_port_from_uri_string(uri_string); end
|
623
|
+
def uris_encoded_and_unencoded(uris); end
|
624
|
+
def uris_with_inferred_port_and_without(uris); end
|
625
|
+
def uris_with_scheme_and_without(uris); end
|
626
|
+
def uris_with_trailing_slash_and_without(uris); end
|
627
|
+
def variations_of_uri_as_strings(uri_object, only_with_scheme: T.unsafe(nil)); end
|
628
|
+
end
|
629
|
+
end
|
630
|
+
|
631
|
+
WebMock::Util::URI::ADDRESSABLE_URIS = T.let(T.unsafe(nil), Hash)
|
632
|
+
module WebMock::Util::URI::CharacterClasses; end
|
633
|
+
WebMock::Util::URI::CharacterClasses::USERINFO = T.let(T.unsafe(nil), String)
|
634
|
+
WebMock::Util::URI::NORMALIZED_URIS = T.let(T.unsafe(nil), Hash)
|
635
|
+
|
636
|
+
class WebMock::Util::ValuesStringifier
|
637
|
+
class << self
|
638
|
+
def stringify_values(value); end
|
639
|
+
end
|
640
|
+
end
|
641
|
+
|
642
|
+
WebMock::VERSION = T.let(T.unsafe(nil), String)
|
643
|
+
|
644
|
+
class WebMock::VersionChecker
|
645
|
+
def initialize(library_name, library_version, min_patch_level, max_minor_version = T.unsafe(nil), unsupported_versions = T.unsafe(nil)); end
|
646
|
+
|
647
|
+
def check_version!; end
|
648
|
+
|
649
|
+
private
|
650
|
+
|
651
|
+
def colorize(text, color_code); end
|
652
|
+
def compare_version; end
|
653
|
+
def parse_version(version); end
|
654
|
+
def too_high?; end
|
655
|
+
def too_low?; end
|
656
|
+
def unsupported_version?; end
|
657
|
+
def version_requirement; end
|
658
|
+
def warn_about_too_high; end
|
659
|
+
def warn_about_too_low; end
|
660
|
+
def warn_about_unsupported_version; end
|
661
|
+
def warn_in_red(text); end
|
662
|
+
end
|