dear_inventory 0.2.0

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