eml 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +10 -0
- data/.env.example +6 -0
- data/.gitignore +5 -0
- data/.rspec +5 -0
- data/.rubocop.yml +90 -0
- data/Gemfile +6 -0
- data/LICENSE +21 -0
- data/README.md +87 -0
- data/eml.gemspec +37 -0
- data/lib/eml.rb +22 -0
- data/lib/eml/config.rb +49 -0
- data/lib/eml/data/countries.rb +260 -0
- data/lib/eml/data/currencies.rb +176 -0
- data/lib/eml/data/states.rb +4055 -0
- data/lib/eml/environment.rb +54 -0
- data/lib/eml/error.rb +25 -0
- data/lib/eml/error/rest.rb +42 -0
- data/lib/eml/error/rest/authentication.rb +21 -0
- data/lib/eml/error/rest/bad_request.rb +20 -0
- data/lib/eml/error/rest/daily_funding_limit.rb +19 -0
- data/lib/eml/error/rest/forbidden.rb +20 -0
- data/lib/eml/error/rest/internal_server.rb +9 -0
- data/lib/eml/error/rest/not_found.rb +20 -0
- data/lib/eml/error/rest/unprocessable_entity.rb +20 -0
- data/lib/eml/lib/endpoint_class.rb +42 -0
- data/lib/eml/parameters.rb +153 -0
- data/lib/eml/payload.rb +137 -0
- data/lib/eml/response.rb +103 -0
- data/lib/eml/uk.rb +51 -0
- data/lib/eml/uk/api_resource.rb +94 -0
- data/lib/eml/uk/config.rb +52 -0
- data/lib/eml/uk/lib/endpoint_class.rb +19 -0
- data/lib/eml/uk/lib/parse_date.rb +35 -0
- data/lib/eml/uk/model/transaction.rb +56 -0
- data/lib/eml/uk/parameters.rb +99 -0
- data/lib/eml/uk/parameters/agreement/show.rb +22 -0
- data/lib/eml/uk/parameters/card/activation.rb +24 -0
- data/lib/eml/uk/parameters/card/lock.rb +26 -0
- data/lib/eml/uk/parameters/card/register.rb +24 -0
- data/lib/eml/uk/parameters/card/reload.rb +24 -0
- data/lib/eml/uk/parameters/card/show.rb +102 -0
- data/lib/eml/uk/parameters/card/transaction.rb +59 -0
- data/lib/eml/uk/parameters/card/unload.rb +26 -0
- data/lib/eml/uk/parameters/card/unlock.rb +26 -0
- data/lib/eml/uk/parameters/card/void.rb +26 -0
- data/lib/eml/uk/payload.rb +94 -0
- data/lib/eml/uk/payload/agreement/show.rb +46 -0
- data/lib/eml/uk/payload/card/activation.rb +73 -0
- data/lib/eml/uk/payload/card/lock.rb +34 -0
- data/lib/eml/uk/payload/card/register.rb +70 -0
- data/lib/eml/uk/payload/card/reload.rb +38 -0
- data/lib/eml/uk/payload/card/show.rb +12 -0
- data/lib/eml/uk/payload/card/transaction.rb +12 -0
- data/lib/eml/uk/payload/card/unload.rb +38 -0
- data/lib/eml/uk/payload/card/unlock.rb +23 -0
- data/lib/eml/uk/payload/card/void.rb +23 -0
- data/lib/eml/uk/payload/contactentity.rb +64 -0
- data/lib/eml/uk/payload/iso.rb +48 -0
- data/lib/eml/uk/payload/location.rb +30 -0
- data/lib/eml/uk/resources/agreement.rb +32 -0
- data/lib/eml/uk/resources/card.rb +181 -0
- data/lib/eml/uk/response.rb +29 -0
- data/lib/eml/uk/responses/agreement/show.rb +16 -0
- data/lib/eml/uk/responses/card/reload.rb +19 -0
- data/lib/eml/uk/responses/card/show.rb +53 -0
- data/lib/eml/uk/responses/card/transaction.rb +24 -0
- data/lib/eml/version.rb +6 -0
- data/sorbet/config +2 -0
- data/sorbet/rbi/gems/addressable.rbi +198 -0
- data/sorbet/rbi/gems/ast.rbi +47 -0
- data/sorbet/rbi/gems/concurrent-ruby.rbi +218 -0
- data/sorbet/rbi/gems/crack.rbi +47 -0
- data/sorbet/rbi/gems/docile.rbi +31 -0
- data/sorbet/rbi/gems/domain_name.rbi +51 -0
- data/sorbet/rbi/gems/dotenv.rbi +67 -0
- data/sorbet/rbi/gems/faker.rbi +1350 -0
- data/sorbet/rbi/gems/hashdiff.rbi +65 -0
- data/sorbet/rbi/gems/http-cookie.rbi +92 -0
- data/sorbet/rbi/gems/http-form_data.rbi +73 -0
- data/sorbet/rbi/gems/http.rbi +609 -0
- data/sorbet/rbi/gems/http_parser.rb.rbi +36 -0
- data/sorbet/rbi/gems/i18n.rbi +191 -0
- data/sorbet/rbi/gems/jaro_winkler.rbi +14 -0
- data/sorbet/rbi/gems/parallel.rbi +81 -0
- data/sorbet/rbi/gems/parser.rbi +835 -0
- data/sorbet/rbi/gems/public_suffix.rbi +103 -0
- data/sorbet/rbi/gems/rainbow.rbi +117 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1655 -0
- data/sorbet/rbi/gems/rspec-support.rbi +126 -0
- data/sorbet/rbi/gems/rspec.rbi +14 -0
- data/sorbet/rbi/gems/rubocop-performance.rbi +276 -0
- data/sorbet/rbi/gems/rubocop-rspec.rbi +860 -0
- data/sorbet/rbi/gems/rubocop.rbi +6943 -0
- data/sorbet/rbi/gems/ruby-progressbar.rbi +304 -0
- data/sorbet/rbi/gems/simplecov-html.rbi +30 -0
- data/sorbet/rbi/gems/simplecov.rbi +225 -0
- data/sorbet/rbi/gems/unf.rbi +18 -0
- data/sorbet/rbi/gems/unicode-display_width.rbi +16 -0
- data/sorbet/rbi/gems/vcr.rbi +503 -0
- data/sorbet/rbi/gems/webmock.rbi +521 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +4802 -0
- data/sorbet/rbi/hidden-definitions/hidden.rbi +10700 -0
- data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8682 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/gem.rbi +4222 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
- data/sorbet/rbi/todo.rbi +24 -0
- data/spec/config_spec.rb +26 -0
- data/spec/helpers/config_helper.rb +21 -0
- data/spec/helpers/vcr_helper.rb +19 -0
- data/spec/spec_helper.rb +120 -0
- data/spec/uk/api_resource_spec.rb +39 -0
- data/spec/uk/resources/agreement_spec.rb +23 -0
- data/spec/uk/resources/card_spec.rb +197 -0
- metadata +339 -0
@@ -0,0 +1,521 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/webmock/all/webmock.rbi
|
9
|
+
#
|
10
|
+
# webmock-3.7.2
|
11
|
+
module WebMock
|
12
|
+
def after_request(*args, &block); end
|
13
|
+
def allow_net_connect!(*args, &block); end
|
14
|
+
def disable_net_connect!(*args, &block); end
|
15
|
+
def net_connect_allowed?(*args, &block); end
|
16
|
+
def registered_request?(*args, &block); end
|
17
|
+
def reset_callbacks(*args, &block); end
|
18
|
+
def reset_webmock(*args, &block); end
|
19
|
+
def self.after_request(options = nil, &block); end
|
20
|
+
def self.allow_net_connect!(options = nil); end
|
21
|
+
def self.disable!(options = nil); end
|
22
|
+
def self.disable_net_connect!(options = nil); end
|
23
|
+
def self.disallow_net_connect!(options = nil); end
|
24
|
+
def self.enable!; end
|
25
|
+
def self.enable_net_connect!(options = nil); end
|
26
|
+
def self.globally_stub_request(&block); end
|
27
|
+
def self.hide_body_diff!; end
|
28
|
+
def self.hide_stubbing_instructions!; end
|
29
|
+
def self.included(clazz); end
|
30
|
+
def self.net_connect_allowed?(uri = nil); end
|
31
|
+
def self.net_connect_explicit_allowed?(allowed, uri = nil); end
|
32
|
+
def self.print_executed_requests; end
|
33
|
+
def self.registered_request?(request_signature); end
|
34
|
+
def self.request(method, uri); end
|
35
|
+
def self.reset!; end
|
36
|
+
def self.reset_callbacks; end
|
37
|
+
def self.reset_webmock; end
|
38
|
+
def self.show_body_diff!; end
|
39
|
+
def self.show_body_diff?; end
|
40
|
+
def self.show_stubbing_instructions!; end
|
41
|
+
def self.show_stubbing_instructions?; end
|
42
|
+
def self.version; end
|
43
|
+
extend WebMock::API
|
44
|
+
include WebMock::API
|
45
|
+
end
|
46
|
+
class WebMock::Deprecation
|
47
|
+
def self.warning(message); end
|
48
|
+
end
|
49
|
+
class WebMock::NetConnectNotAllowedError < Exception
|
50
|
+
def initialize(request_signature); end
|
51
|
+
end
|
52
|
+
module WebMock::Util
|
53
|
+
end
|
54
|
+
class WebMock::Util::QueryMapper
|
55
|
+
def self.collect_query_hash(query_array, empty_accumulator, options); end
|
56
|
+
def self.collect_query_parts(query); end
|
57
|
+
def self.dehash(hash); end
|
58
|
+
def self.fill_accumulator_for_dot(accumulator, key, value); end
|
59
|
+
def self.fill_accumulator_for_flat(accumulator, key, value); end
|
60
|
+
def self.fill_accumulator_for_flat_array(accumulator, key, value); end
|
61
|
+
def self.fill_accumulator_for_subscript(accumulator, key, value); end
|
62
|
+
def self.normalize_query_hash(query_hash, empty_accumulator, options); end
|
63
|
+
def self.query_to_values(query, options = nil); end
|
64
|
+
def self.to_query(parent, value, options = nil); end
|
65
|
+
def self.values_to_query(new_query_values, options = nil); end
|
66
|
+
end
|
67
|
+
class WebMock::Util::URI
|
68
|
+
def self.encode_unsafe_chars_in_userinfo(userinfo); end
|
69
|
+
def self.heuristic_parse(uri); end
|
70
|
+
def self.is_uri_localhost?(uri); end
|
71
|
+
def self.normalize_uri(uri); end
|
72
|
+
def self.sort_query_values(query_values); end
|
73
|
+
def self.strip_default_port_from_uri_string(uri_string); end
|
74
|
+
def self.uris_encoded_and_unencoded(uris); end
|
75
|
+
def self.uris_with_inferred_port_and_without(uris); end
|
76
|
+
def self.uris_with_scheme_and_without(uris); end
|
77
|
+
def self.uris_with_trailing_slash_and_without(uris); end
|
78
|
+
def self.variations_of_uri_as_strings(uri_object, only_with_scheme: nil); end
|
79
|
+
end
|
80
|
+
module WebMock::Util::URI::CharacterClasses
|
81
|
+
end
|
82
|
+
class WebMock::Util::Headers
|
83
|
+
def self.basic_auth_header(*credentials); end
|
84
|
+
def self.decode_userinfo_from_header(header); end
|
85
|
+
def self.normalize_headers(headers); end
|
86
|
+
def self.pp_headers_string(headers); end
|
87
|
+
def self.sorted_headers_string(headers); end
|
88
|
+
end
|
89
|
+
class WebMock::Util::HashCounter
|
90
|
+
def each(&block); end
|
91
|
+
def get(key); end
|
92
|
+
def hash; end
|
93
|
+
def hash=(arg0); end
|
94
|
+
def initialize; end
|
95
|
+
def put(key, num = nil); end
|
96
|
+
def select(&block); end
|
97
|
+
end
|
98
|
+
class WebMock::Util::HashKeysStringifier
|
99
|
+
def self.stringify_keys!(arg, options = nil); end
|
100
|
+
end
|
101
|
+
class WebMock::Util::ValuesStringifier
|
102
|
+
def self.stringify_values(value); end
|
103
|
+
end
|
104
|
+
class WebMock::Util::JSON
|
105
|
+
def self.convert_json_to_yaml(json); end
|
106
|
+
def self.parse(json); end
|
107
|
+
def self.unescape(str); end
|
108
|
+
end
|
109
|
+
class WebMock::Util::JSON::ParseError < StandardError
|
110
|
+
end
|
111
|
+
class WebMock::VersionChecker
|
112
|
+
def check_version!; end
|
113
|
+
def colorize(text, color_code); end
|
114
|
+
def compare_version; end
|
115
|
+
def initialize(library_name, library_version, min_patch_level, max_minor_version = nil, unsupported_versions = nil); end
|
116
|
+
def parse_version(version); end
|
117
|
+
def too_high?; end
|
118
|
+
def too_low?; end
|
119
|
+
def unsupported_version?; end
|
120
|
+
def version_requirement; end
|
121
|
+
def warn_about_too_high; end
|
122
|
+
def warn_about_too_low; end
|
123
|
+
def warn_about_unsupported_version; end
|
124
|
+
def warn_in_red(text); end
|
125
|
+
end
|
126
|
+
class WebMock::HashValidator
|
127
|
+
def initialize(hash); end
|
128
|
+
def validate_keys(*valid_keys); end
|
129
|
+
end
|
130
|
+
module WebMock::Matchers
|
131
|
+
end
|
132
|
+
class WebMock::Matchers::HashArgumentMatcher
|
133
|
+
def ==(_actual, &block); end
|
134
|
+
def initialize(expected); end
|
135
|
+
def self.from_rspec_matcher(matcher); end
|
136
|
+
end
|
137
|
+
class WebMock::Matchers::HashExcludingMatcher < WebMock::Matchers::HashArgumentMatcher
|
138
|
+
def ==(actual); end
|
139
|
+
def inspect; end
|
140
|
+
end
|
141
|
+
class WebMock::Matchers::HashIncludingMatcher < WebMock::Matchers::HashArgumentMatcher
|
142
|
+
def ==(actual); end
|
143
|
+
def inspect; end
|
144
|
+
end
|
145
|
+
class WebMock::Matchers::AnyArgMatcher
|
146
|
+
def ==(other); end
|
147
|
+
def initialize(ignore); end
|
148
|
+
end
|
149
|
+
module WebMock::RSpecMatcherDetector
|
150
|
+
def rSpecHashExcludingMatcher?(matcher); end
|
151
|
+
def rSpecHashIncludingMatcher?(matcher); end
|
152
|
+
end
|
153
|
+
class WebMock::RequestPattern
|
154
|
+
def assign_options(options); end
|
155
|
+
def body_pattern; end
|
156
|
+
def create_uri_pattern(uri); end
|
157
|
+
def headers_pattern; end
|
158
|
+
def initialize(method, uri, options = nil); end
|
159
|
+
def matches?(request_signature); end
|
160
|
+
def method_pattern; end
|
161
|
+
def set_basic_auth_as_headers!(options); end
|
162
|
+
def to_s; end
|
163
|
+
def uri_pattern; end
|
164
|
+
def validate_basic_auth!(basic_auth); end
|
165
|
+
def with(options = nil, &block); end
|
166
|
+
end
|
167
|
+
class WebMock::MethodPattern
|
168
|
+
def initialize(pattern); end
|
169
|
+
def matches?(method); end
|
170
|
+
def to_s; end
|
171
|
+
end
|
172
|
+
class WebMock::URIPattern
|
173
|
+
def add_query_params(query_params); end
|
174
|
+
def initialize(pattern); end
|
175
|
+
def to_s; end
|
176
|
+
include WebMock::RSpecMatcherDetector
|
177
|
+
end
|
178
|
+
class WebMock::URIRegexpPattern < WebMock::URIPattern
|
179
|
+
def matches?(uri); end
|
180
|
+
def to_s; end
|
181
|
+
end
|
182
|
+
class WebMock::URIAddressablePattern < WebMock::URIPattern
|
183
|
+
def add_query_params(query_params); end
|
184
|
+
def matches?(uri); end
|
185
|
+
def matches_with_variations?(uri); end
|
186
|
+
def to_s; end
|
187
|
+
end
|
188
|
+
class WebMock::URIStringPattern < WebMock::URIPattern
|
189
|
+
def add_query_params(query_params); end
|
190
|
+
def matches?(uri); end
|
191
|
+
def to_s; end
|
192
|
+
end
|
193
|
+
class WebMock::BodyPattern
|
194
|
+
def assert_non_multipart_body(content_type); end
|
195
|
+
def body_as_hash(body, content_type); end
|
196
|
+
def empty_string?(string); end
|
197
|
+
def initialize(pattern); end
|
198
|
+
def matches?(body, content_type = nil); end
|
199
|
+
def matching_body_hashes?(query_parameters, pattern, content_type); end
|
200
|
+
def normalize_hash(hash); end
|
201
|
+
def pattern; end
|
202
|
+
def to_s; end
|
203
|
+
def url_encoded_body?(content_type); end
|
204
|
+
include WebMock::RSpecMatcherDetector
|
205
|
+
end
|
206
|
+
class WebMock::HeadersPattern
|
207
|
+
def empty_headers?(headers); end
|
208
|
+
def initialize(pattern); end
|
209
|
+
def matches?(headers); end
|
210
|
+
def pp_to_s; end
|
211
|
+
def to_s; end
|
212
|
+
end
|
213
|
+
class WebMock::RequestSignature
|
214
|
+
def ==(other); end
|
215
|
+
def assign_options(options); end
|
216
|
+
def body; end
|
217
|
+
def body=(arg0); end
|
218
|
+
def eql?(other); end
|
219
|
+
def hash; end
|
220
|
+
def headers; end
|
221
|
+
def headers=(headers); end
|
222
|
+
def initialize(method, uri, options = nil); end
|
223
|
+
def json_headers?; end
|
224
|
+
def method; end
|
225
|
+
def method=(arg0); end
|
226
|
+
def to_s; end
|
227
|
+
def uri; end
|
228
|
+
def uri=(arg0); end
|
229
|
+
def url_encoded?; end
|
230
|
+
end
|
231
|
+
class WebMock::ResponsesSequence
|
232
|
+
def end?; end
|
233
|
+
def increase_position; end
|
234
|
+
def initialize(responses); end
|
235
|
+
def next_response; end
|
236
|
+
def times_to_repeat; end
|
237
|
+
def times_to_repeat=(arg0); end
|
238
|
+
end
|
239
|
+
class WebMock::RequestStub
|
240
|
+
def and_raise(*exceptions); end
|
241
|
+
def and_return(*response_hashes, &block); end
|
242
|
+
def and_timeout; end
|
243
|
+
def has_responses?; end
|
244
|
+
def initialize(method, uri); end
|
245
|
+
def matches?(request_signature); end
|
246
|
+
def request_pattern; end
|
247
|
+
def request_pattern=(arg0); end
|
248
|
+
def response; end
|
249
|
+
def self.from_request_signature(signature); end
|
250
|
+
def then; end
|
251
|
+
def times(number); end
|
252
|
+
def to_rack(app, options = nil); end
|
253
|
+
def to_raise(*exceptions); end
|
254
|
+
def to_return(*response_hashes, &block); end
|
255
|
+
def to_s; end
|
256
|
+
def to_timeout; end
|
257
|
+
def with(params = nil, &block); end
|
258
|
+
end
|
259
|
+
class WebMock::ResponseFactory
|
260
|
+
def self.response_for(options); end
|
261
|
+
end
|
262
|
+
class WebMock::Response
|
263
|
+
def ==(other); end
|
264
|
+
def assert_valid_body!; end
|
265
|
+
def body; end
|
266
|
+
def body=(body); end
|
267
|
+
def evaluate(request_signature); end
|
268
|
+
def exception; end
|
269
|
+
def exception=(exception); end
|
270
|
+
def headers; end
|
271
|
+
def headers=(headers); end
|
272
|
+
def initialize(options = nil); end
|
273
|
+
def options=(options); end
|
274
|
+
def raise_error_if_any; end
|
275
|
+
def read_raw_response(raw_response); end
|
276
|
+
def should_timeout; end
|
277
|
+
def status; end
|
278
|
+
def status=(status); end
|
279
|
+
def stringify_body!; end
|
280
|
+
end
|
281
|
+
class WebMock::Response::InvalidBody < StandardError
|
282
|
+
end
|
283
|
+
class WebMock::DynamicResponse < WebMock::Response
|
284
|
+
def evaluate(request_signature); end
|
285
|
+
def initialize(responder); end
|
286
|
+
def responder; end
|
287
|
+
def responder=(arg0); end
|
288
|
+
end
|
289
|
+
class WebMock::RackResponse < WebMock::Response
|
290
|
+
def body_from_rack_response(response); end
|
291
|
+
def build_rack_env(request); end
|
292
|
+
def evaluate(request); end
|
293
|
+
def initialize(app); end
|
294
|
+
def session; end
|
295
|
+
def session_options; end
|
296
|
+
end
|
297
|
+
class WebMock::StubRequestSnippet
|
298
|
+
def body_pattern; end
|
299
|
+
def initialize(request_stub); end
|
300
|
+
def to_s(with_response = nil); end
|
301
|
+
end
|
302
|
+
class WebMock::RequestSignatureSnippet
|
303
|
+
def add_body_diff(stub, text); end
|
304
|
+
def initialize(request_signature); end
|
305
|
+
def pretty_print_to_string(string_to_print); end
|
306
|
+
def request_params; end
|
307
|
+
def request_signature; end
|
308
|
+
def request_stub; end
|
309
|
+
def request_stubs; end
|
310
|
+
def signature_stub_body_diff(stub); end
|
311
|
+
def stubbing_instructions; end
|
312
|
+
end
|
313
|
+
class WebMock::RequestBodyDiff
|
314
|
+
def body_diff; end
|
315
|
+
def initialize(request_signature, request_stub); end
|
316
|
+
def parseable_json?(body_pattern); end
|
317
|
+
def request_signature; end
|
318
|
+
def request_signature_body_hash; end
|
319
|
+
def request_signature_diffable?; end
|
320
|
+
def request_signature_parseable_json?; end
|
321
|
+
def request_stub; end
|
322
|
+
def request_stub_body; end
|
323
|
+
def request_stub_body_hash; end
|
324
|
+
def request_stub_diffable?; end
|
325
|
+
def request_stub_parseable_json?; end
|
326
|
+
end
|
327
|
+
class WebMock::AssertionFailure
|
328
|
+
def self.error_class; end
|
329
|
+
def self.error_class=(arg0); end
|
330
|
+
def self.failure(message); end
|
331
|
+
end
|
332
|
+
class WebMock::RequestExecutionVerifier
|
333
|
+
def at_least_times_executed; end
|
334
|
+
def at_least_times_executed=(arg0); end
|
335
|
+
def at_most_times_executed; end
|
336
|
+
def at_most_times_executed=(arg0); end
|
337
|
+
def description; end
|
338
|
+
def does_not_match?; end
|
339
|
+
def expected_times_executed; end
|
340
|
+
def expected_times_executed=(arg0); end
|
341
|
+
def failure_message; end
|
342
|
+
def failure_message_phrase(is_negated = nil); end
|
343
|
+
def failure_message_when_negated; end
|
344
|
+
def initialize(request_pattern = nil, expected_times_executed = nil, at_least_times_executed = nil, at_most_times_executed = nil); end
|
345
|
+
def matches?; end
|
346
|
+
def quantity_phrase(is_negated = nil); end
|
347
|
+
def request_pattern; end
|
348
|
+
def request_pattern=(arg0); end
|
349
|
+
def self.executed_requests_message; end
|
350
|
+
def times(times); end
|
351
|
+
def times_executed; end
|
352
|
+
def times_executed=(arg0); end
|
353
|
+
end
|
354
|
+
class WebMock::Config
|
355
|
+
def allow; end
|
356
|
+
def allow=(arg0); end
|
357
|
+
def allow_localhost; end
|
358
|
+
def allow_localhost=(arg0); end
|
359
|
+
def allow_net_connect; end
|
360
|
+
def allow_net_connect=(arg0); end
|
361
|
+
def initialize; end
|
362
|
+
def net_http_connect_on_start; end
|
363
|
+
def net_http_connect_on_start=(arg0); end
|
364
|
+
def query_values_notation; end
|
365
|
+
def query_values_notation=(arg0); end
|
366
|
+
def self.allocate; end
|
367
|
+
def self.instance; end
|
368
|
+
def self.new(*arg0); end
|
369
|
+
def show_body_diff; end
|
370
|
+
def show_body_diff=(arg0); end
|
371
|
+
def show_stubbing_instructions; end
|
372
|
+
def show_stubbing_instructions=(arg0); end
|
373
|
+
extend Singleton::SingletonClassMethods
|
374
|
+
include Singleton
|
375
|
+
end
|
376
|
+
class WebMock::CallbackRegistry
|
377
|
+
def self.add_callback(options, block); end
|
378
|
+
def self.any_callbacks?; end
|
379
|
+
def self.callbacks; end
|
380
|
+
def self.invoke_callbacks(options, request_signature, response); end
|
381
|
+
def self.reset; end
|
382
|
+
end
|
383
|
+
class WebMock::RequestRegistry
|
384
|
+
def initialize; end
|
385
|
+
def requested_signatures; end
|
386
|
+
def requested_signatures=(arg0); end
|
387
|
+
def reset!; end
|
388
|
+
def self.allocate; end
|
389
|
+
def self.instance; end
|
390
|
+
def self.new(*arg0); end
|
391
|
+
def times_executed(request_pattern); end
|
392
|
+
def to_s; end
|
393
|
+
extend Singleton::SingletonClassMethods
|
394
|
+
include Singleton
|
395
|
+
end
|
396
|
+
class WebMock::StubRegistry
|
397
|
+
def evaluate_response_for_request(response, request_signature); end
|
398
|
+
def global_stubs; end
|
399
|
+
def initialize; end
|
400
|
+
def register_global_stub(&block); end
|
401
|
+
def register_request_stub(stub); end
|
402
|
+
def registered_request?(request_signature); end
|
403
|
+
def remove_request_stub(stub); end
|
404
|
+
def request_stub_for(request_signature); end
|
405
|
+
def request_stubs; end
|
406
|
+
def request_stubs=(arg0); end
|
407
|
+
def reset!; end
|
408
|
+
def response_for_request(request_signature); end
|
409
|
+
def self.allocate; end
|
410
|
+
def self.instance; end
|
411
|
+
def self.new(*arg0); end
|
412
|
+
extend Singleton::SingletonClassMethods
|
413
|
+
include Singleton
|
414
|
+
end
|
415
|
+
module WebMock::API
|
416
|
+
def a_request(method, uri); end
|
417
|
+
def anythingize_lonely_keys(*args); end
|
418
|
+
def assert_not_requested(*args, &block); end
|
419
|
+
def assert_request_not_requested(request, options = nil); end
|
420
|
+
def assert_request_requested(request, options = nil); end
|
421
|
+
def assert_requested(*args, &block); end
|
422
|
+
def convert_uri_method_and_options_to_request_and_options(method, uri, options, &block); end
|
423
|
+
def hash_excluding(*args); end
|
424
|
+
def hash_including(*args); end
|
425
|
+
def refute_requested(*args, &block); end
|
426
|
+
def remove_request_stub(stub); end
|
427
|
+
def reset_executed_requests!; end
|
428
|
+
def self.request(method, uri); end
|
429
|
+
def stub_http_request(method, uri); end
|
430
|
+
def stub_request(method, uri); end
|
431
|
+
extend WebMock::API
|
432
|
+
end
|
433
|
+
class WebMock::HttpLibAdapterRegistry
|
434
|
+
def each_adapter(&block); end
|
435
|
+
def http_lib_adapters; end
|
436
|
+
def http_lib_adapters=(arg0); end
|
437
|
+
def initialize; end
|
438
|
+
def register(lib, adapter); end
|
439
|
+
def self.allocate; end
|
440
|
+
def self.instance; end
|
441
|
+
def self.new(*arg0); end
|
442
|
+
extend Singleton::SingletonClassMethods
|
443
|
+
include Singleton
|
444
|
+
end
|
445
|
+
class WebMock::HttpLibAdapter
|
446
|
+
def self.adapter_for(lib); end
|
447
|
+
end
|
448
|
+
module Net
|
449
|
+
end
|
450
|
+
module Net::WebMockHTTPResponse
|
451
|
+
def read_body(dest = nil, &block); end
|
452
|
+
end
|
453
|
+
module WebMock::HttpLibAdapters
|
454
|
+
end
|
455
|
+
class WebMock::HttpLibAdapters::NetHttpAdapter < WebMock::HttpLibAdapter
|
456
|
+
def self.disable!; end
|
457
|
+
def self.enable!; end
|
458
|
+
end
|
459
|
+
class PatchedStringIO < StringIO
|
460
|
+
def orig_read_nonblock(*arg0); end
|
461
|
+
def read_nonblock(size, *args); end
|
462
|
+
end
|
463
|
+
class StubSocket
|
464
|
+
def close; end
|
465
|
+
def closed?; end
|
466
|
+
def continue_timeout; end
|
467
|
+
def continue_timeout=(arg0); end
|
468
|
+
def initialize(*args); end
|
469
|
+
def read_timeout; end
|
470
|
+
def read_timeout=(arg0); end
|
471
|
+
def readuntil(*args); end
|
472
|
+
def write_timeout; end
|
473
|
+
def write_timeout=(arg0); end
|
474
|
+
end
|
475
|
+
class Net::WebMockNetBufferedIO < Net::BufferedIO
|
476
|
+
def initialize(io, *args); end
|
477
|
+
def rbuf_fill; end
|
478
|
+
end
|
479
|
+
module WebMock::NetHTTPUtility
|
480
|
+
def self.check_right_http_connection; end
|
481
|
+
def self.puts_warning_for_right_http_if_needed; end
|
482
|
+
def self.request_signature_from_request(net_http, request, body = nil); end
|
483
|
+
def self.validate_headers(headers); end
|
484
|
+
end
|
485
|
+
module HTTP
|
486
|
+
end
|
487
|
+
class HTTP::Client
|
488
|
+
def __perform__(req, options); end
|
489
|
+
def webmock_enabled?; end
|
490
|
+
end
|
491
|
+
class HTTP::Request
|
492
|
+
def webmock_signature; end
|
493
|
+
end
|
494
|
+
class HTTP::Response
|
495
|
+
def self.from_webmock(webmock_response, request_signature = nil); end
|
496
|
+
def self.normalize_uri(uri); end
|
497
|
+
def to_webmock; end
|
498
|
+
end
|
499
|
+
class HTTP::Response::Streamer
|
500
|
+
def close; end
|
501
|
+
def initialize(str); end
|
502
|
+
def readpartial(size = nil); end
|
503
|
+
def sequence_id; end
|
504
|
+
end
|
505
|
+
class HTTP::WebMockPerform
|
506
|
+
def exec; end
|
507
|
+
def halt; end
|
508
|
+
def initialize(request, &perform); end
|
509
|
+
def invoke_callbacks(webmock_response, options = nil); end
|
510
|
+
def perform; end
|
511
|
+
def raise_timeout_error; end
|
512
|
+
def register_request(signature); end
|
513
|
+
def replay; end
|
514
|
+
def request_signature; end
|
515
|
+
def response_for_request(signature); end
|
516
|
+
end
|
517
|
+
class WebMock::HttpLibAdapters::HttpRbAdapter < WebMock::HttpLibAdapter
|
518
|
+
def self.disable!; end
|
519
|
+
def self.enable!; end
|
520
|
+
def self.enabled?; end
|
521
|
+
end
|