dear_inventory 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,92 @@
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/coderay/all/coderay.rbi
9
+ #
10
+ # coderay-1.1.2
11
+
12
+ module CodeRay
13
+ def self.coderay_path(*path); end
14
+ def self.encode(code, lang, format, options = nil); end
15
+ def self.encode_file(filename, format, options = nil); end
16
+ def self.encode_tokens(tokens, format, options = nil); end
17
+ def self.encoder(format, options = nil); end
18
+ def self.get_scanner_options(options); end
19
+ def self.highlight(code, lang, options = nil, format = nil); end
20
+ def self.highlight_file(filename, options = nil, format = nil); end
21
+ def self.scan(code, lang, options = nil, &block); end
22
+ def self.scan_file(filename, lang = nil, options = nil, &block); end
23
+ def self.scanner(lang, options = nil, &block); end
24
+ end
25
+ module CodeRay::PluginHost
26
+ def [](id, *args, &blk); end
27
+ def all_plugins; end
28
+ def const_missing(const); end
29
+ def default(id = nil); end
30
+ def list; end
31
+ def load(id, *args, &blk); end
32
+ def load_all; end
33
+ def load_plugin_map; end
34
+ def make_plugin_hash; end
35
+ def map(hash); end
36
+ def path_to(plugin_id); end
37
+ def plugin_hash; end
38
+ def plugin_path(*args); end
39
+ def register(plugin, id); end
40
+ def self.extended(mod); end
41
+ def validate_id(id); end
42
+ end
43
+ class CodeRay::PluginHost::PluginNotFound < LoadError
44
+ end
45
+ class CodeRay::PluginHost::HostNotFound < LoadError
46
+ end
47
+ module CodeRay::Encoders
48
+ extend CodeRay::PluginHost
49
+ end
50
+ module CodeRay::Plugin
51
+ def aliases; end
52
+ def plugin_host(host = nil); end
53
+ def plugin_id; end
54
+ def register_for(id); end
55
+ def title(title = nil); end
56
+ end
57
+ class CodeRay::Encoders::Encoder
58
+ def <<(token); end
59
+ def begin_group(kind); end
60
+ def begin_line(kind); end
61
+ def compile(tokens, options = nil); end
62
+ def encode(code, lang, options = nil); end
63
+ def encode_tokens(tokens, options = nil); end
64
+ def end_group(kind); end
65
+ def end_line(kind); end
66
+ def file_extension; end
67
+ def finish(options); end
68
+ def get_output(options); end
69
+ def highlight(code, lang, options = nil); end
70
+ def initialize(options = nil); end
71
+ def options; end
72
+ def options=(arg0); end
73
+ def output(data); end
74
+ def scanner; end
75
+ def scanner=(arg0); end
76
+ def self.const_missing(sym); end
77
+ def self.file_extension; end
78
+ def setup(options); end
79
+ def text_token(text, kind); end
80
+ def token(content, kind); end
81
+ def tokens(tokens, options = nil); end
82
+ extend CodeRay::Plugin
83
+ end
84
+ class CodeRay::Encoders::Terminal < CodeRay::Encoders::Encoder
85
+ def begin_group(kind); end
86
+ def begin_line(kind); end
87
+ def end_group(kind); end
88
+ def end_line(kind); end
89
+ def open_token(kind); end
90
+ def setup(options); end
91
+ def text_token(text, kind); end
92
+ end
@@ -0,0 +1,48 @@
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/crack/all/crack.rbi
9
+ #
10
+ # crack-0.4.3
11
+
12
+ class REXMLUtiliyNodeString < String
13
+ def attributes; end
14
+ def attributes=(arg0); end
15
+ end
16
+ class REXMLUtilityNode
17
+ def add_node(node); end
18
+ def attributes; end
19
+ def attributes=(arg0); end
20
+ def children; end
21
+ def children=(arg0); end
22
+ def initialize(name, normalized_attributes = nil); end
23
+ def inner_html; end
24
+ def name; end
25
+ def name=(arg0); end
26
+ def self.available_typecasts; end
27
+ def self.available_typecasts=(obj); end
28
+ def self.typecasts; end
29
+ def self.typecasts=(obj); end
30
+ def to_hash; end
31
+ def to_html; end
32
+ def to_s; end
33
+ def type; end
34
+ def type=(arg0); end
35
+ def typecast_value(value); end
36
+ def undasherize_keys(params); end
37
+ def unnormalize_xml_entities(value); end
38
+ end
39
+ module Crack
40
+ end
41
+ class Crack::REXMLParser
42
+ def self.parse(xml); end
43
+ end
44
+ class Crack::XML
45
+ def self.parse(xml); end
46
+ def self.parser; end
47
+ def self.parser=(parser); end
48
+ end
@@ -0,0 +1,52 @@
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/domain_name/all/domain_name.rbi
9
+ #
10
+ # domain_name-0.5.20190701
11
+
12
+ class DomainName
13
+ def <(other); end
14
+ def <=(other); end
15
+ def <=>(other); end
16
+ def ==(other); end
17
+ def >(other); end
18
+ def >=(other); end
19
+ def canonical?; end
20
+ def canonical_tld?; end
21
+ def cookie_domain?(domain, host_only = nil); end
22
+ def domain; end
23
+ def domain_idn; end
24
+ def hostname; end
25
+ def hostname_idn; end
26
+ def idn; end
27
+ def initialize(hostname); end
28
+ def inspect; end
29
+ def ipaddr; end
30
+ def ipaddr?; end
31
+ def self.etld_data; end
32
+ def self.normalize(domain); end
33
+ def superdomain; end
34
+ def tld; end
35
+ def tld_idn; end
36
+ def to_s; end
37
+ def to_str; end
38
+ def uri_host; end
39
+ end
40
+ module DomainName::Punycode
41
+ def self.decode(string); end
42
+ def self.decode_hostname(hostname); end
43
+ def self.encode(string); end
44
+ def self.encode_hostname(hostname); end
45
+ end
46
+ class DomainName::Punycode::ArgumentError < ArgumentError
47
+ end
48
+ class DomainName::Punycode::BufferOverflowError < DomainName::Punycode::ArgumentError
49
+ end
50
+ class Object < BasicObject
51
+ def DomainName(hostname); end
52
+ end
@@ -0,0 +1,68 @@
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/dotenv/all/dotenv.rbi
9
+ #
10
+ # dotenv-2.7.5
11
+
12
+ module Dotenv
13
+ def ignoring_nonexistent_files; end
14
+ def instrument(name, payload = nil, &block); end
15
+ def load!(*filenames); end
16
+ def load(*filenames); end
17
+ def overload!(*filenames); end
18
+ def overload(*filenames); end
19
+ def parse(*filenames); end
20
+ def require_keys(*keys); end
21
+ def self.ignoring_nonexistent_files; end
22
+ def self.instrument(name, payload = nil, &block); end
23
+ def self.instrumenter; end
24
+ def self.instrumenter=(arg0); end
25
+ def self.load!(*filenames); end
26
+ def self.load(*filenames); end
27
+ def self.overload!(*filenames); end
28
+ def self.overload(*filenames); end
29
+ def self.parse(*filenames); end
30
+ def self.require_keys(*keys); end
31
+ def self.with(*filenames); end
32
+ def with(*filenames); end
33
+ end
34
+ module Dotenv::Substitutions
35
+ end
36
+ module Dotenv::Substitutions::Variable
37
+ def self.call(value, env, is_load); end
38
+ def self.substitute(match, variable, env); end
39
+ end
40
+ module Dotenv::Substitutions::Command
41
+ def self.call(value, _env, _is_load); end
42
+ end
43
+ class Dotenv::FormatError < SyntaxError
44
+ end
45
+ class Dotenv::Parser
46
+ def call; end
47
+ def expand_newlines(value); end
48
+ def initialize(string, is_load = nil); end
49
+ def parse_line(line); end
50
+ def parse_value(value); end
51
+ def self.call(string, is_load = nil); end
52
+ def self.substitutions; end
53
+ def unescape_characters(value); end
54
+ def variable_not_set?(line); end
55
+ end
56
+ class Dotenv::Environment < Hash
57
+ def apply!; end
58
+ def apply; end
59
+ def filename; end
60
+ def initialize(filename, is_load = nil); end
61
+ def load(is_load = nil); end
62
+ def read; end
63
+ end
64
+ class Dotenv::Error < StandardError
65
+ end
66
+ class Dotenv::MissingKeys < Dotenv::Error
67
+ def initialize(keys); end
68
+ end
@@ -0,0 +1,27 @@
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/ffi-compiler/all/ffi-compiler.rbi
9
+ #
10
+ # ffi-compiler-1.0.1
11
+
12
+ module FFI::Compiler
13
+ end
14
+ class FFI::Compiler::Platform
15
+ def arch; end
16
+ def mac?; end
17
+ def map_library_name(name); end
18
+ def name; end
19
+ def os; end
20
+ def self.system; end
21
+ end
22
+ module FFI
23
+ end
24
+ module FFI::Compiler::Loader
25
+ def self.caller_path(line = nil); end
26
+ def self.find(name, start_path = nil); end
27
+ end
@@ -0,0 +1,560 @@
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/ffi/all/ffi.rbi
9
+ #
10
+ # ffi-1.12.2
11
+
12
+ class FFI::Type
13
+ def alignment; end
14
+ def initialize(arg0); end
15
+ def inspect; end
16
+ def size; end
17
+ end
18
+ class FFI::Type::Builtin < FFI::Type
19
+ def inspect; end
20
+ end
21
+ class FFI::ArrayType < FFI::Type
22
+ def elem_type; end
23
+ def initialize(arg0, arg1); end
24
+ def length; end
25
+ end
26
+ module FFI::LastError
27
+ def error; end
28
+ def error=(arg0); end
29
+ def self.error; end
30
+ def self.error=(arg0); end
31
+ end
32
+ class FFI::AbstractMemory
33
+ def [](arg0); end
34
+ def __copy_from__(arg0, arg1); end
35
+ def clear; end
36
+ def get(arg0, arg1); end
37
+ def get_array_of_char(arg0, arg1); end
38
+ def get_array_of_double(arg0, arg1); end
39
+ def get_array_of_float(arg0, arg1); end
40
+ def get_array_of_float32(arg0, arg1); end
41
+ def get_array_of_float64(arg0, arg1); end
42
+ def get_array_of_int(arg0, arg1); end
43
+ def get_array_of_int16(arg0, arg1); end
44
+ def get_array_of_int32(arg0, arg1); end
45
+ def get_array_of_int64(arg0, arg1); end
46
+ def get_array_of_int8(arg0, arg1); end
47
+ def get_array_of_long(arg0, arg1); end
48
+ def get_array_of_long_long(arg0, arg1); end
49
+ def get_array_of_pointer(arg0, arg1); end
50
+ def get_array_of_short(arg0, arg1); end
51
+ def get_array_of_string(*arg0); end
52
+ def get_array_of_uchar(arg0, arg1); end
53
+ def get_array_of_uint(arg0, arg1); end
54
+ def get_array_of_uint16(arg0, arg1); end
55
+ def get_array_of_uint32(arg0, arg1); end
56
+ def get_array_of_uint64(arg0, arg1); end
57
+ def get_array_of_uint8(arg0, arg1); end
58
+ def get_array_of_ulong(arg0, arg1); end
59
+ def get_array_of_ulong_long(arg0, arg1); end
60
+ def get_array_of_ushort(arg0, arg1); end
61
+ def get_bytes(arg0, arg1); end
62
+ def get_char(arg0); end
63
+ def get_double(arg0); end
64
+ def get_float(arg0); end
65
+ def get_float32(arg0); end
66
+ def get_float64(arg0); end
67
+ def get_int(arg0); end
68
+ def get_int16(arg0); end
69
+ def get_int32(arg0); end
70
+ def get_int64(arg0); end
71
+ def get_int8(arg0); end
72
+ def get_long(arg0); end
73
+ def get_long_long(arg0); end
74
+ def get_pointer(arg0); end
75
+ def get_short(arg0); end
76
+ def get_string(*arg0); end
77
+ def get_uchar(arg0); end
78
+ def get_uint(arg0); end
79
+ def get_uint16(arg0); end
80
+ def get_uint32(arg0); end
81
+ def get_uint64(arg0); end
82
+ def get_uint8(arg0); end
83
+ def get_ulong(arg0); end
84
+ def get_ulong_long(arg0); end
85
+ def get_ushort(arg0); end
86
+ def put(arg0, arg1, arg2); end
87
+ def put_array_of_char(arg0, arg1); end
88
+ def put_array_of_double(arg0, arg1); end
89
+ def put_array_of_float(arg0, arg1); end
90
+ def put_array_of_float32(arg0, arg1); end
91
+ def put_array_of_float64(arg0, arg1); end
92
+ def put_array_of_int(arg0, arg1); end
93
+ def put_array_of_int16(arg0, arg1); end
94
+ def put_array_of_int32(arg0, arg1); end
95
+ def put_array_of_int64(arg0, arg1); end
96
+ def put_array_of_int8(arg0, arg1); end
97
+ def put_array_of_long(arg0, arg1); end
98
+ def put_array_of_long_long(arg0, arg1); end
99
+ def put_array_of_pointer(arg0, arg1); end
100
+ def put_array_of_short(arg0, arg1); end
101
+ def put_array_of_uchar(arg0, arg1); end
102
+ def put_array_of_uint(arg0, arg1); end
103
+ def put_array_of_uint16(arg0, arg1); end
104
+ def put_array_of_uint32(arg0, arg1); end
105
+ def put_array_of_uint64(arg0, arg1); end
106
+ def put_array_of_uint8(arg0, arg1); end
107
+ def put_array_of_ulong(arg0, arg1); end
108
+ def put_array_of_ulong_long(arg0, arg1); end
109
+ def put_array_of_ushort(arg0, arg1); end
110
+ def put_bytes(*arg0); end
111
+ def put_char(arg0, arg1); end
112
+ def put_double(arg0, arg1); end
113
+ def put_float(arg0, arg1); end
114
+ def put_float32(arg0, arg1); end
115
+ def put_float64(arg0, arg1); end
116
+ def put_int(arg0, arg1); end
117
+ def put_int16(arg0, arg1); end
118
+ def put_int32(arg0, arg1); end
119
+ def put_int64(arg0, arg1); end
120
+ def put_int8(arg0, arg1); end
121
+ def put_long(arg0, arg1); end
122
+ def put_long_long(arg0, arg1); end
123
+ def put_pointer(arg0, arg1); end
124
+ def put_short(arg0, arg1); end
125
+ def put_string(arg0, arg1); end
126
+ def put_uchar(arg0, arg1); end
127
+ def put_uint(arg0, arg1); end
128
+ def put_uint16(arg0, arg1); end
129
+ def put_uint32(arg0, arg1); end
130
+ def put_uint64(arg0, arg1); end
131
+ def put_uint8(arg0, arg1); end
132
+ def put_ulong(arg0, arg1); end
133
+ def put_ulong_long(arg0, arg1); end
134
+ def put_ushort(arg0, arg1); end
135
+ def read_array_of_char(arg0); end
136
+ def read_array_of_double(arg0); end
137
+ def read_array_of_float(arg0); end
138
+ def read_array_of_int(arg0); end
139
+ def read_array_of_int16(arg0); end
140
+ def read_array_of_int32(arg0); end
141
+ def read_array_of_int64(arg0); end
142
+ def read_array_of_int8(arg0); end
143
+ def read_array_of_long(arg0); end
144
+ def read_array_of_long_long(arg0); end
145
+ def read_array_of_pointer(arg0); end
146
+ def read_array_of_short(arg0); end
147
+ def read_array_of_uchar(arg0); end
148
+ def read_array_of_uint(arg0); end
149
+ def read_array_of_uint16(arg0); end
150
+ def read_array_of_uint32(arg0); end
151
+ def read_array_of_uint64(arg0); end
152
+ def read_array_of_uint8(arg0); end
153
+ def read_array_of_ulong(arg0); end
154
+ def read_array_of_ulong_long(arg0); end
155
+ def read_array_of_ushort(arg0); end
156
+ def read_bytes(arg0); end
157
+ def read_char; end
158
+ def read_double; end
159
+ def read_float; end
160
+ def read_int16; end
161
+ def read_int32; end
162
+ def read_int64; end
163
+ def read_int8; end
164
+ def read_int; end
165
+ def read_long; end
166
+ def read_long_long; end
167
+ def read_pointer; end
168
+ def read_short; end
169
+ def read_uchar; end
170
+ def read_uint16; end
171
+ def read_uint32; end
172
+ def read_uint64; end
173
+ def read_uint8; end
174
+ def read_uint; end
175
+ def read_ulong; end
176
+ def read_ulong_long; end
177
+ def read_ushort; end
178
+ def size; end
179
+ def total; end
180
+ def type_size; end
181
+ def write_array_of_char(arg0); end
182
+ def write_array_of_double(arg0); end
183
+ def write_array_of_float(arg0); end
184
+ def write_array_of_int(arg0); end
185
+ def write_array_of_int16(arg0); end
186
+ def write_array_of_int32(arg0); end
187
+ def write_array_of_int64(arg0); end
188
+ def write_array_of_int8(arg0); end
189
+ def write_array_of_long(arg0); end
190
+ def write_array_of_long_long(arg0); end
191
+ def write_array_of_pointer(arg0); end
192
+ def write_array_of_short(arg0); end
193
+ def write_array_of_uchar(arg0); end
194
+ def write_array_of_uint(arg0); end
195
+ def write_array_of_uint16(arg0); end
196
+ def write_array_of_uint32(arg0); end
197
+ def write_array_of_uint64(arg0); end
198
+ def write_array_of_uint8(arg0); end
199
+ def write_array_of_ulong(arg0); end
200
+ def write_array_of_ulong_long(arg0); end
201
+ def write_array_of_ushort(arg0); end
202
+ def write_bytes(*arg0); end
203
+ def write_char(arg0); end
204
+ def write_double(arg0); end
205
+ def write_float(arg0); end
206
+ def write_int(arg0); end
207
+ def write_int16(arg0); end
208
+ def write_int32(arg0); end
209
+ def write_int64(arg0); end
210
+ def write_int8(arg0); end
211
+ def write_long(arg0); end
212
+ def write_long_long(arg0); end
213
+ def write_pointer(arg0); end
214
+ def write_short(arg0); end
215
+ def write_uchar(arg0); end
216
+ def write_uint(arg0); end
217
+ def write_uint16(arg0); end
218
+ def write_uint32(arg0); end
219
+ def write_uint64(arg0); end
220
+ def write_uint8(arg0); end
221
+ def write_ulong(arg0); end
222
+ def write_ulong_long(arg0); end
223
+ def write_ushort(arg0); end
224
+ end
225
+ class FFI::Pointer < FFI::AbstractMemory
226
+ def +(arg0); end
227
+ def ==(arg0); end
228
+ def address; end
229
+ def autorelease=(arg0); end
230
+ def autorelease?; end
231
+ def free; end
232
+ def initialize(*arg0); end
233
+ def initialize_copy(arg0); end
234
+ def inspect; end
235
+ def null?; end
236
+ def order(*arg0); end
237
+ def read(type); end
238
+ def read_array_of_type(type, reader, length); end
239
+ def read_string(len = nil); end
240
+ def read_string_length(len); end
241
+ def read_string_to_null; end
242
+ def self.size; end
243
+ def slice(arg0, arg1); end
244
+ def to_i; end
245
+ def to_ptr; end
246
+ def to_s; end
247
+ def type_size; end
248
+ def write(type, value); end
249
+ def write_array_of_type(type, writer, ary); end
250
+ def write_string(str, len = nil); end
251
+ def write_string_length(str, len); end
252
+ end
253
+ class FFI::FunctionType < FFI::Type
254
+ def initialize(*arg0); end
255
+ def param_types; end
256
+ def result_type; end
257
+ end
258
+ class FFI::Function < FFI::Pointer
259
+ def attach(arg0, arg1); end
260
+ def autorelease; end
261
+ def autorelease=(arg0); end
262
+ def autorelease?; end
263
+ def call(*arg0); end
264
+ def free; end
265
+ def initialize(*arg0); end
266
+ def initialize_copy(arg0); end
267
+ end
268
+ class FFI::MemoryPointer < FFI::Pointer
269
+ def initialize(*arg0); end
270
+ def self.from_string(arg0); end
271
+ end
272
+ class FFI::Buffer < FFI::AbstractMemory
273
+ def +(arg0); end
274
+ def initialize(*arg0); end
275
+ def initialize_copy(arg0); end
276
+ def inspect; end
277
+ def length; end
278
+ def order(*arg0); end
279
+ def self.alloc_in(*arg0); end
280
+ def self.alloc_inout(*arg0); end
281
+ def self.alloc_out(*arg0); end
282
+ def self.new_in(*arg0); end
283
+ def self.new_inout(*arg0); end
284
+ def self.new_out(*arg0); end
285
+ def slice(arg0, arg1); end
286
+ end
287
+ class FFI::StructByValue < FFI::Type
288
+ def initialize(arg0); end
289
+ def layout; end
290
+ def struct_class; end
291
+ end
292
+ class FFI::StructLayout::Field
293
+ def alignment; end
294
+ def get(arg0); end
295
+ def initialize(*arg0); end
296
+ def name; end
297
+ def offset; end
298
+ def put(arg0, arg1); end
299
+ def size; end
300
+ def type; end
301
+ end
302
+ class FFI::StructLayout::Function < FFI::StructLayout::Field
303
+ def get(arg0); end
304
+ def put(arg0, arg1); end
305
+ end
306
+ class FFI::StructLayout::Array < FFI::StructLayout::Field
307
+ def get(arg0); end
308
+ def put(arg0, arg1); end
309
+ end
310
+ class FFI::StructLayout < FFI::Type
311
+ def [](arg0); end
312
+ def __union!; end
313
+ def fields; end
314
+ def initialize(arg0, arg1, arg2); end
315
+ def members; end
316
+ def offset_of(field_name); end
317
+ def offsets; end
318
+ def to_a; end
319
+ end
320
+ class FFI::Struct
321
+ def [](arg0); end
322
+ def []=(arg0, arg1); end
323
+ def align; end
324
+ def alignment; end
325
+ def clear; end
326
+ def initialize(*arg0); end
327
+ def initialize_copy(arg0); end
328
+ def layout; end
329
+ def layout=(arg0); end
330
+ def members; end
331
+ def null?; end
332
+ def offset_of(name); end
333
+ def offsets; end
334
+ def order(*arg0); end
335
+ def pointer; end
336
+ def pointer=(arg0); end
337
+ def self.align(alignment = nil); end
338
+ def self.aligned(alignment = nil); end
339
+ def self.alignment; end
340
+ def self.alloc_in(*arg0); end
341
+ def self.alloc_inout(*arg0); end
342
+ def self.alloc_out(*arg0); end
343
+ def self.array_layout(builder, spec); end
344
+ def self.auto_ptr; end
345
+ def self.by_ref(flags = nil); end
346
+ def self.by_value; end
347
+ def self.callback(params, ret); end
348
+ def self.enclosing_module; end
349
+ def self.find_field_type(type, mod = nil); end
350
+ def self.find_type(type, mod = nil); end
351
+ def self.hash_layout(builder, spec); end
352
+ def self.in; end
353
+ def self.layout(*spec); end
354
+ def self.members; end
355
+ def self.new_in(*arg0); end
356
+ def self.new_inout(*arg0); end
357
+ def self.new_out(*arg0); end
358
+ def self.offset_of(name); end
359
+ def self.offsets; end
360
+ def self.out; end
361
+ def self.pack(packed = nil); end
362
+ def self.packed(packed = nil); end
363
+ def self.ptr(flags = nil); end
364
+ def self.size; end
365
+ def self.size=(size); end
366
+ def self.val; end
367
+ def size; end
368
+ def to_ptr; end
369
+ def values; end
370
+ end
371
+ class FFI::Struct::InlineArray
372
+ def [](arg0); end
373
+ def []=(arg0, arg1); end
374
+ def each; end
375
+ def initialize(arg0, arg1); end
376
+ def size; end
377
+ def to_a; end
378
+ def to_ptr; end
379
+ end
380
+ class FFI::StructLayout::CharArray < FFI::Struct::InlineArray
381
+ def to_s; end
382
+ def to_str; end
383
+ end
384
+ class FFI::DynamicLibrary
385
+ def find_function(arg0); end
386
+ def find_symbol(arg0); end
387
+ def find_variable(arg0); end
388
+ def initialize(arg0, arg1); end
389
+ def last_error; end
390
+ def name; end
391
+ def self.last_error; end
392
+ def self.open(arg0, arg1); end
393
+ end
394
+ class FFI::DynamicLibrary::Symbol < FFI::Pointer
395
+ def initialize_copy(arg0); end
396
+ def inspect; end
397
+ end
398
+ class FFI::VariadicInvoker
399
+ def attach(mod, mname); end
400
+ def call(*args, &block); end
401
+ def init(arg_types, type_map); end
402
+ def initialize(arg0, arg1, arg2, arg3); end
403
+ def invoke(arg0, arg1); end
404
+ end
405
+ class FFI::Type::Mapped < FFI::Type
406
+ def from_native(*arg0); end
407
+ def initialize(arg0); end
408
+ def native_type; end
409
+ def to_native(*arg0); end
410
+ def type; end
411
+ end
412
+ module FFI
413
+ def self.add_typedef(old, add); end
414
+ def self.errno; end
415
+ def self.errno=(error); end
416
+ def self.find_type(name, type_map = nil); end
417
+ def self.map_library_name(lib); end
418
+ def self.type_size(type); end
419
+ def self.typedef(old, add); end
420
+ end
421
+ class FFI::PlatformError < LoadError
422
+ end
423
+ module FFI::Platform
424
+ def self.bsd?; end
425
+ def self.is_os(os); end
426
+ def self.mac?; end
427
+ def self.solaris?; end
428
+ def self.unix?; end
429
+ def self.windows?; end
430
+ end
431
+ module FFI::DataConverter
432
+ def from_native(value, ctx); end
433
+ def native_type(type = nil); end
434
+ def to_native(value, ctx); end
435
+ end
436
+ class FFI::StrPtrConverter
437
+ def self.from_native(val, ctx); end
438
+ extend FFI::DataConverter
439
+ end
440
+ class FFI::NotFoundError < LoadError
441
+ def initialize(function, *libraries); end
442
+ end
443
+ module FFI::Library
444
+ def attach_function(name, func, args, returns = nil, options = nil); end
445
+ def attach_variable(mname, a1, a2 = nil); end
446
+ def bitmask(*args); end
447
+ def callback(*args); end
448
+ def enum(*args); end
449
+ def enum_type(name); end
450
+ def enum_value(symbol); end
451
+ def ffi_convention(convention = nil); end
452
+ def ffi_lib(*names); end
453
+ def ffi_lib_flags(*flags); end
454
+ def ffi_libraries; end
455
+ def find_type(t); end
456
+ def function_names(name, arg_types); end
457
+ def generic_enum(klass, *args); end
458
+ def self.extended(mod); end
459
+ def typedef(old, add, info = nil); end
460
+ end
461
+ class FFI::StructLayout::Enum < FFI::StructLayout::Field
462
+ def get(ptr); end
463
+ def put(ptr, value); end
464
+ end
465
+ class FFI::StructLayout::InnerStruct < FFI::StructLayout::Field
466
+ def get(ptr); end
467
+ def put(ptr, value); end
468
+ end
469
+ class FFI::StructLayout::Mapped < FFI::StructLayout::Field
470
+ def get(ptr); end
471
+ def initialize(name, offset, type, orig_field); end
472
+ def put(ptr, value); end
473
+ end
474
+ class FFI::StructLayoutBuilder
475
+ def add(name, type, offset = nil); end
476
+ def add_array(name, type, count, offset = nil); end
477
+ def add_field(name, type, offset = nil); end
478
+ def add_struct(name, type, offset = nil); end
479
+ def align(offset, align); end
480
+ def alignment; end
481
+ def alignment=(align); end
482
+ def build; end
483
+ def field_for_type(name, offset, type); end
484
+ def initialize; end
485
+ def packed=(packed); end
486
+ def size; end
487
+ def size=(size); end
488
+ def union=(is_union); end
489
+ def union?; end
490
+ end
491
+ class FFI::StructByReference
492
+ def from_native(value, ctx); end
493
+ def initialize(struct_class); end
494
+ def native_type; end
495
+ def struct_class; end
496
+ def to_native(value, ctx); end
497
+ include FFI::DataConverter
498
+ end
499
+ class FFI::Struct::ManagedStructConverter < FFI::StructByReference
500
+ def from_native(ptr, ctx); end
501
+ def initialize(struct_class); end
502
+ end
503
+ class FFI::Union < FFI::Struct
504
+ def self.builder; end
505
+ end
506
+ class FFI::ManagedStruct < FFI::Struct
507
+ def initialize(pointer = nil); end
508
+ end
509
+ module FFI::IO
510
+ def self.for_fd(fd, mode = nil); end
511
+ def self.native_read(io, buf, len); end
512
+ end
513
+ class FFI::AutoPointer < FFI::Pointer
514
+ def autorelease=(autorelease); end
515
+ def autorelease?; end
516
+ def free; end
517
+ def initialize(ptr, proc = nil, &block); end
518
+ def self.from_native(val, ctx); end
519
+ def self.native_type; end
520
+ extend FFI::DataConverter
521
+ end
522
+ class FFI::AutoPointer::Releaser
523
+ def autorelease; end
524
+ def autorelease=(arg0); end
525
+ def call(*args); end
526
+ def free; end
527
+ def initialize(ptr, proc); end
528
+ end
529
+ class FFI::AutoPointer::DefaultReleaser < FFI::AutoPointer::Releaser
530
+ def release(ptr); end
531
+ end
532
+ class FFI::AutoPointer::CallableReleaser < FFI::AutoPointer::Releaser
533
+ def release(ptr); end
534
+ end
535
+ class FFI::Enums
536
+ def <<(enum); end
537
+ def __map_symbol(symbol); end
538
+ def find(query); end
539
+ def initialize; end
540
+ end
541
+ class FFI::Enum
542
+ def [](query); end
543
+ def find(query); end
544
+ def from_native(val, ctx); end
545
+ def initialize(*args); end
546
+ def native_type; end
547
+ def symbol_map; end
548
+ def symbols; end
549
+ def tag; end
550
+ def to_h; end
551
+ def to_hash; end
552
+ def to_native(val, ctx); end
553
+ include FFI::DataConverter
554
+ end
555
+ class FFI::Bitmask < FFI::Enum
556
+ def [](*query); end
557
+ def from_native(val, ctx); end
558
+ def initialize(*args); end
559
+ def to_native(query, ctx); end
560
+ end