lunchmoney 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. checksums.yaml +7 -0
  2. data/.DS_Store +0 -0
  3. data/.github/dependabot.yml +18 -0
  4. data/.github/workflows/build_and_publish_yard_docs.yml +47 -0
  5. data/.github/workflows/ci.yml +58 -0
  6. data/.github/workflows/dependabot-rbi-updater.yml +43 -0
  7. data/.github/workflows/publish_gem.yml +31 -0
  8. data/.gitignore +62 -0
  9. data/.rubocop.yml +45 -0
  10. data/.ruby-version +1 -0
  11. data/.toys/.toys.rb +10 -0
  12. data/.toys/ci.rb +22 -0
  13. data/.toys/rbi.rb +60 -0
  14. data/.toys/rubocop.rb +10 -0
  15. data/.toys/spoom.rb +15 -0
  16. data/.toys/typecheck.rb +5 -0
  17. data/.yardopts +2 -0
  18. data/Appraisals +22 -0
  19. data/Gemfile +25 -0
  20. data/Gemfile.lock +174 -0
  21. data/LICENSE +21 -0
  22. data/README.md +57 -0
  23. data/bin/console +16 -0
  24. data/bin/rubocop +27 -0
  25. data/bin/setup +8 -0
  26. data/bin/spoom +27 -0
  27. data/bin/srb +27 -0
  28. data/bin/tapioca +27 -0
  29. data/bin/toys +27 -0
  30. data/bin/yard +27 -0
  31. data/lib/lunchmoney/api.rb +147 -0
  32. data/lib/lunchmoney/api_call.rb +109 -0
  33. data/lib/lunchmoney/assets/asset.rb +89 -0
  34. data/lib/lunchmoney/assets/asset_calls.rb +96 -0
  35. data/lib/lunchmoney/budget/budget.rb +74 -0
  36. data/lib/lunchmoney/budget/budget_calls.rb +82 -0
  37. data/lib/lunchmoney/budget/config.rb +38 -0
  38. data/lib/lunchmoney/budget/data.rb +42 -0
  39. data/lib/lunchmoney/categories/category/category.rb +52 -0
  40. data/lib/lunchmoney/categories/category/child_category.rb +42 -0
  41. data/lib/lunchmoney/categories/category_calls.rb +195 -0
  42. data/lib/lunchmoney/configuration.rb +26 -0
  43. data/lib/lunchmoney/crypto/crypto/crypto.rb +43 -0
  44. data/lib/lunchmoney/crypto/crypto/crypto_base.rb +65 -0
  45. data/lib/lunchmoney/crypto/crypto_calls.rb +49 -0
  46. data/lib/lunchmoney/data_object.rb +25 -0
  47. data/lib/lunchmoney/errors.rb +19 -0
  48. data/lib/lunchmoney/exceptions.rb +19 -0
  49. data/lib/lunchmoney/plaid_accounts/plaid_account.rb +73 -0
  50. data/lib/lunchmoney/plaid_accounts/plaid_account_calls.rb +38 -0
  51. data/lib/lunchmoney/recurring_expenses/recurring_expense/recurring_expense.rb +65 -0
  52. data/lib/lunchmoney/recurring_expenses/recurring_expense/recurring_expense_base.rb +29 -0
  53. data/lib/lunchmoney/recurring_expenses/recurring_expense_calls.rb +28 -0
  54. data/lib/lunchmoney/tags/tag/tag.rb +20 -0
  55. data/lib/lunchmoney/tags/tag/tag_base.rb +21 -0
  56. data/lib/lunchmoney/tags/tag_calls.rb +20 -0
  57. data/lib/lunchmoney/transactions/transaction/child_transaction.rb +31 -0
  58. data/lib/lunchmoney/transactions/transaction/split.rb +24 -0
  59. data/lib/lunchmoney/transactions/transaction/transaction.rb +156 -0
  60. data/lib/lunchmoney/transactions/transaction/transaction_base.rb +52 -0
  61. data/lib/lunchmoney/transactions/transaction/transaction_modification_base.rb +30 -0
  62. data/lib/lunchmoney/transactions/transaction/update_transaction.rb +43 -0
  63. data/lib/lunchmoney/transactions/transaction_calls.rb +218 -0
  64. data/lib/lunchmoney/user/user.rb +36 -0
  65. data/lib/lunchmoney/user/user_calls.rb +19 -0
  66. data/lib/lunchmoney/validators.rb +43 -0
  67. data/lib/lunchmoney/version.rb +7 -0
  68. data/lib/lunchmoney.rb +54 -0
  69. data/lunchmoney.gemspec +34 -0
  70. data/sorbet/config +5 -0
  71. data/sorbet/rbi/annotations/.gitattributes +1 -0
  72. data/sorbet/rbi/annotations/activesupport.rbi +410 -0
  73. data/sorbet/rbi/annotations/faraday.rbi +17 -0
  74. data/sorbet/rbi/annotations/mocha.rbi +34 -0
  75. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  76. data/sorbet/rbi/annotations/webmock.rbi +9 -0
  77. data/sorbet/rbi/dsl/.gitattributes +1 -0
  78. data/sorbet/rbi/dsl/active_support/callbacks.rbi +22 -0
  79. data/sorbet/rbi/gems/.gitattributes +1 -0
  80. data/sorbet/rbi/gems/activesupport@7.1.3.rbi +18004 -0
  81. data/sorbet/rbi/gems/addressable@2.8.6.rbi +1993 -0
  82. data/sorbet/rbi/gems/appraisal@2.5.0.rbi +621 -0
  83. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  84. data/sorbet/rbi/gems/base64@0.2.0.rbi +508 -0
  85. data/sorbet/rbi/gems/bigdecimal@3.1.6.rbi +77 -0
  86. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3426 -0
  87. data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +11590 -0
  88. data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +8 -0
  89. data/sorbet/rbi/gems/crack@0.4.5.rbi +144 -0
  90. data/sorbet/rbi/gems/dotenv@2.8.1.rbi +234 -0
  91. data/sorbet/rbi/gems/drb@2.2.0.rbi +1346 -0
  92. data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
  93. data/sorbet/rbi/gems/faraday-net_http@3.1.0.rbi +146 -0
  94. data/sorbet/rbi/gems/faraday@2.9.0.rbi +2911 -0
  95. data/sorbet/rbi/gems/hashdiff@1.1.0.rbi +352 -0
  96. data/sorbet/rbi/gems/i18n@1.14.1.rbi +2325 -0
  97. data/sorbet/rbi/gems/json@2.7.1.rbi +1561 -0
  98. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
  99. data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
  100. data/sorbet/rbi/gems/minitest@5.21.2.rbi +2197 -0
  101. data/sorbet/rbi/gems/mocha@2.1.0.rbi +3934 -0
  102. data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +93 -0
  103. data/sorbet/rbi/gems/net-http@0.4.1.rbi +4068 -0
  104. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  105. data/sorbet/rbi/gems/parallel@1.24.0.rbi +280 -0
  106. data/sorbet/rbi/gems/parser@3.3.0.5.rbi +5472 -0
  107. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
  108. data/sorbet/rbi/gems/prism@0.19.0.rbi +29883 -0
  109. data/sorbet/rbi/gems/pry-sorbet@0.2.1.rbi +966 -0
  110. data/sorbet/rbi/gems/pry@0.14.2.rbi +10077 -0
  111. data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +935 -0
  112. data/sorbet/rbi/gems/racc@1.7.3.rbi +161 -0
  113. data/sorbet/rbi/gems/rack@3.0.8.rbi +5183 -0
  114. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
  115. data/sorbet/rbi/gems/rake@13.1.0.rbi +3027 -0
  116. data/sorbet/rbi/gems/rbi@0.1.6.rbi +2922 -0
  117. data/sorbet/rbi/gems/regexp_parser@2.9.0.rbi +3771 -0
  118. data/sorbet/rbi/gems/rexml@3.2.6.rbi +4781 -0
  119. data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7117 -0
  120. data/sorbet/rbi/gems/rubocop-minitest@0.34.5.rbi +2576 -0
  121. data/sorbet/rbi/gems/rubocop-rails@2.23.1.rbi +9175 -0
  122. data/sorbet/rbi/gems/rubocop-shopify@2.14.0.rbi +8 -0
  123. data/sorbet/rbi/gems/rubocop-sorbet@0.7.6.rbi +1510 -0
  124. data/sorbet/rbi/gems/rubocop@1.60.1.rbi +57356 -0
  125. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
  126. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
  127. data/sorbet/rbi/gems/spoom@1.2.4.rbi +3777 -0
  128. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23136 -0
  129. data/sorbet/rbi/gems/tapioca@0.12.0.rbi +3506 -0
  130. data/sorbet/rbi/gems/thor@1.3.0.rbi +4312 -0
  131. data/sorbet/rbi/gems/toys-core@0.15.4.rbi +9462 -0
  132. data/sorbet/rbi/gems/toys@0.15.4.rbi +243 -0
  133. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5917 -0
  134. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +65 -0
  135. data/sorbet/rbi/gems/uri@0.13.0.rbi +2327 -0
  136. data/sorbet/rbi/gems/vcr@6.2.0.rbi +3036 -0
  137. data/sorbet/rbi/gems/webmock@3.19.1.rbi +1768 -0
  138. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
  139. data/sorbet/rbi/gems/yard@0.9.34.rbi +18084 -0
  140. data/sorbet/shims/module.rbi +6 -0
  141. data/sorbet/tapioca/require.rb +10 -0
  142. metadata +228 -0
@@ -0,0 +1,1768 @@
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#18
8
+ module Net::WebMockHTTPResponse
9
+ # source://webmock//lib/webmock/http_lib_adapters/net_http_response.rb#19
10
+ def read_body(dest = T.unsafe(nil), &block); end
11
+ end
12
+
13
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#208
14
+ class StubSocket
15
+ # @return [StubSocket] a new instance of StubSocket
16
+ #
17
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#212
18
+ def initialize(*args); end
19
+
20
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#220
21
+ def close; end
22
+
23
+ # @return [Boolean]
24
+ #
25
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#216
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#210
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#210
38
+ def continue_timeout=(_arg0); end
39
+
40
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#228
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#210
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#210
53
+ def read_timeout=(_arg0); end
54
+
55
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#225
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#210
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#210
68
+ def write_timeout=(_arg0); end
69
+ end
70
+
71
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#232
72
+ class StubSocket::StubIO
73
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#237
74
+ def cipher; end
75
+
76
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#234
77
+ def peer_cert; end
78
+
79
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#235
80
+ def peeraddr; end
81
+
82
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#233
83
+ def setsockopt(*args); end
84
+
85
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#236
86
+ def ssl_version; end
87
+ end
88
+
89
+ # source://webmock//lib/webmock/deprecation.rb#3
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#143
104
+ def after_request(options = T.unsafe(nil), &block); end
105
+
106
+ # source://webmock//lib/webmock/webmock.rb#46
107
+ def allow_net_connect!(options = T.unsafe(nil)); end
108
+
109
+ # source://webmock//lib/webmock/webmock.rb#30
110
+ def disable!(options = T.unsafe(nil)); end
111
+
112
+ # source://webmock//lib/webmock/webmock.rb#51
113
+ def disable_net_connect!(options = T.unsafe(nil)); end
114
+
115
+ # source://webmock//lib/webmock/webmock.rb#51
116
+ def disallow_net_connect!(options = T.unsafe(nil)); end
117
+
118
+ # source://webmock//lib/webmock/webmock.rb#38
119
+ def enable!(options = T.unsafe(nil)); end
120
+
121
+ # source://webmock//lib/webmock/webmock.rb#46
122
+ def enable_net_connect!(options = T.unsafe(nil)); end
123
+
124
+ # source://webmock//lib/webmock/webmock.rb#155
125
+ def globally_stub_request(order = T.unsafe(nil), &block); end
126
+
127
+ # source://webmock//lib/webmock/webmock.rb#109
128
+ def hide_body_diff!; end
129
+
130
+ # source://webmock//lib/webmock/webmock.rb#117
131
+ def hide_stubbing_instructions!; end
132
+
133
+ # @private
134
+ #
135
+ # source://webmock//lib/webmock/webmock.rb#5
136
+ def included(clazz); end
137
+
138
+ # @return [Boolean]
139
+ #
140
+ # source://webmock//lib/webmock/webmock.rb#63
141
+ def net_connect_allowed?(uri = T.unsafe(nil)); end
142
+
143
+ # @return [Boolean]
144
+ #
145
+ # source://webmock//lib/webmock/webmock.rb#85
146
+ def net_connect_explicit_allowed?(allowed, uri = T.unsafe(nil)); end
147
+
148
+ # @return [Boolean]
149
+ #
150
+ # source://webmock//lib/webmock/webmock.rb#75
151
+ def net_http_connect_on_start?(uri); end
152
+
153
+ # source://webmock//lib/webmock/webmock.rb#151
154
+ def print_executed_requests; end
155
+
156
+ # @return [Boolean]
157
+ #
158
+ # source://webmock//lib/webmock/webmock.rb#147
159
+ def registered_request?(request_signature); end
160
+
161
+ # source://webmock//lib/webmock/api.rb#14
162
+ def request(method, uri); end
163
+
164
+ # source://webmock//lib/webmock/webmock.rb#129
165
+ def reset!; end
166
+
167
+ # source://webmock//lib/webmock/webmock.rb#139
168
+ def reset_callbacks; end
169
+
170
+ # source://webmock//lib/webmock/webmock.rb#134
171
+ def reset_webmock; end
172
+
173
+ # source://webmock//lib/webmock/webmock.rb#105
174
+ def show_body_diff!; end
175
+
176
+ # @return [Boolean]
177
+ #
178
+ # source://webmock//lib/webmock/webmock.rb#113
179
+ def show_body_diff?; end
180
+
181
+ # source://webmock//lib/webmock/webmock.rb#121
182
+ def show_stubbing_instructions!; end
183
+
184
+ # @return [Boolean]
185
+ #
186
+ # source://webmock//lib/webmock/webmock.rb#125
187
+ def show_stubbing_instructions?; end
188
+
189
+ # source://webmock//lib/webmock/webmock.rb#26
190
+ def version; end
191
+ end
192
+ end
193
+
194
+ # source://webmock//lib/webmock/api.rb#4
195
+ module WebMock::API
196
+ extend ::WebMock::API
197
+
198
+ # source://webmock//lib/webmock/api.rb#14
199
+ def a_request(method, uri); end
200
+
201
+ # source://webmock//lib/webmock/api.rb#31
202
+ def assert_not_requested(*args, &block); end
203
+
204
+ # source://webmock//lib/webmock/api.rb#22
205
+ def assert_requested(*args, &block); end
206
+
207
+ # source://webmock//lib/webmock/api.rb#59
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#51
222
+ def hash_including(*args); end
223
+
224
+ # source://webmock//lib/webmock/api.rb#31
225
+ def refute_requested(*args, &block); end
226
+
227
+ # source://webmock//lib/webmock/api.rb#67
228
+ def remove_request_stub(stub); end
229
+
230
+ # source://webmock//lib/webmock/api.rb#71
231
+ def reset_executed_requests!; end
232
+
233
+ # source://webmock//lib/webmock/api.rb#7
234
+ def stub_http_request(method, uri); end
235
+
236
+ # source://webmock//lib/webmock/api.rb#7
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#104
244
+ def anythingize_lonely_keys(*args); end
245
+
246
+ # source://webmock//lib/webmock/api.rb#95
247
+ def assert_request_not_requested(request, options = T.unsafe(nil)); end
248
+
249
+ # source://webmock//lib/webmock/api.rb#86
250
+ def assert_request_requested(request, options = T.unsafe(nil)); end
251
+
252
+ # source://webmock//lib/webmock/api.rb#77
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#14
257
+ def request(method, uri); end
258
+ end
259
+ end
260
+
261
+ # source://webmock//lib/webmock/assertion_failure.rb#4
262
+ class WebMock::AssertionFailure
263
+ class << self
264
+ # Returns the value of attribute error_class.
265
+ #
266
+ # source://webmock//lib/webmock/assertion_failure.rb#7
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#7
274
+ def error_class=(_arg0); end
275
+
276
+ # @raise [@error_class]
277
+ #
278
+ # source://webmock//lib/webmock/assertion_failure.rb#8
279
+ def failure(message); end
280
+ end
281
+ end
282
+
283
+ # source://webmock//lib/webmock/request_pattern.rb#252
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#270
290
+ def initialize(pattern); end
291
+
292
+ # @return [Boolean]
293
+ #
294
+ # source://webmock//lib/webmock/request_pattern.rb#280
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#268
300
+ def pattern; end
301
+
302
+ # source://webmock//lib/webmock/request_pattern.rb#297
303
+ def to_s; end
304
+
305
+ private
306
+
307
+ # source://webmock//lib/webmock/request_pattern.rb#319
308
+ def assert_non_multipart_body(content_type); end
309
+
310
+ # source://webmock//lib/webmock/request_pattern.rb#303
311
+ def body_as_hash(body, content_type); end
312
+
313
+ # source://webmock//lib/webmock/request_pattern.rb#314
314
+ def body_format(content_type); end
315
+
316
+ # @return [Boolean]
317
+ #
318
+ # source://webmock//lib/webmock/request_pattern.rb#378
319
+ def empty_string?(string); end
320
+
321
+ # @return [Boolean]
322
+ #
323
+ # source://webmock//lib/webmock/request_pattern.rb#358
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#348
349
+ def matching_body_hashes?(query_parameters, pattern, content_type); end
350
+
351
+ # source://webmock//lib/webmock/request_pattern.rb#370
352
+ def matching_values(actual, expected, content_type); end
353
+
354
+ # source://webmock//lib/webmock/request_pattern.rb#382
355
+ def normalize_hash(hash); end
356
+
357
+ # @return [Boolean]
358
+ #
359
+ # source://webmock//lib/webmock/request_pattern.rb#386
360
+ def url_encoded_body?(content_type); end
361
+ end
362
+
363
+ # source://webmock//lib/webmock/request_pattern.rb#255
364
+ WebMock::BodyPattern::BODY_FORMATS = T.let(T.unsafe(nil), Hash)
365
+
366
+ # source://webmock//lib/webmock/callback_registry.rb#4
367
+ class WebMock::CallbackRegistry
368
+ class << self
369
+ # source://webmock//lib/webmock/callback_registry.rb#7
370
+ def add_callback(options, block); end
371
+
372
+ # @return [Boolean]
373
+ #
374
+ # source://webmock//lib/webmock/callback_registry.rb#32
375
+ def any_callbacks?; end
376
+
377
+ # source://webmock//lib/webmock/callback_registry.rb#11
378
+ def callbacks; end
379
+
380
+ # source://webmock//lib/webmock/callback_registry.rb#15
381
+ def invoke_callbacks(options, request_signature, response); end
382
+
383
+ # source://webmock//lib/webmock/callback_registry.rb#28
384
+ def reset; end
385
+ end
386
+ end
387
+
388
+ # source://webmock//lib/webmock/config.rb#4
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#7
396
+ def initialize; end
397
+
398
+ # Returns the value of attribute allow.
399
+ #
400
+ # source://webmock//lib/webmock/config.rb#14
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#14
408
+ def allow=(_arg0); end
409
+
410
+ # Returns the value of attribute allow_localhost.
411
+ #
412
+ # source://webmock//lib/webmock/config.rb#13
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#13
420
+ def allow_localhost=(_arg0); end
421
+
422
+ # Returns the value of attribute allow_net_connect.
423
+ #
424
+ # source://webmock//lib/webmock/config.rb#12
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#12
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#15
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#15
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#17
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#17
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#18
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#18
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#16
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#16
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#4
491
+ class WebMock::Deprecation
492
+ class << self
493
+ # source://webmock//lib/webmock/deprecation.rb#6
494
+ def warning(message); end
495
+ end
496
+ end
497
+
498
+ # source://webmock//lib/webmock/response.rb#149
499
+ class WebMock::DynamicResponse < ::WebMock::Response
500
+ # @return [DynamicResponse] a new instance of DynamicResponse
501
+ #
502
+ # source://webmock//lib/webmock/response.rb#152
503
+ def initialize(responder); end
504
+
505
+ # source://webmock//lib/webmock/response.rb#156
506
+ def evaluate(request_signature); end
507
+
508
+ # Returns the value of attribute responder.
509
+ #
510
+ # source://webmock//lib/webmock/response.rb#150
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#150
518
+ def responder=(_arg0); end
519
+ end
520
+
521
+ # source://webmock//lib/webmock/util/hash_validator.rb#4
522
+ class WebMock::HashValidator
523
+ # @return [HashValidator] a new instance of HashValidator
524
+ #
525
+ # source://webmock//lib/webmock/util/hash_validator.rb#5
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#10
531
+ def validate_keys(*valid_keys); end
532
+ end
533
+
534
+ # source://webmock//lib/webmock/request_pattern.rb#391
535
+ class WebMock::HeadersPattern
536
+ # @return [HeadersPattern] a new instance of HeadersPattern
537
+ #
538
+ # source://webmock//lib/webmock/request_pattern.rb#392
539
+ def initialize(pattern); end
540
+
541
+ # @return [Boolean]
542
+ #
543
+ # source://webmock//lib/webmock/request_pattern.rb#396
544
+ def matches?(headers); end
545
+
546
+ # source://webmock//lib/webmock/request_pattern.rb#412
547
+ def pp_to_s; end
548
+
549
+ # source://webmock//lib/webmock/request_pattern.rb#408
550
+ def to_s; end
551
+
552
+ private
553
+
554
+ # @return [Boolean]
555
+ #
556
+ # source://webmock//lib/webmock/request_pattern.rb#418
557
+ def empty_headers?(headers); end
558
+ end
559
+
560
+ # source://webmock//lib/webmock/http_lib_adapters/http_lib_adapter.rb#4
561
+ class WebMock::HttpLibAdapter
562
+ class << self
563
+ # source://webmock//lib/webmock/http_lib_adapters/http_lib_adapter.rb#5
564
+ def adapter_for(lib); end
565
+ end
566
+ end
567
+
568
+ # source://webmock//lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb#4
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#9
576
+ def initialize; end
577
+
578
+ # source://webmock//lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb#17
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#7
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#7
591
+ def http_lib_adapters=(_arg0); end
592
+
593
+ # source://webmock//lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb#13
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#10
605
+ module WebMock::HttpLibAdapters; end
606
+
607
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#11
608
+ class WebMock::HttpLibAdapters::NetHttpAdapter < ::WebMock::HttpLibAdapter
609
+ class << self
610
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#23
611
+ def disable!; end
612
+
613
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#16
614
+ def enable!; end
615
+ end
616
+ end
617
+
618
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#14
619
+ WebMock::HttpLibAdapters::NetHttpAdapter::OriginalNetHTTP = Net::HTTP
620
+
621
+ # source://webmock//lib/webmock/matchers/hash_argument_matcher.rb#4
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#6
627
+ class WebMock::Matchers::AnyArgMatcher
628
+ # @return [AnyArgMatcher] a new instance of AnyArgMatcher
629
+ #
630
+ # source://webmock//lib/webmock/matchers/any_arg_matcher.rb#7
631
+ def initialize(ignore); end
632
+
633
+ # source://webmock//lib/webmock/matchers/any_arg_matcher.rb#10
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#7
641
+ class WebMock::Matchers::HashArgumentMatcher
642
+ # @return [HashArgumentMatcher] a new instance of HashArgumentMatcher
643
+ #
644
+ # source://webmock//lib/webmock/matchers/hash_argument_matcher.rb#8
645
+ def initialize(expected); end
646
+
647
+ # source://webmock//lib/webmock/matchers/hash_argument_matcher.rb#12
648
+ def ==(_actual, &block); end
649
+
650
+ class << self
651
+ # source://webmock//lib/webmock/matchers/hash_argument_matcher.rb#18
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#7
660
+ class WebMock::Matchers::HashExcludingMatcher < ::WebMock::Matchers::HashArgumentMatcher
661
+ # source://webmock//lib/webmock/matchers/hash_excluding_matcher.rb#8
662
+ def ==(actual); end
663
+
664
+ # source://webmock//lib/webmock/matchers/hash_excluding_matcher.rb#12
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#7
672
+ class WebMock::Matchers::HashIncludingMatcher < ::WebMock::Matchers::HashArgumentMatcher
673
+ # source://webmock//lib/webmock/matchers/hash_including_matcher.rb#8
674
+ def ==(actual); end
675
+
676
+ # source://webmock//lib/webmock/matchers/hash_including_matcher.rb#14
677
+ def inspect; end
678
+ end
679
+
680
+ # source://webmock//lib/webmock/request_pattern.rb#95
681
+ class WebMock::MethodPattern
682
+ # @return [MethodPattern] a new instance of MethodPattern
683
+ #
684
+ # source://webmock//lib/webmock/request_pattern.rb#96
685
+ def initialize(pattern); end
686
+
687
+ # @return [Boolean]
688
+ #
689
+ # source://webmock//lib/webmock/request_pattern.rb#100
690
+ def matches?(method); end
691
+
692
+ # source://webmock//lib/webmock/request_pattern.rb#104
693
+ def to_s; end
694
+ end
695
+
696
+ # source://webmock//lib/webmock/errors.rb#5
697
+ class WebMock::NetConnectNotAllowedError < ::Exception
698
+ # @return [NetConnectNotAllowedError] a new instance of NetConnectNotAllowedError
699
+ #
700
+ # source://webmock//lib/webmock/errors.rb#6
701
+ def initialize(request_signature); end
702
+ end
703
+
704
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#242
705
+ module WebMock::NetHTTPUtility
706
+ class << self
707
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#281
708
+ def check_right_http_connection; end
709
+
710
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#272
711
+ def get_uri(net_http, path = T.unsafe(nil)); end
712
+
713
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#285
714
+ def puts_warning_for_right_http_if_needed; end
715
+
716
+ # source://webmock//lib/webmock/http_lib_adapters/net_http.rb#244
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#5
722
+ module WebMock::RSpecMatcherDetector
723
+ # @return [Boolean]
724
+ #
725
+ # source://webmock//lib/webmock/request_pattern.rb#10
726
+ def rSpecHashExcludingMatcher?(matcher); end
727
+
728
+ # @return [Boolean]
729
+ #
730
+ # source://webmock//lib/webmock/request_pattern.rb#6
731
+ def rSpecHashIncludingMatcher?(matcher); end
732
+ end
733
+
734
+ # source://webmock//lib/webmock/rack_response.rb#4
735
+ class WebMock::RackResponse < ::WebMock::Response
736
+ # @return [RackResponse] a new instance of RackResponse
737
+ #
738
+ # source://webmock//lib/webmock/rack_response.rb#5
739
+ def initialize(app); end
740
+
741
+ # source://webmock//lib/webmock/rack_response.rb#21
742
+ def body_from_rack_response(response); end
743
+
744
+ # source://webmock//lib/webmock/rack_response.rb#28
745
+ def build_rack_env(request); end
746
+
747
+ # source://webmock//lib/webmock/rack_response.rb#9
748
+ def evaluate(request); end
749
+
750
+ # source://webmock//lib/webmock/rack_response.rb#63
751
+ def session; end
752
+
753
+ # source://webmock//lib/webmock/rack_response.rb#67
754
+ def session_options; end
755
+ end
756
+
757
+ # source://webmock//lib/webmock/request_body_diff.rb#7
758
+ class WebMock::RequestBodyDiff
759
+ # @return [RequestBodyDiff] a new instance of RequestBodyDiff
760
+ #
761
+ # source://webmock//lib/webmock/request_body_diff.rb#9
762
+ def initialize(request_signature, request_stub); end
763
+
764
+ # source://webmock//lib/webmock/request_body_diff.rb#14
765
+ def body_diff; end
766
+
767
+ private
768
+
769
+ # @return [Boolean]
770
+ #
771
+ # source://webmock//lib/webmock/request_body_diff.rb#57
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#20
777
+ def request_signature; end
778
+
779
+ # source://webmock//lib/webmock/request_body_diff.rb#33
780
+ def request_signature_body_hash; end
781
+
782
+ # @return [Boolean]
783
+ #
784
+ # source://webmock//lib/webmock/request_body_diff.rb#25
785
+ def request_signature_diffable?; end
786
+
787
+ # @return [Boolean]
788
+ #
789
+ # source://webmock//lib/webmock/request_body_diff.rb#49
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#20
795
+ def request_stub; end
796
+
797
+ # source://webmock//lib/webmock/request_body_diff.rb#43
798
+ def request_stub_body; end
799
+
800
+ # source://webmock//lib/webmock/request_body_diff.rb#37
801
+ def request_stub_body_hash; end
802
+
803
+ # @return [Boolean]
804
+ #
805
+ # source://webmock//lib/webmock/request_body_diff.rb#29
806
+ def request_stub_diffable?; end
807
+
808
+ # @return [Boolean]
809
+ #
810
+ # source://webmock//lib/webmock/request_body_diff.rb#53
811
+ def request_stub_parseable_json?; end
812
+ end
813
+
814
+ # source://webmock//lib/webmock/request_execution_verifier.rb#4
815
+ class WebMock::RequestExecutionVerifier
816
+ # @return [RequestExecutionVerifier] a new instance of RequestExecutionVerifier
817
+ #
818
+ # source://webmock//lib/webmock/request_execution_verifier.rb#8
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#6
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#6
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#6
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#6
843
+ def at_most_times_executed=(_arg0); end
844
+
845
+ # source://webmock//lib/webmock/request_execution_verifier.rb#38
846
+ def description; end
847
+
848
+ # @return [Boolean]
849
+ #
850
+ # source://webmock//lib/webmock/request_execution_verifier.rb#28
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#6
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#6
863
+ def expected_times_executed=(_arg0); end
864
+
865
+ # source://webmock//lib/webmock/request_execution_verifier.rb#42
866
+ def failure_message; end
867
+
868
+ # source://webmock//lib/webmock/request_execution_verifier.rb#46
869
+ def failure_message_when_negated; end
870
+
871
+ # @return [Boolean]
872
+ #
873
+ # source://webmock//lib/webmock/request_execution_verifier.rb#15
874
+ def matches?; end
875
+
876
+ # Returns the value of attribute request_pattern.
877
+ #
878
+ # source://webmock//lib/webmock/request_execution_verifier.rb#6
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#6
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#6
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#6
898
+ def times_executed=(_arg0); end
899
+
900
+ private
901
+
902
+ # source://webmock//lib/webmock/request_execution_verifier.rb#56
903
+ def failure_message_phrase(is_negated = T.unsafe(nil)); end
904
+
905
+ # source://webmock//lib/webmock/request_execution_verifier.rb#62
906
+ def quantity_phrase(is_negated = T.unsafe(nil)); end
907
+
908
+ # source://webmock//lib/webmock/request_execution_verifier.rb#74
909
+ def times(times); end
910
+
911
+ class << self
912
+ # source://webmock//lib/webmock/request_execution_verifier.rb#50
913
+ def executed_requests_message; end
914
+ end
915
+ end
916
+
917
+ # source://webmock//lib/webmock/request_pattern.rb#15
918
+ class WebMock::RequestPattern
919
+ # @return [RequestPattern] a new instance of RequestPattern
920
+ #
921
+ # source://webmock//lib/webmock/request_pattern.rb#19
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#17
927
+ def body_pattern; end
928
+
929
+ # Returns the value of attribute headers_pattern.
930
+ #
931
+ # source://webmock//lib/webmock/request_pattern.rb#17
932
+ def headers_pattern; end
933
+
934
+ # @return [Boolean]
935
+ #
936
+ # source://webmock//lib/webmock/request_pattern.rb#35
937
+ def matches?(request_signature); end
938
+
939
+ # Returns the value of attribute method_pattern.
940
+ #
941
+ # source://webmock//lib/webmock/request_pattern.rb#17
942
+ def method_pattern; end
943
+
944
+ # source://webmock//lib/webmock/request_pattern.rb#45
945
+ def to_s; end
946
+
947
+ # Returns the value of attribute uri_pattern.
948
+ #
949
+ # source://webmock//lib/webmock/request_pattern.rb#17
950
+ def uri_pattern; end
951
+
952
+ # @raise [ArgumentError]
953
+ #
954
+ # source://webmock//lib/webmock/request_pattern.rb#28
955
+ def with(options = T.unsafe(nil), &block); end
956
+
957
+ private
958
+
959
+ # source://webmock//lib/webmock/request_pattern.rb#57
960
+ def assign_options(options); end
961
+
962
+ # source://webmock//lib/webmock/request_pattern.rb#80
963
+ def create_uri_pattern(uri); end
964
+
965
+ # source://webmock//lib/webmock/request_pattern.rb#66
966
+ def set_basic_auth_as_headers!(options); end
967
+
968
+ # source://webmock//lib/webmock/request_pattern.rb#74
969
+ def validate_basic_auth!(basic_auth); end
970
+ end
971
+
972
+ # source://webmock//lib/webmock/request_registry.rb#5
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#10
980
+ def initialize; end
981
+
982
+ # Returns the value of attribute requested_signatures.
983
+ #
984
+ # source://webmock//lib/webmock/request_registry.rb#8
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#8
992
+ def requested_signatures=(_arg0); end
993
+
994
+ # source://webmock//lib/webmock/request_registry.rb#14
995
+ def reset!; end
996
+
997
+ # source://webmock//lib/webmock/request_registry.rb#18
998
+ def times_executed(request_pattern); end
999
+
1000
+ # source://webmock//lib/webmock/request_registry.rb#24
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#5
1012
+ class WebMock::RequestSignature
1013
+ # @return [RequestSignature] a new instance of RequestSignature
1014
+ #
1015
+ # source://webmock//lib/webmock/request_signature.rb#10
1016
+ def initialize(method, uri, options = T.unsafe(nil)); end
1017
+
1018
+ # @return [Boolean]
1019
+ #
1020
+ # source://webmock//lib/webmock/request_signature.rb#34
1021
+ def ==(other); end
1022
+
1023
+ # Returns the value of attribute body.
1024
+ #
1025
+ # source://webmock//lib/webmock/request_signature.rb#7
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#7
1033
+ def body=(_arg0); end
1034
+
1035
+ # @return [Boolean]
1036
+ #
1037
+ # source://webmock//lib/webmock/request_signature.rb#34
1038
+ def eql?(other); end
1039
+
1040
+ # source://webmock//lib/webmock/request_signature.rb#30
1041
+ def hash; end
1042
+
1043
+ # Returns the value of attribute headers.
1044
+ #
1045
+ # source://webmock//lib/webmock/request_signature.rb#8
1046
+ def headers; end
1047
+
1048
+ # source://webmock//lib/webmock/request_signature.rb#26
1049
+ def headers=(headers); end
1050
+
1051
+ # @return [Boolean]
1052
+ #
1053
+ # source://webmock//lib/webmock/request_signature.rb#43
1054
+ def json_headers?; end
1055
+
1056
+ # Returns the value of attribute method.
1057
+ #
1058
+ # source://webmock//lib/webmock/request_signature.rb#7
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#7
1066
+ def method=(_arg0); end
1067
+
1068
+ # source://webmock//lib/webmock/request_signature.rb#16
1069
+ def to_s; end
1070
+
1071
+ # Returns the value of attribute uri.
1072
+ #
1073
+ # source://webmock//lib/webmock/request_signature.rb#7
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#7
1081
+ def uri=(_arg0); end
1082
+
1083
+ # @return [Boolean]
1084
+ #
1085
+ # source://webmock//lib/webmock/request_signature.rb#39
1086
+ def url_encoded?; end
1087
+
1088
+ private
1089
+
1090
+ # source://webmock//lib/webmock/request_signature.rb#49
1091
+ def assign_options(options); end
1092
+ end
1093
+
1094
+ # source://webmock//lib/webmock/request_signature_snippet.rb#6
1095
+ class WebMock::RequestSignatureSnippet
1096
+ # @return [RequestSignatureSnippet] a new instance of RequestSignatureSnippet
1097
+ #
1098
+ # source://webmock//lib/webmock/request_signature_snippet.rb#10
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#8
1104
+ def request_signature; end
1105
+
1106
+ # Returns the value of attribute request_stub.
1107
+ #
1108
+ # source://webmock//lib/webmock/request_signature_snippet.rb#8
1109
+ def request_stub; end
1110
+
1111
+ # source://webmock//lib/webmock/request_signature_snippet.rb#22
1112
+ def request_stubs; end
1113
+
1114
+ # source://webmock//lib/webmock/request_signature_snippet.rb#15
1115
+ def stubbing_instructions; end
1116
+
1117
+ private
1118
+
1119
+ # source://webmock//lib/webmock/request_signature_snippet.rb#35
1120
+ def add_body_diff(stub, text); end
1121
+
1122
+ # source://webmock//lib/webmock/request_signature_snippet.rb#54
1123
+ def pretty_print_to_string(string_to_print); end
1124
+
1125
+ # source://webmock//lib/webmock/request_signature_snippet.rb#45
1126
+ def request_params; end
1127
+
1128
+ # source://webmock//lib/webmock/request_signature_snippet.rb#40
1129
+ def signature_stub_body_diff(stub); end
1130
+ end
1131
+
1132
+ # source://webmock//lib/webmock/request_stub.rb#4
1133
+ class WebMock::RequestStub
1134
+ # @return [RequestStub] a new instance of RequestStub
1135
+ #
1136
+ # source://webmock//lib/webmock/request_stub.rb#8
1137
+ def initialize(method, uri); end
1138
+
1139
+ # source://webmock//lib/webmock/request_stub.rb#65
1140
+ def and_raise(*exceptions); end
1141
+
1142
+ # source://webmock//lib/webmock/request_stub.rb#19
1143
+ def and_return(*response_hashes, &block); end
1144
+
1145
+ # @raise [ArgumentError]
1146
+ #
1147
+ # source://webmock//lib/webmock/request_stub.rb#29
1148
+ def and_return_json(*response_hashes); end
1149
+
1150
+ # source://webmock//lib/webmock/request_stub.rb#73
1151
+ def and_timeout; end
1152
+
1153
+ # @return [Boolean]
1154
+ #
1155
+ # source://webmock//lib/webmock/request_stub.rb#90
1156
+ def has_responses?; end
1157
+
1158
+ # @return [Boolean]
1159
+ #
1160
+ # source://webmock//lib/webmock/request_stub.rb#108
1161
+ def matches?(request_signature); end
1162
+
1163
+ # Returns the value of attribute request_pattern.
1164
+ #
1165
+ # source://webmock//lib/webmock/request_stub.rb#6
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#6
1173
+ def request_pattern=(_arg0); end
1174
+
1175
+ # source://webmock//lib/webmock/request_stub.rb#79
1176
+ def response; end
1177
+
1178
+ # source://webmock//lib/webmock/request_stub.rb#94
1179
+ def then; end
1180
+
1181
+ # source://webmock//lib/webmock/request_stub.rb#98
1182
+ def times(number); end
1183
+
1184
+ # source://webmock//lib/webmock/request_stub.rb#61
1185
+ def to_rack(app, options = T.unsafe(nil)); end
1186
+
1187
+ # source://webmock//lib/webmock/request_stub.rb#65
1188
+ def to_raise(*exceptions); end
1189
+
1190
+ # source://webmock//lib/webmock/request_stub.rb#19
1191
+ def to_return(*response_hashes, &block); end
1192
+
1193
+ # @raise [ArgumentError]
1194
+ #
1195
+ # source://webmock//lib/webmock/request_stub.rb#29
1196
+ def to_return_json(*response_hashes); end
1197
+
1198
+ # source://webmock//lib/webmock/request_stub.rb#112
1199
+ def to_s; end
1200
+
1201
+ # source://webmock//lib/webmock/request_stub.rb#73
1202
+ def to_timeout; end
1203
+
1204
+ # source://webmock//lib/webmock/request_stub.rb#14
1205
+ def with(params = T.unsafe(nil), &block); end
1206
+
1207
+ class << self
1208
+ # source://webmock//lib/webmock/request_stub.rb#116
1209
+ def from_request_signature(signature); end
1210
+ end
1211
+ end
1212
+
1213
+ # source://webmock//lib/webmock/response.rb#17
1214
+ class WebMock::Response
1215
+ # @return [Response] a new instance of Response
1216
+ #
1217
+ # source://webmock//lib/webmock/response.rb#18
1218
+ def initialize(options = T.unsafe(nil)); end
1219
+
1220
+ # source://webmock//lib/webmock/response.rb#97
1221
+ def ==(other); end
1222
+
1223
+ # source://webmock//lib/webmock/response.rb#40
1224
+ def body; end
1225
+
1226
+ # source://webmock//lib/webmock/response.rb#44
1227
+ def body=(body); end
1228
+
1229
+ # source://webmock//lib/webmock/response.rb#88
1230
+ def evaluate(request_signature); end
1231
+
1232
+ # source://webmock//lib/webmock/response.rb#58
1233
+ def exception; end
1234
+
1235
+ # source://webmock//lib/webmock/response.rb#62
1236
+ def exception=(exception); end
1237
+
1238
+ # source://webmock//lib/webmock/response.rb#29
1239
+ def headers; end
1240
+
1241
+ # source://webmock//lib/webmock/response.rb#33
1242
+ def headers=(headers); end
1243
+
1244
+ # source://webmock//lib/webmock/response.rb#78
1245
+ def options=(options); end
1246
+
1247
+ # @raise [@exception]
1248
+ #
1249
+ # source://webmock//lib/webmock/response.rb#70
1250
+ def raise_error_if_any; end
1251
+
1252
+ # source://webmock//lib/webmock/response.rb#74
1253
+ def should_timeout; end
1254
+
1255
+ # source://webmock//lib/webmock/response.rb#50
1256
+ def status; end
1257
+
1258
+ # source://webmock//lib/webmock/response.rb#54
1259
+ def status=(status); end
1260
+
1261
+ private
1262
+
1263
+ # source://webmock//lib/webmock/response.rb#115
1264
+ def assert_valid_body!; end
1265
+
1266
+ # source://webmock//lib/webmock/response.rb#128
1267
+ def read_raw_response(io); end
1268
+
1269
+ # source://webmock//lib/webmock/response.rb#107
1270
+ def stringify_body!; end
1271
+ end
1272
+
1273
+ # source://webmock//lib/webmock/response.rb#145
1274
+ class WebMock::Response::InvalidBody < ::StandardError; end
1275
+
1276
+ # source://webmock//lib/webmock/response.rb#7
1277
+ class WebMock::ResponseFactory
1278
+ class << self
1279
+ # source://webmock//lib/webmock/response.rb#8
1280
+ def response_for(options); end
1281
+ end
1282
+ end
1283
+
1284
+ # source://webmock//lib/webmock/responses_sequence.rb#5
1285
+ class WebMock::ResponsesSequence
1286
+ # @return [ResponsesSequence] a new instance of ResponsesSequence
1287
+ #
1288
+ # source://webmock//lib/webmock/responses_sequence.rb#9
1289
+ def initialize(responses); end
1290
+
1291
+ # @return [Boolean]
1292
+ #
1293
+ # source://webmock//lib/webmock/responses_sequence.rb#15
1294
+ def end?; end
1295
+
1296
+ # source://webmock//lib/webmock/responses_sequence.rb#19
1297
+ def next_response; end
1298
+
1299
+ # Returns the value of attribute times_to_repeat.
1300
+ #
1301
+ # source://webmock//lib/webmock/responses_sequence.rb#7
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#7
1309
+ def times_to_repeat=(_arg0); end
1310
+
1311
+ private
1312
+
1313
+ # source://webmock//lib/webmock/responses_sequence.rb#31
1314
+ def increase_position; end
1315
+ end
1316
+
1317
+ # source://webmock//lib/webmock/stub_registry.rb#5
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#10
1325
+ def initialize; end
1326
+
1327
+ # source://webmock//lib/webmock/stub_registry.rb#14
1328
+ def global_stubs; end
1329
+
1330
+ # source://webmock//lib/webmock/stub_registry.rb#22
1331
+ def register_global_stub(order = T.unsafe(nil), &block); end
1332
+
1333
+ # source://webmock//lib/webmock/stub_registry.rb#50
1334
+ def register_request_stub(stub); end
1335
+
1336
+ # @return [Boolean]
1337
+ #
1338
+ # source://webmock//lib/webmock/stub_registry.rb#61
1339
+ def registered_request?(request_signature); end
1340
+
1341
+ # source://webmock//lib/webmock/stub_registry.rb#55
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#8
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#8
1354
+ def request_stubs=(_arg0); end
1355
+
1356
+ # source://webmock//lib/webmock/stub_registry.rb#18
1357
+ def reset!; end
1358
+
1359
+ # source://webmock//lib/webmock/stub_registry.rb#65
1360
+ def response_for_request(request_signature); end
1361
+
1362
+ private
1363
+
1364
+ # source://webmock//lib/webmock/stub_registry.rb#79
1365
+ def evaluate_response_for_request(response, request_signature); end
1366
+
1367
+ # source://webmock//lib/webmock/stub_registry.rb#72
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#4
1379
+ class WebMock::StubRequestSnippet
1380
+ # @return [StubRequestSnippet] a new instance of StubRequestSnippet
1381
+ #
1382
+ # source://webmock//lib/webmock/stub_request_snippet.rb#5
1383
+ def initialize(request_stub); end
1384
+
1385
+ # source://webmock//lib/webmock/stub_request_snippet.rb#9
1386
+ def body_pattern; end
1387
+
1388
+ # source://webmock//lib/webmock/stub_request_snippet.rb#13
1389
+ def to_s(with_response = T.unsafe(nil)); end
1390
+ end
1391
+
1392
+ # source://webmock//lib/webmock/request_pattern.rb#177
1393
+ class WebMock::URIAddressablePattern < ::WebMock::URIPattern
1394
+ # source://webmock//lib/webmock/request_pattern.rb#178
1395
+ def add_query_params(query_params); end
1396
+
1397
+ private
1398
+
1399
+ # @return [Boolean]
1400
+ #
1401
+ # source://webmock//lib/webmock/request_pattern.rb#203
1402
+ def matches_with_variations?(uri); end
1403
+
1404
+ # source://webmock//lib/webmock/request_pattern.rb#199
1405
+ def pattern_inspect; end
1406
+
1407
+ # @return [Boolean]
1408
+ #
1409
+ # source://webmock//lib/webmock/request_pattern.rb#189
1410
+ def pattern_matches?(uri); end
1411
+
1412
+ # @return [Boolean]
1413
+ #
1414
+ # source://webmock//lib/webmock/request_pattern.rb#215
1415
+ def template_matches_uri?(template, uri); end
1416
+ end
1417
+
1418
+ # source://webmock//lib/webmock/request_pattern.rb#161
1419
+ class WebMock::URICallablePattern < ::WebMock::URIPattern
1420
+ private
1421
+
1422
+ # @return [Boolean]
1423
+ #
1424
+ # source://webmock//lib/webmock/request_pattern.rb#164
1425
+ def pattern_matches?(uri); end
1426
+ end
1427
+
1428
+ # source://webmock//lib/webmock/request_pattern.rb#110
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#113
1435
+ def initialize(pattern); end
1436
+
1437
+ # source://webmock//lib/webmock/request_pattern.rb#125
1438
+ def add_query_params(query_params); end
1439
+
1440
+ # @return [Boolean]
1441
+ #
1442
+ # source://webmock//lib/webmock/request_pattern.rb#140
1443
+ def matches?(uri); end
1444
+
1445
+ # source://webmock//lib/webmock/request_pattern.rb#144
1446
+ def to_s; end
1447
+
1448
+ private
1449
+
1450
+ # source://webmock//lib/webmock/request_pattern.rb#152
1451
+ def pattern_inspect; end
1452
+
1453
+ # @return [Boolean]
1454
+ #
1455
+ # source://webmock//lib/webmock/request_pattern.rb#156
1456
+ def query_params_matches?(uri); end
1457
+ end
1458
+
1459
+ # source://webmock//lib/webmock/request_pattern.rb#169
1460
+ class WebMock::URIRegexpPattern < ::WebMock::URIPattern
1461
+ private
1462
+
1463
+ # @return [Boolean]
1464
+ #
1465
+ # source://webmock//lib/webmock/request_pattern.rb#172
1466
+ def pattern_matches?(uri); end
1467
+ end
1468
+
1469
+ # source://webmock//lib/webmock/request_pattern.rb#222
1470
+ class WebMock::URIStringPattern < ::WebMock::URIPattern
1471
+ # source://webmock//lib/webmock/request_pattern.rb#223
1472
+ def add_query_params(query_params); end
1473
+
1474
+ private
1475
+
1476
+ # source://webmock//lib/webmock/request_pattern.rb#246
1477
+ def pattern_inspect; end
1478
+
1479
+ # @return [Boolean]
1480
+ #
1481
+ # source://webmock//lib/webmock/request_pattern.rb#234
1482
+ def pattern_matches?(uri); end
1483
+ end
1484
+
1485
+ # source://webmock//lib/webmock/util/query_mapper.rb#3
1486
+ module WebMock::Util; end
1487
+
1488
+ # source://webmock//lib/webmock/util/hash_counter.rb#7
1489
+ class WebMock::Util::HashCounter
1490
+ # @return [HashCounter] a new instance of HashCounter
1491
+ #
1492
+ # source://webmock//lib/webmock/util/hash_counter.rb#10
1493
+ def initialize; end
1494
+
1495
+ # source://webmock//lib/webmock/util/hash_counter.rb#38
1496
+ def each(&block); end
1497
+
1498
+ # source://webmock//lib/webmock/util/hash_counter.rb#24
1499
+ def get(key); end
1500
+
1501
+ # Returns the value of attribute hash.
1502
+ #
1503
+ # source://webmock//lib/webmock/util/hash_counter.rb#8
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#8
1511
+ def hash=(_arg0); end
1512
+
1513
+ # source://webmock//lib/webmock/util/hash_counter.rb#17
1514
+ def put(key, num = T.unsafe(nil)); end
1515
+
1516
+ # source://webmock//lib/webmock/util/hash_counter.rb#30
1517
+ def select(&block); end
1518
+ end
1519
+
1520
+ # source://webmock//lib/webmock/util/hash_keys_stringifier.rb#5
1521
+ class WebMock::Util::HashKeysStringifier
1522
+ class << self
1523
+ # source://webmock//lib/webmock/util/hash_keys_stringifier.rb#7
1524
+ def stringify_keys!(arg, options = T.unsafe(nil)); end
1525
+ end
1526
+ end
1527
+
1528
+ # source://webmock//lib/webmock/util/headers.rb#9
1529
+ class WebMock::Util::Headers
1530
+ class << self
1531
+ # source://webmock//lib/webmock/util/headers.rb#61
1532
+ def basic_auth_header(*credentials); end
1533
+
1534
+ # source://webmock//lib/webmock/util/headers.rb#57
1535
+ def decode_userinfo_from_header(header); end
1536
+
1537
+ # source://webmock//lib/webmock/util/headers.rb#15
1538
+ def normalize_headers(headers); end
1539
+
1540
+ # source://webmock//lib/webmock/util/headers.rb#65
1541
+ def normalize_name(name); end
1542
+
1543
+ # source://webmock//lib/webmock/util/headers.rb#42
1544
+ def pp_headers_string(headers); end
1545
+
1546
+ # source://webmock//lib/webmock/util/headers.rb#28
1547
+ def sorted_headers_string(headers); end
1548
+ end
1549
+ end
1550
+
1551
+ # source://webmock//lib/webmock/util/headers.rb#13
1552
+ WebMock::Util::Headers::JOIN = T.let(T.unsafe(nil), String)
1553
+
1554
+ # source://webmock//lib/webmock/util/headers.rb#12
1555
+ WebMock::Util::Headers::NONSTANDARD_HEADER_DELIMITER = T.let(T.unsafe(nil), String)
1556
+
1557
+ # source://webmock//lib/webmock/util/headers.rb#11
1558
+ WebMock::Util::Headers::STANDARD_HEADER_DELIMITER = T.let(T.unsafe(nil), String)
1559
+
1560
+ # source://webmock//lib/webmock/util/json.rb#12
1561
+ class WebMock::Util::JSON
1562
+ class << self
1563
+ # Ensure that ":" and "," are always followed by a space
1564
+ #
1565
+ # source://webmock//lib/webmock/util/json.rb#28
1566
+ def convert_json_to_yaml(json); end
1567
+
1568
+ # source://webmock//lib/webmock/util/json.rb#15
1569
+ def parse(json); end
1570
+
1571
+ # source://webmock//lib/webmock/util/json.rb#23
1572
+ def unescape(str); end
1573
+ end
1574
+ end
1575
+
1576
+ # source://webmock//lib/webmock/util/json.rb#13
1577
+ class WebMock::Util::JSON::ParseError < ::StandardError; end
1578
+
1579
+ # source://webmock//lib/webmock/util/query_mapper.rb#4
1580
+ class WebMock::Util::QueryMapper
1581
+ class << self
1582
+ # source://webmock//lib/webmock/util/query_mapper.rb#81
1583
+ def collect_query_hash(query_array, empty_accumulator, options); end
1584
+
1585
+ # source://webmock//lib/webmock/util/query_mapper.rb#74
1586
+ def collect_query_parts(query); end
1587
+
1588
+ # source://webmock//lib/webmock/util/query_mapper.rb#221
1589
+ def dehash(hash); end
1590
+
1591
+ # source://webmock//lib/webmock/util/query_mapper.rb#106
1592
+ def fill_accumulator_for_dot(accumulator, key, value); end
1593
+
1594
+ # source://webmock//lib/webmock/util/query_mapper.rb#95
1595
+ def fill_accumulator_for_flat(accumulator, key, value); end
1596
+
1597
+ # source://webmock//lib/webmock/util/query_mapper.rb#102
1598
+ def fill_accumulator_for_flat_array(accumulator, key, value); end
1599
+
1600
+ # source://webmock//lib/webmock/util/query_mapper.rb#125
1601
+ def fill_accumulator_for_subscript(accumulator, key, value); end
1602
+
1603
+ # source://webmock//lib/webmock/util/query_mapper.rb#63
1604
+ def normalize_query_hash(query_hash, empty_accumulator, options); end
1605
+
1606
+ # Converts the query component to a Hash value.
1607
+ #
1608
+ # @example
1609
+ # WebMock::Util::QueryMapper.query_to_values("?one=1&two=2&three=3")
1610
+ # #=> {"one" => "1", "two" => "2", "three" => "3"}
1611
+ # WebMock::Util::QueryMapper("?one[two][three]=four").query_values
1612
+ # #=> {"one" => {"two" => {"three" => "four"}}}
1613
+ # WebMock::Util::QueryMapper.query_to_values("?one.two.three=four",
1614
+ # :notation => :dot
1615
+ # )
1616
+ # #=> {"one" => {"two" => {"three" => "four"}}}
1617
+ # WebMock::Util::QueryMapper.query_to_values("?one[two][three]=four",
1618
+ # :notation => :flat
1619
+ # )
1620
+ # #=> {"one[two][three]" => "four"}
1621
+ # WebMock::Util::QueryMapper.query_to_values("?one.two.three=four",
1622
+ # :notation => :flat
1623
+ # )
1624
+ # #=> {"one.two.three" => "four"}
1625
+ # WebMock::Util::QueryMapper(
1626
+ # "?one[two][three][]=four&one[two][three][]=five"
1627
+ # )
1628
+ # #=> {"one" => {"two" => {"three" => ["four", "five"]}}}
1629
+ # WebMock::Util::QueryMapper.query_to_values(
1630
+ # "?one=two&one=three").query_values(:notation => :flat_array)
1631
+ # #=> [['one', 'two'], ['one', 'three']]
1632
+ # @option [Symbol]
1633
+ # @param [Symbol] [Hash] a customizable set of options
1634
+ # @return [Hash, Array] The query string parsed as a Hash or Array object.
1635
+ #
1636
+ # source://webmock//lib/webmock/util/query_mapper.rb#42
1637
+ def query_to_values(query, options = T.unsafe(nil)); end
1638
+
1639
+ # new_query_values have form [['key1', 'value1'], ['key2', 'value2']]
1640
+ #
1641
+ # source://webmock//lib/webmock/util/query_mapper.rb#247
1642
+ def to_query(parent, value, options = T.unsafe(nil)); end
1643
+
1644
+ # Sets the query component for this URI from a Hash object.
1645
+ # This method produces a query string using the :subscript notation.
1646
+ # An empty Hash will result in a nil query.
1647
+ #
1648
+ # @param new_query_values [Hash, #to_hash, Array] The new query values.
1649
+ #
1650
+ # source://webmock//lib/webmock/util/query_mapper.rb#179
1651
+ def values_to_query(new_query_values, options = T.unsafe(nil)); end
1652
+ end
1653
+ end
1654
+
1655
+ # source://webmock//lib/webmock/util/uri.rb#7
1656
+ class WebMock::Util::URI
1657
+ class << self
1658
+ # source://webmock//lib/webmock/util/uri.rb#67
1659
+ def encode_unsafe_chars_in_userinfo(userinfo); end
1660
+
1661
+ # source://webmock//lib/webmock/util/uri.rb#28
1662
+ def heuristic_parse(uri); end
1663
+
1664
+ # @return [Boolean]
1665
+ #
1666
+ # source://webmock//lib/webmock/util/uri.rb#71
1667
+ def is_uri_localhost?(uri); end
1668
+
1669
+ # source://webmock//lib/webmock/util/uri.rb#32
1670
+ def normalize_uri(uri); end
1671
+
1672
+ # source://webmock//lib/webmock/util/uri.rb#78
1673
+ def sort_query_values(query_values); end
1674
+
1675
+ # source://webmock//lib/webmock/util/uri.rb#59
1676
+ def strip_default_port_from_uri_string(uri_string); end
1677
+
1678
+ # source://webmock//lib/webmock/util/uri.rb#89
1679
+ def uris_encoded_and_unencoded(uris); end
1680
+
1681
+ # source://webmock//lib/webmock/util/uri.rb#83
1682
+ def uris_with_inferred_port_and_without(uris); end
1683
+
1684
+ # source://webmock//lib/webmock/util/uri.rb#98
1685
+ def uris_with_scheme_and_without(uris); end
1686
+
1687
+ # source://webmock//lib/webmock/util/uri.rb#104
1688
+ def uris_with_trailing_slash_and_without(uris); end
1689
+
1690
+ # source://webmock//lib/webmock/util/uri.rb#38
1691
+ def variations_of_uri_as_strings(uri_object, only_with_scheme: T.unsafe(nil)); end
1692
+ end
1693
+ end
1694
+
1695
+ # source://webmock//lib/webmock/util/uri.rb#12
1696
+ WebMock::Util::URI::ADDRESSABLE_URIS = T.let(T.unsafe(nil), Hash)
1697
+
1698
+ # source://webmock//lib/webmock/util/uri.rb#8
1699
+ module WebMock::Util::URI::CharacterClasses; end
1700
+
1701
+ # source://webmock//lib/webmock/util/uri.rb#9
1702
+ WebMock::Util::URI::CharacterClasses::USERINFO = T.let(T.unsafe(nil), String)
1703
+
1704
+ # source://webmock//lib/webmock/util/uri.rb#16
1705
+ WebMock::Util::URI::NORMALIZED_URIS = T.let(T.unsafe(nil), Hash)
1706
+
1707
+ # source://webmock//lib/webmock/util/values_stringifier.rb#3
1708
+ class WebMock::Util::ValuesStringifier
1709
+ class << self
1710
+ # source://webmock//lib/webmock/util/values_stringifier.rb#4
1711
+ def stringify_values(value); end
1712
+ end
1713
+ end
1714
+
1715
+ # source://webmock//lib/webmock/version.rb#4
1716
+ WebMock::VERSION = T.let(T.unsafe(nil), String)
1717
+
1718
+ # source://webmock//lib/webmock/util/version_checker.rb#28
1719
+ class WebMock::VersionChecker
1720
+ # @return [VersionChecker] a new instance of VersionChecker
1721
+ #
1722
+ # source://webmock//lib/webmock/util/version_checker.rb#29
1723
+ def initialize(library_name, library_version, min_patch_level, max_minor_version = T.unsafe(nil), unsupported_versions = T.unsafe(nil)); end
1724
+
1725
+ # source://webmock//lib/webmock/util/version_checker.rb#45
1726
+ def check_version!; end
1727
+
1728
+ private
1729
+
1730
+ # source://webmock//lib/webmock/util/version_checker.rb#109
1731
+ def colorize(text, color_code); end
1732
+
1733
+ # source://webmock//lib/webmock/util/version_checker.rb#86
1734
+ def compare_version; end
1735
+
1736
+ # source://webmock//lib/webmock/util/version_checker.rb#105
1737
+ def parse_version(version); end
1738
+
1739
+ # @return [Boolean]
1740
+ #
1741
+ # source://webmock//lib/webmock/util/version_checker.rb#57
1742
+ def too_high?; end
1743
+
1744
+ # @return [Boolean]
1745
+ #
1746
+ # source://webmock//lib/webmock/util/version_checker.rb#53
1747
+ def too_low?; end
1748
+
1749
+ # @return [Boolean]
1750
+ #
1751
+ # source://webmock//lib/webmock/util/version_checker.rb#61
1752
+ def unsupported_version?; end
1753
+
1754
+ # source://webmock//lib/webmock/util/version_checker.rb#98
1755
+ def version_requirement; end
1756
+
1757
+ # source://webmock//lib/webmock/util/version_checker.rb#70
1758
+ def warn_about_too_high; end
1759
+
1760
+ # source://webmock//lib/webmock/util/version_checker.rb#65
1761
+ def warn_about_too_low; end
1762
+
1763
+ # source://webmock//lib/webmock/util/version_checker.rb#76
1764
+ def warn_about_unsupported_version; end
1765
+
1766
+ # source://webmock//lib/webmock/util/version_checker.rb#82
1767
+ def warn_in_red(text); end
1768
+ end