js-routes 2.2.7 → 2.2.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -9
  3. data/Gemfile +5 -0
  4. data/Readme.md +63 -47
  5. data/bin/tapioca +27 -0
  6. data/js-routes.gemspec +4 -1
  7. data/lib/js_routes/configuration.rb +80 -34
  8. data/lib/js_routes/engine.rb +2 -0
  9. data/lib/js_routes/generators/base.rb +15 -1
  10. data/lib/js_routes/generators/middleware.rb +3 -6
  11. data/lib/js_routes/generators/webpacker.rb +2 -4
  12. data/lib/js_routes/instance.rb +42 -15
  13. data/lib/js_routes/middleware.rb +14 -3
  14. data/lib/js_routes/route.rb +57 -16
  15. data/lib/js_routes/types.rb +28 -0
  16. data/lib/js_routes/version.rb +2 -1
  17. data/lib/js_routes.rb +20 -7
  18. data/lib/routes.js +25 -3
  19. data/lib/routes.ts +30 -6
  20. data/sorbet/config +4 -0
  21. data/sorbet/rbi/annotations/.gitattributes +1 -0
  22. data/sorbet/rbi/annotations/actionpack.rbi +428 -0
  23. data/sorbet/rbi/annotations/actionview.rbi +75 -0
  24. data/sorbet/rbi/annotations/activesupport.rbi +421 -0
  25. data/sorbet/rbi/annotations/railties.rbi +61 -0
  26. data/sorbet/rbi/gems/.gitattributes +1 -0
  27. data/sorbet/rbi/gems/actionpack@7.0.4.1.rbi +303 -0
  28. data/sorbet/rbi/gems/actionview@7.0.4.1.rbi +8 -0
  29. data/sorbet/rbi/gems/activesupport@7.0.4.1.rbi +16424 -0
  30. data/sorbet/rbi/gems/appraisal@2.4.1.rbi +584 -0
  31. data/sorbet/rbi/gems/builder@3.2.4.rbi +8 -0
  32. data/sorbet/rbi/gems/bump@0.10.0.rbi +168 -0
  33. data/sorbet/rbi/gems/byebug@11.1.3.rbi +3606 -0
  34. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3426 -0
  35. data/sorbet/rbi/gems/concurrent-ruby@1.2.0.rbi +11570 -0
  36. data/sorbet/rbi/gems/crass@1.0.6.rbi +8 -0
  37. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1083 -0
  38. data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
  39. data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
  40. data/sorbet/rbi/gems/libv8-node@16.10.0.0.rbi +8 -0
  41. data/sorbet/rbi/gems/loofah@2.19.1.rbi +8 -0
  42. data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
  43. data/sorbet/rbi/gems/mini_racer@0.6.3.rbi +224 -0
  44. data/sorbet/rbi/gems/minitest@5.17.0.rbi +1457 -0
  45. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  46. data/sorbet/rbi/gems/nokogiri@1.14.0.rbi +8 -0
  47. data/sorbet/rbi/gems/parallel@1.24.0.rbi +280 -0
  48. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
  49. data/sorbet/rbi/gems/prism@0.24.0.rbi +29744 -0
  50. data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +1150 -0
  51. data/sorbet/rbi/gems/pry@0.14.2.rbi +10075 -0
  52. data/sorbet/rbi/gems/racc@1.6.2.rbi +150 -0
  53. data/sorbet/rbi/gems/rack-test@2.0.2.rbi +8 -0
  54. data/sorbet/rbi/gems/rack@2.2.6.2.rbi +5585 -0
  55. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +8 -0
  56. data/sorbet/rbi/gems/rails-html-sanitizer@1.5.0.rbi +8 -0
  57. data/sorbet/rbi/gems/railties@7.0.4.1.rbi +1959 -0
  58. data/sorbet/rbi/gems/rake@13.0.6.rbi +3072 -0
  59. data/sorbet/rbi/gems/rbi@0.1.9.rbi +3006 -0
  60. data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +10868 -0
  61. data/sorbet/rbi/gems/rspec-expectations@3.12.2.rbi +8100 -0
  62. data/sorbet/rbi/gems/rspec-mocks@3.12.3.rbi +5299 -0
  63. data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +1611 -0
  64. data/sorbet/rbi/gems/rspec@3.12.0.rbi +82 -0
  65. data/sorbet/rbi/gems/spoom@1.2.4.rbi +3777 -0
  66. data/sorbet/rbi/gems/sprockets-rails@3.4.2.rbi +14 -0
  67. data/sorbet/rbi/gems/sprockets@4.2.0.rbi +8 -0
  68. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23136 -0
  69. data/sorbet/rbi/gems/tapioca@0.12.0.rbi +3510 -0
  70. data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
  71. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +5914 -0
  72. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
  73. data/sorbet/rbi/gems/yard@0.9.34.rbi +18332 -0
  74. data/sorbet/rbi/gems/zeitwerk@2.6.8.rbi +8 -0
  75. data/sorbet/rbi/todo.rbi +31 -0
  76. data/sorbet/tapioca/config.yml +13 -0
  77. data/sorbet/tapioca/require.rb +4 -0
  78. data/spec/js_routes/default_serializer_spec.rb +1 -1
  79. data/spec/js_routes/module_types/dts_spec.rb +17 -2
  80. data/spec/js_routes/module_types/umd_spec.rb +2 -2
  81. data/spec/js_routes/options_spec.rb +6 -6
  82. data/spec/js_routes/rails_routes_compatibility_spec.rb +17 -12
  83. data/spec/js_routes/route_specification_spec.rb +1 -4
  84. data/spec/js_routes/{zzz_last_post_rails_init_spec.rb → zzz_sprockets_spec.rb} +1 -1
  85. data/spec/spec_helper.rb +4 -0
  86. metadata +82 -7
@@ -0,0 +1,8 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `libv8-node` gem.
5
+ # Please instead update this file by running `bin/tapioca gem libv8-node`.
6
+
7
+ # THIS IS AN EMPTY RBI FILE.
8
+ # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
@@ -0,0 +1,8 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `loofah` gem.
5
+ # Please instead update this file by running `bin/tapioca gem loofah`.
6
+
7
+ # THIS IS AN EMPTY RBI FILE.
8
+ # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
@@ -0,0 +1,272 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `method_source` gem.
5
+ # Please instead update this file by running `bin/tapioca gem method_source`.
6
+
7
+ # source://method_source//lib/method_source.rb#127
8
+ class Method
9
+ include ::MethodSource::SourceLocation::MethodExtensions
10
+ include ::MethodSource::MethodExtensions
11
+ end
12
+
13
+ # source://method_source//lib/method_source/version.rb#1
14
+ module MethodSource
15
+ extend ::MethodSource::CodeHelpers
16
+
17
+ class << self
18
+ # Helper method responsible for opening source file and buffering up
19
+ # the comments for a specified method. Defined here to avoid polluting
20
+ # `Method` class.
21
+ #
22
+ # @param source_location [Array] The array returned by Method#source_location
23
+ # @param method_name [String]
24
+ # @raise [SourceNotFoundError]
25
+ # @return [String] The comments up to the point of the method.
26
+ #
27
+ # source://method_source//lib/method_source.rb#38
28
+ def comment_helper(source_location, name = T.unsafe(nil)); end
29
+
30
+ # @deprecated — use MethodSource::CodeHelpers#expression_at
31
+ #
32
+ # source://method_source//lib/method_source.rb#66
33
+ def extract_code(source_location); end
34
+
35
+ # Load a memoized copy of the lines in a file.
36
+ #
37
+ # @param file_name [String]
38
+ # @param method_name [String]
39
+ # @raise [SourceNotFoundError]
40
+ # @return [Array<String>] the contents of the file
41
+ #
42
+ # source://method_source//lib/method_source.rb#51
43
+ def lines_for(file_name, name = T.unsafe(nil)); end
44
+
45
+ # Helper method responsible for extracting method body.
46
+ # Defined here to avoid polluting `Method` class.
47
+ #
48
+ # @param source_location [Array] The array returned by Method#source_location
49
+ # @param method_name [String]
50
+ # @return [String] The method body
51
+ #
52
+ # source://method_source//lib/method_source.rb#23
53
+ def source_helper(source_location, name = T.unsafe(nil)); end
54
+
55
+ # @deprecated — use MethodSource::CodeHelpers#complete_expression?
56
+ # @return [Boolean]
57
+ #
58
+ # source://method_source//lib/method_source.rb#59
59
+ def valid_expression?(str); end
60
+ end
61
+ end
62
+
63
+ # source://method_source//lib/method_source/code_helpers.rb#3
64
+ module MethodSource::CodeHelpers
65
+ # Retrieve the comment describing the expression on the given line of the given file.
66
+ #
67
+ # This is useful to get module or method documentation.
68
+ #
69
+ # @param file [Array<String>, File, String] The file to parse, either as a File or as
70
+ # a String or an Array of lines.
71
+ # @param line_number [Integer] The line number at which to look.
72
+ # NOTE: The first line in a file is line 1!
73
+ # @return [String] The comment
74
+ #
75
+ # source://method_source//lib/method_source/code_helpers.rb#52
76
+ def comment_describing(file, line_number); end
77
+
78
+ # Determine if a string of code is a complete Ruby expression.
79
+ #
80
+ # @example
81
+ # complete_expression?("class Hello") #=> false
82
+ # complete_expression?("class Hello; end") #=> true
83
+ # complete_expression?("class 123") #=> SyntaxError: unexpected tINTEGER
84
+ # @param code [String] The code to validate.
85
+ # @raise [SyntaxError] Any SyntaxError that does not represent incompleteness.
86
+ # @return [Boolean] Whether or not the code is a complete Ruby expression.
87
+ #
88
+ # source://method_source//lib/method_source/code_helpers.rb#66
89
+ def complete_expression?(str); end
90
+
91
+ # Retrieve the first expression starting on the given line of the given file.
92
+ #
93
+ # This is useful to get module or method source code.
94
+ #
95
+ # line 1!
96
+ #
97
+ # @option options
98
+ # @option options
99
+ # @param file [Array<String>, File, String] The file to parse, either as a File or as
100
+ # @param line_number [Integer] The line number at which to look.
101
+ # NOTE: The first line in a file is
102
+ # @param options [Hash] The optional configuration parameters.
103
+ # @raise [SyntaxError] If the first complete expression can't be identified
104
+ # @return [String] The first complete expression
105
+ #
106
+ # source://method_source//lib/method_source/code_helpers.rb#20
107
+ def expression_at(file, line_number, options = T.unsafe(nil)); end
108
+
109
+ private
110
+
111
+ # Get the first expression from the input.
112
+ #
113
+ # @param lines [Array<String>]
114
+ # @param consume [Integer] A number of lines to automatically
115
+ # consume (add to the expression buffer) without checking for validity.
116
+ # @raise [SyntaxError]
117
+ # @return [String] a valid ruby expression
118
+ # @yield a clean-up function to run before checking for complete_expression
119
+ #
120
+ # source://method_source//lib/method_source/code_helpers.rb#92
121
+ def extract_first_expression(lines, consume = T.unsafe(nil), &block); end
122
+
123
+ # Get the last comment from the input.
124
+ #
125
+ # @param lines [Array<String>]
126
+ # @return [String]
127
+ #
128
+ # source://method_source//lib/method_source/code_helpers.rb#106
129
+ def extract_last_comment(lines); end
130
+ end
131
+
132
+ # An exception matcher that matches only subsets of SyntaxErrors that can be
133
+ # fixed by adding more input to the buffer.
134
+ #
135
+ # source://method_source//lib/method_source/code_helpers.rb#124
136
+ module MethodSource::CodeHelpers::IncompleteExpression
137
+ class << self
138
+ # source://method_source//lib/method_source/code_helpers.rb#137
139
+ def ===(ex); end
140
+
141
+ # @return [Boolean]
142
+ #
143
+ # source://method_source//lib/method_source/code_helpers.rb#149
144
+ def rbx?; end
145
+ end
146
+ end
147
+
148
+ # source://method_source//lib/method_source/code_helpers.rb#125
149
+ MethodSource::CodeHelpers::IncompleteExpression::GENERIC_REGEXPS = T.let(T.unsafe(nil), Array)
150
+
151
+ # source://method_source//lib/method_source/code_helpers.rb#133
152
+ MethodSource::CodeHelpers::IncompleteExpression::RBX_ONLY_REGEXPS = T.let(T.unsafe(nil), Array)
153
+
154
+ # This module is to be included by `Method` and `UnboundMethod` and
155
+ # provides the `#source` functionality
156
+ #
157
+ # source://method_source//lib/method_source.rb#72
158
+ module MethodSource::MethodExtensions
159
+ # Return the comments associated with the method as a string.
160
+ #
161
+ # @example
162
+ # Set.instance_method(:clear).comment.display
163
+ # =>
164
+ # # Removes all elements and returns self.
165
+ # @raise SourceNotFoundException
166
+ # @return [String] The method's comments as a string
167
+ #
168
+ # source://method_source//lib/method_source.rb#121
169
+ def comment; end
170
+
171
+ # Return the sourcecode for the method as a string
172
+ #
173
+ # @example
174
+ # Set.instance_method(:clear).source.display
175
+ # =>
176
+ # def clear
177
+ # @hash.clear
178
+ # self
179
+ # end
180
+ # @raise SourceNotFoundException
181
+ # @return [String] The method sourcecode as a string
182
+ #
183
+ # source://method_source//lib/method_source.rb#109
184
+ def source; end
185
+
186
+ class << self
187
+ # We use the included hook to patch Method#source on rubinius.
188
+ # We need to use the included hook as Rubinius defines a `source`
189
+ # on Method so including a module will have no effect (as it's
190
+ # higher up the MRO).
191
+ #
192
+ # @param klass [Class] The class that includes the module.
193
+ #
194
+ # source://method_source//lib/method_source.rb#79
195
+ def included(klass); end
196
+ end
197
+ end
198
+
199
+ # source://method_source//lib/method_source/source_location.rb#2
200
+ module MethodSource::ReeSourceLocation
201
+ # Ruby enterprise edition provides all the information that's
202
+ # needed, in a slightly different way.
203
+ #
204
+ # source://method_source//lib/method_source/source_location.rb#5
205
+ def source_location; end
206
+ end
207
+
208
+ # source://method_source//lib/method_source/source_location.rb#10
209
+ module MethodSource::SourceLocation; end
210
+
211
+ # source://method_source//lib/method_source/source_location.rb#11
212
+ module MethodSource::SourceLocation::MethodExtensions
213
+ # Return the source location of a method for Ruby 1.8.
214
+ #
215
+ # @return [Array] A two element array. First element is the
216
+ # file, second element is the line in the file where the
217
+ # method definition is found.
218
+ #
219
+ # source://method_source//lib/method_source/source_location.rb#40
220
+ def source_location; end
221
+
222
+ private
223
+
224
+ # source://method_source//lib/method_source/source_location.rb#26
225
+ def trace_func(event, file, line, id, binding, classname); end
226
+ end
227
+
228
+ # source://method_source//lib/method_source/source_location.rb#54
229
+ module MethodSource::SourceLocation::ProcExtensions
230
+ # Return the source location for a Proc (in implementations
231
+ # without Proc#source_location)
232
+ #
233
+ # @return [Array] A two element array. First element is the
234
+ # file, second element is the line in the file where the
235
+ # proc definition is found.
236
+ #
237
+ # source://method_source//lib/method_source/source_location.rb#74
238
+ def source_location; end
239
+ end
240
+
241
+ # source://method_source//lib/method_source/source_location.rb#81
242
+ module MethodSource::SourceLocation::UnboundMethodExtensions
243
+ # Return the source location of an instance method for Ruby 1.8.
244
+ #
245
+ # @return [Array] A two element array. First element is the
246
+ # file, second element is the line in the file where the
247
+ # method definition is found.
248
+ #
249
+ # source://method_source//lib/method_source/source_location.rb#101
250
+ def source_location; end
251
+ end
252
+
253
+ # An Exception to mark errors that were raised trying to find the source from
254
+ # a given source_location.
255
+ #
256
+ # source://method_source//lib/method_source.rb#16
257
+ class MethodSource::SourceNotFoundError < ::StandardError; end
258
+
259
+ # source://method_source//lib/method_source/version.rb#2
260
+ MethodSource::VERSION = T.let(T.unsafe(nil), String)
261
+
262
+ # source://method_source//lib/method_source.rb#137
263
+ class Proc
264
+ include ::MethodSource::SourceLocation::ProcExtensions
265
+ include ::MethodSource::MethodExtensions
266
+ end
267
+
268
+ # source://method_source//lib/method_source.rb#132
269
+ class UnboundMethod
270
+ include ::MethodSource::SourceLocation::UnboundMethodExtensions
271
+ include ::MethodSource::MethodExtensions
272
+ end
@@ -0,0 +1,224 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `mini_racer` gem.
5
+ # Please instead update this file by running `bin/tapioca gem mini_racer`.
6
+
7
+ # source://mini_racer//lib/mini_racer/version.rb#3
8
+ module MiniRacer; end
9
+
10
+ # eval is defined in the C class
11
+ #
12
+ # source://mini_racer//lib/mini_racer.rb#116
13
+ class MiniRacer::Context
14
+ # @return [Context] a new instance of Context
15
+ #
16
+ # source://mini_racer//lib/mini_racer.rb#151
17
+ def initialize(max_memory: T.unsafe(nil), timeout: T.unsafe(nil), isolate: T.unsafe(nil), ensure_gc_after_idle: T.unsafe(nil), snapshot: T.unsafe(nil), marshal_stack_depth: T.unsafe(nil)); end
18
+
19
+ # @raise [ContextDisposedError]
20
+ #
21
+ # source://mini_racer//lib/mini_racer.rb#261
22
+ def attach(name, callback); end
23
+
24
+ # source://mini_racer//lib/mini_racer.rb#236
25
+ def call(function_name, *arguments); end
26
+
27
+ # source://mini_racer//lib/mini_racer.rb#250
28
+ def dispose; end
29
+
30
+ def dispose_unsafe; end
31
+
32
+ # source://mini_racer//lib/mini_racer.rb#219
33
+ def eval(str, options = T.unsafe(nil)); end
34
+
35
+ def heap_stats; end
36
+
37
+ # source://mini_racer//lib/mini_racer.rb#186
38
+ def isolate; end
39
+
40
+ # source://mini_racer//lib/mini_racer.rb#192
41
+ def load(filename); end
42
+
43
+ def stop; end
44
+
45
+ # source://mini_racer//lib/mini_racer.rb#197
46
+ def write_heap_snapshot(file_or_io); end
47
+
48
+ def write_heap_snapshot_unsafe(_arg0); end
49
+
50
+ private
51
+
52
+ # source://mini_racer//lib/mini_racer.rb#402
53
+ def assert_numeric_or_nil(option_name, object, min_value:, max_value: T.unsafe(nil)); end
54
+
55
+ # source://mini_racer//lib/mini_racer.rb#416
56
+ def assert_option_is_nil_or_a(option_name, object, klass); end
57
+
58
+ def call_unsafe(*_arg0); end
59
+
60
+ # source://mini_racer//lib/mini_racer.rb#388
61
+ def check_init_options!(isolate:, snapshot:, max_memory:, marshal_stack_depth:, ensure_gc_after_idle:, timeout:); end
62
+
63
+ def create_isolate_value; end
64
+
65
+ # source://mini_racer//lib/mini_racer.rb#306
66
+ def ensure_gc_thread; end
67
+
68
+ def eval_unsafe(_arg0, _arg1); end
69
+ def init_unsafe(_arg0, _arg1); end
70
+ def isolate_mutex; end
71
+
72
+ # source://mini_racer//lib/mini_racer.rb#338
73
+ def stop_attached; end
74
+
75
+ # source://mini_racer//lib/mini_racer.rb#347
76
+ def timeout(&blk); end
77
+ end
78
+
79
+ # source://mini_racer//lib/mini_racer.rb#118
80
+ class MiniRacer::Context::ExternalFunction
81
+ # @return [ExternalFunction] a new instance of ExternalFunction
82
+ #
83
+ # source://mini_racer//lib/mini_racer.rb#119
84
+ def initialize(name, callback, parent); end
85
+
86
+ private
87
+
88
+ def notify_v8; end
89
+ end
90
+
91
+ # source://mini_racer//lib/mini_racer.rb#28
92
+ class MiniRacer::ContextDisposedError < ::MiniRacer::Error; end
93
+
94
+ # source://mini_racer//lib/mini_racer.rb#26
95
+ class MiniRacer::Error < ::StandardError; end
96
+
97
+ # source://mini_racer//lib/mini_racer.rb#32
98
+ class MiniRacer::EvalError < ::MiniRacer::Error; end
99
+
100
+ # source://mini_racer//lib/mini_racer.rb#37
101
+ class MiniRacer::FailedV8Conversion
102
+ # @return [FailedV8Conversion] a new instance of FailedV8Conversion
103
+ #
104
+ # source://mini_racer//lib/mini_racer.rb#39
105
+ def initialize(info); end
106
+
107
+ # Returns the value of attribute info.
108
+ #
109
+ # source://mini_racer//lib/mini_racer.rb#38
110
+ def info; end
111
+ end
112
+
113
+ # source://mini_racer//lib/mini_racer.rb#74
114
+ class MiniRacer::Isolate
115
+ # @return [Isolate] a new instance of Isolate
116
+ #
117
+ # source://mini_racer//lib/mini_racer.rb#75
118
+ def initialize(snapshot = T.unsafe(nil)); end
119
+
120
+ def idle_notification(_arg0); end
121
+ def low_memory_notification; end
122
+ def pump_message_loop; end
123
+
124
+ private
125
+
126
+ def init_with_snapshot(_arg0); end
127
+ end
128
+
129
+ # helper class returned when we have a JavaScript function
130
+ #
131
+ # source://mini_racer//lib/mini_racer.rb#68
132
+ class MiniRacer::JavaScriptFunction
133
+ # source://mini_racer//lib/mini_racer.rb#69
134
+ def to_s; end
135
+ end
136
+
137
+ # source://mini_racer//lib/mini_racer/version.rb#5
138
+ MiniRacer::LIBV8_NODE_VERSION = T.let(T.unsafe(nil), String)
139
+
140
+ module MiniRacer::Loader
141
+ class << self
142
+ def load(_arg0); end
143
+ end
144
+ end
145
+
146
+ # source://mini_racer//lib/mini_racer.rb#23
147
+ MiniRacer::MARSHAL_STACKDEPTH_DEFAULT = T.let(T.unsafe(nil), Integer)
148
+
149
+ # source://mini_racer//lib/mini_racer.rb#24
150
+ MiniRacer::MARSHAL_STACKDEPTH_MAX_VALUE = T.let(T.unsafe(nil), Integer)
151
+
152
+ # source://mini_racer//lib/mini_racer.rb#33
153
+ class MiniRacer::ParseError < ::MiniRacer::EvalError; end
154
+
155
+ # source://mini_racer//lib/mini_racer.rb#85
156
+ class MiniRacer::Platform
157
+ class << self
158
+ # @raise [TypeError]
159
+ def set_flag_as_str!(_arg0); end
160
+
161
+ # source://mini_racer//lib/mini_racer.rb#87
162
+ def set_flags!(*args, **kwargs); end
163
+
164
+ private
165
+
166
+ # normalize flags to strings, and adds leading dashes if needed
167
+ #
168
+ # source://mini_racer//lib/mini_racer.rb#101
169
+ def flag_to_string(flag); end
170
+
171
+ # source://mini_racer//lib/mini_racer.rb#96
172
+ def flags_to_strings(flags); end
173
+ end
174
+ end
175
+
176
+ # source://mini_racer//lib/mini_racer.rb#30
177
+ class MiniRacer::PlatformAlreadyInitialized < ::MiniRacer::Error; end
178
+
179
+ # source://mini_racer//lib/mini_racer.rb#44
180
+ class MiniRacer::RuntimeError < ::MiniRacer::EvalError
181
+ # @return [RuntimeError] a new instance of RuntimeError
182
+ #
183
+ # source://mini_racer//lib/mini_racer.rb#45
184
+ def initialize(message); end
185
+
186
+ # source://mini_racer//lib/mini_racer.rb#56
187
+ def backtrace; end
188
+ end
189
+
190
+ # source://mini_racer//lib/mini_racer.rb#34
191
+ class MiniRacer::ScriptTerminatedError < ::MiniRacer::EvalError; end
192
+
193
+ # `size` and `warmup!` public methods are defined in the C class
194
+ #
195
+ # source://mini_racer//lib/mini_racer.rb#424
196
+ class MiniRacer::Snapshot
197
+ # @return [Snapshot] a new instance of Snapshot
198
+ #
199
+ # source://mini_racer//lib/mini_racer.rb#425
200
+ def initialize(str = T.unsafe(nil)); end
201
+
202
+ def dump; end
203
+ def size; end
204
+
205
+ # source://mini_racer//lib/mini_racer.rb#440
206
+ def warmup!(src); end
207
+
208
+ # @raise [TypeError]
209
+ def warmup_unsafe!(_arg0); end
210
+
211
+ private
212
+
213
+ # @raise [TypeError]
214
+ def load(_arg0); end
215
+ end
216
+
217
+ # source://mini_racer//lib/mini_racer.rb#29
218
+ class MiniRacer::SnapshotError < ::MiniRacer::Error; end
219
+
220
+ # source://mini_racer//lib/mini_racer.rb#35
221
+ class MiniRacer::V8OutOfMemoryError < ::MiniRacer::EvalError; end
222
+
223
+ # source://mini_racer//lib/mini_racer/version.rb#4
224
+ MiniRacer::VERSION = T.let(T.unsafe(nil), String)