dear_inventory 1.4.0 → 1.5.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 (164) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +13 -4
  3. data/Gemfile +14 -0
  4. data/README.md +1 -10
  5. data/dear_inventory.gemspec +5 -15
  6. data/lib/dear_inventory/config.rb +12 -25
  7. data/lib/dear_inventory/environment.rb +1 -2
  8. data/lib/dear_inventory/error.rb +1 -6
  9. data/lib/dear_inventory/errors/api_limit.rb +0 -1
  10. data/lib/dear_inventory/errors/bad_request.rb +0 -1
  11. data/lib/dear_inventory/errors/no_more_pages.rb +0 -1
  12. data/lib/dear_inventory/errors/not_paginated.rb +0 -9
  13. data/lib/dear_inventory/errors/request.rb +1 -11
  14. data/lib/dear_inventory/errors/validation.rb +0 -1
  15. data/lib/dear_inventory/lib/date_time.rb +1 -6
  16. data/lib/dear_inventory/lib/endpoint_class.rb +4 -25
  17. data/lib/dear_inventory/lib/is_a_subclass.rb +1 -7
  18. data/lib/dear_inventory/lib/request.rb +10 -35
  19. data/lib/dear_inventory/lib/strings/urlize.rb +0 -4
  20. data/lib/dear_inventory/model.rb +26 -59
  21. data/lib/dear_inventory/models/additional_attributes.rb +0 -3
  22. data/lib/dear_inventory/models/address.rb +0 -3
  23. data/lib/dear_inventory/models/advanced_purchase.rb +0 -3
  24. data/lib/dear_inventory/models/attachment.rb +0 -3
  25. data/lib/dear_inventory/models/bill_of_materials_product.rb +0 -3
  26. data/lib/dear_inventory/models/bill_of_materials_service.rb +0 -3
  27. data/lib/dear_inventory/models/customer.rb +0 -3
  28. data/lib/dear_inventory/models/customers/address.rb +0 -3
  29. data/lib/dear_inventory/models/customers/contact.rb +0 -3
  30. data/lib/dear_inventory/models/customers.rb +0 -3
  31. data/lib/dear_inventory/models/inventory_movement.rb +0 -3
  32. data/lib/dear_inventory/models/product.rb +0 -3
  33. data/lib/dear_inventory/models/product_availability.rb +0 -3
  34. data/lib/dear_inventory/models/product_availability_results.rb +0 -3
  35. data/lib/dear_inventory/models/products/movement.rb +0 -3
  36. data/lib/dear_inventory/models/products.rb +0 -3
  37. data/lib/dear_inventory/models/purchase.rb +0 -3
  38. data/lib/dear_inventory/models/purchases/additional_charge.rb +0 -3
  39. data/lib/dear_inventory/models/purchases/advanced/credit_note.rb +0 -3
  40. data/lib/dear_inventory/models/purchases/advanced/invoice.rb +0 -3
  41. data/lib/dear_inventory/models/purchases/advanced/manual_journal.rb +0 -3
  42. data/lib/dear_inventory/models/purchases/advanced/put_away.rb +0 -3
  43. data/lib/dear_inventory/models/purchases/advanced/put_away_line.rb +0 -3
  44. data/lib/dear_inventory/models/purchases/advanced/stock.rb +0 -3
  45. data/lib/dear_inventory/models/purchases/advanced/stock_line.rb +0 -3
  46. data/lib/dear_inventory/models/purchases/credit_note.rb +0 -3
  47. data/lib/dear_inventory/models/purchases/inventory_movement.rb +0 -3
  48. data/lib/dear_inventory/models/purchases/invoice.rb +0 -3
  49. data/lib/dear_inventory/models/purchases/invoice_additional_charge.rb +0 -3
  50. data/lib/dear_inventory/models/purchases/invoice_line.rb +0 -3
  51. data/lib/dear_inventory/models/purchases/line.rb +0 -3
  52. data/lib/dear_inventory/models/purchases/manual_journal.rb +0 -3
  53. data/lib/dear_inventory/models/purchases/manual_journal_line.rb +0 -3
  54. data/lib/dear_inventory/models/purchases/order.rb +0 -3
  55. data/lib/dear_inventory/models/purchases/payment_line.rb +0 -3
  56. data/lib/dear_inventory/models/purchases/stock.rb +0 -3
  57. data/lib/dear_inventory/models/purchases/stock_line.rb +0 -3
  58. data/lib/dear_inventory/models/purchases/unstock_line.rb +0 -3
  59. data/lib/dear_inventory/models/purchases.rb +3 -8
  60. data/lib/dear_inventory/models/purchases_results.rb +0 -3
  61. data/lib/dear_inventory/models/reorder_level.rb +0 -3
  62. data/lib/dear_inventory/models/request.rb +5 -16
  63. data/lib/dear_inventory/models/sale.rb +0 -3
  64. data/lib/dear_inventory/models/sales/additional_charge.rb +0 -3
  65. data/lib/dear_inventory/models/sales/credit_note.rb +0 -3
  66. data/lib/dear_inventory/models/sales/fulfilment.rb +0 -3
  67. data/lib/dear_inventory/models/sales/fulfilments/pick_pack.rb +0 -3
  68. data/lib/dear_inventory/models/sales/fulfilments/pick_pack_line.rb +0 -3
  69. data/lib/dear_inventory/models/sales/fulfilments/ship.rb +0 -3
  70. data/lib/dear_inventory/models/sales/fulfilments/ship_line.rb +0 -3
  71. data/lib/dear_inventory/models/sales/invoice.rb +0 -3
  72. data/lib/dear_inventory/models/sales/invoice_additional_charge.rb +0 -3
  73. data/lib/dear_inventory/models/sales/invoice_line.rb +0 -3
  74. data/lib/dear_inventory/models/sales/line.rb +0 -3
  75. data/lib/dear_inventory/models/sales/manual_journal.rb +0 -3
  76. data/lib/dear_inventory/models/sales/manual_journal_line.rb +0 -3
  77. data/lib/dear_inventory/models/sales/order.rb +0 -3
  78. data/lib/dear_inventory/models/sales/payment_line.rb +0 -3
  79. data/lib/dear_inventory/models/sales/quote.rb +0 -3
  80. data/lib/dear_inventory/models/sales.rb +1 -6
  81. data/lib/dear_inventory/models/sales_results.rb +0 -3
  82. data/lib/dear_inventory/models/shipping_address.rb +0 -3
  83. data/lib/dear_inventory/models/supplier.rb +0 -3
  84. data/lib/dear_inventory/models/test_request.rb +5 -20
  85. data/lib/dear_inventory/models/transaction.rb +0 -3
  86. data/lib/dear_inventory/parameters/advanced_purchase/show.rb +0 -3
  87. data/lib/dear_inventory/parameters/customer/create.rb +170 -0
  88. data/lib/dear_inventory/parameters/customer/index.rb +0 -3
  89. data/lib/dear_inventory/parameters/customer/show.rb +170 -0
  90. data/lib/dear_inventory/parameters/customer/update.rb +175 -0
  91. data/lib/dear_inventory/parameters/product/index.rb +0 -3
  92. data/lib/dear_inventory/parameters/product_availability/index.rb +0 -3
  93. data/lib/dear_inventory/parameters/purchase/index.rb +0 -3
  94. data/lib/dear_inventory/parameters/purchase/show.rb +0 -3
  95. data/lib/dear_inventory/parameters/sale/delete.rb +0 -3
  96. data/lib/dear_inventory/parameters/sale/index.rb +0 -3
  97. data/lib/dear_inventory/parameters/sale/show.rb +0 -3
  98. data/lib/dear_inventory/parameters.rb +16 -97
  99. data/lib/dear_inventory/resource.rb +4 -15
  100. data/lib/dear_inventory/resources/advanced_purchase.rb +0 -7
  101. data/lib/dear_inventory/resources/customer.rb +17 -10
  102. data/lib/dear_inventory/resources/product.rb +0 -7
  103. data/lib/dear_inventory/resources/product_availability.rb +1 -9
  104. data/lib/dear_inventory/resources/purchase.rb +0 -12
  105. data/lib/dear_inventory/resources/sale.rb +3 -22
  106. data/lib/dear_inventory/response.rb +25 -73
  107. data/lib/dear_inventory/test_response.rb +9 -24
  108. data/lib/dear_inventory/validator.rb +10 -38
  109. data/lib/dear_inventory/validators/array.rb +15 -0
  110. data/lib/dear_inventory/validators/boolean.rb +0 -4
  111. data/lib/dear_inventory/validators/enum.rb +2 -6
  112. data/lib/dear_inventory/validators/guid.rb +4 -11
  113. data/lib/dear_inventory/validators/integer.rb +0 -4
  114. data/lib/dear_inventory/validators/required.rb +0 -4
  115. data/lib/dear_inventory/validators/string.rb +0 -4
  116. data/lib/dear_inventory/validators/time.rb +0 -4
  117. data/lib/dear_inventory/version.rb +1 -2
  118. data/lib/dear_inventory.rb +6 -12
  119. metadata +22 -219
  120. data/sorbet/config +0 -2
  121. data/sorbet/rbi/gems/addressable.rbi +0 -199
  122. data/sorbet/rbi/gems/ast.rbi +0 -48
  123. data/sorbet/rbi/gems/byebug.rbi +0 -1040
  124. data/sorbet/rbi/gems/coderay.rbi +0 -92
  125. data/sorbet/rbi/gems/crack.rbi +0 -48
  126. data/sorbet/rbi/gems/domain_name.rbi +0 -52
  127. data/sorbet/rbi/gems/dotenv.rbi +0 -68
  128. data/sorbet/rbi/gems/ffi-compiler.rbi +0 -27
  129. data/sorbet/rbi/gems/ffi.rbi +0 -560
  130. data/sorbet/rbi/gems/hashdiff.rbi +0 -66
  131. data/sorbet/rbi/gems/http-cookie.rbi +0 -93
  132. data/sorbet/rbi/gems/http-form_data.rbi +0 -76
  133. data/sorbet/rbi/gems/http-parser.rbi +0 -121
  134. data/sorbet/rbi/gems/http.rbi +0 -616
  135. data/sorbet/rbi/gems/jaro_winkler.rbi +0 -15
  136. data/sorbet/rbi/gems/method_source.rbi +0 -64
  137. data/sorbet/rbi/gems/parallel.rbi +0 -82
  138. data/sorbet/rbi/gems/parser.rbi +0 -857
  139. data/sorbet/rbi/gems/pry-byebug.rbi +0 -155
  140. data/sorbet/rbi/gems/pry.rbi +0 -1965
  141. data/sorbet/rbi/gems/public_suffix.rbi +0 -104
  142. data/sorbet/rbi/gems/rainbow.rbi +0 -118
  143. data/sorbet/rbi/gems/rake.rbi +0 -646
  144. data/sorbet/rbi/gems/rspec-core.rbi +0 -1732
  145. data/sorbet/rbi/gems/rspec-expectations.rbi +0 -388
  146. data/sorbet/rbi/gems/rspec-mocks.rbi +0 -820
  147. data/sorbet/rbi/gems/rspec-support.rbi +0 -269
  148. data/sorbet/rbi/gems/rspec.rbi +0 -15
  149. data/sorbet/rbi/gems/rubocop-performance.rbi +0 -277
  150. data/sorbet/rbi/gems/rubocop-rspec.rbi +0 -887
  151. data/sorbet/rbi/gems/rubocop.rbi +0 -6952
  152. data/sorbet/rbi/gems/ruby-progressbar.rbi +0 -305
  153. data/sorbet/rbi/gems/unf.rbi +0 -19
  154. data/sorbet/rbi/gems/unicode-display_width.rbi +0 -17
  155. data/sorbet/rbi/gems/vcr.rbi +0 -572
  156. data/sorbet/rbi/gems/webmock.rbi +0 -569
  157. data/sorbet/rbi/hidden-definitions/errors.txt +0 -11809
  158. data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -20623
  159. data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +0 -8684
  160. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +0 -276
  161. data/sorbet/rbi/sorbet-typed/lib/ruby/all/gem.rbi +0 -4222
  162. data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +0 -111
  163. data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +0 -543
  164. data/sorbet/rbi/todo.rbi +0 -11
@@ -1,560 +0,0 @@
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
@@ -1,66 +0,0 @@
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
@@ -1,93 +0,0 @@
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