httpsensible 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +7 -0
  2. data/.rubocop.yml +4 -0
  3. data/.ruby-version +1 -0
  4. data/.vscode/settings.json +8 -0
  5. data/CHANGELOG.md +5 -0
  6. data/Gemfile +18 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +45 -0
  9. data/Rakefile +20 -0
  10. data/lib/httpsensible/client/response.rb +54 -0
  11. data/lib/httpsensible/client.rb +39 -0
  12. data/lib/httpsensible/jwt.rb +26 -0
  13. data/lib/httpsensible/version.rb +6 -0
  14. data/lib/httpsensible.rb +10 -0
  15. data/sorbet/config +4 -0
  16. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  17. data/sorbet/rbi/dsl/active_support/callbacks.rbi +22 -0
  18. data/sorbet/rbi/gems/activesupport@7.0.6.rbi +14 -0
  19. data/sorbet/rbi/gems/addressable@2.8.4.rbi +1954 -0
  20. data/sorbet/rbi/gems/amazing_print@1.5.0.rbi +923 -0
  21. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  22. data/sorbet/rbi/gems/concurrent-ruby@1.2.2.rbi +8 -0
  23. data/sorbet/rbi/gems/crack@0.4.5.rbi +144 -0
  24. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1083 -0
  25. data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
  26. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +350 -0
  27. data/sorbet/rbi/gems/http-2-next@0.5.1.rbi +1441 -0
  28. data/sorbet/rbi/gems/httpx@0.24.1.rbi +3255 -0
  29. data/sorbet/rbi/gems/i18n@1.14.1.rbi +8 -0
  30. data/sorbet/rbi/gems/io-console@0.6.0.rbi +8 -0
  31. data/sorbet/rbi/gems/irb@1.7.1.rbi +342 -0
  32. data/sorbet/rbi/gems/json@2.6.3.rbi +1533 -0
  33. data/sorbet/rbi/gems/jwt@2.7.1.rbi +1404 -0
  34. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
  35. data/sorbet/rbi/gems/minitest-focus@1.3.1.rbi +91 -0
  36. data/sorbet/rbi/gems/minitest@5.18.1.rbi +1503 -0
  37. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  38. data/sorbet/rbi/gems/parallel@1.23.0.rbi +273 -0
  39. data/sorbet/rbi/gems/parser@3.2.2.3.rbi +7253 -0
  40. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
  41. data/sorbet/rbi/gems/public_suffix@5.0.1.rbi +935 -0
  42. data/sorbet/rbi/gems/racc@1.7.1.rbi +161 -0
  43. data/sorbet/rbi/gems/rack@3.0.8.rbi +5183 -0
  44. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
  45. data/sorbet/rbi/gems/rake@13.0.6.rbi +3024 -0
  46. data/sorbet/rbi/gems/rbi@0.0.16.rbi +2999 -0
  47. data/sorbet/rbi/gems/regexp_parser@2.8.1.rbi +3749 -0
  48. data/sorbet/rbi/gems/reline@0.3.6.rbi +8 -0
  49. data/sorbet/rbi/gems/rexml@3.2.5.rbi +4717 -0
  50. data/sorbet/rbi/gems/rubocop-ast@1.29.0.rbi +6985 -0
  51. data/sorbet/rbi/gems/rubocop-minitest@0.31.0.rbi +8 -0
  52. data/sorbet/rbi/gems/rubocop-performance@1.18.0.rbi +8 -0
  53. data/sorbet/rbi/gems/rubocop-rails@2.20.2.rbi +8 -0
  54. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +8 -0
  55. data/sorbet/rbi/gems/rubocop-shopify@2.14.0.rbi +8 -0
  56. data/sorbet/rbi/gems/rubocop-sorbet@0.7.0.rbi +8 -0
  57. data/sorbet/rbi/gems/rubocop-standard@7.1.0.rbi +8 -0
  58. data/sorbet/rbi/gems/rubocop@1.54.1.rbi +56172 -0
  59. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
  60. data/sorbet/rbi/gems/spoom@1.2.2.rbi +2994 -0
  61. data/sorbet/rbi/gems/syntax_tree@6.1.1.rbi +22855 -0
  62. data/sorbet/rbi/gems/tapioca@0.11.7.rbi +3347 -0
  63. data/sorbet/rbi/gems/thor@1.2.2.rbi +3965 -0
  64. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +8 -0
  65. data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +65 -0
  66. data/sorbet/rbi/gems/unparser@0.6.8.rbi +4525 -0
  67. data/sorbet/rbi/gems/webmock@3.18.1.rbi +1756 -0
  68. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
  69. data/sorbet/rbi/gems/yard@0.9.34.rbi +18219 -0
  70. data/sorbet/tapioca/config.yml +13 -0
  71. data/sorbet/tapioca/require.rb +4 -0
  72. metadata +190 -0
@@ -0,0 +1,1756 @@
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
+ # source://webmock//lib/webmock/http_lib_adapters/net_http_response.rb#16
8
+ module Net::WebMockHTTPResponse
9
+ # source://webmock//lib/webmock/http_lib_adapters/net_http_response.rb#17
10
+ def read_body(dest = T.unsafe(nil), &block); end
11
+ end
12
+
13
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#206
14
+ class StubSocket
15
+ # @return [StubSocket] a new instance of StubSocket
16
+ #
17
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#210
18
+ def initialize(*args); end
19
+
20
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#218
21
+ def close; end
22
+
23
+ # @return [Boolean]
24
+ #
25
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#214
26
+ def closed?; end
27
+
28
+ # Returns the value of attribute continue_timeout.
29
+ #
30
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#208
31
+ def continue_timeout; end
32
+
33
+ # Sets the attribute continue_timeout
34
+ #
35
+ # @param value the value to set the attribute continue_timeout to.
36
+ #
37
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#208
38
+ def continue_timeout=(_arg0); end
39
+
40
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#226
41
+ def io; end
42
+
43
+ # Returns the value of attribute read_timeout.
44
+ #
45
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#208
46
+ def read_timeout; end
47
+
48
+ # Sets the attribute read_timeout
49
+ #
50
+ # @param value the value to set the attribute read_timeout to.
51
+ #
52
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#208
53
+ def read_timeout=(_arg0); end
54
+
55
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#223
56
+ def readuntil(*args); end
57
+
58
+ # Returns the value of attribute write_timeout.
59
+ #
60
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#208
61
+ def write_timeout; end
62
+
63
+ # Sets the attribute write_timeout
64
+ #
65
+ # @param value the value to set the attribute write_timeout to.
66
+ #
67
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#208
68
+ def write_timeout=(_arg0); end
69
+ end
70
+
71
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#230
72
+ class StubSocket::StubIO
73
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#235
74
+ def cipher; end
75
+
76
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#232
77
+ def peer_cert; end
78
+
79
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#233
80
+ def peeraddr; end
81
+
82
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#231
83
+ def setsockopt(*args); end
84
+
85
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#234
86
+ def ssl_version; end
87
+ end
88
+
89
+ # source://webmock//lib/webmock/deprecation.rb#1
90
+ module WebMock
91
+ include ::WebMock::API
92
+ extend ::WebMock::API
93
+
94
+ def after_request(*args, &block); end
95
+ def allow_net_connect!(*args, &block); end
96
+ def disable_net_connect!(*args, &block); end
97
+ def net_connect_allowed?(*args, &block); end
98
+ def registered_request?(*args, &block); end
99
+ def reset_callbacks(*args, &block); end
100
+ def reset_webmock(*args, &block); end
101
+
102
+ class << self
103
+ # source://webmock//lib/webmock/webmock.rb#141
104
+ def after_request(options = T.unsafe(nil), &block); end
105
+
106
+ # source://webmock//lib/webmock/webmock.rb#44
107
+ def allow_net_connect!(options = T.unsafe(nil)); end
108
+
109
+ # source://webmock//lib/webmock/webmock.rb#28
110
+ def disable!(options = T.unsafe(nil)); end
111
+
112
+ # source://webmock//lib/webmock/webmock.rb#49
113
+ def disable_net_connect!(options = T.unsafe(nil)); end
114
+
115
+ # source://webmock//lib/webmock/webmock.rb#49
116
+ def disallow_net_connect!(options = T.unsafe(nil)); end
117
+
118
+ # source://webmock//lib/webmock/webmock.rb#36
119
+ def enable!(options = T.unsafe(nil)); end
120
+
121
+ # source://webmock//lib/webmock/webmock.rb#44
122
+ def enable_net_connect!(options = T.unsafe(nil)); end
123
+
124
+ # source://webmock//lib/webmock/webmock.rb#153
125
+ def globally_stub_request(order = T.unsafe(nil), &block); end
126
+
127
+ # source://webmock//lib/webmock/webmock.rb#107
128
+ def hide_body_diff!; end
129
+
130
+ # source://webmock//lib/webmock/webmock.rb#115
131
+ def hide_stubbing_instructions!; end
132
+
133
+ # @private
134
+ #
135
+ # source://webmock//lib/webmock/webmock.rb#3
136
+ def included(clazz); end
137
+
138
+ # @return [Boolean]
139
+ #
140
+ # source://webmock//lib/webmock/webmock.rb#61
141
+ def net_connect_allowed?(uri = T.unsafe(nil)); end
142
+
143
+ # @return [Boolean]
144
+ #
145
+ # source://webmock//lib/webmock/webmock.rb#83
146
+ def net_connect_explicit_allowed?(allowed, uri = T.unsafe(nil)); end
147
+
148
+ # @return [Boolean]
149
+ #
150
+ # source://webmock//lib/webmock/webmock.rb#73
151
+ def net_http_connect_on_start?(uri); end
152
+
153
+ # source://webmock//lib/webmock/webmock.rb#149
154
+ def print_executed_requests; end
155
+
156
+ # @return [Boolean]
157
+ #
158
+ # source://webmock//lib/webmock/webmock.rb#145
159
+ def registered_request?(request_signature); end
160
+
161
+ # source://webmock//lib/webmock/api.rb#12
162
+ def request(method, uri); end
163
+
164
+ # source://webmock//lib/webmock/webmock.rb#127
165
+ def reset!; end
166
+
167
+ # source://webmock//lib/webmock/webmock.rb#137
168
+ def reset_callbacks; end
169
+
170
+ # source://webmock//lib/webmock/webmock.rb#132
171
+ def reset_webmock; end
172
+
173
+ # source://webmock//lib/webmock/webmock.rb#103
174
+ def show_body_diff!; end
175
+
176
+ # @return [Boolean]
177
+ #
178
+ # source://webmock//lib/webmock/webmock.rb#111
179
+ def show_body_diff?; end
180
+
181
+ # source://webmock//lib/webmock/webmock.rb#119
182
+ def show_stubbing_instructions!; end
183
+
184
+ # @return [Boolean]
185
+ #
186
+ # source://webmock//lib/webmock/webmock.rb#123
187
+ def show_stubbing_instructions?; end
188
+
189
+ # source://webmock//lib/webmock/webmock.rb#24
190
+ def version; end
191
+ end
192
+ end
193
+
194
+ # source://webmock//lib/webmock/api.rb#2
195
+ module WebMock::API
196
+ extend ::WebMock::API
197
+
198
+ # source://webmock//lib/webmock/api.rb#12
199
+ def a_request(method, uri); end
200
+
201
+ # source://webmock//lib/webmock/api.rb#29
202
+ def assert_not_requested(*args, &block); end
203
+
204
+ # source://webmock//lib/webmock/api.rb#20
205
+ def assert_requested(*args, &block); end
206
+
207
+ # source://webmock//lib/webmock/api.rb#57
208
+ def hash_excluding(*args); end
209
+
210
+ # Similar to RSpec::Mocks::ArgumentMatchers#hash_including()
211
+ #
212
+ # Matches a hash that includes the specified key(s) or key/value pairs.
213
+ # Ignores any additional keys.
214
+ #
215
+ # @example
216
+ #
217
+ # object.should_receive(:message).with(hash_including(:key => val))
218
+ # object.should_receive(:message).with(hash_including(:key))
219
+ # object.should_receive(:message).with(hash_including(:key, :key2 => val2))
220
+ #
221
+ # source://webmock//lib/webmock/api.rb#49
222
+ def hash_including(*args); end
223
+
224
+ # source://webmock//lib/webmock/api.rb#29
225
+ def refute_requested(*args, &block); end
226
+
227
+ # source://webmock//lib/webmock/api.rb#65
228
+ def remove_request_stub(stub); end
229
+
230
+ # source://webmock//lib/webmock/api.rb#69
231
+ def reset_executed_requests!; end
232
+
233
+ # source://webmock//lib/webmock/api.rb#5
234
+ def stub_http_request(method, uri); end
235
+
236
+ # source://webmock//lib/webmock/api.rb#5
237
+ def stub_request(method, uri); end
238
+
239
+ private
240
+
241
+ # this is a based on RSpec::Mocks::ArgumentMatchers#anythingize_lonely_keys
242
+ #
243
+ # source://webmock//lib/webmock/api.rb#102
244
+ def anythingize_lonely_keys(*args); end
245
+
246
+ # source://webmock//lib/webmock/api.rb#93
247
+ def assert_request_not_requested(request, options = T.unsafe(nil)); end
248
+
249
+ # source://webmock//lib/webmock/api.rb#84
250
+ def assert_request_requested(request, options = T.unsafe(nil)); end
251
+
252
+ # source://webmock//lib/webmock/api.rb#75
253
+ def convert_uri_method_and_options_to_request_and_options(method, uri, options, &block); end
254
+
255
+ class << self
256
+ # source://webmock//lib/webmock/api.rb#12
257
+ def request(method, uri); end
258
+ end
259
+ end
260
+
261
+ # source://webmock//lib/webmock/assertion_failure.rb#2
262
+ class WebMock::AssertionFailure
263
+ class << self
264
+ # Returns the value of attribute error_class.
265
+ #
266
+ # source://webmock//lib/webmock/assertion_failure.rb#5
267
+ def error_class; end
268
+
269
+ # Sets the attribute error_class
270
+ #
271
+ # @param value the value to set the attribute error_class to.
272
+ #
273
+ # source://webmock//lib/webmock/assertion_failure.rb#5
274
+ def error_class=(_arg0); end
275
+
276
+ # @raise [@error_class]
277
+ #
278
+ # source://webmock//lib/webmock/assertion_failure.rb#6
279
+ def failure(message); end
280
+ end
281
+ end
282
+
283
+ # source://webmock//lib/webmock/request_pattern.rb#250
284
+ class WebMock::BodyPattern
285
+ include ::WebMock::RSpecMatcherDetector
286
+
287
+ # @return [BodyPattern] a new instance of BodyPattern
288
+ #
289
+ # source://webmock//lib/webmock/request_pattern.rb#268
290
+ def initialize(pattern); end
291
+
292
+ # @return [Boolean]
293
+ #
294
+ # source://webmock//lib/webmock/request_pattern.rb#278
295
+ def matches?(body, content_type = T.unsafe(nil)); end
296
+
297
+ # Returns the value of attribute pattern.
298
+ #
299
+ # source://webmock//lib/webmock/request_pattern.rb#266
300
+ def pattern; end
301
+
302
+ # source://webmock//lib/webmock/request_pattern.rb#295
303
+ def to_s; end
304
+
305
+ private
306
+
307
+ # source://webmock//lib/webmock/request_pattern.rb#317
308
+ def assert_non_multipart_body(content_type); end
309
+
310
+ # source://webmock//lib/webmock/request_pattern.rb#301
311
+ def body_as_hash(body, content_type); end
312
+
313
+ # source://webmock//lib/webmock/request_pattern.rb#312
314
+ def body_format(content_type); end
315
+
316
+ # @return [Boolean]
317
+ #
318
+ # source://webmock//lib/webmock/request_pattern.rb#376
319
+ def empty_string?(string); end
320
+
321
+ # @return [Boolean]
322
+ #
323
+ # source://webmock//lib/webmock/request_pattern.rb#356
324
+ def matching_body_array?(query_parameters, pattern, content_type); end
325
+
326
+ # Compare two hashes for equality
327
+ #
328
+ # For two hashes to match they must have the same length and all
329
+ # values must match when compared using `#===`.
330
+ #
331
+ # The following hashes are examples of matches:
332
+ #
333
+ # {a: /\d+/} and {a: '123'}
334
+ #
335
+ # {a: '123'} and {a: '123'}
336
+ #
337
+ # {a: {b: /\d+/}} and {a: {b: '123'}}
338
+ #
339
+ # {a: {b: 'wow'}} and {a: {b: 'wow'}}
340
+ #
341
+ # @param query_parameters [Hash] typically the result of parsing
342
+ # JSON, XML or URL encoded parameters.
343
+ # @param pattern [Hash] which contains keys with a string, hash or
344
+ # regular expression value to use for comparison.
345
+ # @return [Boolean] true if the paramaters match the comparison
346
+ # hash, false if not.
347
+ #
348
+ # source://webmock//lib/webmock/request_pattern.rb#346
349
+ def matching_body_hashes?(query_parameters, pattern, content_type); end
350
+
351
+ # source://webmock//lib/webmock/request_pattern.rb#368
352
+ def matching_values(actual, expected, content_type); end
353
+
354
+ # source://webmock//lib/webmock/request_pattern.rb#380
355
+ def normalize_hash(hash); end
356
+
357
+ # @return [Boolean]
358
+ #
359
+ # source://webmock//lib/webmock/request_pattern.rb#384
360
+ def url_encoded_body?(content_type); end
361
+ end
362
+
363
+ # source://webmock//lib/webmock/request_pattern.rb#253
364
+ WebMock::BodyPattern::BODY_FORMATS = T.let(T.unsafe(nil), Hash)
365
+
366
+ # source://webmock//lib/webmock/callback_registry.rb#2
367
+ class WebMock::CallbackRegistry
368
+ class << self
369
+ # source://webmock//lib/webmock/callback_registry.rb#5
370
+ def add_callback(options, block); end
371
+
372
+ # @return [Boolean]
373
+ #
374
+ # source://webmock//lib/webmock/callback_registry.rb#30
375
+ def any_callbacks?; end
376
+
377
+ # source://webmock//lib/webmock/callback_registry.rb#9
378
+ def callbacks; end
379
+
380
+ # source://webmock//lib/webmock/callback_registry.rb#13
381
+ def invoke_callbacks(options, request_signature, response); end
382
+
383
+ # source://webmock//lib/webmock/callback_registry.rb#26
384
+ def reset; end
385
+ end
386
+ end
387
+
388
+ # source://webmock//lib/webmock/config.rb#2
389
+ class WebMock::Config
390
+ include ::Singleton
391
+ extend ::Singleton::SingletonClassMethods
392
+
393
+ # @return [Config] a new instance of Config
394
+ #
395
+ # source://webmock//lib/webmock/config.rb#5
396
+ def initialize; end
397
+
398
+ # Returns the value of attribute allow.
399
+ #
400
+ # source://webmock//lib/webmock/config.rb#12
401
+ def allow; end
402
+
403
+ # Sets the attribute allow
404
+ #
405
+ # @param value the value to set the attribute allow to.
406
+ #
407
+ # source://webmock//lib/webmock/config.rb#12
408
+ def allow=(_arg0); end
409
+
410
+ # Returns the value of attribute allow_localhost.
411
+ #
412
+ # source://webmock//lib/webmock/config.rb#11
413
+ def allow_localhost; end
414
+
415
+ # Sets the attribute allow_localhost
416
+ #
417
+ # @param value the value to set the attribute allow_localhost to.
418
+ #
419
+ # source://webmock//lib/webmock/config.rb#11
420
+ def allow_localhost=(_arg0); end
421
+
422
+ # Returns the value of attribute allow_net_connect.
423
+ #
424
+ # source://webmock//lib/webmock/config.rb#10
425
+ def allow_net_connect; end
426
+
427
+ # Sets the attribute allow_net_connect
428
+ #
429
+ # @param value the value to set the attribute allow_net_connect to.
430
+ #
431
+ # source://webmock//lib/webmock/config.rb#10
432
+ def allow_net_connect=(_arg0); end
433
+
434
+ # Returns the value of attribute net_http_connect_on_start.
435
+ #
436
+ # source://webmock//lib/webmock/config.rb#13
437
+ def net_http_connect_on_start; end
438
+
439
+ # Sets the attribute net_http_connect_on_start
440
+ #
441
+ # @param value the value to set the attribute net_http_connect_on_start to.
442
+ #
443
+ # source://webmock//lib/webmock/config.rb#13
444
+ def net_http_connect_on_start=(_arg0); end
445
+
446
+ # Returns the value of attribute query_values_notation.
447
+ #
448
+ # source://webmock//lib/webmock/config.rb#15
449
+ def query_values_notation; end
450
+
451
+ # Sets the attribute query_values_notation
452
+ #
453
+ # @param value the value to set the attribute query_values_notation to.
454
+ #
455
+ # source://webmock//lib/webmock/config.rb#15
456
+ def query_values_notation=(_arg0); end
457
+
458
+ # Returns the value of attribute show_body_diff.
459
+ #
460
+ # source://webmock//lib/webmock/config.rb#16
461
+ def show_body_diff; end
462
+
463
+ # Sets the attribute show_body_diff
464
+ #
465
+ # @param value the value to set the attribute show_body_diff to.
466
+ #
467
+ # source://webmock//lib/webmock/config.rb#16
468
+ def show_body_diff=(_arg0); end
469
+
470
+ # Returns the value of attribute show_stubbing_instructions.
471
+ #
472
+ # source://webmock//lib/webmock/config.rb#14
473
+ def show_stubbing_instructions; end
474
+
475
+ # Sets the attribute show_stubbing_instructions
476
+ #
477
+ # @param value the value to set the attribute show_stubbing_instructions to.
478
+ #
479
+ # source://webmock//lib/webmock/config.rb#14
480
+ def show_stubbing_instructions=(_arg0); end
481
+
482
+ class << self
483
+ private
484
+
485
+ def allocate; end
486
+ def new(*_arg0); end
487
+ end
488
+ end
489
+
490
+ # source://webmock//lib/webmock/deprecation.rb#2
491
+ class WebMock::Deprecation
492
+ class << self
493
+ # source://webmock//lib/webmock/deprecation.rb#4
494
+ def warning(message); end
495
+ end
496
+ end
497
+
498
+ # source://webmock//lib/webmock/response.rb#147
499
+ class WebMock::DynamicResponse < ::WebMock::Response
500
+ # @return [DynamicResponse] a new instance of DynamicResponse
501
+ #
502
+ # source://webmock//lib/webmock/response.rb#150
503
+ def initialize(responder); end
504
+
505
+ # source://webmock//lib/webmock/response.rb#154
506
+ def evaluate(request_signature); end
507
+
508
+ # Returns the value of attribute responder.
509
+ #
510
+ # source://webmock//lib/webmock/response.rb#148
511
+ def responder; end
512
+
513
+ # Sets the attribute responder
514
+ #
515
+ # @param value the value to set the attribute responder to.
516
+ #
517
+ # source://webmock//lib/webmock/response.rb#148
518
+ def responder=(_arg0); end
519
+ end
520
+
521
+ # source://webmock//lib/webmock/util/hash_validator.rb#2
522
+ class WebMock::HashValidator
523
+ # @return [HashValidator] a new instance of HashValidator
524
+ #
525
+ # source://webmock//lib/webmock/util/hash_validator.rb#3
526
+ def initialize(hash); end
527
+
528
+ # This code is based on https://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/hash/keys.rb
529
+ #
530
+ # source://webmock//lib/webmock/util/hash_validator.rb#8
531
+ def validate_keys(*valid_keys); end
532
+ end
533
+
534
+ # source://webmock//lib/webmock/request_pattern.rb#389
535
+ class WebMock::HeadersPattern
536
+ # @return [HeadersPattern] a new instance of HeadersPattern
537
+ #
538
+ # source://webmock//lib/webmock/request_pattern.rb#390
539
+ def initialize(pattern); end
540
+
541
+ # @return [Boolean]
542
+ #
543
+ # source://webmock//lib/webmock/request_pattern.rb#394
544
+ def matches?(headers); end
545
+
546
+ # source://webmock//lib/webmock/request_pattern.rb#410
547
+ def pp_to_s; end
548
+
549
+ # source://webmock//lib/webmock/request_pattern.rb#406
550
+ def to_s; end
551
+
552
+ private
553
+
554
+ # @return [Boolean]
555
+ #
556
+ # source://webmock//lib/webmock/request_pattern.rb#416
557
+ def empty_headers?(headers); end
558
+ end
559
+
560
+ # source://webmock//lib/webmock/http_lib_adapters/http_lib_adapter.rb#2
561
+ class WebMock::HttpLibAdapter
562
+ class << self
563
+ # source://webmock//lib/webmock/http_lib_adapters/http_lib_adapter.rb#3
564
+ def adapter_for(lib); end
565
+ end
566
+ end
567
+
568
+ # source://webmock//lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb#2
569
+ class WebMock::HttpLibAdapterRegistry
570
+ include ::Singleton
571
+ extend ::Singleton::SingletonClassMethods
572
+
573
+ # @return [HttpLibAdapterRegistry] a new instance of HttpLibAdapterRegistry
574
+ #
575
+ # source://webmock//lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb#7
576
+ def initialize; end
577
+
578
+ # source://webmock//lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb#15
579
+ def each_adapter(&block); end
580
+
581
+ # Returns the value of attribute http_lib_adapters.
582
+ #
583
+ # source://webmock//lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb#5
584
+ def http_lib_adapters; end
585
+
586
+ # Sets the attribute http_lib_adapters
587
+ #
588
+ # @param value the value to set the attribute http_lib_adapters to.
589
+ #
590
+ # source://webmock//lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb#5
591
+ def http_lib_adapters=(_arg0); end
592
+
593
+ # source://webmock//lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb#11
594
+ def register(lib, adapter); end
595
+
596
+ class << self
597
+ private
598
+
599
+ def allocate; end
600
+ def new(*_arg0); end
601
+ end
602
+ end
603
+
604
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#8
605
+ module WebMock::HttpLibAdapters; end
606
+
607
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#9
608
+ class WebMock::HttpLibAdapters::NetHttpAdapter < ::WebMock::HttpLibAdapter
609
+ class << self
610
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#21
611
+ def disable!; end
612
+
613
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#14
614
+ def enable!; end
615
+ end
616
+ end
617
+
618
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#12
619
+ WebMock::HttpLibAdapters::NetHttpAdapter::OriginalNetHTTP = Net::HTTP
620
+
621
+ # source://webmock//lib/webmock/matchers/hash_argument_matcher.rb#2
622
+ module WebMock::Matchers; end
623
+
624
+ # this is a based on RSpec::Mocks::ArgumentMatchers::AnyArgMatcher
625
+ #
626
+ # source://webmock//lib/webmock/matchers/any_arg_matcher.rb#4
627
+ class WebMock::Matchers::AnyArgMatcher
628
+ # @return [AnyArgMatcher] a new instance of AnyArgMatcher
629
+ #
630
+ # source://webmock//lib/webmock/matchers/any_arg_matcher.rb#5
631
+ def initialize(ignore); end
632
+
633
+ # source://webmock//lib/webmock/matchers/any_arg_matcher.rb#8
634
+ def ==(other); end
635
+ end
636
+
637
+ # Base class for Hash matchers
638
+ # https://github.com/rspec/rspec-mocks/blob/master/lib/rspec/mocks/argument_matchers.rb
639
+ #
640
+ # source://webmock//lib/webmock/matchers/hash_argument_matcher.rb#5
641
+ class WebMock::Matchers::HashArgumentMatcher
642
+ # @return [HashArgumentMatcher] a new instance of HashArgumentMatcher
643
+ #
644
+ # source://webmock//lib/webmock/matchers/hash_argument_matcher.rb#6
645
+ def initialize(expected); end
646
+
647
+ # source://webmock//lib/webmock/matchers/hash_argument_matcher.rb#10
648
+ def ==(_actual, &block); end
649
+
650
+ class << self
651
+ # source://webmock//lib/webmock/matchers/hash_argument_matcher.rb#16
652
+ def from_rspec_matcher(matcher); end
653
+ end
654
+ end
655
+
656
+ # this is a based on RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher
657
+ # https://github.com/rspec/rspec-mocks/blob/master/lib/rspec/mocks/argument_matchers.rb
658
+ #
659
+ # source://webmock//lib/webmock/matchers/hash_excluding_matcher.rb#5
660
+ class WebMock::Matchers::HashExcludingMatcher < ::WebMock::Matchers::HashArgumentMatcher
661
+ # source://webmock//lib/webmock/matchers/hash_excluding_matcher.rb#6
662
+ def ==(actual); end
663
+
664
+ # source://webmock//lib/webmock/matchers/hash_excluding_matcher.rb#10
665
+ def inspect; end
666
+ end
667
+
668
+ # this is a based on RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher
669
+ # https://github.com/rspec/rspec-mocks/blob/master/lib/rspec/mocks/argument_matchers.rb
670
+ #
671
+ # source://webmock//lib/webmock/matchers/hash_including_matcher.rb#5
672
+ class WebMock::Matchers::HashIncludingMatcher < ::WebMock::Matchers::HashArgumentMatcher
673
+ # source://webmock//lib/webmock/matchers/hash_including_matcher.rb#6
674
+ def ==(actual); end
675
+
676
+ # source://webmock//lib/webmock/matchers/hash_including_matcher.rb#12
677
+ def inspect; end
678
+ end
679
+
680
+ # source://webmock//lib/webmock/request_pattern.rb#93
681
+ class WebMock::MethodPattern
682
+ # @return [MethodPattern] a new instance of MethodPattern
683
+ #
684
+ # source://webmock//lib/webmock/request_pattern.rb#94
685
+ def initialize(pattern); end
686
+
687
+ # @return [Boolean]
688
+ #
689
+ # source://webmock//lib/webmock/request_pattern.rb#98
690
+ def matches?(method); end
691
+
692
+ # source://webmock//lib/webmock/request_pattern.rb#102
693
+ def to_s; end
694
+ end
695
+
696
+ # source://webmock//lib/webmock/errors.rb#3
697
+ class WebMock::NetConnectNotAllowedError < ::Exception
698
+ # @return [NetConnectNotAllowedError] a new instance of NetConnectNotAllowedError
699
+ #
700
+ # source://webmock//lib/webmock/errors.rb#4
701
+ def initialize(request_signature); end
702
+ end
703
+
704
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#240
705
+ module WebMock::NetHTTPUtility
706
+ class << self
707
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#279
708
+ def check_right_http_connection; end
709
+
710
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#270
711
+ def get_uri(net_http, path = T.unsafe(nil)); end
712
+
713
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#283
714
+ def puts_warning_for_right_http_if_needed; end
715
+
716
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#242
717
+ def request_signature_from_request(net_http, request, body = T.unsafe(nil)); end
718
+ end
719
+ end
720
+
721
+ # source://webmock//lib/webmock/request_pattern.rb#3
722
+ module WebMock::RSpecMatcherDetector
723
+ # @return [Boolean]
724
+ #
725
+ # source://webmock//lib/webmock/request_pattern.rb#8
726
+ def rSpecHashExcludingMatcher?(matcher); end
727
+
728
+ # @return [Boolean]
729
+ #
730
+ # source://webmock//lib/webmock/request_pattern.rb#4
731
+ def rSpecHashIncludingMatcher?(matcher); end
732
+ end
733
+
734
+ # source://webmock//lib/webmock/rack_response.rb#2
735
+ class WebMock::RackResponse < ::WebMock::Response
736
+ # @return [RackResponse] a new instance of RackResponse
737
+ #
738
+ # source://webmock//lib/webmock/rack_response.rb#3
739
+ def initialize(app); end
740
+
741
+ # source://webmock//lib/webmock/rack_response.rb#19
742
+ def body_from_rack_response(response); end
743
+
744
+ # source://webmock//lib/webmock/rack_response.rb#26
745
+ def build_rack_env(request); end
746
+
747
+ # source://webmock//lib/webmock/rack_response.rb#7
748
+ def evaluate(request); end
749
+
750
+ # source://webmock//lib/webmock/rack_response.rb#61
751
+ def session; end
752
+
753
+ # source://webmock//lib/webmock/rack_response.rb#65
754
+ def session_options; end
755
+ end
756
+
757
+ # source://webmock//lib/webmock/request_body_diff.rb#5
758
+ class WebMock::RequestBodyDiff
759
+ # @return [RequestBodyDiff] a new instance of RequestBodyDiff
760
+ #
761
+ # source://webmock//lib/webmock/request_body_diff.rb#7
762
+ def initialize(request_signature, request_stub); end
763
+
764
+ # source://webmock//lib/webmock/request_body_diff.rb#12
765
+ def body_diff; end
766
+
767
+ private
768
+
769
+ # @return [Boolean]
770
+ #
771
+ # source://webmock//lib/webmock/request_body_diff.rb#55
772
+ def parseable_json?(body_pattern); end
773
+
774
+ # Returns the value of attribute request_signature.
775
+ #
776
+ # source://webmock//lib/webmock/request_body_diff.rb#18
777
+ def request_signature; end
778
+
779
+ # source://webmock//lib/webmock/request_body_diff.rb#31
780
+ def request_signature_body_hash; end
781
+
782
+ # @return [Boolean]
783
+ #
784
+ # source://webmock//lib/webmock/request_body_diff.rb#23
785
+ def request_signature_diffable?; end
786
+
787
+ # @return [Boolean]
788
+ #
789
+ # source://webmock//lib/webmock/request_body_diff.rb#47
790
+ def request_signature_parseable_json?; end
791
+
792
+ # Returns the value of attribute request_stub.
793
+ #
794
+ # source://webmock//lib/webmock/request_body_diff.rb#18
795
+ def request_stub; end
796
+
797
+ # source://webmock//lib/webmock/request_body_diff.rb#41
798
+ def request_stub_body; end
799
+
800
+ # source://webmock//lib/webmock/request_body_diff.rb#35
801
+ def request_stub_body_hash; end
802
+
803
+ # @return [Boolean]
804
+ #
805
+ # source://webmock//lib/webmock/request_body_diff.rb#27
806
+ def request_stub_diffable?; end
807
+
808
+ # @return [Boolean]
809
+ #
810
+ # source://webmock//lib/webmock/request_body_diff.rb#51
811
+ def request_stub_parseable_json?; end
812
+ end
813
+
814
+ # source://webmock//lib/webmock/request_execution_verifier.rb#2
815
+ class WebMock::RequestExecutionVerifier
816
+ # @return [RequestExecutionVerifier] a new instance of RequestExecutionVerifier
817
+ #
818
+ # source://webmock//lib/webmock/request_execution_verifier.rb#6
819
+ 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
820
+
821
+ # Returns the value of attribute at_least_times_executed.
822
+ #
823
+ # source://webmock//lib/webmock/request_execution_verifier.rb#4
824
+ def at_least_times_executed; end
825
+
826
+ # Sets the attribute at_least_times_executed
827
+ #
828
+ # @param value the value to set the attribute at_least_times_executed to.
829
+ #
830
+ # source://webmock//lib/webmock/request_execution_verifier.rb#4
831
+ def at_least_times_executed=(_arg0); end
832
+
833
+ # Returns the value of attribute at_most_times_executed.
834
+ #
835
+ # source://webmock//lib/webmock/request_execution_verifier.rb#4
836
+ def at_most_times_executed; end
837
+
838
+ # Sets the attribute at_most_times_executed
839
+ #
840
+ # @param value the value to set the attribute at_most_times_executed to.
841
+ #
842
+ # source://webmock//lib/webmock/request_execution_verifier.rb#4
843
+ def at_most_times_executed=(_arg0); end
844
+
845
+ # source://webmock//lib/webmock/request_execution_verifier.rb#36
846
+ def description; end
847
+
848
+ # @return [Boolean]
849
+ #
850
+ # source://webmock//lib/webmock/request_execution_verifier.rb#26
851
+ def does_not_match?; end
852
+
853
+ # Returns the value of attribute expected_times_executed.
854
+ #
855
+ # source://webmock//lib/webmock/request_execution_verifier.rb#4
856
+ def expected_times_executed; end
857
+
858
+ # Sets the attribute expected_times_executed
859
+ #
860
+ # @param value the value to set the attribute expected_times_executed to.
861
+ #
862
+ # source://webmock//lib/webmock/request_execution_verifier.rb#4
863
+ def expected_times_executed=(_arg0); end
864
+
865
+ # source://webmock//lib/webmock/request_execution_verifier.rb#40
866
+ def failure_message; end
867
+
868
+ # source://webmock//lib/webmock/request_execution_verifier.rb#44
869
+ def failure_message_when_negated; end
870
+
871
+ # @return [Boolean]
872
+ #
873
+ # source://webmock//lib/webmock/request_execution_verifier.rb#13
874
+ def matches?; end
875
+
876
+ # Returns the value of attribute request_pattern.
877
+ #
878
+ # source://webmock//lib/webmock/request_execution_verifier.rb#4
879
+ def request_pattern; end
880
+
881
+ # Sets the attribute request_pattern
882
+ #
883
+ # @param value the value to set the attribute request_pattern to.
884
+ #
885
+ # source://webmock//lib/webmock/request_execution_verifier.rb#4
886
+ def request_pattern=(_arg0); end
887
+
888
+ # Returns the value of attribute times_executed.
889
+ #
890
+ # source://webmock//lib/webmock/request_execution_verifier.rb#4
891
+ def times_executed; end
892
+
893
+ # Sets the attribute times_executed
894
+ #
895
+ # @param value the value to set the attribute times_executed to.
896
+ #
897
+ # source://webmock//lib/webmock/request_execution_verifier.rb#4
898
+ def times_executed=(_arg0); end
899
+
900
+ private
901
+
902
+ # source://webmock//lib/webmock/request_execution_verifier.rb#54
903
+ def failure_message_phrase(is_negated = T.unsafe(nil)); end
904
+
905
+ # source://webmock//lib/webmock/request_execution_verifier.rb#60
906
+ def quantity_phrase(is_negated = T.unsafe(nil)); end
907
+
908
+ # source://webmock//lib/webmock/request_execution_verifier.rb#72
909
+ def times(times); end
910
+
911
+ class << self
912
+ # source://webmock//lib/webmock/request_execution_verifier.rb#48
913
+ def executed_requests_message; end
914
+ end
915
+ end
916
+
917
+ # source://webmock//lib/webmock/request_pattern.rb#13
918
+ class WebMock::RequestPattern
919
+ # @return [RequestPattern] a new instance of RequestPattern
920
+ #
921
+ # source://webmock//lib/webmock/request_pattern.rb#17
922
+ def initialize(method, uri, options = T.unsafe(nil)); end
923
+
924
+ # Returns the value of attribute body_pattern.
925
+ #
926
+ # source://webmock//lib/webmock/request_pattern.rb#15
927
+ def body_pattern; end
928
+
929
+ # Returns the value of attribute headers_pattern.
930
+ #
931
+ # source://webmock//lib/webmock/request_pattern.rb#15
932
+ def headers_pattern; end
933
+
934
+ # @return [Boolean]
935
+ #
936
+ # source://webmock//lib/webmock/request_pattern.rb#33
937
+ def matches?(request_signature); end
938
+
939
+ # Returns the value of attribute method_pattern.
940
+ #
941
+ # source://webmock//lib/webmock/request_pattern.rb#15
942
+ def method_pattern; end
943
+
944
+ # source://webmock//lib/webmock/request_pattern.rb#43
945
+ def to_s; end
946
+
947
+ # Returns the value of attribute uri_pattern.
948
+ #
949
+ # source://webmock//lib/webmock/request_pattern.rb#15
950
+ def uri_pattern; end
951
+
952
+ # @raise [ArgumentError]
953
+ #
954
+ # source://webmock//lib/webmock/request_pattern.rb#26
955
+ def with(options = T.unsafe(nil), &block); end
956
+
957
+ private
958
+
959
+ # source://webmock//lib/webmock/request_pattern.rb#55
960
+ def assign_options(options); end
961
+
962
+ # source://webmock//lib/webmock/request_pattern.rb#78
963
+ def create_uri_pattern(uri); end
964
+
965
+ # source://webmock//lib/webmock/request_pattern.rb#64
966
+ def set_basic_auth_as_headers!(options); end
967
+
968
+ # source://webmock//lib/webmock/request_pattern.rb#72
969
+ def validate_basic_auth!(basic_auth); end
970
+ end
971
+
972
+ # source://webmock//lib/webmock/request_registry.rb#3
973
+ class WebMock::RequestRegistry
974
+ include ::Singleton
975
+ extend ::Singleton::SingletonClassMethods
976
+
977
+ # @return [RequestRegistry] a new instance of RequestRegistry
978
+ #
979
+ # source://webmock//lib/webmock/request_registry.rb#8
980
+ def initialize; end
981
+
982
+ # Returns the value of attribute requested_signatures.
983
+ #
984
+ # source://webmock//lib/webmock/request_registry.rb#6
985
+ def requested_signatures; end
986
+
987
+ # Sets the attribute requested_signatures
988
+ #
989
+ # @param value the value to set the attribute requested_signatures to.
990
+ #
991
+ # source://webmock//lib/webmock/request_registry.rb#6
992
+ def requested_signatures=(_arg0); end
993
+
994
+ # source://webmock//lib/webmock/request_registry.rb#12
995
+ def reset!; end
996
+
997
+ # source://webmock//lib/webmock/request_registry.rb#16
998
+ def times_executed(request_pattern); end
999
+
1000
+ # source://webmock//lib/webmock/request_registry.rb#22
1001
+ def to_s; end
1002
+
1003
+ class << self
1004
+ private
1005
+
1006
+ def allocate; end
1007
+ def new(*_arg0); end
1008
+ end
1009
+ end
1010
+
1011
+ # source://webmock//lib/webmock/request_signature.rb#3
1012
+ class WebMock::RequestSignature
1013
+ # @return [RequestSignature] a new instance of RequestSignature
1014
+ #
1015
+ # source://webmock//lib/webmock/request_signature.rb#8
1016
+ def initialize(method, uri, options = T.unsafe(nil)); end
1017
+
1018
+ # @return [Boolean]
1019
+ #
1020
+ # source://webmock//lib/webmock/request_signature.rb#32
1021
+ def ==(other); end
1022
+
1023
+ # Returns the value of attribute body.
1024
+ #
1025
+ # source://webmock//lib/webmock/request_signature.rb#5
1026
+ def body; end
1027
+
1028
+ # Sets the attribute body
1029
+ #
1030
+ # @param value the value to set the attribute body to.
1031
+ #
1032
+ # source://webmock//lib/webmock/request_signature.rb#5
1033
+ def body=(_arg0); end
1034
+
1035
+ # @return [Boolean]
1036
+ #
1037
+ # source://webmock//lib/webmock/request_signature.rb#32
1038
+ def eql?(other); end
1039
+
1040
+ # source://webmock//lib/webmock/request_signature.rb#28
1041
+ def hash; end
1042
+
1043
+ # Returns the value of attribute headers.
1044
+ #
1045
+ # source://webmock//lib/webmock/request_signature.rb#6
1046
+ def headers; end
1047
+
1048
+ # source://webmock//lib/webmock/request_signature.rb#24
1049
+ def headers=(headers); end
1050
+
1051
+ # @return [Boolean]
1052
+ #
1053
+ # source://webmock//lib/webmock/request_signature.rb#41
1054
+ def json_headers?; end
1055
+
1056
+ # Returns the value of attribute method.
1057
+ #
1058
+ # source://webmock//lib/webmock/request_signature.rb#5
1059
+ def method; end
1060
+
1061
+ # Sets the attribute method
1062
+ #
1063
+ # @param value the value to set the attribute method to.
1064
+ #
1065
+ # source://webmock//lib/webmock/request_signature.rb#5
1066
+ def method=(_arg0); end
1067
+
1068
+ # source://webmock//lib/webmock/request_signature.rb#14
1069
+ def to_s; end
1070
+
1071
+ # Returns the value of attribute uri.
1072
+ #
1073
+ # source://webmock//lib/webmock/request_signature.rb#5
1074
+ def uri; end
1075
+
1076
+ # Sets the attribute uri
1077
+ #
1078
+ # @param value the value to set the attribute uri to.
1079
+ #
1080
+ # source://webmock//lib/webmock/request_signature.rb#5
1081
+ def uri=(_arg0); end
1082
+
1083
+ # @return [Boolean]
1084
+ #
1085
+ # source://webmock//lib/webmock/request_signature.rb#37
1086
+ def url_encoded?; end
1087
+
1088
+ private
1089
+
1090
+ # source://webmock//lib/webmock/request_signature.rb#47
1091
+ def assign_options(options); end
1092
+ end
1093
+
1094
+ # source://webmock//lib/webmock/request_signature_snippet.rb#4
1095
+ class WebMock::RequestSignatureSnippet
1096
+ # @return [RequestSignatureSnippet] a new instance of RequestSignatureSnippet
1097
+ #
1098
+ # source://webmock//lib/webmock/request_signature_snippet.rb#8
1099
+ def initialize(request_signature); end
1100
+
1101
+ # Returns the value of attribute request_signature.
1102
+ #
1103
+ # source://webmock//lib/webmock/request_signature_snippet.rb#6
1104
+ def request_signature; end
1105
+
1106
+ # Returns the value of attribute request_stub.
1107
+ #
1108
+ # source://webmock//lib/webmock/request_signature_snippet.rb#6
1109
+ def request_stub; end
1110
+
1111
+ # source://webmock//lib/webmock/request_signature_snippet.rb#20
1112
+ def request_stubs; end
1113
+
1114
+ # source://webmock//lib/webmock/request_signature_snippet.rb#13
1115
+ def stubbing_instructions; end
1116
+
1117
+ private
1118
+
1119
+ # source://webmock//lib/webmock/request_signature_snippet.rb#33
1120
+ def add_body_diff(stub, text); end
1121
+
1122
+ # source://webmock//lib/webmock/request_signature_snippet.rb#52
1123
+ def pretty_print_to_string(string_to_print); end
1124
+
1125
+ # source://webmock//lib/webmock/request_signature_snippet.rb#43
1126
+ def request_params; end
1127
+
1128
+ # source://webmock//lib/webmock/request_signature_snippet.rb#38
1129
+ def signature_stub_body_diff(stub); end
1130
+ end
1131
+
1132
+ # source://webmock//lib/webmock/request_stub.rb#2
1133
+ class WebMock::RequestStub
1134
+ # @return [RequestStub] a new instance of RequestStub
1135
+ #
1136
+ # source://webmock//lib/webmock/request_stub.rb#6
1137
+ def initialize(method, uri); end
1138
+
1139
+ # source://webmock//lib/webmock/request_stub.rb#46
1140
+ def and_raise(*exceptions); end
1141
+
1142
+ # source://webmock//lib/webmock/request_stub.rb#17
1143
+ def and_return(*response_hashes, &block); end
1144
+
1145
+ # @raise [ArgumentError]
1146
+ #
1147
+ # source://webmock//lib/webmock/request_stub.rb#27
1148
+ def and_return_json(*response_hashes); end
1149
+
1150
+ # source://webmock//lib/webmock/request_stub.rb#54
1151
+ def and_timeout; end
1152
+
1153
+ # @return [Boolean]
1154
+ #
1155
+ # source://webmock//lib/webmock/request_stub.rb#71
1156
+ def has_responses?; end
1157
+
1158
+ # @return [Boolean]
1159
+ #
1160
+ # source://webmock//lib/webmock/request_stub.rb#89
1161
+ def matches?(request_signature); end
1162
+
1163
+ # Returns the value of attribute request_pattern.
1164
+ #
1165
+ # source://webmock//lib/webmock/request_stub.rb#4
1166
+ def request_pattern; end
1167
+
1168
+ # Sets the attribute request_pattern
1169
+ #
1170
+ # @param value the value to set the attribute request_pattern to.
1171
+ #
1172
+ # source://webmock//lib/webmock/request_stub.rb#4
1173
+ def request_pattern=(_arg0); end
1174
+
1175
+ # source://webmock//lib/webmock/request_stub.rb#60
1176
+ def response; end
1177
+
1178
+ # source://webmock//lib/webmock/request_stub.rb#75
1179
+ def then; end
1180
+
1181
+ # source://webmock//lib/webmock/request_stub.rb#79
1182
+ def times(number); end
1183
+
1184
+ # source://webmock//lib/webmock/request_stub.rb#42
1185
+ def to_rack(app, options = T.unsafe(nil)); end
1186
+
1187
+ # source://webmock//lib/webmock/request_stub.rb#46
1188
+ def to_raise(*exceptions); end
1189
+
1190
+ # source://webmock//lib/webmock/request_stub.rb#17
1191
+ def to_return(*response_hashes, &block); end
1192
+
1193
+ # @raise [ArgumentError]
1194
+ #
1195
+ # source://webmock//lib/webmock/request_stub.rb#27
1196
+ def to_return_json(*response_hashes); end
1197
+
1198
+ # source://webmock//lib/webmock/request_stub.rb#93
1199
+ def to_s; end
1200
+
1201
+ # source://webmock//lib/webmock/request_stub.rb#54
1202
+ def to_timeout; end
1203
+
1204
+ # source://webmock//lib/webmock/request_stub.rb#12
1205
+ def with(params = T.unsafe(nil), &block); end
1206
+
1207
+ class << self
1208
+ # source://webmock//lib/webmock/request_stub.rb#97
1209
+ def from_request_signature(signature); end
1210
+ end
1211
+ end
1212
+
1213
+ # source://webmock//lib/webmock/response.rb#15
1214
+ class WebMock::Response
1215
+ # @return [Response] a new instance of Response
1216
+ #
1217
+ # source://webmock//lib/webmock/response.rb#16
1218
+ def initialize(options = T.unsafe(nil)); end
1219
+
1220
+ # source://webmock//lib/webmock/response.rb#95
1221
+ def ==(other); end
1222
+
1223
+ # source://webmock//lib/webmock/response.rb#38
1224
+ def body; end
1225
+
1226
+ # source://webmock//lib/webmock/response.rb#42
1227
+ def body=(body); end
1228
+
1229
+ # source://webmock//lib/webmock/response.rb#86
1230
+ def evaluate(request_signature); end
1231
+
1232
+ # source://webmock//lib/webmock/response.rb#56
1233
+ def exception; end
1234
+
1235
+ # source://webmock//lib/webmock/response.rb#60
1236
+ def exception=(exception); end
1237
+
1238
+ # source://webmock//lib/webmock/response.rb#27
1239
+ def headers; end
1240
+
1241
+ # source://webmock//lib/webmock/response.rb#31
1242
+ def headers=(headers); end
1243
+
1244
+ # source://webmock//lib/webmock/response.rb#76
1245
+ def options=(options); end
1246
+
1247
+ # @raise [@exception]
1248
+ #
1249
+ # source://webmock//lib/webmock/response.rb#68
1250
+ def raise_error_if_any; end
1251
+
1252
+ # source://webmock//lib/webmock/response.rb#72
1253
+ def should_timeout; end
1254
+
1255
+ # source://webmock//lib/webmock/response.rb#48
1256
+ def status; end
1257
+
1258
+ # source://webmock//lib/webmock/response.rb#52
1259
+ def status=(status); end
1260
+
1261
+ private
1262
+
1263
+ # source://webmock//lib/webmock/response.rb#113
1264
+ def assert_valid_body!; end
1265
+
1266
+ # source://webmock//lib/webmock/response.rb#126
1267
+ def read_raw_response(io); end
1268
+
1269
+ # source://webmock//lib/webmock/response.rb#105
1270
+ def stringify_body!; end
1271
+ end
1272
+
1273
+ # source://webmock//lib/webmock/response.rb#143
1274
+ class WebMock::Response::InvalidBody < ::StandardError; end
1275
+
1276
+ # source://webmock//lib/webmock/response.rb#5
1277
+ class WebMock::ResponseFactory
1278
+ class << self
1279
+ # source://webmock//lib/webmock/response.rb#6
1280
+ def response_for(options); end
1281
+ end
1282
+ end
1283
+
1284
+ # source://webmock//lib/webmock/responses_sequence.rb#3
1285
+ class WebMock::ResponsesSequence
1286
+ # @return [ResponsesSequence] a new instance of ResponsesSequence
1287
+ #
1288
+ # source://webmock//lib/webmock/responses_sequence.rb#7
1289
+ def initialize(responses); end
1290
+
1291
+ # @return [Boolean]
1292
+ #
1293
+ # source://webmock//lib/webmock/responses_sequence.rb#13
1294
+ def end?; end
1295
+
1296
+ # source://webmock//lib/webmock/responses_sequence.rb#17
1297
+ def next_response; end
1298
+
1299
+ # Returns the value of attribute times_to_repeat.
1300
+ #
1301
+ # source://webmock//lib/webmock/responses_sequence.rb#5
1302
+ def times_to_repeat; end
1303
+
1304
+ # Sets the attribute times_to_repeat
1305
+ #
1306
+ # @param value the value to set the attribute times_to_repeat to.
1307
+ #
1308
+ # source://webmock//lib/webmock/responses_sequence.rb#5
1309
+ def times_to_repeat=(_arg0); end
1310
+
1311
+ private
1312
+
1313
+ # source://webmock//lib/webmock/responses_sequence.rb#29
1314
+ def increase_position; end
1315
+ end
1316
+
1317
+ # source://webmock//lib/webmock/stub_registry.rb#3
1318
+ class WebMock::StubRegistry
1319
+ include ::Singleton
1320
+ extend ::Singleton::SingletonClassMethods
1321
+
1322
+ # @return [StubRegistry] a new instance of StubRegistry
1323
+ #
1324
+ # source://webmock//lib/webmock/stub_registry.rb#8
1325
+ def initialize; end
1326
+
1327
+ # source://webmock//lib/webmock/stub_registry.rb#12
1328
+ def global_stubs; end
1329
+
1330
+ # source://webmock//lib/webmock/stub_registry.rb#20
1331
+ def register_global_stub(order = T.unsafe(nil), &block); end
1332
+
1333
+ # source://webmock//lib/webmock/stub_registry.rb#48
1334
+ def register_request_stub(stub); end
1335
+
1336
+ # @return [Boolean]
1337
+ #
1338
+ # source://webmock//lib/webmock/stub_registry.rb#59
1339
+ def registered_request?(request_signature); end
1340
+
1341
+ # source://webmock//lib/webmock/stub_registry.rb#53
1342
+ def remove_request_stub(stub); end
1343
+
1344
+ # Returns the value of attribute request_stubs.
1345
+ #
1346
+ # source://webmock//lib/webmock/stub_registry.rb#6
1347
+ def request_stubs; end
1348
+
1349
+ # Sets the attribute request_stubs
1350
+ #
1351
+ # @param value the value to set the attribute request_stubs to.
1352
+ #
1353
+ # source://webmock//lib/webmock/stub_registry.rb#6
1354
+ def request_stubs=(_arg0); end
1355
+
1356
+ # source://webmock//lib/webmock/stub_registry.rb#16
1357
+ def reset!; end
1358
+
1359
+ # source://webmock//lib/webmock/stub_registry.rb#63
1360
+ def response_for_request(request_signature); end
1361
+
1362
+ private
1363
+
1364
+ # source://webmock//lib/webmock/stub_registry.rb#77
1365
+ def evaluate_response_for_request(response, request_signature); end
1366
+
1367
+ # source://webmock//lib/webmock/stub_registry.rb#70
1368
+ def request_stub_for(request_signature); end
1369
+
1370
+ class << self
1371
+ private
1372
+
1373
+ def allocate; end
1374
+ def new(*_arg0); end
1375
+ end
1376
+ end
1377
+
1378
+ # source://webmock//lib/webmock/stub_request_snippet.rb#2
1379
+ class WebMock::StubRequestSnippet
1380
+ # @return [StubRequestSnippet] a new instance of StubRequestSnippet
1381
+ #
1382
+ # source://webmock//lib/webmock/stub_request_snippet.rb#3
1383
+ def initialize(request_stub); end
1384
+
1385
+ # source://webmock//lib/webmock/stub_request_snippet.rb#7
1386
+ def body_pattern; end
1387
+
1388
+ # source://webmock//lib/webmock/stub_request_snippet.rb#11
1389
+ def to_s(with_response = T.unsafe(nil)); end
1390
+ end
1391
+
1392
+ # source://webmock//lib/webmock/request_pattern.rb#175
1393
+ class WebMock::URIAddressablePattern < ::WebMock::URIPattern
1394
+ # source://webmock//lib/webmock/request_pattern.rb#176
1395
+ def add_query_params(query_params); end
1396
+
1397
+ private
1398
+
1399
+ # @return [Boolean]
1400
+ #
1401
+ # source://webmock//lib/webmock/request_pattern.rb#201
1402
+ def matches_with_variations?(uri); end
1403
+
1404
+ # source://webmock//lib/webmock/request_pattern.rb#197
1405
+ def pattern_inspect; end
1406
+
1407
+ # @return [Boolean]
1408
+ #
1409
+ # source://webmock//lib/webmock/request_pattern.rb#187
1410
+ def pattern_matches?(uri); end
1411
+
1412
+ # @return [Boolean]
1413
+ #
1414
+ # source://webmock//lib/webmock/request_pattern.rb#213
1415
+ def template_matches_uri?(template, uri); end
1416
+ end
1417
+
1418
+ # source://webmock//lib/webmock/request_pattern.rb#159
1419
+ class WebMock::URICallablePattern < ::WebMock::URIPattern
1420
+ private
1421
+
1422
+ # @return [Boolean]
1423
+ #
1424
+ # source://webmock//lib/webmock/request_pattern.rb#162
1425
+ def pattern_matches?(uri); end
1426
+ end
1427
+
1428
+ # source://webmock//lib/webmock/request_pattern.rb#108
1429
+ class WebMock::URIPattern
1430
+ include ::WebMock::RSpecMatcherDetector
1431
+
1432
+ # @return [URIPattern] a new instance of URIPattern
1433
+ #
1434
+ # source://webmock//lib/webmock/request_pattern.rb#111
1435
+ def initialize(pattern); end
1436
+
1437
+ # source://webmock//lib/webmock/request_pattern.rb#123
1438
+ def add_query_params(query_params); end
1439
+
1440
+ # @return [Boolean]
1441
+ #
1442
+ # source://webmock//lib/webmock/request_pattern.rb#138
1443
+ def matches?(uri); end
1444
+
1445
+ # source://webmock//lib/webmock/request_pattern.rb#142
1446
+ def to_s; end
1447
+
1448
+ private
1449
+
1450
+ # source://webmock//lib/webmock/request_pattern.rb#150
1451
+ def pattern_inspect; end
1452
+
1453
+ # @return [Boolean]
1454
+ #
1455
+ # source://webmock//lib/webmock/request_pattern.rb#154
1456
+ def query_params_matches?(uri); end
1457
+ end
1458
+
1459
+ # source://webmock//lib/webmock/request_pattern.rb#167
1460
+ class WebMock::URIRegexpPattern < ::WebMock::URIPattern
1461
+ private
1462
+
1463
+ # @return [Boolean]
1464
+ #
1465
+ # source://webmock//lib/webmock/request_pattern.rb#170
1466
+ def pattern_matches?(uri); end
1467
+ end
1468
+
1469
+ # source://webmock//lib/webmock/request_pattern.rb#220
1470
+ class WebMock::URIStringPattern < ::WebMock::URIPattern
1471
+ # source://webmock//lib/webmock/request_pattern.rb#221
1472
+ def add_query_params(query_params); end
1473
+
1474
+ private
1475
+
1476
+ # source://webmock//lib/webmock/request_pattern.rb#244
1477
+ def pattern_inspect; end
1478
+
1479
+ # @return [Boolean]
1480
+ #
1481
+ # source://webmock//lib/webmock/request_pattern.rb#232
1482
+ def pattern_matches?(uri); end
1483
+ end
1484
+
1485
+ # source://webmock//lib/webmock/util/query_mapper.rb#1
1486
+ module WebMock::Util; end
1487
+
1488
+ # source://webmock//lib/webmock/util/hash_counter.rb#5
1489
+ class WebMock::Util::HashCounter
1490
+ # @return [HashCounter] a new instance of HashCounter
1491
+ #
1492
+ # source://webmock//lib/webmock/util/hash_counter.rb#7
1493
+ def initialize; end
1494
+
1495
+ # source://webmock//lib/webmock/util/hash_counter.rb#32
1496
+ def each(&block); end
1497
+
1498
+ # source://webmock//lib/webmock/util/hash_counter.rb#19
1499
+ def get(key); end
1500
+
1501
+ # Returns the value of attribute hash.
1502
+ #
1503
+ # source://webmock//lib/webmock/util/hash_counter.rb#6
1504
+ def hash; end
1505
+
1506
+ # Sets the attribute hash
1507
+ #
1508
+ # @param value the value to set the attribute hash to.
1509
+ #
1510
+ # source://webmock//lib/webmock/util/hash_counter.rb#6
1511
+ def hash=(_arg0); end
1512
+
1513
+ # source://webmock//lib/webmock/util/hash_counter.rb#13
1514
+ def put(key, num = T.unsafe(nil)); end
1515
+
1516
+ # source://webmock//lib/webmock/util/hash_counter.rb#25
1517
+ def select(&block); end
1518
+ end
1519
+
1520
+ # source://webmock//lib/webmock/util/hash_keys_stringifier.rb#3
1521
+ class WebMock::Util::HashKeysStringifier
1522
+ class << self
1523
+ # source://webmock//lib/webmock/util/hash_keys_stringifier.rb#5
1524
+ def stringify_keys!(arg, options = T.unsafe(nil)); end
1525
+ end
1526
+ end
1527
+
1528
+ # source://webmock//lib/webmock/util/headers.rb#7
1529
+ class WebMock::Util::Headers
1530
+ class << self
1531
+ # source://webmock//lib/webmock/util/headers.rb#56
1532
+ def basic_auth_header(*credentials); end
1533
+
1534
+ # source://webmock//lib/webmock/util/headers.rb#52
1535
+ def decode_userinfo_from_header(header); end
1536
+
1537
+ # source://webmock//lib/webmock/util/headers.rb#9
1538
+ def normalize_headers(headers); end
1539
+
1540
+ # source://webmock//lib/webmock/util/headers.rb#37
1541
+ def pp_headers_string(headers); end
1542
+
1543
+ # source://webmock//lib/webmock/util/headers.rb#23
1544
+ def sorted_headers_string(headers); end
1545
+ end
1546
+ end
1547
+
1548
+ # source://webmock//lib/webmock/util/json.rb#10
1549
+ class WebMock::Util::JSON
1550
+ class << self
1551
+ # Ensure that ":" and "," are always followed by a space
1552
+ #
1553
+ # source://webmock//lib/webmock/util/json.rb#26
1554
+ def convert_json_to_yaml(json); end
1555
+
1556
+ # source://webmock//lib/webmock/util/json.rb#13
1557
+ def parse(json); end
1558
+
1559
+ # source://webmock//lib/webmock/util/json.rb#21
1560
+ def unescape(str); end
1561
+ end
1562
+ end
1563
+
1564
+ # source://webmock//lib/webmock/util/json.rb#11
1565
+ class WebMock::Util::JSON::ParseError < ::StandardError; end
1566
+
1567
+ # source://webmock//lib/webmock/util/query_mapper.rb#2
1568
+ class WebMock::Util::QueryMapper
1569
+ class << self
1570
+ # source://webmock//lib/webmock/util/query_mapper.rb#79
1571
+ def collect_query_hash(query_array, empty_accumulator, options); end
1572
+
1573
+ # source://webmock//lib/webmock/util/query_mapper.rb#72
1574
+ def collect_query_parts(query); end
1575
+
1576
+ # source://webmock//lib/webmock/util/query_mapper.rb#219
1577
+ def dehash(hash); end
1578
+
1579
+ # source://webmock//lib/webmock/util/query_mapper.rb#104
1580
+ def fill_accumulator_for_dot(accumulator, key, value); end
1581
+
1582
+ # source://webmock//lib/webmock/util/query_mapper.rb#93
1583
+ def fill_accumulator_for_flat(accumulator, key, value); end
1584
+
1585
+ # source://webmock//lib/webmock/util/query_mapper.rb#100
1586
+ def fill_accumulator_for_flat_array(accumulator, key, value); end
1587
+
1588
+ # source://webmock//lib/webmock/util/query_mapper.rb#123
1589
+ def fill_accumulator_for_subscript(accumulator, key, value); end
1590
+
1591
+ # source://webmock//lib/webmock/util/query_mapper.rb#61
1592
+ def normalize_query_hash(query_hash, empty_accumulator, options); end
1593
+
1594
+ # Converts the query component to a Hash value.
1595
+ #
1596
+ # @example
1597
+ # WebMock::Util::QueryMapper.query_to_values("?one=1&two=2&three=3")
1598
+ # #=> {"one" => "1", "two" => "2", "three" => "3"}
1599
+ # WebMock::Util::QueryMapper("?one[two][three]=four").query_values
1600
+ # #=> {"one" => {"two" => {"three" => "four"}}}
1601
+ # WebMock::Util::QueryMapper.query_to_values("?one.two.three=four",
1602
+ # :notation => :dot
1603
+ # )
1604
+ # #=> {"one" => {"two" => {"three" => "four"}}}
1605
+ # WebMock::Util::QueryMapper.query_to_values("?one[two][three]=four",
1606
+ # :notation => :flat
1607
+ # )
1608
+ # #=> {"one[two][three]" => "four"}
1609
+ # WebMock::Util::QueryMapper.query_to_values("?one.two.three=four",
1610
+ # :notation => :flat
1611
+ # )
1612
+ # #=> {"one.two.three" => "four"}
1613
+ # WebMock::Util::QueryMapper(
1614
+ # "?one[two][three][]=four&one[two][three][]=five"
1615
+ # )
1616
+ # #=> {"one" => {"two" => {"three" => ["four", "five"]}}}
1617
+ # WebMock::Util::QueryMapper.query_to_values(
1618
+ # "?one=two&one=three").query_values(:notation => :flat_array)
1619
+ # #=> [['one', 'two'], ['one', 'three']]
1620
+ # @option [Symbol]
1621
+ # @param [Symbol] [Hash] a customizable set of options
1622
+ # @return [Hash, Array] The query string parsed as a Hash or Array object.
1623
+ #
1624
+ # source://webmock//lib/webmock/util/query_mapper.rb#40
1625
+ def query_to_values(query, options = T.unsafe(nil)); end
1626
+
1627
+ # new_query_values have form [['key1', 'value1'], ['key2', 'value2']]
1628
+ #
1629
+ # source://webmock//lib/webmock/util/query_mapper.rb#245
1630
+ def to_query(parent, value, options = T.unsafe(nil)); end
1631
+
1632
+ # Sets the query component for this URI from a Hash object.
1633
+ # This method produces a query string using the :subscript notation.
1634
+ # An empty Hash will result in a nil query.
1635
+ #
1636
+ # @param new_query_values [Hash, #to_hash, Array] The new query values.
1637
+ #
1638
+ # source://webmock//lib/webmock/util/query_mapper.rb#177
1639
+ def values_to_query(new_query_values, options = T.unsafe(nil)); end
1640
+ end
1641
+ end
1642
+
1643
+ # source://webmock//lib/webmock/util/uri.rb#5
1644
+ class WebMock::Util::URI
1645
+ class << self
1646
+ # source://webmock//lib/webmock/util/uri.rb#65
1647
+ def encode_unsafe_chars_in_userinfo(userinfo); end
1648
+
1649
+ # source://webmock//lib/webmock/util/uri.rb#26
1650
+ def heuristic_parse(uri); end
1651
+
1652
+ # @return [Boolean]
1653
+ #
1654
+ # source://webmock//lib/webmock/util/uri.rb#69
1655
+ def is_uri_localhost?(uri); end
1656
+
1657
+ # source://webmock//lib/webmock/util/uri.rb#30
1658
+ def normalize_uri(uri); end
1659
+
1660
+ # source://webmock//lib/webmock/util/uri.rb#76
1661
+ def sort_query_values(query_values); end
1662
+
1663
+ # source://webmock//lib/webmock/util/uri.rb#57
1664
+ def strip_default_port_from_uri_string(uri_string); end
1665
+
1666
+ # source://webmock//lib/webmock/util/uri.rb#87
1667
+ def uris_encoded_and_unencoded(uris); end
1668
+
1669
+ # source://webmock//lib/webmock/util/uri.rb#81
1670
+ def uris_with_inferred_port_and_without(uris); end
1671
+
1672
+ # source://webmock//lib/webmock/util/uri.rb#96
1673
+ def uris_with_scheme_and_without(uris); end
1674
+
1675
+ # source://webmock//lib/webmock/util/uri.rb#102
1676
+ def uris_with_trailing_slash_and_without(uris); end
1677
+
1678
+ # source://webmock//lib/webmock/util/uri.rb#36
1679
+ def variations_of_uri_as_strings(uri_object, only_with_scheme: T.unsafe(nil)); end
1680
+ end
1681
+ end
1682
+
1683
+ # source://webmock//lib/webmock/util/uri.rb#10
1684
+ WebMock::Util::URI::ADDRESSABLE_URIS = T.let(T.unsafe(nil), Hash)
1685
+
1686
+ # source://webmock//lib/webmock/util/uri.rb#6
1687
+ module WebMock::Util::URI::CharacterClasses; end
1688
+
1689
+ # source://webmock//lib/webmock/util/uri.rb#7
1690
+ WebMock::Util::URI::CharacterClasses::USERINFO = T.let(T.unsafe(nil), String)
1691
+
1692
+ # source://webmock//lib/webmock/util/uri.rb#14
1693
+ WebMock::Util::URI::NORMALIZED_URIS = T.let(T.unsafe(nil), Hash)
1694
+
1695
+ # source://webmock//lib/webmock/util/values_stringifier.rb#1
1696
+ class WebMock::Util::ValuesStringifier
1697
+ class << self
1698
+ # source://webmock//lib/webmock/util/values_stringifier.rb#2
1699
+ def stringify_values(value); end
1700
+ end
1701
+ end
1702
+
1703
+ # source://webmock//lib/webmock/version.rb#2
1704
+ WebMock::VERSION = T.let(T.unsafe(nil), String)
1705
+
1706
+ # source://webmock//lib/webmock/util/version_checker.rb#26
1707
+ class WebMock::VersionChecker
1708
+ # @return [VersionChecker] a new instance of VersionChecker
1709
+ #
1710
+ # source://webmock//lib/webmock/util/version_checker.rb#27
1711
+ def initialize(library_name, library_version, min_patch_level, max_minor_version = T.unsafe(nil), unsupported_versions = T.unsafe(nil)); end
1712
+
1713
+ # source://webmock//lib/webmock/util/version_checker.rb#43
1714
+ def check_version!; end
1715
+
1716
+ private
1717
+
1718
+ # source://webmock//lib/webmock/util/version_checker.rb#107
1719
+ def colorize(text, color_code); end
1720
+
1721
+ # source://webmock//lib/webmock/util/version_checker.rb#84
1722
+ def compare_version; end
1723
+
1724
+ # source://webmock//lib/webmock/util/version_checker.rb#103
1725
+ def parse_version(version); end
1726
+
1727
+ # @return [Boolean]
1728
+ #
1729
+ # source://webmock//lib/webmock/util/version_checker.rb#55
1730
+ def too_high?; end
1731
+
1732
+ # @return [Boolean]
1733
+ #
1734
+ # source://webmock//lib/webmock/util/version_checker.rb#51
1735
+ def too_low?; end
1736
+
1737
+ # @return [Boolean]
1738
+ #
1739
+ # source://webmock//lib/webmock/util/version_checker.rb#59
1740
+ def unsupported_version?; end
1741
+
1742
+ # source://webmock//lib/webmock/util/version_checker.rb#96
1743
+ def version_requirement; end
1744
+
1745
+ # source://webmock//lib/webmock/util/version_checker.rb#68
1746
+ def warn_about_too_high; end
1747
+
1748
+ # source://webmock//lib/webmock/util/version_checker.rb#63
1749
+ def warn_about_too_low; end
1750
+
1751
+ # source://webmock//lib/webmock/util/version_checker.rb#74
1752
+ def warn_about_unsupported_version; end
1753
+
1754
+ # source://webmock//lib/webmock/util/version_checker.rb#80
1755
+ def warn_in_red(text); end
1756
+ end