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,65 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strong
|
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/hashdiff/all/hashdiff.rbi
|
9
|
+
#
|
10
|
+
# hashdiff-1.0.0
|
11
|
+
module Hashdiff
|
12
|
+
def self.any_hash_or_array?(obja, objb); end
|
13
|
+
def self.best_diff(obj1, obj2, options = nil, &block); end
|
14
|
+
def self.comparable?(obj1, obj2, strict = nil); end
|
15
|
+
def self.compare_values(obj1, obj2, options = nil); end
|
16
|
+
def self.count_diff(diffs); end
|
17
|
+
def self.count_nodes(obj); end
|
18
|
+
def self.custom_compare(method, key, obj1, obj2); end
|
19
|
+
def self.decode_property_path(path, delimiter = nil); end
|
20
|
+
def self.diff(obj1, obj2, options = nil, &block); end
|
21
|
+
def self.diff_array_lcs(arraya, arrayb, options = nil); end
|
22
|
+
def self.lcs(arraya, arrayb, options = nil); end
|
23
|
+
def self.node(hash, parts); end
|
24
|
+
def self.patch!(obj, changes, options = nil); end
|
25
|
+
def self.prefix_append_array_index(prefix, array_index, opts); end
|
26
|
+
def self.prefix_append_key(prefix, key, opts); end
|
27
|
+
def self.similar?(obja, objb, options = nil); end
|
28
|
+
def self.unpatch!(obj, changes, options = nil); end
|
29
|
+
end
|
30
|
+
class Hashdiff::CompareHashes
|
31
|
+
def self.call(obj1, obj2, opts = nil); end
|
32
|
+
end
|
33
|
+
class Hashdiff::LcsCompareArrays
|
34
|
+
def self.call(obj1, obj2, opts = nil); end
|
35
|
+
end
|
36
|
+
class Hashdiff::LinearCompareArray
|
37
|
+
def additions; end
|
38
|
+
def append_addition(item, index); end
|
39
|
+
def append_addititions_before_match(match_index); end
|
40
|
+
def append_deletion(item, index); end
|
41
|
+
def append_deletions_before_match(match_index); end
|
42
|
+
def append_differences(difference); end
|
43
|
+
def call; end
|
44
|
+
def changes; end
|
45
|
+
def compare_at_index; end
|
46
|
+
def deletions; end
|
47
|
+
def differences; end
|
48
|
+
def expected_additions; end
|
49
|
+
def expected_additions=(arg0); end
|
50
|
+
def extra_items_in_new_array?; end
|
51
|
+
def extra_items_in_old_array?; end
|
52
|
+
def index_of_match_after_additions; end
|
53
|
+
def index_of_match_after_deletions; end
|
54
|
+
def initialize(old_array, new_array, options); end
|
55
|
+
def item_difference(old_item, new_item, item_index); end
|
56
|
+
def iterated_through_both_arrays?; end
|
57
|
+
def new_array; end
|
58
|
+
def new_index; end
|
59
|
+
def new_index=(arg0); end
|
60
|
+
def old_array; end
|
61
|
+
def old_index; end
|
62
|
+
def old_index=(arg0); end
|
63
|
+
def options; end
|
64
|
+
def self.call(old_array, new_array, options = nil); end
|
65
|
+
end
|
@@ -0,0 +1,92 @@
|
|
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/http-cookie/all/http-cookie.rbi
|
9
|
+
#
|
10
|
+
# http-cookie-1.0.3
|
11
|
+
module HTTP
|
12
|
+
end
|
13
|
+
class HTTP::Cookie
|
14
|
+
def <=>(other); end
|
15
|
+
def acceptable?; end
|
16
|
+
def acceptable_from_uri?(uri); end
|
17
|
+
def accessed_at; end
|
18
|
+
def accessed_at=(arg0); end
|
19
|
+
def cookie_value; end
|
20
|
+
def created_at; end
|
21
|
+
def created_at=(arg0); end
|
22
|
+
def domain; end
|
23
|
+
def domain=(domain); end
|
24
|
+
def domain_name; end
|
25
|
+
def dot_domain; end
|
26
|
+
def encode_with(coder); end
|
27
|
+
def expire!; end
|
28
|
+
def expired?(time = nil); end
|
29
|
+
def expires; end
|
30
|
+
def expires=(t); end
|
31
|
+
def expires_at; end
|
32
|
+
def expires_at=(t); end
|
33
|
+
def for_domain; end
|
34
|
+
def for_domain=(arg0); end
|
35
|
+
def for_domain?; end
|
36
|
+
def httponly; end
|
37
|
+
def httponly=(arg0); end
|
38
|
+
def httponly?; end
|
39
|
+
def init_with(coder); end
|
40
|
+
def initialize(*args); end
|
41
|
+
def inspect; end
|
42
|
+
def max_age; end
|
43
|
+
def max_age=(sec); end
|
44
|
+
def name; end
|
45
|
+
def name=(name); end
|
46
|
+
def origin; end
|
47
|
+
def origin=(origin); end
|
48
|
+
def path; end
|
49
|
+
def path=(path); end
|
50
|
+
def secure; end
|
51
|
+
def secure=(arg0); end
|
52
|
+
def secure?; end
|
53
|
+
def self.cookie_value(cookies); end
|
54
|
+
def self.cookie_value_to_hash(cookie_value); end
|
55
|
+
def self.parse(set_cookie, origin, options = nil, &block); end
|
56
|
+
def self.path_match?(base_path, target_path); end
|
57
|
+
def session; end
|
58
|
+
def session?; end
|
59
|
+
def set_cookie_value; end
|
60
|
+
def to_s; end
|
61
|
+
def to_yaml_properties; end
|
62
|
+
def valid_for_uri?(uri); end
|
63
|
+
def value; end
|
64
|
+
def value=(value); end
|
65
|
+
def yaml_initialize(tag, map); end
|
66
|
+
include Comparable
|
67
|
+
end
|
68
|
+
class Array
|
69
|
+
end
|
70
|
+
class Hash
|
71
|
+
end
|
72
|
+
class String
|
73
|
+
end
|
74
|
+
class HTTP::CookieJar
|
75
|
+
def <<(cookie); end
|
76
|
+
def add(cookie); end
|
77
|
+
def cleanup(session = nil); end
|
78
|
+
def clear; end
|
79
|
+
def cookies(url = nil); end
|
80
|
+
def delete(cookie); end
|
81
|
+
def each(uri = nil, &block); end
|
82
|
+
def empty?(url = nil); end
|
83
|
+
def get_impl(base, value, *args); end
|
84
|
+
def initialize(options = nil); end
|
85
|
+
def initialize_copy(other); end
|
86
|
+
def load(readable, *options); end
|
87
|
+
def parse(set_cookie, origin, options = nil); end
|
88
|
+
def save(writable, *options); end
|
89
|
+
def self.const_missing(name); end
|
90
|
+
def store; end
|
91
|
+
include Enumerable
|
92
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strong
|
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/http-form_data/all/http-form_data.rbi
|
9
|
+
#
|
10
|
+
# http-form_data-2.1.1
|
11
|
+
module HTTP
|
12
|
+
end
|
13
|
+
module HTTP::FormData
|
14
|
+
def self.create(data); end
|
15
|
+
def self.ensure_hash(obj); end
|
16
|
+
def self.multipart?(data); end
|
17
|
+
end
|
18
|
+
module HTTP::FormData::Readable
|
19
|
+
def read(length = nil, outbuf = nil); end
|
20
|
+
def rewind; end
|
21
|
+
def size; end
|
22
|
+
def to_s; end
|
23
|
+
end
|
24
|
+
class HTTP::FormData::Part
|
25
|
+
def content_type; end
|
26
|
+
def filename; end
|
27
|
+
def initialize(body, content_type: nil, filename: nil); end
|
28
|
+
include HTTP::FormData::Readable
|
29
|
+
end
|
30
|
+
class HTTP::FormData::File < HTTP::FormData::Part
|
31
|
+
def filename_for(io); end
|
32
|
+
def initialize(path_or_io, opts = nil); end
|
33
|
+
def make_io(path_or_io); end
|
34
|
+
def mime_type; end
|
35
|
+
end
|
36
|
+
class HTTP::FormData::CompositeIO
|
37
|
+
def advance_io; end
|
38
|
+
def current_io; end
|
39
|
+
def initialize(ios); end
|
40
|
+
def read(length = nil, outbuf = nil); end
|
41
|
+
def rewind; end
|
42
|
+
def size; end
|
43
|
+
end
|
44
|
+
class HTTP::FormData::Multipart
|
45
|
+
def boundary; end
|
46
|
+
def content_length; end
|
47
|
+
def content_type; end
|
48
|
+
def glue; end
|
49
|
+
def initialize(data, boundary: nil); end
|
50
|
+
def self.generate_boundary; end
|
51
|
+
def tail; end
|
52
|
+
include HTTP::FormData::Readable
|
53
|
+
end
|
54
|
+
class HTTP::FormData::Multipart::Param
|
55
|
+
def content_type; end
|
56
|
+
def filename; end
|
57
|
+
def footer; end
|
58
|
+
def header; end
|
59
|
+
def initialize(name, value); end
|
60
|
+
def parameters; end
|
61
|
+
def self.coerce(data); end
|
62
|
+
include HTTP::FormData::Readable
|
63
|
+
end
|
64
|
+
class HTTP::FormData::Urlencoded
|
65
|
+
def content_length; end
|
66
|
+
def content_type; end
|
67
|
+
def initialize(data); end
|
68
|
+
def self.encoder; end
|
69
|
+
def self.encoder=(implementation); end
|
70
|
+
include HTTP::FormData::Readable
|
71
|
+
end
|
72
|
+
class HTTP::FormData::Error < StandardError
|
73
|
+
end
|
@@ -0,0 +1,609 @@
|
|
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/http/all/http.rbi
|
9
|
+
#
|
10
|
+
# http-4.0.5
|
11
|
+
module HTTP
|
12
|
+
def self.[](headers); end
|
13
|
+
extend HTTP::Chainable
|
14
|
+
end
|
15
|
+
class HTTP::Error < StandardError
|
16
|
+
end
|
17
|
+
class HTTP::ConnectionError < HTTP::Error
|
18
|
+
end
|
19
|
+
class HTTP::RequestError < HTTP::Error
|
20
|
+
end
|
21
|
+
class HTTP::ResponseError < HTTP::Error
|
22
|
+
end
|
23
|
+
class HTTP::StateError < HTTP::ResponseError
|
24
|
+
end
|
25
|
+
class HTTP::TimeoutError < HTTP::Error
|
26
|
+
end
|
27
|
+
class HTTP::HeaderError < HTTP::Error
|
28
|
+
end
|
29
|
+
module HTTP::Timeout
|
30
|
+
end
|
31
|
+
class HTTP::Timeout::Null
|
32
|
+
def <<(data); end
|
33
|
+
def close(*args, &block); end
|
34
|
+
def closed?(*args, &block); end
|
35
|
+
def connect(socket_class, host, port, nodelay = nil); end
|
36
|
+
def connect_ssl; end
|
37
|
+
def initialize(options = nil); end
|
38
|
+
def options; end
|
39
|
+
def readpartial(size, buffer = nil); end
|
40
|
+
def rescue_readable(timeout = nil); end
|
41
|
+
def rescue_writable(timeout = nil); end
|
42
|
+
def socket; end
|
43
|
+
def start_tls(host, ssl_socket_class, ssl_context); end
|
44
|
+
def write(data); end
|
45
|
+
extend Forwardable
|
46
|
+
end
|
47
|
+
class HTTP::Timeout::PerOperation < HTTP::Timeout::Null
|
48
|
+
def connect(socket_class, host, port, nodelay = nil); end
|
49
|
+
def connect_ssl; end
|
50
|
+
def initialize(*args); end
|
51
|
+
def readpartial(size, buffer = nil); end
|
52
|
+
def write(data); end
|
53
|
+
end
|
54
|
+
class HTTP::Timeout::Global < HTTP::Timeout::Null
|
55
|
+
def <<(data); end
|
56
|
+
def connect(socket_class, host, port, nodelay = nil); end
|
57
|
+
def connect_ssl; end
|
58
|
+
def initialize(*args); end
|
59
|
+
def log_time; end
|
60
|
+
def perform_io; end
|
61
|
+
def read_nonblock(size, buffer = nil); end
|
62
|
+
def readpartial(size, buffer = nil); end
|
63
|
+
def reset_counter; end
|
64
|
+
def reset_timer; end
|
65
|
+
def wait_readable_or_timeout; end
|
66
|
+
def wait_writable_or_timeout; end
|
67
|
+
def write(data); end
|
68
|
+
def write_nonblock(data); end
|
69
|
+
end
|
70
|
+
class HTTP::Headers
|
71
|
+
def ==(other); end
|
72
|
+
def [](name); end
|
73
|
+
def []=(name, value); end
|
74
|
+
def add(name, value); end
|
75
|
+
def delete(name); end
|
76
|
+
def each; end
|
77
|
+
def empty?(*args, &block); end
|
78
|
+
def get(name); end
|
79
|
+
def hash(*args, &block); end
|
80
|
+
def include?(name); end
|
81
|
+
def initialize; end
|
82
|
+
def initialize_copy(orig); end
|
83
|
+
def inspect; end
|
84
|
+
def keys; end
|
85
|
+
def merge!(other); end
|
86
|
+
def merge(other); end
|
87
|
+
def normalize_header(name); end
|
88
|
+
def self.[](object); end
|
89
|
+
def self.coerce(object); end
|
90
|
+
def set(name, value); end
|
91
|
+
def to_a; end
|
92
|
+
def to_h; end
|
93
|
+
def to_hash; end
|
94
|
+
extend Forwardable
|
95
|
+
include Enumerable
|
96
|
+
end
|
97
|
+
module HTTP::Headers::Mixin
|
98
|
+
def [](*args, &block); end
|
99
|
+
def []=(*args, &block); end
|
100
|
+
def headers; end
|
101
|
+
extend Forwardable
|
102
|
+
end
|
103
|
+
module HTTP::Chainable
|
104
|
+
def accept(type); end
|
105
|
+
def auth(value); end
|
106
|
+
def basic_auth(opts); end
|
107
|
+
def branch(options); end
|
108
|
+
def build_request(*args); end
|
109
|
+
def connect(uri, options = nil); end
|
110
|
+
def cookies(cookies); end
|
111
|
+
def default_options; end
|
112
|
+
def default_options=(opts); end
|
113
|
+
def delete(uri, options = nil); end
|
114
|
+
def encoding(encoding); end
|
115
|
+
def follow(options = nil); end
|
116
|
+
def get(uri, options = nil); end
|
117
|
+
def head(uri, options = nil); end
|
118
|
+
def headers(headers); end
|
119
|
+
def nodelay; end
|
120
|
+
def options(uri, options = nil); end
|
121
|
+
def patch(uri, options = nil); end
|
122
|
+
def persistent(host, timeout: nil); end
|
123
|
+
def post(uri, options = nil); end
|
124
|
+
def put(uri, options = nil); end
|
125
|
+
def request(*args); end
|
126
|
+
def through(*proxy); end
|
127
|
+
def timeout(options); end
|
128
|
+
def trace(uri, options = nil); end
|
129
|
+
def use(*features); end
|
130
|
+
def via(*proxy); end
|
131
|
+
end
|
132
|
+
class HTTP::URI
|
133
|
+
def ==(other); end
|
134
|
+
def authority(*args, &block); end
|
135
|
+
def authority=(*args, &block); end
|
136
|
+
def dup; end
|
137
|
+
def eql?(other); end
|
138
|
+
def fragment(*args, &block); end
|
139
|
+
def fragment=(*args, &block); end
|
140
|
+
def hash; end
|
141
|
+
def host(*args, &block); end
|
142
|
+
def host=(*args, &block); end
|
143
|
+
def http?; end
|
144
|
+
def https?; end
|
145
|
+
def initialize(options_or_uri = nil); end
|
146
|
+
def inspect; end
|
147
|
+
def join(*args, &block); end
|
148
|
+
def normalize(*args, &block); end
|
149
|
+
def normalized_authority(*args, &block); end
|
150
|
+
def normalized_fragment(*args, &block); end
|
151
|
+
def normalized_host(*args, &block); end
|
152
|
+
def normalized_password(*args, &block); end
|
153
|
+
def normalized_path(*args, &block); end
|
154
|
+
def normalized_port(*args, &block); end
|
155
|
+
def normalized_query(*args, &block); end
|
156
|
+
def normalized_scheme(*args, &block); end
|
157
|
+
def normalized_user(*args, &block); end
|
158
|
+
def omit(*args, &block); end
|
159
|
+
def origin(*args, &block); end
|
160
|
+
def origin=(*args, &block); end
|
161
|
+
def password(*args, &block); end
|
162
|
+
def password=(*args, &block); end
|
163
|
+
def path(*args, &block); end
|
164
|
+
def path=(*args, &block); end
|
165
|
+
def port; end
|
166
|
+
def port=(*args, &block); end
|
167
|
+
def query(*args, &block); end
|
168
|
+
def query=(*args, &block); end
|
169
|
+
def query_values(*args, &block); end
|
170
|
+
def query_values=(*args, &block); end
|
171
|
+
def request_uri(*args, &block); end
|
172
|
+
def request_uri=(*args, &block); end
|
173
|
+
def scheme(*args, &block); end
|
174
|
+
def scheme=(*args, &block); end
|
175
|
+
def self.form_encode(form_values, sort = nil); end
|
176
|
+
def self.parse(uri); end
|
177
|
+
def to_s; end
|
178
|
+
def to_str; end
|
179
|
+
def user(*args, &block); end
|
180
|
+
def user=(*args, &block); end
|
181
|
+
extend Forwardable
|
182
|
+
end
|
183
|
+
class HTTP::Options
|
184
|
+
def []=(option, val); end
|
185
|
+
def argument_error!(message); end
|
186
|
+
def body; end
|
187
|
+
def body=(arg0); end
|
188
|
+
def cookies; end
|
189
|
+
def cookies=(arg0); end
|
190
|
+
def dup; end
|
191
|
+
def encoding; end
|
192
|
+
def encoding=(arg0); end
|
193
|
+
def feature(name); end
|
194
|
+
def features; end
|
195
|
+
def features=(features); end
|
196
|
+
def follow; end
|
197
|
+
def follow=(value); end
|
198
|
+
def form; end
|
199
|
+
def form=(arg0); end
|
200
|
+
def headers; end
|
201
|
+
def headers=(arg0); end
|
202
|
+
def initialize(options = nil); end
|
203
|
+
def json; end
|
204
|
+
def json=(arg0); end
|
205
|
+
def keep_alive_timeout; end
|
206
|
+
def keep_alive_timeout=(arg0); end
|
207
|
+
def merge(other); end
|
208
|
+
def nodelay; end
|
209
|
+
def nodelay=(arg0); end
|
210
|
+
def params; end
|
211
|
+
def params=(arg0); end
|
212
|
+
def persistent; end
|
213
|
+
def persistent=(value); end
|
214
|
+
def persistent?; end
|
215
|
+
def proxy; end
|
216
|
+
def proxy=(arg0); end
|
217
|
+
def response; end
|
218
|
+
def response=(arg0); end
|
219
|
+
def self.available_features; end
|
220
|
+
def self.def_option(name, reader_only: nil, &interpreter); end
|
221
|
+
def self.default_socket_class; end
|
222
|
+
def self.default_socket_class=(arg0); end
|
223
|
+
def self.default_ssl_socket_class; end
|
224
|
+
def self.default_ssl_socket_class=(arg0); end
|
225
|
+
def self.default_timeout_class; end
|
226
|
+
def self.default_timeout_class=(arg0); end
|
227
|
+
def self.defined_options; end
|
228
|
+
def self.new(options = nil); end
|
229
|
+
def self.register_feature(name, impl); end
|
230
|
+
def socket_class; end
|
231
|
+
def socket_class=(arg0); end
|
232
|
+
def ssl; end
|
233
|
+
def ssl=(arg0); end
|
234
|
+
def ssl_context; end
|
235
|
+
def ssl_context=(arg0); end
|
236
|
+
def ssl_socket_class; end
|
237
|
+
def ssl_socket_class=(arg0); end
|
238
|
+
def timeout_class; end
|
239
|
+
def timeout_class=(arg0); end
|
240
|
+
def timeout_options; end
|
241
|
+
def timeout_options=(arg0); end
|
242
|
+
def to_hash; end
|
243
|
+
def with_body(value); end
|
244
|
+
def with_cookies(value); end
|
245
|
+
def with_encoding(value); end
|
246
|
+
def with_features(value); end
|
247
|
+
def with_follow(value); end
|
248
|
+
def with_form(value); end
|
249
|
+
def with_headers(value); end
|
250
|
+
def with_json(value); end
|
251
|
+
def with_keep_alive_timeout(value); end
|
252
|
+
def with_nodelay(value); end
|
253
|
+
def with_params(value); end
|
254
|
+
def with_persistent(value); end
|
255
|
+
def with_proxy(value); end
|
256
|
+
def with_response(value); end
|
257
|
+
def with_socket_class(value); end
|
258
|
+
def with_ssl(value); end
|
259
|
+
def with_ssl_context(value); end
|
260
|
+
def with_ssl_socket_class(value); end
|
261
|
+
def with_timeout_class(value); end
|
262
|
+
def with_timeout_options(value); end
|
263
|
+
end
|
264
|
+
module HTTP::Features
|
265
|
+
end
|
266
|
+
class HTTP::Features::AutoInflate < HTTP::Feature
|
267
|
+
def stream_for(connection); end
|
268
|
+
def supported_encoding?(response); end
|
269
|
+
def wrap_response(response); end
|
270
|
+
end
|
271
|
+
class HTTP::Request
|
272
|
+
def body; end
|
273
|
+
def connect_using_proxy(socket); end
|
274
|
+
def default_host_header_value; end
|
275
|
+
def headline; end
|
276
|
+
def host(*args, &block); end
|
277
|
+
def include_proxy_authorization_header; end
|
278
|
+
def include_proxy_headers; end
|
279
|
+
def initialize(opts); end
|
280
|
+
def inspect; end
|
281
|
+
def normalize_uri(uri); end
|
282
|
+
def port; end
|
283
|
+
def proxy; end
|
284
|
+
def proxy_authorization_header; end
|
285
|
+
def proxy_connect_header; end
|
286
|
+
def proxy_connect_headers; end
|
287
|
+
def redirect(uri, verb = nil); end
|
288
|
+
def scheme; end
|
289
|
+
def socket_host; end
|
290
|
+
def socket_port; end
|
291
|
+
def stream(socket); end
|
292
|
+
def uri; end
|
293
|
+
def using_authenticated_proxy?; end
|
294
|
+
def using_proxy?; end
|
295
|
+
def verb; end
|
296
|
+
def version; end
|
297
|
+
extend Forwardable
|
298
|
+
include HTTP::Headers::Mixin
|
299
|
+
end
|
300
|
+
class HTTP::Request::Body
|
301
|
+
def ==(other); end
|
302
|
+
def each(&block); end
|
303
|
+
def initialize(source); end
|
304
|
+
def rewind(io); end
|
305
|
+
def size; end
|
306
|
+
def source; end
|
307
|
+
def validate_source_type!; end
|
308
|
+
end
|
309
|
+
class HTTP::Request::Body::ProcIO
|
310
|
+
def initialize(block); end
|
311
|
+
def write(data); end
|
312
|
+
end
|
313
|
+
class HTTP::Features::AutoDeflate < HTTP::Feature
|
314
|
+
def deflated_body(body); end
|
315
|
+
def initialize(*arg0); end
|
316
|
+
def method; end
|
317
|
+
def wrap_request(request); end
|
318
|
+
end
|
319
|
+
class HTTP::Features::AutoDeflate::CompressedBody < HTTP::Request::Body
|
320
|
+
def compress_all!; end
|
321
|
+
def compressed_each; end
|
322
|
+
def each(&block); end
|
323
|
+
def initialize(uncompressed_body); end
|
324
|
+
def size; end
|
325
|
+
end
|
326
|
+
class HTTP::Features::AutoDeflate::GzippedBody < HTTP::Features::AutoDeflate::CompressedBody
|
327
|
+
def compress(&block); end
|
328
|
+
end
|
329
|
+
class HTTP::Features::AutoDeflate::GzippedBody::BlockIO
|
330
|
+
def initialize(block); end
|
331
|
+
def write(data); end
|
332
|
+
end
|
333
|
+
class HTTP::Features::AutoDeflate::DeflatedBody < HTTP::Features::AutoDeflate::CompressedBody
|
334
|
+
def compress; end
|
335
|
+
end
|
336
|
+
class HTTP::Features::Logging < HTTP::Feature
|
337
|
+
def initialize(logger: nil); end
|
338
|
+
def logger; end
|
339
|
+
def wrap_request(request); end
|
340
|
+
def wrap_response(response); end
|
341
|
+
end
|
342
|
+
class HTTP::Features::Logging::NullLogger
|
343
|
+
def debug(*_args); end
|
344
|
+
def debug?; end
|
345
|
+
def error(*_args); end
|
346
|
+
def error?; end
|
347
|
+
def fatal(*_args); end
|
348
|
+
def fatal?; end
|
349
|
+
def info(*_args); end
|
350
|
+
def info?; end
|
351
|
+
def warn(*_args); end
|
352
|
+
def warn?; end
|
353
|
+
end
|
354
|
+
class HTTP::Features::Instrumentation < HTTP::Feature
|
355
|
+
def initialize(instrumenter: nil, namespace: nil); end
|
356
|
+
def instrumenter; end
|
357
|
+
def name; end
|
358
|
+
def wrap_request(request); end
|
359
|
+
def wrap_response(response); end
|
360
|
+
end
|
361
|
+
class HTTP::Features::Instrumentation::NullInstrumenter
|
362
|
+
def finish(_name, _payload); end
|
363
|
+
def instrument(name, payload = nil); end
|
364
|
+
def start(_name, _payload); end
|
365
|
+
end
|
366
|
+
class HTTP::Feature
|
367
|
+
def initialize(opts = nil); end
|
368
|
+
def wrap_request(request); end
|
369
|
+
def wrap_response(response); end
|
370
|
+
end
|
371
|
+
class HTTP::Response
|
372
|
+
def body; end
|
373
|
+
def charset(*args, &block); end
|
374
|
+
def chunked?; end
|
375
|
+
def code(*args, &block); end
|
376
|
+
def connection(*args, &block); end
|
377
|
+
def content_length; end
|
378
|
+
def content_type; end
|
379
|
+
def cookies; end
|
380
|
+
def flush; end
|
381
|
+
def initialize(opts); end
|
382
|
+
def inspect; end
|
383
|
+
def mime_type(*args, &block); end
|
384
|
+
def parse(as = nil); end
|
385
|
+
def proxy_headers; end
|
386
|
+
def readpartial(*args, &block); end
|
387
|
+
def reason(*args, &block); end
|
388
|
+
def status; end
|
389
|
+
def to_a; end
|
390
|
+
def to_s(*args, &block); end
|
391
|
+
def to_str(*args, &block); end
|
392
|
+
def uri; end
|
393
|
+
def version; end
|
394
|
+
extend Forwardable
|
395
|
+
include HTTP::Headers::Mixin
|
396
|
+
end
|
397
|
+
class HTTP::Response::Parser
|
398
|
+
def <<(data); end
|
399
|
+
def add(data); end
|
400
|
+
def finished?; end
|
401
|
+
def headers; end
|
402
|
+
def headers?; end
|
403
|
+
def http_version; end
|
404
|
+
def initialize; end
|
405
|
+
def on_body(chunk); end
|
406
|
+
def on_headers_complete(headers); end
|
407
|
+
def on_message_complete; end
|
408
|
+
def read(size); end
|
409
|
+
def reset; end
|
410
|
+
def status_code; end
|
411
|
+
end
|
412
|
+
class HTTP::Connection
|
413
|
+
def close; end
|
414
|
+
def expired?; end
|
415
|
+
def failed_proxy_connect?; end
|
416
|
+
def finish_response; end
|
417
|
+
def headers(*args, &block); end
|
418
|
+
def http_version(*args, &block); end
|
419
|
+
def initialize(req, options); end
|
420
|
+
def keep_alive?; end
|
421
|
+
def proxy_response_headers; end
|
422
|
+
def read_headers!; end
|
423
|
+
def read_more(size); end
|
424
|
+
def readpartial(size = nil); end
|
425
|
+
def reset_timer; end
|
426
|
+
def send_proxy_connect_request(req); end
|
427
|
+
def send_request(req); end
|
428
|
+
def set_keep_alive; end
|
429
|
+
def start_tls(req, options); end
|
430
|
+
def status_code(*args, &block); end
|
431
|
+
extend Forwardable
|
432
|
+
end
|
433
|
+
class HTTP::Redirector
|
434
|
+
def endless_loop?; end
|
435
|
+
def initialize(opts = nil); end
|
436
|
+
def max_hops; end
|
437
|
+
def perform(request, response); end
|
438
|
+
def redirect_to(uri); end
|
439
|
+
def strict; end
|
440
|
+
def too_many_hops?; end
|
441
|
+
end
|
442
|
+
class HTTP::Redirector::TooManyRedirectsError < HTTP::ResponseError
|
443
|
+
end
|
444
|
+
class HTTP::Redirector::EndlessRedirectError < HTTP::Redirector::TooManyRedirectsError
|
445
|
+
end
|
446
|
+
class HTTP::Client
|
447
|
+
def build_request(verb, uri, opts = nil); end
|
448
|
+
def close; end
|
449
|
+
def initialize(default_options = nil); end
|
450
|
+
def make_request_body(opts, headers); end
|
451
|
+
def make_request_headers(opts); end
|
452
|
+
def make_request_uri(uri, opts); end
|
453
|
+
def perform(request, options); end
|
454
|
+
def persistent?(*args, &block); end
|
455
|
+
def request(verb, uri, opts = nil); end
|
456
|
+
def verify_connection!(uri); end
|
457
|
+
extend Forwardable
|
458
|
+
include HTTP::Chainable
|
459
|
+
end
|
460
|
+
class HTTP::Request::Writer
|
461
|
+
def add_body_type_headers; end
|
462
|
+
def add_headers; end
|
463
|
+
def chunked?; end
|
464
|
+
def connect_through_proxy; end
|
465
|
+
def each_chunk; end
|
466
|
+
def encode_chunk(chunk); end
|
467
|
+
def initialize(socket, body, headers, headline); end
|
468
|
+
def join_headers; end
|
469
|
+
def send_request; end
|
470
|
+
def stream; end
|
471
|
+
def write(data); end
|
472
|
+
end
|
473
|
+
class HTTP::Request::UnsupportedMethodError < HTTP::RequestError
|
474
|
+
end
|
475
|
+
class HTTP::Request::UnsupportedSchemeError < HTTP::RequestError
|
476
|
+
end
|
477
|
+
class HTTP::ContentType < Struct
|
478
|
+
def charset; end
|
479
|
+
def charset=(_); end
|
480
|
+
def mime_type; end
|
481
|
+
def mime_type=(_); end
|
482
|
+
def self.[](*arg0); end
|
483
|
+
def self.charset(str); end
|
484
|
+
def self.inspect; end
|
485
|
+
def self.members; end
|
486
|
+
def self.mime_type(str); end
|
487
|
+
def self.new(*arg0); end
|
488
|
+
def self.parse(str); end
|
489
|
+
end
|
490
|
+
module HTTP::MimeType
|
491
|
+
def self.[](type); end
|
492
|
+
def self.adapters; end
|
493
|
+
def self.aliases; end
|
494
|
+
def self.normalize(type); end
|
495
|
+
def self.register_adapter(type, adapter); end
|
496
|
+
def self.register_alias(type, shortcut); end
|
497
|
+
end
|
498
|
+
class HTTP::MimeType::Adapter
|
499
|
+
def decode(*arg0); end
|
500
|
+
def encode(*arg0); end
|
501
|
+
def self.allocate; end
|
502
|
+
def self.decode(*args, &block); end
|
503
|
+
def self.encode(*args, &block); end
|
504
|
+
def self.instance; end
|
505
|
+
def self.new(*arg0); end
|
506
|
+
extend Singleton::SingletonClassMethods
|
507
|
+
include Singleton
|
508
|
+
end
|
509
|
+
class HTTP::MimeType::JSON < HTTP::MimeType::Adapter
|
510
|
+
def decode(str); end
|
511
|
+
def encode(obj); end
|
512
|
+
def self.instance; end
|
513
|
+
end
|
514
|
+
class HTTP::Response::Status < Delegator
|
515
|
+
def __getobj__; end
|
516
|
+
def __setobj__(obj); end
|
517
|
+
def accepted?; end
|
518
|
+
def already_reported?; end
|
519
|
+
def bad_gateway?; end
|
520
|
+
def bad_request?; end
|
521
|
+
def client_error?; end
|
522
|
+
def code; end
|
523
|
+
def conflict?; end
|
524
|
+
def continue?; end
|
525
|
+
def created?; end
|
526
|
+
def expectation_failed?; end
|
527
|
+
def failed_dependency?; end
|
528
|
+
def forbidden?; end
|
529
|
+
def found?; end
|
530
|
+
def gateway_timeout?; end
|
531
|
+
def gone?; end
|
532
|
+
def http_version_not_supported?; end
|
533
|
+
def im_used?; end
|
534
|
+
def informational?; end
|
535
|
+
def inspect; end
|
536
|
+
def insufficient_storage?; end
|
537
|
+
def internal_server_error?; end
|
538
|
+
def length_required?; end
|
539
|
+
def locked?; end
|
540
|
+
def loop_detected?; end
|
541
|
+
def method_not_allowed?; end
|
542
|
+
def misdirected_request?; end
|
543
|
+
def moved_permanently?; end
|
544
|
+
def multi_status?; end
|
545
|
+
def multiple_choices?; end
|
546
|
+
def network_authentication_required?; end
|
547
|
+
def no_content?; end
|
548
|
+
def non_authoritative_information?; end
|
549
|
+
def not_acceptable?; end
|
550
|
+
def not_extended?; end
|
551
|
+
def not_found?; end
|
552
|
+
def not_implemented?; end
|
553
|
+
def not_modified?; end
|
554
|
+
def ok?; end
|
555
|
+
def partial_content?; end
|
556
|
+
def payload_too_large?; end
|
557
|
+
def payment_required?; end
|
558
|
+
def permanent_redirect?; end
|
559
|
+
def precondition_failed?; end
|
560
|
+
def precondition_required?; end
|
561
|
+
def processing?; end
|
562
|
+
def proxy_authentication_required?; end
|
563
|
+
def range_not_satisfiable?; end
|
564
|
+
def reason; end
|
565
|
+
def redirect?; end
|
566
|
+
def request_header_fields_too_large?; end
|
567
|
+
def request_timeout?; end
|
568
|
+
def reset_content?; end
|
569
|
+
def see_other?; end
|
570
|
+
def self.[](object); end
|
571
|
+
def self.coerce(object); end
|
572
|
+
def self.symbolize(str); end
|
573
|
+
def server_error?; end
|
574
|
+
def service_unavailable?; end
|
575
|
+
def success?; end
|
576
|
+
def switching_protocols?; end
|
577
|
+
def temporary_redirect?; end
|
578
|
+
def to_s; end
|
579
|
+
def to_sym; end
|
580
|
+
def too_many_requests?; end
|
581
|
+
def unauthorized?; end
|
582
|
+
def unavailable_for_legal_reasons?; end
|
583
|
+
def unprocessable_entity?; end
|
584
|
+
def unsupported_media_type?; end
|
585
|
+
def upgrade_required?; end
|
586
|
+
def uri_too_long?; end
|
587
|
+
def use_proxy?; end
|
588
|
+
def variant_also_negotiates?; end
|
589
|
+
end
|
590
|
+
class HTTP::Response::Inflater
|
591
|
+
def connection; end
|
592
|
+
def initialize(connection); end
|
593
|
+
def readpartial(*args); end
|
594
|
+
def zstream; end
|
595
|
+
end
|
596
|
+
class HTTP::Response::Body
|
597
|
+
def connection; end
|
598
|
+
def each; end
|
599
|
+
def empty?(*args, &block); end
|
600
|
+
def find_encoding(encoding); end
|
601
|
+
def initialize(stream, encoding: nil); end
|
602
|
+
def inspect; end
|
603
|
+
def readpartial(*args); end
|
604
|
+
def stream!; end
|
605
|
+
def to_s; end
|
606
|
+
def to_str; end
|
607
|
+
extend Forwardable
|
608
|
+
include Enumerable
|
609
|
+
end
|