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,857 +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/parser/all/parser.rbi
9
- #
10
- # parser-2.6.5.0
11
-
12
- module Parser
13
- end
14
- module Parser::Deprecation
15
- def warn_of_deprecation; end
16
- def warned_of_deprecation=(arg0); end
17
- end
18
- module Parser::AST
19
- end
20
- class Parser::AST::Node < AST::Node
21
- def assign_properties(properties); end
22
- def loc; end
23
- def location; end
24
- end
25
- class Parser::AST::Processor < AST::Processor
26
- def on_alias(node); end
27
- def on_and(node); end
28
- def on_and_asgn(node); end
29
- def on_arg(node); end
30
- def on_arg_expr(node); end
31
- def on_args(node); end
32
- def on_argument(node); end
33
- def on_array(node); end
34
- def on_back_ref(node); end
35
- def on_begin(node); end
36
- def on_block(node); end
37
- def on_block_pass(node); end
38
- def on_blockarg(node); end
39
- def on_blockarg_expr(node); end
40
- def on_break(node); end
41
- def on_case(node); end
42
- def on_casgn(node); end
43
- def on_class(node); end
44
- def on_const(node); end
45
- def on_csend(node); end
46
- def on_cvar(node); end
47
- def on_cvasgn(node); end
48
- def on_def(node); end
49
- def on_defined?(node); end
50
- def on_defs(node); end
51
- def on_dstr(node); end
52
- def on_dsym(node); end
53
- def on_eflipflop(node); end
54
- def on_ensure(node); end
55
- def on_erange(node); end
56
- def on_for(node); end
57
- def on_gvar(node); end
58
- def on_gvasgn(node); end
59
- def on_hash(node); end
60
- def on_if(node); end
61
- def on_iflipflop(node); end
62
- def on_index(node); end
63
- def on_indexasgn(node); end
64
- def on_irange(node); end
65
- def on_ivar(node); end
66
- def on_ivasgn(node); end
67
- def on_kwarg(node); end
68
- def on_kwbegin(node); end
69
- def on_kwoptarg(node); end
70
- def on_kwrestarg(node); end
71
- def on_kwsplat(node); end
72
- def on_lambda(node); end
73
- def on_lvar(node); end
74
- def on_lvasgn(node); end
75
- def on_masgn(node); end
76
- def on_match_current_line(node); end
77
- def on_match_with_lvasgn(node); end
78
- def on_mlhs(node); end
79
- def on_module(node); end
80
- def on_next(node); end
81
- def on_not(node); end
82
- def on_nth_ref(node); end
83
- def on_numblock(node); end
84
- def on_op_asgn(node); end
85
- def on_optarg(node); end
86
- def on_or(node); end
87
- def on_or_asgn(node); end
88
- def on_pair(node); end
89
- def on_postexe(node); end
90
- def on_preexe(node); end
91
- def on_procarg0(node); end
92
- def on_redo(node); end
93
- def on_regexp(node); end
94
- def on_resbody(node); end
95
- def on_rescue(node); end
96
- def on_restarg(node); end
97
- def on_restarg_expr(node); end
98
- def on_retry(node); end
99
- def on_return(node); end
100
- def on_sclass(node); end
101
- def on_send(node); end
102
- def on_shadowarg(node); end
103
- def on_splat(node); end
104
- def on_super(node); end
105
- def on_undef(node); end
106
- def on_until(node); end
107
- def on_until_post(node); end
108
- def on_var(node); end
109
- def on_vasgn(node); end
110
- def on_when(node); end
111
- def on_while(node); end
112
- def on_while_post(node); end
113
- def on_xstr(node); end
114
- def on_yield(node); end
115
- def process_argument_node(node); end
116
- def process_regular_node(node); end
117
- def process_var_asgn_node(node); end
118
- def process_variable_node(node); end
119
- end
120
- module Parser::Meta
121
- end
122
- module Parser::Source
123
- end
124
- class Parser::Source::Buffer
125
- def column_for_position(position); end
126
- def decompose_position(position); end
127
- def first_line; end
128
- def initialize(name, first_line = nil); end
129
- def last_line; end
130
- def line_begins; end
131
- def line_for(position); end
132
- def line_for_position(position); end
133
- def line_range(lineno); end
134
- def name; end
135
- def raw_source=(input); end
136
- def read; end
137
- def self.recognize_encoding(string); end
138
- def self.reencode_string(input); end
139
- def slice(range); end
140
- def source; end
141
- def source=(input); end
142
- def source_line(lineno); end
143
- def source_lines; end
144
- def source_range; end
145
- end
146
- class Parser::Source::Range
147
- def <=>(other); end
148
- def adjust(begin_pos: nil, end_pos: nil); end
149
- def begin; end
150
- def begin_pos; end
151
- def column; end
152
- def column_range; end
153
- def contained?(other); end
154
- def contains?(other); end
155
- def crossing?(other); end
156
- def disjoint?(other); end
157
- def empty?; end
158
- def end; end
159
- def end_pos; end
160
- def first_line; end
161
- def initialize(source_buffer, begin_pos, end_pos); end
162
- def inspect; end
163
- def intersect(other); end
164
- def is?(*what); end
165
- def join(other); end
166
- def last_column; end
167
- def last_line; end
168
- def length; end
169
- def line; end
170
- def overlaps?(other); end
171
- def resize(new_size); end
172
- def size; end
173
- def source; end
174
- def source_buffer; end
175
- def source_line; end
176
- def to_a; end
177
- def to_s; end
178
- def with(begin_pos: nil, end_pos: nil); end
179
- include Comparable
180
- end
181
- class Parser::Source::Comment
182
- def ==(other); end
183
- def document?; end
184
- def initialize(range); end
185
- def inline?; end
186
- def inspect; end
187
- def loc; end
188
- def location; end
189
- def self.associate(ast, comments); end
190
- def self.associate_locations(ast, comments); end
191
- def text; end
192
- def type; end
193
- end
194
- class Parser::Source::Comment::Associator
195
- def advance_comment; end
196
- def advance_through_directives; end
197
- def associate; end
198
- def associate_and_advance_comment(node); end
199
- def associate_locations; end
200
- def current_comment_before?(node); end
201
- def current_comment_before_end?(node); end
202
- def current_comment_decorates?(node); end
203
- def do_associate; end
204
- def initialize(ast, comments); end
205
- def process_leading_comments(node); end
206
- def process_trailing_comments(node); end
207
- def skip_directives; end
208
- def skip_directives=(arg0); end
209
- def visit(node); end
210
- end
211
- class Parser::Source::Rewriter
212
- def active_clobber; end
213
- def active_clobber=(value); end
214
- def active_insertions; end
215
- def active_insertions=(value); end
216
- def active_queue; end
217
- def adjacent?(range1, range2); end
218
- def adjacent_insertion_mask(range); end
219
- def adjacent_insertions?(range); end
220
- def adjacent_position_mask(range); end
221
- def adjacent_updates?(range); end
222
- def append(action); end
223
- def can_merge?(action, existing); end
224
- def clobbered_insertion?(insertion); end
225
- def clobbered_position_mask(range); end
226
- def diagnostics; end
227
- def in_transaction?; end
228
- def initialize(source_buffer); end
229
- def insert_after(range, content); end
230
- def insert_after_multi(range, content); end
231
- def insert_before(range, content); end
232
- def insert_before_multi(range, content); end
233
- def merge_actions!(action, existing); end
234
- def merge_actions(action, existing); end
235
- def merge_replacements(actions); end
236
- def process; end
237
- def raise_clobber_error(action, existing); end
238
- def record_insertion(range); end
239
- def record_replace(range); end
240
- def remove(range); end
241
- def replace(range, content); end
242
- def replace_actions(old, updated); end
243
- def replace_compatible_with_insertion?(replace, insertion); end
244
- def source_buffer; end
245
- def transaction; end
246
- def wrap(range, before, after); end
247
- extend Parser::Deprecation
248
- end
249
- class Parser::Source::Rewriter::Action
250
- def <=>(other); end
251
- def allow_multiple_insertions; end
252
- def allow_multiple_insertions?; end
253
- def initialize(range, replacement = nil, allow_multiple_insertions = nil, order = nil); end
254
- def order; end
255
- def range; end
256
- def replacement; end
257
- def to_s; end
258
- include Comparable
259
- end
260
- class Parser::Source::TreeRewriter
261
- def check_policy_validity; end
262
- def check_range_validity(range); end
263
- def combine(range, attributes); end
264
- def diagnostics; end
265
- def enforce_policy(event); end
266
- def in_transaction?; end
267
- def initialize(source_buffer, crossing_deletions: nil, different_replacements: nil, swallowed_insertions: nil); end
268
- def insert_after(range, content); end
269
- def insert_after_multi(range, text); end
270
- def insert_before(range, content); end
271
- def insert_before_multi(range, text); end
272
- def process; end
273
- def remove(range); end
274
- def replace(range, content); end
275
- def source_buffer; end
276
- def transaction; end
277
- def trigger_policy(event, range: nil, conflict: nil, **arguments); end
278
- def wrap(range, insert_before, insert_after); end
279
- extend Parser::Deprecation
280
- end
281
- class Parser::Source::TreeRewriter::Action
282
- def call_enforcer_for_merge(action); end
283
- def combine(action); end
284
- def do_combine(action); end
285
- def fuse_deletions(action, fusible, other_sibblings); end
286
- def initialize(range, enforcer, insert_before: nil, replacement: nil, insert_after: nil, children: nil); end
287
- def insert_after; end
288
- def insert_before; end
289
- def insertion?; end
290
- def merge(action); end
291
- def ordered_replacements; end
292
- def place_in_hierachy(action); end
293
- def range; end
294
- def relationship_with(action); end
295
- def replacement; end
296
- def swallow(children); end
297
- def with(range: nil, children: nil, insert_before: nil, replacement: nil, insert_after: nil); end
298
- end
299
- class Parser::Source::Map
300
- def ==(other); end
301
- def column; end
302
- def expression; end
303
- def first_line; end
304
- def initialize(expression); end
305
- def initialize_copy(other); end
306
- def last_column; end
307
- def last_line; end
308
- def line; end
309
- def node; end
310
- def node=(node); end
311
- def to_hash; end
312
- def update_expression(expression_l); end
313
- def with(&block); end
314
- def with_expression(expression_l); end
315
- end
316
- class Parser::Source::Map::Operator < Parser::Source::Map
317
- def initialize(operator, expression); end
318
- def operator; end
319
- end
320
- class Parser::Source::Map::Collection < Parser::Source::Map
321
- def begin; end
322
- def end; end
323
- def initialize(begin_l, end_l, expression_l); end
324
- end
325
- class Parser::Source::Map::Constant < Parser::Source::Map
326
- def double_colon; end
327
- def initialize(double_colon, name, expression); end
328
- def name; end
329
- def operator; end
330
- def update_operator(operator_l); end
331
- def with_operator(operator_l); end
332
- end
333
- class Parser::Source::Map::Variable < Parser::Source::Map
334
- def initialize(name_l, expression_l = nil); end
335
- def name; end
336
- def operator; end
337
- def update_operator(operator_l); end
338
- def with_operator(operator_l); end
339
- end
340
- class Parser::Source::Map::Keyword < Parser::Source::Map
341
- def begin; end
342
- def end; end
343
- def initialize(keyword_l, begin_l, end_l, expression_l); end
344
- def keyword; end
345
- end
346
- class Parser::Source::Map::Definition < Parser::Source::Map
347
- def end; end
348
- def initialize(keyword_l, operator_l, name_l, end_l); end
349
- def keyword; end
350
- def name; end
351
- def operator; end
352
- end
353
- class Parser::Source::Map::Send < Parser::Source::Map
354
- def begin; end
355
- def dot; end
356
- def end; end
357
- def initialize(dot_l, selector_l, begin_l, end_l, expression_l); end
358
- def operator; end
359
- def selector; end
360
- def update_operator(operator_l); end
361
- def with_operator(operator_l); end
362
- end
363
- class Parser::Source::Map::Index < Parser::Source::Map
364
- def begin; end
365
- def end; end
366
- def initialize(begin_l, end_l, expression_l); end
367
- def operator; end
368
- def update_operator(operator_l); end
369
- def with_operator(operator_l); end
370
- end
371
- class Parser::Source::Map::Condition < Parser::Source::Map
372
- def begin; end
373
- def else; end
374
- def end; end
375
- def initialize(keyword_l, begin_l, else_l, end_l, expression_l); end
376
- def keyword; end
377
- end
378
- class Parser::Source::Map::Ternary < Parser::Source::Map
379
- def colon; end
380
- def initialize(question_l, colon_l, expression_l); end
381
- def question; end
382
- end
383
- class Parser::Source::Map::For < Parser::Source::Map
384
- def begin; end
385
- def end; end
386
- def in; end
387
- def initialize(keyword_l, in_l, begin_l, end_l, expression_l); end
388
- def keyword; end
389
- end
390
- class Parser::Source::Map::RescueBody < Parser::Source::Map
391
- def assoc; end
392
- def begin; end
393
- def initialize(keyword_l, assoc_l, begin_l, expression_l); end
394
- def keyword; end
395
- end
396
- class Parser::Source::Map::Heredoc < Parser::Source::Map
397
- def heredoc_body; end
398
- def heredoc_end; end
399
- def initialize(begin_l, body_l, end_l); end
400
- end
401
- class Parser::Source::Map::ObjcKwarg < Parser::Source::Map
402
- def argument; end
403
- def initialize(keyword_l, operator_l, argument_l, expression_l); end
404
- def keyword; end
405
- def operator; end
406
- end
407
- class Parser::SyntaxError < StandardError
408
- def diagnostic; end
409
- def initialize(diagnostic); end
410
- end
411
- class Parser::ClobberingError < RuntimeError
412
- end
413
- class Parser::Diagnostic
414
- def arguments; end
415
- def first_line_only(range); end
416
- def highlights; end
417
- def initialize(level, reason, arguments, location, highlights = nil); end
418
- def last_line_only(range); end
419
- def level; end
420
- def location; end
421
- def message; end
422
- def reason; end
423
- def render; end
424
- def render_line(range, ellipsis = nil, range_end = nil); end
425
- end
426
- class Parser::Diagnostic::Engine
427
- def all_errors_are_fatal; end
428
- def all_errors_are_fatal=(arg0); end
429
- def consumer; end
430
- def consumer=(arg0); end
431
- def ignore?(diagnostic); end
432
- def ignore_warnings; end
433
- def ignore_warnings=(arg0); end
434
- def initialize(consumer = nil); end
435
- def process(diagnostic); end
436
- def raise?(diagnostic); end
437
- end
438
- class Parser::StaticEnvironment
439
- def declare(name); end
440
- def declared?(name); end
441
- def extend_dynamic; end
442
- def extend_static; end
443
- def initialize; end
444
- def reset; end
445
- def unextend; end
446
- end
447
- class Parser::Lexer
448
- def advance; end
449
- def arg_or_cmdarg(cmd_state); end
450
- def cmdarg; end
451
- def cmdarg=(arg0); end
452
- def comments; end
453
- def comments=(arg0); end
454
- def cond; end
455
- def cond=(arg0); end
456
- def context; end
457
- def context=(arg0); end
458
- def dedent_level; end
459
- def diagnostic(type, reason, arguments = nil, location = nil, highlights = nil); end
460
- def diagnostics; end
461
- def diagnostics=(arg0); end
462
- def emit(type, value = nil, s = nil, e = nil); end
463
- def emit_comment(s = nil, e = nil); end
464
- def emit_do(do_block = nil); end
465
- def emit_table(table, s = nil, e = nil); end
466
- def encode_escape(ord); end
467
- def encoding; end
468
- def eof_codepoint?(point); end
469
- def force_utf32; end
470
- def force_utf32=(arg0); end
471
- def in_kwarg; end
472
- def in_kwarg=(arg0); end
473
- def initialize(version); end
474
- def literal; end
475
- def max_numparam; end
476
- def max_numparam_stack; end
477
- def next_state_for_literal(literal); end
478
- def pop_cmdarg; end
479
- def pop_cond; end
480
- def pop_literal; end
481
- def push_cmdarg; end
482
- def push_cond; end
483
- def push_literal(*args); end
484
- def range(s = nil, e = nil); end
485
- def reset(reset_state = nil); end
486
- def self._lex_eof_trans; end
487
- def self._lex_eof_trans=(arg0); end
488
- def self._lex_from_state_actions; end
489
- def self._lex_from_state_actions=(arg0); end
490
- def self._lex_index_offsets; end
491
- def self._lex_index_offsets=(arg0); end
492
- def self._lex_indicies; end
493
- def self._lex_indicies=(arg0); end
494
- def self._lex_key_spans; end
495
- def self._lex_key_spans=(arg0); end
496
- def self._lex_to_state_actions; end
497
- def self._lex_to_state_actions=(arg0); end
498
- def self._lex_trans_actions; end
499
- def self._lex_trans_actions=(arg0); end
500
- def self._lex_trans_keys; end
501
- def self._lex_trans_keys=(arg0); end
502
- def self._lex_trans_targs; end
503
- def self._lex_trans_targs=(arg0); end
504
- def self.lex_en_expr_arg; end
505
- def self.lex_en_expr_arg=(arg0); end
506
- def self.lex_en_expr_beg; end
507
- def self.lex_en_expr_beg=(arg0); end
508
- def self.lex_en_expr_cmdarg; end
509
- def self.lex_en_expr_cmdarg=(arg0); end
510
- def self.lex_en_expr_dot; end
511
- def self.lex_en_expr_dot=(arg0); end
512
- def self.lex_en_expr_end; end
513
- def self.lex_en_expr_end=(arg0); end
514
- def self.lex_en_expr_endarg; end
515
- def self.lex_en_expr_endarg=(arg0); end
516
- def self.lex_en_expr_endfn; end
517
- def self.lex_en_expr_endfn=(arg0); end
518
- def self.lex_en_expr_fname; end
519
- def self.lex_en_expr_fname=(arg0); end
520
- def self.lex_en_expr_labelarg; end
521
- def self.lex_en_expr_labelarg=(arg0); end
522
- def self.lex_en_expr_mid; end
523
- def self.lex_en_expr_mid=(arg0); end
524
- def self.lex_en_expr_value; end
525
- def self.lex_en_expr_value=(arg0); end
526
- def self.lex_en_expr_variable; end
527
- def self.lex_en_expr_variable=(arg0); end
528
- def self.lex_en_interp_backslash_delimited; end
529
- def self.lex_en_interp_backslash_delimited=(arg0); end
530
- def self.lex_en_interp_backslash_delimited_words; end
531
- def self.lex_en_interp_backslash_delimited_words=(arg0); end
532
- def self.lex_en_interp_string; end
533
- def self.lex_en_interp_string=(arg0); end
534
- def self.lex_en_interp_words; end
535
- def self.lex_en_interp_words=(arg0); end
536
- def self.lex_en_leading_dot; end
537
- def self.lex_en_leading_dot=(arg0); end
538
- def self.lex_en_line_begin; end
539
- def self.lex_en_line_begin=(arg0); end
540
- def self.lex_en_line_comment; end
541
- def self.lex_en_line_comment=(arg0); end
542
- def self.lex_en_plain_backslash_delimited; end
543
- def self.lex_en_plain_backslash_delimited=(arg0); end
544
- def self.lex_en_plain_backslash_delimited_words; end
545
- def self.lex_en_plain_backslash_delimited_words=(arg0); end
546
- def self.lex_en_plain_string; end
547
- def self.lex_en_plain_string=(arg0); end
548
- def self.lex_en_plain_words; end
549
- def self.lex_en_plain_words=(arg0); end
550
- def self.lex_en_regexp_modifiers; end
551
- def self.lex_en_regexp_modifiers=(arg0); end
552
- def self.lex_error; end
553
- def self.lex_error=(arg0); end
554
- def self.lex_start; end
555
- def self.lex_start=(arg0); end
556
- def source_buffer; end
557
- def source_buffer=(source_buffer); end
558
- def stack_pop; end
559
- def state; end
560
- def state=(state); end
561
- def static_env; end
562
- def static_env=(arg0); end
563
- def tok(s = nil, e = nil); end
564
- def tokens; end
565
- def tokens=(arg0); end
566
- def version?(*versions); end
567
- end
568
- class Parser::Lexer::Literal
569
- def backslash_delimited?; end
570
- def clear_buffer; end
571
- def coerce_encoding(string); end
572
- def dedent_level; end
573
- def delimiter?(delimiter); end
574
- def emit(token, type, s, e); end
575
- def emit_start_tok; end
576
- def end_interp_brace_and_try_closing; end
577
- def extend_content; end
578
- def extend_space(ts, te); end
579
- def extend_string(string, ts, te); end
580
- def flush_string; end
581
- def heredoc?; end
582
- def heredoc_e; end
583
- def infer_indent_level(line); end
584
- def initialize(lexer, str_type, delimiter, str_s, heredoc_e = nil, indent = nil, dedent_body = nil, label_allowed = nil); end
585
- def interpolate?; end
586
- def munge_escape?(character); end
587
- def nest_and_try_closing(delimiter, ts, te, lookahead = nil); end
588
- def plain_heredoc?; end
589
- def regexp?; end
590
- def saved_herebody_s; end
591
- def saved_herebody_s=(arg0); end
592
- def squiggly_heredoc?; end
593
- def start_interp_brace; end
594
- def str_s; end
595
- def supports_line_continuation_via_slash?; end
596
- def type; end
597
- def words?; end
598
- end
599
- class Parser::Lexer::StackState
600
- def active?; end
601
- def clear; end
602
- def empty?; end
603
- def initialize(name); end
604
- def inspect; end
605
- def lexpop; end
606
- def pop; end
607
- def push(bit); end
608
- def to_s; end
609
- end
610
- class Parser::Lexer::Dedenter
611
- def dedent(string); end
612
- def initialize(dedent_level); end
613
- def interrupt; end
614
- end
615
- class Parser::Lexer::MaxNumparamStack
616
- def can_have_numparams?; end
617
- def cant_have_numparams!; end
618
- def initialize; end
619
- def pop; end
620
- def push; end
621
- def register(numparam); end
622
- def set(value); end
623
- def top; end
624
- end
625
- class Parser::Builders::Default
626
- def __ENCODING__(__ENCODING__t); end
627
- def __FILE__(__FILE__t); end
628
- def __LINE__(__LINE__t); end
629
- def accessible(node); end
630
- def alias(alias_t, to, from); end
631
- def arg(name_t); end
632
- def arg_expr(expr); end
633
- def arg_name_collides?(this_name, that_name); end
634
- def arg_prefix_map(op_t, name_t = nil); end
635
- def args(begin_t, args, end_t, check_args = nil); end
636
- def array(begin_t, elements, end_t); end
637
- def assign(lhs, eql_t, rhs); end
638
- def assignable(node); end
639
- def associate(begin_t, pairs, end_t); end
640
- def attr_asgn(receiver, dot_t, selector_t); end
641
- def back_ref(token); end
642
- def begin(begin_t, body, end_t); end
643
- def begin_body(compound_stmt, rescue_bodies = nil, else_t = nil, else_ = nil, ensure_t = nil, ensure_ = nil); end
644
- def begin_keyword(begin_t, body, end_t); end
645
- def binary_op(receiver, operator_t, arg); end
646
- def binary_op_map(left_e, op_t, right_e); end
647
- def block(method_call, begin_t, args, body, end_t); end
648
- def block_map(receiver_l, begin_t, end_t); end
649
- def block_pass(amper_t, arg); end
650
- def blockarg(amper_t, name_t); end
651
- def blockarg_expr(amper_t, expr); end
652
- def call_lambda(lambda_t); end
653
- def call_method(receiver, dot_t, selector_t, lparen_t = nil, args = nil, rparen_t = nil); end
654
- def call_type_for_dot(dot_t); end
655
- def case(case_t, expr, when_bodies, else_t, else_body, end_t); end
656
- def character(char_t); end
657
- def check_condition(cond); end
658
- def check_duplicate_arg(this_arg, map = nil); end
659
- def check_duplicate_args(args, map = nil); end
660
- def collapse_string_parts?(parts); end
661
- def collection_map(begin_t, parts, end_t); end
662
- def complex(complex_t); end
663
- def compstmt(statements); end
664
- def condition(cond_t, cond, then_t, if_true, else_t, if_false, end_t); end
665
- def condition_map(keyword_t, cond_e, begin_t, body_e, else_t, else_e, end_t); end
666
- def condition_mod(if_true, if_false, cond_t, cond); end
667
- def const(name_t); end
668
- def const_fetch(scope, t_colon2, name_t); end
669
- def const_global(t_colon3, name_t); end
670
- def const_op_assignable(node); end
671
- def constant_map(scope, colon2_t, name_t); end
672
- def cvar(token); end
673
- def dedent_string(node, dedent_level); end
674
- def def_class(class_t, name, lt_t, superclass, body, end_t); end
675
- def def_method(def_t, name_t, args, body, end_t); end
676
- def def_module(module_t, name, body, end_t); end
677
- def def_sclass(class_t, lshft_t, expr, body, end_t); end
678
- def def_singleton(def_t, definee, dot_t, name_t, args, body, end_t); end
679
- def definition_map(keyword_t, operator_t, name_t, end_t); end
680
- def delimited_string_map(string_t); end
681
- def diagnostic(type, reason, arguments, location, highlights = nil); end
682
- def eh_keyword_map(compstmt_e, keyword_t, body_es, else_t, else_e); end
683
- def emit_file_line_as_literals; end
684
- def emit_file_line_as_literals=(arg0); end
685
- def expr_map(loc); end
686
- def false(false_t); end
687
- def float(float_t); end
688
- def for(for_t, iterator, in_t, iteratee, do_t, body, end_t); end
689
- def for_map(keyword_t, in_t, begin_t, end_t); end
690
- def gvar(token); end
691
- def ident(token); end
692
- def index(receiver, lbrack_t, indexes, rbrack_t); end
693
- def index_asgn(receiver, lbrack_t, indexes, rbrack_t); end
694
- def index_map(receiver_e, lbrack_t, rbrack_t); end
695
- def initialize; end
696
- def integer(integer_t); end
697
- def ivar(token); end
698
- def join_exprs(left_expr, right_expr); end
699
- def keyword_cmd(type, keyword_t, lparen_t = nil, args = nil, rparen_t = nil); end
700
- def keyword_map(keyword_t, begin_t, args, end_t); end
701
- def keyword_mod_map(pre_e, keyword_t, post_e); end
702
- def kwarg(name_t); end
703
- def kwarg_map(name_t, value_e = nil); end
704
- def kwnilarg(dstar_t, nil_t); end
705
- def kwoptarg(name_t, value); end
706
- def kwrestarg(dstar_t, name_t = nil); end
707
- def kwsplat(dstar_t, arg); end
708
- def loc(token); end
709
- def logical_op(type, lhs, op_t, rhs); end
710
- def loop(type, keyword_t, cond, do_t, body, end_t); end
711
- def loop_mod(type, body, keyword_t, cond); end
712
- def match_op(receiver, match_t, arg); end
713
- def method_ref(receiver, dot_t, selector_t); end
714
- def module_definition_map(keyword_t, name_e, operator_t, end_t); end
715
- def multi_assign(lhs, eql_t, rhs); end
716
- def multi_lhs(begin_t, items, end_t); end
717
- def n(type, children, source_map); end
718
- def n0(type, source_map); end
719
- def nil(nil_t); end
720
- def not_op(not_t, begin_t = nil, receiver = nil, end_t = nil); end
721
- def nth_ref(token); end
722
- def numargs(max_numparam); end
723
- def numeric(kind, token); end
724
- def numparam(token); end
725
- def objc_kwarg(kwname_t, assoc_t, name_t); end
726
- def objc_restarg(star_t, name = nil); end
727
- def objc_varargs(pair, rest_of_varargs); end
728
- def op_assign(lhs, op_t, rhs); end
729
- def optarg(name_t, eql_t, value); end
730
- def pair(key, assoc_t, value); end
731
- def pair_keyword(key_t, value); end
732
- def pair_keyword_map(key_t, value_e); end
733
- def pair_list_18(list); end
734
- def pair_quoted(begin_t, parts, end_t, value); end
735
- def pair_quoted_map(begin_t, end_t, value_e); end
736
- def parser; end
737
- def parser=(arg0); end
738
- def postexe(postexe_t, lbrace_t, compstmt, rbrace_t); end
739
- def preexe(preexe_t, lbrace_t, compstmt, rbrace_t); end
740
- def prefix_string_map(symbol); end
741
- def procarg0(arg); end
742
- def range_exclusive(lhs, dot3_t, rhs); end
743
- def range_inclusive(lhs, dot2_t, rhs); end
744
- def range_map(start_e, op_t, end_e); end
745
- def rational(rational_t); end
746
- def regexp_compose(begin_t, parts, end_t, options); end
747
- def regexp_map(begin_t, end_t, options_e); end
748
- def regexp_options(regopt_t); end
749
- def rescue_body(rescue_t, exc_list, assoc_t, exc_var, then_t, compound_stmt); end
750
- def rescue_body_map(keyword_t, exc_list_e, assoc_t, exc_var_e, then_t, compstmt_e); end
751
- def restarg(star_t, name_t = nil); end
752
- def restarg_expr(star_t, expr = nil); end
753
- def self(token); end
754
- def self.emit_arg_inside_procarg0; end
755
- def self.emit_arg_inside_procarg0=(arg0); end
756
- def self.emit_encoding; end
757
- def self.emit_encoding=(arg0); end
758
- def self.emit_index; end
759
- def self.emit_index=(arg0); end
760
- def self.emit_lambda; end
761
- def self.emit_lambda=(arg0); end
762
- def self.emit_procarg0; end
763
- def self.emit_procarg0=(arg0); end
764
- def self.modernize; end
765
- def send_binary_op_map(lhs_e, selector_t, rhs_e); end
766
- def send_index_map(receiver_e, lbrack_t, rbrack_t); end
767
- def send_map(receiver_e, dot_t, selector_t, begin_t = nil, args = nil, end_t = nil); end
768
- def send_unary_op_map(selector_t, arg_e); end
769
- def shadowarg(name_t); end
770
- def splat(star_t, arg = nil); end
771
- def static_regexp(parts, options); end
772
- def static_regexp_node(node); end
773
- def static_string(nodes); end
774
- def string(string_t); end
775
- def string_compose(begin_t, parts, end_t); end
776
- def string_internal(string_t); end
777
- def string_map(begin_t, parts, end_t); end
778
- def string_value(token); end
779
- def symbol(symbol_t); end
780
- def symbol_compose(begin_t, parts, end_t); end
781
- def symbol_internal(symbol_t); end
782
- def symbols_compose(begin_t, parts, end_t); end
783
- def ternary(cond, question_t, if_true, colon_t, if_false); end
784
- def ternary_map(begin_e, question_t, mid_e, colon_t, end_e); end
785
- def token_map(token); end
786
- def true(true_t); end
787
- def unary_num(unary_t, numeric); end
788
- def unary_op(op_t, receiver); end
789
- def unary_op_map(op_t, arg_e = nil); end
790
- def undef_method(undef_t, names); end
791
- def unquoted_map(token); end
792
- def value(token); end
793
- def var_send_map(variable_e); end
794
- def variable_map(name_t); end
795
- def when(when_t, patterns, then_t, body); end
796
- def word(parts); end
797
- def words_compose(begin_t, parts, end_t); end
798
- def xstring_compose(begin_t, parts, end_t); end
799
- end
800
- class Parser::Context
801
- def class_definition_allowed?; end
802
- def dynamic_const_definition_allowed?; end
803
- def in_block?; end
804
- def in_class?; end
805
- def in_lambda?; end
806
- def indirectly_in_def?; end
807
- def initialize; end
808
- def module_definition_allowed?; end
809
- def pop; end
810
- def push(state); end
811
- def reset; end
812
- def stack; end
813
- end
814
- class Parser::Base < Racc::Parser
815
- def builder; end
816
- def check_kwarg_name(name_t); end
817
- def context; end
818
- def diagnostic(level, reason, arguments, location_t, highlights_ts = nil); end
819
- def diagnostics; end
820
- def initialize(builder = nil); end
821
- def next_token; end
822
- def on_error(error_token_id, error_value, value_stack); end
823
- def parse(source_buffer); end
824
- def parse_with_comments(source_buffer); end
825
- def reset; end
826
- def self.default_parser; end
827
- def self.parse(string, file = nil, line = nil); end
828
- def self.parse_file(filename); end
829
- def self.parse_file_with_comments(filename); end
830
- def self.parse_with_comments(string, file = nil, line = nil); end
831
- def self.setup_source_buffer(file, line, string, encoding); end
832
- def source_buffer; end
833
- def static_env; end
834
- def tokenize(source_buffer, recover = nil); end
835
- end
836
- class Parser::Rewriter < Parser::AST::Processor
837
- def assignment?(node); end
838
- def initialize(*arg0); end
839
- def insert_after(range, content); end
840
- def insert_before(range, content); end
841
- def remove(range); end
842
- def replace(range, content); end
843
- def rewrite(source_buffer, ast); end
844
- def wrap(range, before, after); end
845
- extend Parser::Deprecation
846
- end
847
- class Parser::TreeRewriter < Parser::AST::Processor
848
- def assignment?(node); end
849
- def insert_after(range, content); end
850
- def insert_before(range, content); end
851
- def remove(range); end
852
- def replace(range, content); end
853
- def rewrite(source_buffer, ast, **policy); end
854
- def wrap(range, before, after); end
855
- end
856
- module Parser::Builders
857
- end