opal 1.0.3 → 1.1.1.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (408) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +13 -12
  3. data/.gitattributes +1 -1
  4. data/.github/FUNDING.yml +1 -0
  5. data/.github/workflows/build.yml +90 -0
  6. data/.jshintrc +1 -1
  7. data/.overcommit.yml +35 -0
  8. data/.rubocop.yml +44 -7
  9. data/{.rubocop_todo.yml → .rubocop/todo.yml} +4 -5
  10. data/CHANGELOG.md +152 -1
  11. data/Gemfile +2 -3
  12. data/HACKING.md +2 -9
  13. data/LICENSE +1 -1
  14. data/README.md +21 -18
  15. data/UNRELEASED.md +4 -2
  16. data/benchmark-ips/bm_array_pop_1.rb +8 -0
  17. data/benchmark-ips/bm_array_shift.rb +7 -0
  18. data/benchmark-ips/bm_js_symbols_vs_strings.rb +7 -2
  19. data/benchmark-ips/class_shovel_vs_singleton_class.rb +16 -0
  20. data/bin/build-browser-source-map-support +4 -0
  21. data/bin/format-filters +54 -0
  22. data/bin/git-submodule-fast-install +49 -0
  23. data/bin/remove-filters +39 -0
  24. data/bin/setup +4 -0
  25. data/bin/yarn +11 -0
  26. data/docs/releasing.md +18 -0
  27. data/docs/roda-sprockets.md +86 -0
  28. data/docs/sinatra.md +5 -12
  29. data/examples/rack/Gemfile +1 -0
  30. data/examples/rack/app/application.rb +3 -0
  31. data/examples/rack/config.ru +5 -4
  32. data/exe/opal-repl +2 -83
  33. data/lib/opal/ast/builder.rb +1 -1
  34. data/lib/opal/builder.rb +2 -10
  35. data/lib/opal/builder_processors.rb +1 -1
  36. data/lib/opal/cli.rb +4 -1
  37. data/lib/opal/cli_options.rb +11 -3
  38. data/lib/opal/cli_runners.rb +27 -37
  39. data/lib/opal/cli_runners/applescript.rb +5 -44
  40. data/lib/opal/cli_runners/chrome.js +7 -35
  41. data/lib/opal/cli_runners/chrome.rb +75 -17
  42. data/lib/opal/cli_runners/compiler.rb +17 -0
  43. data/lib/opal/cli_runners/nashorn.rb +9 -43
  44. data/lib/opal/cli_runners/nodejs.rb +18 -47
  45. data/lib/opal/cli_runners/server.rb +18 -6
  46. data/lib/opal/cli_runners/source-map-support-browser.js +6449 -0
  47. data/lib/opal/cli_runners/source-map-support-node.js +3704 -0
  48. data/lib/opal/cli_runners/source-map-support.js +639 -0
  49. data/lib/opal/cli_runners/system_runner.rb +45 -0
  50. data/lib/opal/compiler.rb +57 -29
  51. data/lib/opal/config.rb +0 -5
  52. data/lib/opal/erb.rb +1 -1
  53. data/lib/opal/magic_comments.rb +34 -0
  54. data/lib/opal/nodes/args/arity_check.rb +2 -1
  55. data/lib/opal/nodes/base.rb +1 -1
  56. data/lib/opal/nodes/call.rb +1 -4
  57. data/lib/opal/nodes/def.rb +2 -0
  58. data/lib/opal/nodes/iter.rb +1 -1
  59. data/lib/opal/nodes/literal.rb +19 -14
  60. data/lib/opal/nodes/logic.rb +5 -80
  61. data/lib/opal/nodes/masgn.rb +2 -0
  62. data/lib/opal/nodes/rescue.rb +1 -1
  63. data/lib/opal/nodes/super.rb +24 -10
  64. data/lib/opal/nodes/top.rb +5 -4
  65. data/lib/opal/parser/with_c_lexer.rb +2 -1
  66. data/lib/opal/parser/with_ruby_lexer.rb +1 -1
  67. data/lib/opal/path_reader.rb +2 -2
  68. data/lib/opal/paths.rb +8 -5
  69. data/lib/opal/repl.rb +103 -0
  70. data/lib/opal/rewriter.rb +4 -0
  71. data/lib/opal/rewriters/for_rewriter.rb +1 -1
  72. data/lib/opal/rewriters/js_reserved_words.rb +7 -7
  73. data/lib/opal/rewriters/numblocks.rb +31 -0
  74. data/lib/opal/rewriters/returnable_logic.rb +33 -0
  75. data/lib/opal/util.rb +11 -48
  76. data/lib/opal/version.rb +1 -1
  77. data/opal.gemspec +26 -26
  78. data/opal/corelib/array.rb +160 -118
  79. data/opal/corelib/array/pack.rb +5 -3
  80. data/opal/corelib/basic_object.rb +4 -4
  81. data/opal/corelib/class.rb +2 -1
  82. data/opal/corelib/comparable.rb +49 -31
  83. data/opal/corelib/constants.rb +5 -5
  84. data/opal/corelib/enumerable.rb +108 -46
  85. data/opal/corelib/enumerator.rb +27 -12
  86. data/opal/corelib/file.rb +3 -1
  87. data/opal/corelib/hash.rb +6 -1
  88. data/opal/corelib/helpers.rb +8 -28
  89. data/opal/corelib/io.rb +12 -7
  90. data/opal/corelib/kernel.rb +45 -14
  91. data/opal/corelib/kernel/format.rb +3 -1
  92. data/opal/corelib/math.rb +8 -6
  93. data/opal/corelib/method.rb +8 -0
  94. data/opal/corelib/module.rb +17 -2
  95. data/opal/corelib/number.rb +3 -12
  96. data/opal/corelib/proc.rb +16 -0
  97. data/opal/corelib/random/mersenne_twister.rb +147 -0
  98. data/opal/corelib/range.rb +3 -13
  99. data/opal/corelib/regexp.rb +10 -6
  100. data/opal/corelib/runtime.js +208 -81
  101. data/opal/corelib/string.rb +55 -49
  102. data/opal/corelib/string/encoding.rb +109 -32
  103. data/opal/corelib/string/unpack.rb +2 -17
  104. data/opal/corelib/struct.rb +14 -1
  105. data/opal/corelib/time.rb +4 -0
  106. data/opal/opal.rb +1 -1
  107. data/opal/opal/mini.rb +1 -1
  108. data/package.json +16 -0
  109. data/spec/README.md +10 -0
  110. data/spec/filters/bugs/array.rb +76 -0
  111. data/spec/filters/bugs/base64.rb +10 -0
  112. data/spec/filters/bugs/basicobject.rb +12 -0
  113. data/spec/filters/bugs/bigdecimal.rb +248 -0
  114. data/spec/filters/bugs/class.rb +12 -0
  115. data/spec/filters/bugs/complex.rb +7 -0
  116. data/spec/filters/bugs/date.rb +104 -0
  117. data/spec/filters/bugs/encoding.rb +259 -0
  118. data/spec/filters/bugs/enumerable.rb +26 -0
  119. data/spec/filters/bugs/enumerator.rb +48 -0
  120. data/spec/filters/bugs/exception.rb +120 -0
  121. data/spec/filters/bugs/file.rb +48 -0
  122. data/spec/filters/bugs/float.rb +74 -0
  123. data/spec/filters/bugs/hash.rb +60 -0
  124. data/spec/filters/bugs/integer.rb +78 -0
  125. data/spec/filters/bugs/io.rb +9 -0
  126. data/spec/filters/bugs/kernel.rb +401 -0
  127. data/spec/filters/bugs/language.rb +451 -0
  128. data/spec/filters/bugs/marshal.rb +50 -0
  129. data/spec/filters/bugs/math.rb +4 -0
  130. data/spec/filters/bugs/method.rb +79 -0
  131. data/spec/filters/bugs/module.rb +281 -0
  132. data/spec/filters/bugs/nilclass.rb +4 -0
  133. data/spec/filters/bugs/numeric.rb +27 -0
  134. data/spec/filters/bugs/openstruct.rb +8 -0
  135. data/spec/filters/bugs/pack_unpack.rb +138 -0
  136. data/spec/filters/bugs/pathname.rb +9 -0
  137. data/spec/filters/bugs/proc.rb +80 -0
  138. data/spec/filters/bugs/random.rb +20 -0
  139. data/spec/filters/bugs/range.rb +139 -0
  140. data/spec/filters/bugs/rational.rb +12 -0
  141. data/spec/filters/bugs/regexp.rb +91 -0
  142. data/spec/filters/bugs/set.rb +51 -0
  143. data/spec/filters/bugs/singleton.rb +7 -0
  144. data/spec/filters/bugs/string.rb +341 -0
  145. data/spec/filters/bugs/stringscanner.rb +78 -0
  146. data/spec/filters/bugs/struct.rb +26 -0
  147. data/spec/filters/bugs/symbol.rb +7 -0
  148. data/spec/filters/bugs/time.rb +109 -0
  149. data/spec/filters/bugs/unboundmethod.rb +33 -0
  150. data/spec/filters/bugs/warnings.rb +30 -0
  151. data/spec/filters/unsupported/array.rb +168 -0
  152. data/spec/filters/unsupported/basicobject.rb +15 -0
  153. data/spec/filters/unsupported/bignum.rb +55 -0
  154. data/spec/filters/unsupported/class.rb +5 -0
  155. data/spec/filters/unsupported/delegator.rb +6 -0
  156. data/spec/filters/unsupported/enumerable.rb +12 -0
  157. data/spec/filters/unsupported/enumerator.rb +14 -0
  158. data/spec/filters/unsupported/file.rb +4 -0
  159. data/spec/filters/unsupported/fixnum.rb +15 -0
  160. data/spec/filters/unsupported/float.rb +47 -0
  161. data/spec/filters/unsupported/freeze.rb +259 -0
  162. data/spec/filters/unsupported/hash.rb +44 -0
  163. data/spec/filters/unsupported/integer.rb +101 -0
  164. data/spec/filters/unsupported/kernel.rb +35 -0
  165. data/spec/filters/unsupported/language.rb +25 -0
  166. data/spec/filters/unsupported/marshal.rb +44 -0
  167. data/spec/filters/unsupported/matchdata.rb +63 -0
  168. data/spec/filters/unsupported/math.rb +4 -0
  169. data/spec/filters/unsupported/pathname.rb +4 -0
  170. data/spec/filters/unsupported/privacy.rb +287 -0
  171. data/spec/filters/unsupported/proc.rb +4 -0
  172. data/spec/filters/unsupported/random.rb +5 -0
  173. data/spec/filters/unsupported/range.rb +8 -0
  174. data/spec/filters/unsupported/regexp.rb +70 -0
  175. data/spec/filters/unsupported/set.rb +5 -0
  176. data/spec/filters/unsupported/singleton.rb +7 -0
  177. data/spec/filters/unsupported/string.rb +687 -0
  178. data/spec/filters/unsupported/struct.rb +7 -0
  179. data/spec/filters/unsupported/symbol.rb +21 -0
  180. data/spec/filters/unsupported/taint.rb +162 -0
  181. data/spec/filters/unsupported/thread.rb +10 -0
  182. data/spec/filters/unsupported/time.rb +204 -0
  183. data/spec/filters/unsupported/usage_of_files.rb +262 -0
  184. data/spec/lib/builder_processors_spec.rb +44 -0
  185. data/spec/lib/builder_spec.rb +133 -0
  186. data/spec/lib/cli_runners/server_spec.rb +25 -0
  187. data/spec/lib/cli_runners_spec.rb +16 -0
  188. data/spec/lib/cli_spec.rb +256 -0
  189. data/spec/lib/compiler_spec.rb +693 -0
  190. data/spec/lib/config_spec.rb +112 -0
  191. data/spec/lib/dependency_resolver_spec.rb +43 -0
  192. data/spec/lib/deprecations_spec.rb +17 -0
  193. data/spec/lib/fixtures/complex_sprockets.js.rb.erb +4 -0
  194. data/spec/lib/fixtures/file_with_directives.js +2 -0
  195. data/spec/lib/fixtures/jst_file.js.jst +1 -0
  196. data/spec/lib/fixtures/no_requires.rb +1 -0
  197. data/spec/lib/fixtures/opal_file.rb +2 -0
  198. data/spec/lib/fixtures/require_tree_test.rb +3 -0
  199. data/spec/lib/fixtures/required_file.js +1 -0
  200. data/spec/lib/fixtures/required_tree_test/required_file1.rb +1 -0
  201. data/spec/lib/fixtures/required_tree_test/required_file2.rb +1 -0
  202. data/spec/lib/fixtures/requires.rb +7 -0
  203. data/spec/lib/fixtures/source_location_test.rb +7 -0
  204. data/spec/lib/fixtures/source_map.rb +1 -0
  205. data/spec/lib/fixtures/source_map/subfolder/other_file.rb +1 -0
  206. data/spec/lib/fixtures/sprockets_file.js.rb +3 -0
  207. data/spec/lib/fixtures/sprockets_require_tree_test.rb +3 -0
  208. data/spec/lib/path_reader_spec.rb +47 -0
  209. data/spec/lib/paths_spec.rb +18 -0
  210. data/spec/lib/repl_spec.rb +28 -0
  211. data/spec/lib/rewriters/base_spec.rb +68 -0
  212. data/spec/lib/rewriters/binary_operator_assignment_spec.rb +153 -0
  213. data/spec/lib/rewriters/block_to_iter_spec.rb +28 -0
  214. data/spec/lib/rewriters/dot_js_syntax_spec.rb +108 -0
  215. data/spec/lib/rewriters/explicit_writer_return_spec.rb +186 -0
  216. data/spec/lib/rewriters/for_rewriter_spec.rb +92 -0
  217. data/spec/lib/rewriters/hashes/key_duplicates_rewriter_spec.rb +47 -0
  218. data/spec/lib/rewriters/js_reserved_words_spec.rb +119 -0
  219. data/spec/lib/rewriters/logical_operator_assignment_spec.rb +202 -0
  220. data/spec/lib/rewriters/opal_engine_check_spec.rb +84 -0
  221. data/spec/lib/rewriters/returnable_logic_spec.rb +52 -0
  222. data/spec/lib/rewriters/rubyspec/filters_rewriter_spec.rb +59 -0
  223. data/spec/lib/simple_server_spec.rb +56 -0
  224. data/spec/lib/source_map/file_spec.rb +67 -0
  225. data/spec/lib/source_map/index_spec.rb +80 -0
  226. data/spec/lib/spec_helper.rb +105 -0
  227. data/spec/mspec-opal/formatters.rb +197 -0
  228. data/spec/mspec-opal/runner.rb +172 -0
  229. data/spec/opal/compiler/irb_spec.rb +44 -0
  230. data/spec/opal/compiler/unicode_spec.rb +10 -0
  231. data/spec/opal/core/array/dup_spec.rb +23 -0
  232. data/spec/opal/core/array/intersection_spec.rb +38 -0
  233. data/spec/opal/core/array/minus_spec.rb +38 -0
  234. data/spec/opal/core/array/union_spec.rb +38 -0
  235. data/spec/opal/core/array/uniq_spec.rb +49 -0
  236. data/spec/opal/core/class/inherited_spec.rb +18 -0
  237. data/spec/opal/core/enumerable/all_break_spec.rb +5 -0
  238. data/spec/opal/core/enumerable/any_break_spec.rb +5 -0
  239. data/spec/opal/core/enumerable/collect_break_spec.rb +13 -0
  240. data/spec/opal/core/enumerable/count_break_spec.rb +5 -0
  241. data/spec/opal/core/enumerable/detect_break_spec.rb +5 -0
  242. data/spec/opal/core/enumerable/drop_while_break_spec.rb +5 -0
  243. data/spec/opal/core/enumerable/each_slice_break_spec.rb +6 -0
  244. data/spec/opal/core/enumerable/each_with_index_break_spec.rb +5 -0
  245. data/spec/opal/core/enumerable/each_with_object_break_spec.rb +5 -0
  246. data/spec/opal/core/enumerable/find_all_break_spec.rb +5 -0
  247. data/spec/opal/core/enumerable/find_index_break_spec.rb +5 -0
  248. data/spec/opal/core/enumerable/grep_break_spec.rb +5 -0
  249. data/spec/opal/core/enumerable/max_break_spec.rb +5 -0
  250. data/spec/opal/core/enumerable/max_by_break_spec.rb +5 -0
  251. data/spec/opal/core/enumerable/min_break_spec.rb +5 -0
  252. data/spec/opal/core/enumerable/min_by_break_spec.rb +5 -0
  253. data/spec/opal/core/enumerable/none_break_spec.rb +5 -0
  254. data/spec/opal/core/enumerable/one_break_spec.rb +5 -0
  255. data/spec/opal/core/enumerable/reduce_break_spec.rb +5 -0
  256. data/spec/opal/core/enumerable/take_while_break_spec.rb +5 -0
  257. data/spec/opal/core/enumerator/with_index_spec.rb +6 -0
  258. data/spec/opal/core/exception_spec.rb +8 -0
  259. data/spec/opal/core/fixtures/require_tree_files/file 1.rb +1 -0
  260. data/spec/opal/core/fixtures/require_tree_files/file 2.rb +1 -0
  261. data/spec/opal/core/fixtures/require_tree_files/file 3.rb +1 -0
  262. data/spec/opal/core/fixtures/require_tree_files/file 4.rb +1 -0
  263. data/spec/opal/core/fixtures/require_tree_files/file 5.rb +1 -0
  264. data/spec/opal/core/fixtures/require_tree_files/nested/nested 1.rb +1 -0
  265. data/spec/opal/core/fixtures/require_tree_files/nested/nested 2.rb +1 -0
  266. data/spec/opal/core/fixtures/require_tree_files/other/other 1.rb +1 -0
  267. data/spec/opal/core/fixtures/require_tree_with_dot/file 1.rb +1 -0
  268. data/spec/opal/core/fixtures/require_tree_with_dot/file 2.rb +1 -0
  269. data/spec/opal/core/fixtures/require_tree_with_dot/file 3.rb +1 -0
  270. data/spec/opal/core/fixtures/require_tree_with_dot/index.rb +3 -0
  271. data/spec/opal/core/hash/internals_spec.rb +339 -0
  272. data/spec/opal/core/helpers_spec.rb +14 -0
  273. data/spec/opal/core/iterable_props_spec.rb +53 -0
  274. data/spec/opal/core/kernel/at_exit_spec.rb +70 -0
  275. data/spec/opal/core/kernel/freeze_spec.rb +15 -0
  276. data/spec/opal/core/kernel/instance_variables_spec.rb +110 -0
  277. data/spec/opal/core/kernel/methods_spec.rb +25 -0
  278. data/spec/opal/core/kernel/public_methods_spec.rb +25 -0
  279. data/spec/opal/core/kernel/require_tree_spec.rb +18 -0
  280. data/spec/opal/core/kernel/respond_to_spec.rb +15 -0
  281. data/spec/opal/core/language/DATA/characters_support_spec.rb +9 -0
  282. data/spec/opal/core/language/DATA/empty___END___spec.rb +7 -0
  283. data/spec/opal/core/language/DATA/multiple___END___spec.rb +10 -0
  284. data/spec/opal/core/language/arguments/mlhs_arg_spec.rb +18 -0
  285. data/spec/opal/core/language/keyword_arguments_spec.rb +9 -0
  286. data/spec/opal/core/language/numblocks_spec.rb +16 -0
  287. data/spec/opal/core/language/safe_navigator_spec.rb +7 -0
  288. data/spec/opal/core/language/while_spec.rb +31 -0
  289. data/spec/opal/core/language_spec.rb +29 -0
  290. data/spec/opal/core/marshal/dump_spec.rb +81 -0
  291. data/spec/opal/core/marshal/load_spec.rb +13 -0
  292. data/spec/opal/core/module_spec.rb +27 -0
  293. data/spec/opal/core/object_id_spec.rb +56 -0
  294. data/spec/opal/core/regexp/interpolation_spec.rb +40 -0
  295. data/spec/opal/core/regexp/match_spec.rb +78 -0
  296. data/spec/opal/core/runtime/bridged_classes_spec.rb +123 -0
  297. data/spec/opal/core/runtime/constants_spec.rb +16 -0
  298. data/spec/opal/core/runtime/eval_spec.rb +5 -0
  299. data/spec/opal/core/runtime/exit_spec.rb +29 -0
  300. data/spec/opal/core/runtime/is_a_spec.rb +48 -0
  301. data/spec/opal/core/runtime/loaded_spec.rb +20 -0
  302. data/spec/opal/core/runtime/main_methods_spec.rb +39 -0
  303. data/spec/opal/core/runtime/method_missing_spec.rb +68 -0
  304. data/spec/opal/core/runtime/rescue_spec.rb +37 -0
  305. data/spec/opal/core/runtime/string_spec.rb +25 -0
  306. data/spec/opal/core/runtime/truthy_spec.rb +61 -0
  307. data/spec/opal/core/runtime_spec.rb +58 -0
  308. data/spec/opal/core/string/each_byte_spec.rb +19 -0
  309. data/spec/opal/core/string/gsub_spec.rb +35 -0
  310. data/spec/opal/core/string/to_sym_spec.rb +9 -0
  311. data/spec/opal/core/string_spec.rb +28 -0
  312. data/spec/opal/core/struct/dup_spec.rb +11 -0
  313. data/spec/opal/core/time_spec.rb +68 -0
  314. data/spec/opal/stdlib/erb/erb_spec.rb +30 -0
  315. data/spec/opal/stdlib/erb/inline_block.opalerb +3 -0
  316. data/spec/opal/stdlib/erb/quoted.opalerb +1 -0
  317. data/spec/opal/stdlib/erb/simple.opalerb +1 -0
  318. data/spec/opal/stdlib/js_spec.rb +72 -0
  319. data/spec/opal/stdlib/json/ext_spec.rb +55 -0
  320. data/spec/opal/stdlib/json/parse_spec.rb +37 -0
  321. data/spec/opal/stdlib/logger/logger_spec.rb +308 -0
  322. data/spec/opal/stdlib/native/alias_native_spec.rb +27 -0
  323. data/spec/opal/stdlib/native/array_spec.rb +11 -0
  324. data/spec/opal/stdlib/native/date_spec.rb +12 -0
  325. data/spec/opal/stdlib/native/deprecated_include_spec.rb +8 -0
  326. data/spec/opal/stdlib/native/each_spec.rb +13 -0
  327. data/spec/opal/stdlib/native/element_reference_spec.rb +16 -0
  328. data/spec/opal/stdlib/native/exposure_spec.rb +33 -0
  329. data/spec/opal/stdlib/native/ext_spec.rb +19 -0
  330. data/spec/opal/stdlib/native/hash_spec.rb +67 -0
  331. data/spec/opal/stdlib/native/initialize_spec.rb +17 -0
  332. data/spec/opal/stdlib/native/method_missing_spec.rb +51 -0
  333. data/spec/opal/stdlib/native/native_alias_spec.rb +26 -0
  334. data/spec/opal/stdlib/native/native_class_spec.rb +18 -0
  335. data/spec/opal/stdlib/native/native_module_spec.rb +13 -0
  336. data/spec/opal/stdlib/native/native_reader_spec.rb +22 -0
  337. data/spec/opal/stdlib/native/native_writer_spec.rb +30 -0
  338. data/spec/opal/stdlib/native/new_spec.rb +92 -0
  339. data/spec/opal/stdlib/native/struct_spec.rb +12 -0
  340. data/spec/opal/stdlib/pp_spec.rb +5 -0
  341. data/spec/opal/stdlib/promise/always_spec.rb +49 -0
  342. data/spec/opal/stdlib/promise/error_spec.rb +15 -0
  343. data/spec/opal/stdlib/promise/rescue_spec.rb +53 -0
  344. data/spec/opal/stdlib/promise/then_spec.rb +79 -0
  345. data/spec/opal/stdlib/promise/trace_spec.rb +51 -0
  346. data/spec/opal/stdlib/promise/value_spec.rb +15 -0
  347. data/spec/opal/stdlib/promise/when_spec.rb +34 -0
  348. data/spec/opal/stdlib/source_map_spec.rb +8 -0
  349. data/spec/opal/stdlib/strscan/scan_spec.rb +11 -0
  350. data/spec/opal/stdlib/template/paths_spec.rb +10 -0
  351. data/spec/opal/stdlib/thread/mutex_spec.rb +40 -0
  352. data/spec/opal/stdlib/thread/thread_queue_spec.rb +32 -0
  353. data/spec/opal/stdlib/thread/thread_spec.rb +60 -0
  354. data/spec/ruby_specs +183 -0
  355. data/spec/spec_helper.rb +31 -0
  356. data/spec/support/guard_platform.rb +4 -0
  357. data/spec/support/match_helpers.rb +57 -0
  358. data/spec/support/mspec_rspec_adapter.rb +33 -0
  359. data/spec/support/rewriters_helper.rb +54 -0
  360. data/spec/support/source_map_helper.rb +190 -0
  361. data/stdlib/base64.rb +2 -2
  362. data/stdlib/bigdecimal.rb +15 -3
  363. data/stdlib/bigdecimal/bignumber.js.rb +1 -1
  364. data/stdlib/bigdecimal/util.rb +148 -0
  365. data/stdlib/delegate.rb +8 -0
  366. data/stdlib/nodejs/fileutils.rb +1 -1
  367. data/stdlib/nodejs/kernel.rb +0 -13
  368. data/stdlib/nodejs/stacktrace.rb +4 -179
  369. data/stdlib/ostruct.rb +5 -0
  370. data/stdlib/pp.rb +586 -19
  371. data/stdlib/prettyprint.rb +556 -0
  372. data/stdlib/rbconfig/sizeof.rb +2 -0
  373. data/stdlib/securerandom.rb +32 -0
  374. data/stdlib/set.rb +36 -0
  375. data/stdlib/strscan.rb +15 -0
  376. data/tasks/benchmarking.rake +1 -1
  377. data/tasks/linting.rake +3 -5
  378. data/tasks/releasing.rake +2 -5
  379. data/tasks/testing.rake +16 -11
  380. data/tasks/testing/mspec_special_calls.rb +1 -19
  381. data/test/nodejs/fixtures/cat.png +0 -0
  382. data/test/nodejs/fixtures/hello.rb +1 -0
  383. data/test/nodejs/fixtures/iso88591.txt +1 -0
  384. data/test/nodejs/fixtures/utf8.txt +1 -0
  385. data/test/nodejs/fixtures/win1258.txt +1 -0
  386. data/test/nodejs/test_dir.rb +39 -0
  387. data/test/nodejs/test_env.rb +62 -0
  388. data/test/nodejs/test_error.rb +29 -0
  389. data/test/nodejs/test_file.rb +206 -0
  390. data/test/nodejs/test_file_encoding.rb +20 -0
  391. data/test/nodejs/test_io.rb +18 -0
  392. data/test/nodejs/test_opal_builder.rb +12 -0
  393. data/test/nodejs/test_pathname.rb +16 -0
  394. data/test/opal/cat.png +0 -0
  395. data/test/opal/http_server.rb +52 -0
  396. data/test/opal/test_base64.rb +115 -0
  397. data/test/opal/test_keyword.rb +590 -0
  398. data/test/opal/test_matrix.rb +661 -0
  399. data/test/opal/test_openuri.rb +53 -0
  400. data/test/opal/unsupported_and_bugs.rb +39 -0
  401. data/yarn.lock +1355 -0
  402. metadata +905 -40
  403. data/.travis.yml +0 -109
  404. data/appveyor.yml +0 -35
  405. data/lib/opal/nodes/runtime_helpers.rb +0 -51
  406. data/opal/corelib/random/MersenneTwister.js +0 -137
  407. data/opal/corelib/random/mersenne_twister.js.rb +0 -13
  408. data/stdlib/bigdecimal/kernel.rb +0 -5
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.1.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elia Schito
8
8
  - meh.
9
9
  - Adam Beynon
10
- autorequire:
10
+ autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2020-02-01 00:00:00.000000000 Z
13
+ date: 2021-02-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ast
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: '2.6'
35
+ version: '3.0'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: '2.6'
42
+ version: '3.0'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: sourcemap
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -60,28 +60,28 @@ dependencies:
60
60
  requirements:
61
61
  - - "~>"
62
62
  - !ruby/object:Gem::Version
63
- version: '10.0'
63
+ version: '13.0'
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - "~>"
69
69
  - !ruby/object:Gem::Version
70
- version: '10.0'
70
+ version: '13.0'
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: rspec
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: '3.7'
77
+ version: '3.9'
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - "~>"
83
83
  - !ruby/object:Gem::Version
84
- version: '3.7'
84
+ version: '3.9'
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: octokit
87
87
  requirement: !ruby/object:Gem::Requirement
@@ -125,7 +125,7 @@ dependencies:
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  - !ruby/object:Gem::Dependency
128
- name: opal-minitest
128
+ name: selenium-webdriver
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - ">="
@@ -139,21 +139,21 @@ dependencies:
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  - !ruby/object:Gem::Dependency
142
- name: selenium-webdriver
142
+ name: benchmark-ips
143
143
  requirement: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - ">="
145
+ - - "<"
146
146
  - !ruby/object:Gem::Version
147
- version: '0'
147
+ version: '2.8'
148
148
  type: :development
149
149
  prerelease: false
150
150
  version_requirements: !ruby/object:Gem::Requirement
151
151
  requirements:
152
- - - ">="
152
+ - - "<"
153
153
  - !ruby/object:Gem::Version
154
- version: '0'
154
+ version: '2.8'
155
155
  - !ruby/object:Gem::Dependency
156
- name: benchmark-ips
156
+ name: sinatra
157
157
  requirement: !ruby/object:Gem::Requirement
158
158
  requirements:
159
159
  - - ">="
@@ -167,7 +167,35 @@ dependencies:
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  - !ruby/object:Gem::Dependency
170
- name: sinatra
170
+ name: rubocop
171
+ requirement: !ruby/object:Gem::Requirement
172
+ requirements:
173
+ - - "~>"
174
+ - !ruby/object:Gem::Version
175
+ version: 0.67.0
176
+ type: :development
177
+ prerelease: false
178
+ version_requirements: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - "~>"
181
+ - !ruby/object:Gem::Version
182
+ version: 0.67.0
183
+ - !ruby/object:Gem::Dependency
184
+ name: rubocop-performance
185
+ requirement: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - "~>"
188
+ - !ruby/object:Gem::Version
189
+ version: 1.1.0
190
+ type: :development
191
+ prerelease: false
192
+ version_requirements: !ruby/object:Gem::Requirement
193
+ requirements:
194
+ - - "~>"
195
+ - !ruby/object:Gem::Version
196
+ version: 1.1.0
197
+ - !ruby/object:Gem::Dependency
198
+ name: rack
171
199
  requirement: !ruby/object:Gem::Requirement
172
200
  requirements:
173
201
  - - ">="
@@ -181,19 +209,19 @@ dependencies:
181
209
  - !ruby/object:Gem::Version
182
210
  version: '0'
183
211
  - !ruby/object:Gem::Dependency
184
- name: rubocop
212
+ name: webrick
185
213
  requirement: !ruby/object:Gem::Requirement
186
214
  requirements:
187
- - - '='
215
+ - - ">="
188
216
  - !ruby/object:Gem::Version
189
- version: 0.53.0
217
+ version: '0'
190
218
  type: :development
191
219
  prerelease: false
192
220
  version_requirements: !ruby/object:Gem::Requirement
193
221
  requirements:
194
- - - '='
222
+ - - ">="
195
223
  - !ruby/object:Gem::Version
196
- version: 0.53.0
224
+ version: '0'
197
225
  description: Opal is a Ruby to JavaScript compiler. It is source-to-source, making
198
226
  it fast as a runtime. Opal includes a compiler (which can be run in any browser),
199
227
  a corelib and runtime implementation. The corelib/runtime is also very small.
@@ -209,14 +237,16 @@ extra_rdoc_files: []
209
237
  files:
210
238
  - ".codeclimate.yml"
211
239
  - ".gitattributes"
240
+ - ".github/FUNDING.yml"
241
+ - ".github/workflows/build.yml"
212
242
  - ".gitignore"
213
243
  - ".gitmodules"
214
244
  - ".inch.yml"
215
245
  - ".jshintrc"
246
+ - ".overcommit.yml"
216
247
  - ".rspec"
217
248
  - ".rubocop.yml"
218
- - ".rubocop_todo.yml"
219
- - ".travis.yml"
249
+ - ".rubocop/todo.yml"
220
250
  - ".yardopts"
221
251
  - CHANGELOG.md
222
252
  - CONDUCT.md
@@ -228,8 +258,9 @@ files:
228
258
  - README.md
229
259
  - Rakefile
230
260
  - UNRELEASED.md
231
- - appveyor.yml
232
261
  - benchmark-ips/README.md
262
+ - benchmark-ips/bm_array_pop_1.rb
263
+ - benchmark-ips/bm_array_shift.rb
233
264
  - benchmark-ips/bm_block_vs_yield.rb
234
265
  - benchmark-ips/bm_case.rb
235
266
  - benchmark-ips/bm_constants_lookup.rb
@@ -237,6 +268,7 @@ files:
237
268
  - benchmark-ips/bm_js_symbols_vs_strings.rb
238
269
  - benchmark-ips/bm_symbol_to_proc.rb
239
270
  - benchmark-ips/bm_while_true_vs_loop.rb
271
+ - benchmark-ips/class_shovel_vs_singleton_class.rb
240
272
  - benchmark/benchmarks
241
273
  - benchmark/bm_array_flatten.rb
242
274
  - benchmark/bm_array_intersection_numbers.rb
@@ -334,13 +366,18 @@ files:
334
366
  - benchmark/bm_module_definition_big.rb
335
367
  - benchmark/bm_module_definition_small.rb
336
368
  - benchmark/run.rb
369
+ - bin/build-browser-source-map-support
337
370
  - bin/console
371
+ - bin/format-filters
372
+ - bin/git-submodule-fast-install
338
373
  - bin/opal
339
374
  - bin/opal-benchmark-ips
340
375
  - bin/opal-mspec
341
376
  - bin/opal-repl
342
377
  - bin/rake
378
+ - bin/remove-filters
343
379
  - bin/setup
380
+ - bin/yarn
344
381
  - config.ru
345
382
  - docs/compiled_ruby.md
346
383
  - docs/compiler.md
@@ -354,6 +391,8 @@ files:
354
391
  - docs/opal_parser.md
355
392
  - docs/promises.md
356
393
  - docs/rails.md
394
+ - docs/releasing.md
395
+ - docs/roda-sprockets.md
357
396
  - docs/rspec.md
358
397
  - docs/sinatra.md
359
398
  - docs/source_maps.md
@@ -387,6 +426,7 @@ files:
387
426
  - lib/opal/cli_runners/applescript.rb
388
427
  - lib/opal/cli_runners/chrome.js
389
428
  - lib/opal/cli_runners/chrome.rb
429
+ - lib/opal/cli_runners/compiler.rb
390
430
  - lib/opal/cli_runners/nashorn.rb
391
431
  - lib/opal/cli_runners/node_modules/chrome-remote-interface/LICENSE
392
432
  - lib/opal/cli_runners/node_modules/chrome-remote-interface/README.md
@@ -428,6 +468,10 @@ files:
428
468
  - lib/opal/cli_runners/nodejs.rb
429
469
  - lib/opal/cli_runners/package.json
430
470
  - lib/opal/cli_runners/server.rb
471
+ - lib/opal/cli_runners/source-map-support-browser.js
472
+ - lib/opal/cli_runners/source-map-support-node.js
473
+ - lib/opal/cli_runners/source-map-support.js
474
+ - lib/opal/cli_runners/system_runner.rb
431
475
  - lib/opal/compiler.rb
432
476
  - lib/opal/config.rb
433
477
  - lib/opal/deprecations.rb
@@ -436,6 +480,7 @@ files:
436
480
  - lib/opal/errors.rb
437
481
  - lib/opal/fragment.rb
438
482
  - lib/opal/hike.rb
483
+ - lib/opal/magic_comments.rb
439
484
  - lib/opal/nodes.rb
440
485
  - lib/opal/nodes/arglist.rb
441
486
  - lib/opal/nodes/args.rb
@@ -479,7 +524,6 @@ files:
479
524
  - lib/opal/nodes/module.rb
480
525
  - lib/opal/nodes/node_with_args.rb
481
526
  - lib/opal/nodes/rescue.rb
482
- - lib/opal/nodes/runtime_helpers.rb
483
527
  - lib/opal/nodes/scope.rb
484
528
  - lib/opal/nodes/singleton_class.rb
485
529
  - lib/opal/nodes/super.rb
@@ -497,6 +541,7 @@ files:
497
541
  - lib/opal/path_reader.rb
498
542
  - lib/opal/paths.rb
499
543
  - lib/opal/regexp_anchors.rb
544
+ - lib/opal/repl.rb
500
545
  - lib/opal/rewriter.rb
501
546
  - lib/opal/rewriters/arguments.rb
502
547
  - lib/opal/rewriters/base.rb
@@ -512,7 +557,9 @@ files:
512
557
  - lib/opal/rewriters/js_reserved_words.rb
513
558
  - lib/opal/rewriters/logical_operator_assignment.rb
514
559
  - lib/opal/rewriters/mlhs_args.rb
560
+ - lib/opal/rewriters/numblocks.rb
515
561
  - lib/opal/rewriters/opal_engine_check.rb
562
+ - lib/opal/rewriters/returnable_logic.rb
516
563
  - lib/opal/rewriters/rubyspec/filters_rewriter.rb
517
564
  - lib/opal/server.rb
518
565
  - lib/opal/simple_server.rb
@@ -558,9 +605,8 @@ files:
558
605
  - opal/corelib/proc.rb
559
606
  - opal/corelib/process.rb
560
607
  - opal/corelib/random.rb
561
- - opal/corelib/random/MersenneTwister.js
562
608
  - opal/corelib/random/math_random.js.rb
563
- - opal/corelib/random/mersenne_twister.js.rb
609
+ - opal/corelib/random/mersenne_twister.rb
564
610
  - opal/corelib/random/seedrandom.js.rb
565
611
  - opal/corelib/range.rb
566
612
  - opal/corelib/rational.rb
@@ -577,12 +623,265 @@ files:
577
623
  - opal/opal/base.rb
578
624
  - opal/opal/full.rb
579
625
  - opal/opal/mini.rb
626
+ - package.json
627
+ - spec/README.md
628
+ - spec/filters/bugs/array.rb
629
+ - spec/filters/bugs/base64.rb
630
+ - spec/filters/bugs/basicobject.rb
631
+ - spec/filters/bugs/bigdecimal.rb
632
+ - spec/filters/bugs/class.rb
633
+ - spec/filters/bugs/complex.rb
634
+ - spec/filters/bugs/date.rb
635
+ - spec/filters/bugs/encoding.rb
636
+ - spec/filters/bugs/enumerable.rb
637
+ - spec/filters/bugs/enumerator.rb
638
+ - spec/filters/bugs/exception.rb
639
+ - spec/filters/bugs/file.rb
640
+ - spec/filters/bugs/float.rb
641
+ - spec/filters/bugs/hash.rb
642
+ - spec/filters/bugs/integer.rb
643
+ - spec/filters/bugs/io.rb
644
+ - spec/filters/bugs/kernel.rb
645
+ - spec/filters/bugs/language.rb
646
+ - spec/filters/bugs/marshal.rb
647
+ - spec/filters/bugs/math.rb
648
+ - spec/filters/bugs/method.rb
649
+ - spec/filters/bugs/module.rb
650
+ - spec/filters/bugs/nilclass.rb
651
+ - spec/filters/bugs/numeric.rb
652
+ - spec/filters/bugs/openstruct.rb
653
+ - spec/filters/bugs/pack_unpack.rb
654
+ - spec/filters/bugs/pathname.rb
655
+ - spec/filters/bugs/proc.rb
656
+ - spec/filters/bugs/random.rb
657
+ - spec/filters/bugs/range.rb
658
+ - spec/filters/bugs/rational.rb
659
+ - spec/filters/bugs/regexp.rb
660
+ - spec/filters/bugs/set.rb
661
+ - spec/filters/bugs/singleton.rb
662
+ - spec/filters/bugs/string.rb
663
+ - spec/filters/bugs/stringscanner.rb
664
+ - spec/filters/bugs/struct.rb
665
+ - spec/filters/bugs/symbol.rb
666
+ - spec/filters/bugs/time.rb
667
+ - spec/filters/bugs/unboundmethod.rb
668
+ - spec/filters/bugs/warnings.rb
669
+ - spec/filters/unsupported/array.rb
670
+ - spec/filters/unsupported/basicobject.rb
671
+ - spec/filters/unsupported/bignum.rb
672
+ - spec/filters/unsupported/class.rb
673
+ - spec/filters/unsupported/delegator.rb
674
+ - spec/filters/unsupported/enumerable.rb
675
+ - spec/filters/unsupported/enumerator.rb
676
+ - spec/filters/unsupported/file.rb
677
+ - spec/filters/unsupported/fixnum.rb
678
+ - spec/filters/unsupported/float.rb
679
+ - spec/filters/unsupported/freeze.rb
680
+ - spec/filters/unsupported/hash.rb
681
+ - spec/filters/unsupported/integer.rb
682
+ - spec/filters/unsupported/kernel.rb
683
+ - spec/filters/unsupported/language.rb
684
+ - spec/filters/unsupported/marshal.rb
685
+ - spec/filters/unsupported/matchdata.rb
686
+ - spec/filters/unsupported/math.rb
687
+ - spec/filters/unsupported/pathname.rb
688
+ - spec/filters/unsupported/privacy.rb
689
+ - spec/filters/unsupported/proc.rb
690
+ - spec/filters/unsupported/random.rb
691
+ - spec/filters/unsupported/range.rb
692
+ - spec/filters/unsupported/regexp.rb
693
+ - spec/filters/unsupported/set.rb
694
+ - spec/filters/unsupported/singleton.rb
695
+ - spec/filters/unsupported/string.rb
696
+ - spec/filters/unsupported/struct.rb
697
+ - spec/filters/unsupported/symbol.rb
698
+ - spec/filters/unsupported/taint.rb
699
+ - spec/filters/unsupported/thread.rb
700
+ - spec/filters/unsupported/time.rb
701
+ - spec/filters/unsupported/usage_of_files.rb
702
+ - spec/lib/builder_processors_spec.rb
703
+ - spec/lib/builder_spec.rb
704
+ - spec/lib/cli_runners/server_spec.rb
705
+ - spec/lib/cli_runners_spec.rb
706
+ - spec/lib/cli_spec.rb
707
+ - spec/lib/compiler_spec.rb
708
+ - spec/lib/config_spec.rb
709
+ - spec/lib/dependency_resolver_spec.rb
710
+ - spec/lib/deprecations_spec.rb
711
+ - spec/lib/fixtures/complex_sprockets.js.rb.erb
712
+ - spec/lib/fixtures/file_with_directives.js
713
+ - spec/lib/fixtures/jst_file.js.jst
714
+ - spec/lib/fixtures/no_requires.rb
715
+ - spec/lib/fixtures/opal_file.rb
716
+ - spec/lib/fixtures/require_tree_test.rb
717
+ - spec/lib/fixtures/required_file.js
718
+ - spec/lib/fixtures/required_tree_test/required_file1.rb
719
+ - spec/lib/fixtures/required_tree_test/required_file2.rb
720
+ - spec/lib/fixtures/requires.rb
721
+ - spec/lib/fixtures/source_location_test.rb
722
+ - spec/lib/fixtures/source_map.rb
723
+ - spec/lib/fixtures/source_map/subfolder/other_file.rb
724
+ - spec/lib/fixtures/sprockets_file.js.rb
725
+ - spec/lib/fixtures/sprockets_require_tree_test.rb
726
+ - spec/lib/path_reader_spec.rb
727
+ - spec/lib/paths_spec.rb
728
+ - spec/lib/repl_spec.rb
729
+ - spec/lib/rewriters/base_spec.rb
730
+ - spec/lib/rewriters/binary_operator_assignment_spec.rb
731
+ - spec/lib/rewriters/block_to_iter_spec.rb
732
+ - spec/lib/rewriters/dot_js_syntax_spec.rb
733
+ - spec/lib/rewriters/explicit_writer_return_spec.rb
734
+ - spec/lib/rewriters/for_rewriter_spec.rb
735
+ - spec/lib/rewriters/hashes/key_duplicates_rewriter_spec.rb
736
+ - spec/lib/rewriters/js_reserved_words_spec.rb
737
+ - spec/lib/rewriters/logical_operator_assignment_spec.rb
738
+ - spec/lib/rewriters/opal_engine_check_spec.rb
739
+ - spec/lib/rewriters/returnable_logic_spec.rb
740
+ - spec/lib/rewriters/rubyspec/filters_rewriter_spec.rb
741
+ - spec/lib/simple_server_spec.rb
742
+ - spec/lib/source_map/file_spec.rb
743
+ - spec/lib/source_map/index_spec.rb
744
+ - spec/lib/spec_helper.rb
745
+ - spec/mspec-opal/formatters.rb
746
+ - spec/mspec-opal/runner.rb
747
+ - spec/opal/compiler/irb_spec.rb
748
+ - spec/opal/compiler/unicode_spec.rb
749
+ - spec/opal/core/array/dup_spec.rb
750
+ - spec/opal/core/array/intersection_spec.rb
751
+ - spec/opal/core/array/minus_spec.rb
752
+ - spec/opal/core/array/union_spec.rb
753
+ - spec/opal/core/array/uniq_spec.rb
754
+ - spec/opal/core/class/inherited_spec.rb
755
+ - spec/opal/core/enumerable/all_break_spec.rb
756
+ - spec/opal/core/enumerable/any_break_spec.rb
757
+ - spec/opal/core/enumerable/collect_break_spec.rb
758
+ - spec/opal/core/enumerable/count_break_spec.rb
759
+ - spec/opal/core/enumerable/detect_break_spec.rb
760
+ - spec/opal/core/enumerable/drop_while_break_spec.rb
761
+ - spec/opal/core/enumerable/each_slice_break_spec.rb
762
+ - spec/opal/core/enumerable/each_with_index_break_spec.rb
763
+ - spec/opal/core/enumerable/each_with_object_break_spec.rb
764
+ - spec/opal/core/enumerable/find_all_break_spec.rb
765
+ - spec/opal/core/enumerable/find_index_break_spec.rb
766
+ - spec/opal/core/enumerable/grep_break_spec.rb
767
+ - spec/opal/core/enumerable/max_break_spec.rb
768
+ - spec/opal/core/enumerable/max_by_break_spec.rb
769
+ - spec/opal/core/enumerable/min_break_spec.rb
770
+ - spec/opal/core/enumerable/min_by_break_spec.rb
771
+ - spec/opal/core/enumerable/none_break_spec.rb
772
+ - spec/opal/core/enumerable/one_break_spec.rb
773
+ - spec/opal/core/enumerable/reduce_break_spec.rb
774
+ - spec/opal/core/enumerable/take_while_break_spec.rb
775
+ - spec/opal/core/enumerator/with_index_spec.rb
776
+ - spec/opal/core/exception_spec.rb
777
+ - spec/opal/core/fixtures/require_tree_files/file 1.rb
778
+ - spec/opal/core/fixtures/require_tree_files/file 2.rb
779
+ - spec/opal/core/fixtures/require_tree_files/file 3.rb
780
+ - spec/opal/core/fixtures/require_tree_files/file 4.rb
781
+ - spec/opal/core/fixtures/require_tree_files/file 5.rb
782
+ - spec/opal/core/fixtures/require_tree_files/nested/nested 1.rb
783
+ - spec/opal/core/fixtures/require_tree_files/nested/nested 2.rb
784
+ - spec/opal/core/fixtures/require_tree_files/other/other 1.rb
785
+ - spec/opal/core/fixtures/require_tree_with_dot/file 1.rb
786
+ - spec/opal/core/fixtures/require_tree_with_dot/file 2.rb
787
+ - spec/opal/core/fixtures/require_tree_with_dot/file 3.rb
788
+ - spec/opal/core/fixtures/require_tree_with_dot/index.rb
789
+ - spec/opal/core/hash/internals_spec.rb
790
+ - spec/opal/core/helpers_spec.rb
791
+ - spec/opal/core/iterable_props_spec.rb
792
+ - spec/opal/core/kernel/at_exit_spec.rb
793
+ - spec/opal/core/kernel/freeze_spec.rb
794
+ - spec/opal/core/kernel/instance_variables_spec.rb
795
+ - spec/opal/core/kernel/methods_spec.rb
796
+ - spec/opal/core/kernel/public_methods_spec.rb
797
+ - spec/opal/core/kernel/require_tree_spec.rb
798
+ - spec/opal/core/kernel/respond_to_spec.rb
799
+ - spec/opal/core/language/DATA/characters_support_spec.rb
800
+ - spec/opal/core/language/DATA/empty___END___spec.rb
801
+ - spec/opal/core/language/DATA/multiple___END___spec.rb
802
+ - spec/opal/core/language/arguments/mlhs_arg_spec.rb
803
+ - spec/opal/core/language/keyword_arguments_spec.rb
804
+ - spec/opal/core/language/numblocks_spec.rb
805
+ - spec/opal/core/language/safe_navigator_spec.rb
806
+ - spec/opal/core/language/while_spec.rb
807
+ - spec/opal/core/language_spec.rb
808
+ - spec/opal/core/marshal/dump_spec.rb
809
+ - spec/opal/core/marshal/load_spec.rb
810
+ - spec/opal/core/module_spec.rb
811
+ - spec/opal/core/object_id_spec.rb
812
+ - spec/opal/core/regexp/interpolation_spec.rb
813
+ - spec/opal/core/regexp/match_spec.rb
814
+ - spec/opal/core/runtime/bridged_classes_spec.rb
815
+ - spec/opal/core/runtime/constants_spec.rb
816
+ - spec/opal/core/runtime/eval_spec.rb
817
+ - spec/opal/core/runtime/exit_spec.rb
818
+ - spec/opal/core/runtime/is_a_spec.rb
819
+ - spec/opal/core/runtime/loaded_spec.rb
820
+ - spec/opal/core/runtime/main_methods_spec.rb
821
+ - spec/opal/core/runtime/method_missing_spec.rb
822
+ - spec/opal/core/runtime/rescue_spec.rb
823
+ - spec/opal/core/runtime/string_spec.rb
824
+ - spec/opal/core/runtime/truthy_spec.rb
825
+ - spec/opal/core/runtime_spec.rb
826
+ - spec/opal/core/string/each_byte_spec.rb
827
+ - spec/opal/core/string/gsub_spec.rb
828
+ - spec/opal/core/string/to_sym_spec.rb
829
+ - spec/opal/core/string_spec.rb
830
+ - spec/opal/core/struct/dup_spec.rb
831
+ - spec/opal/core/time_spec.rb
832
+ - spec/opal/stdlib/erb/erb_spec.rb
833
+ - spec/opal/stdlib/erb/inline_block.opalerb
834
+ - spec/opal/stdlib/erb/quoted.opalerb
835
+ - spec/opal/stdlib/erb/simple.opalerb
836
+ - spec/opal/stdlib/js_spec.rb
837
+ - spec/opal/stdlib/json/ext_spec.rb
838
+ - spec/opal/stdlib/json/parse_spec.rb
839
+ - spec/opal/stdlib/logger/logger_spec.rb
840
+ - spec/opal/stdlib/native/alias_native_spec.rb
841
+ - spec/opal/stdlib/native/array_spec.rb
842
+ - spec/opal/stdlib/native/date_spec.rb
843
+ - spec/opal/stdlib/native/deprecated_include_spec.rb
844
+ - spec/opal/stdlib/native/each_spec.rb
845
+ - spec/opal/stdlib/native/element_reference_spec.rb
846
+ - spec/opal/stdlib/native/exposure_spec.rb
847
+ - spec/opal/stdlib/native/ext_spec.rb
848
+ - spec/opal/stdlib/native/hash_spec.rb
849
+ - spec/opal/stdlib/native/initialize_spec.rb
850
+ - spec/opal/stdlib/native/method_missing_spec.rb
851
+ - spec/opal/stdlib/native/native_alias_spec.rb
852
+ - spec/opal/stdlib/native/native_class_spec.rb
853
+ - spec/opal/stdlib/native/native_module_spec.rb
854
+ - spec/opal/stdlib/native/native_reader_spec.rb
855
+ - spec/opal/stdlib/native/native_writer_spec.rb
856
+ - spec/opal/stdlib/native/new_spec.rb
857
+ - spec/opal/stdlib/native/struct_spec.rb
858
+ - spec/opal/stdlib/pp_spec.rb
859
+ - spec/opal/stdlib/promise/always_spec.rb
860
+ - spec/opal/stdlib/promise/error_spec.rb
861
+ - spec/opal/stdlib/promise/rescue_spec.rb
862
+ - spec/opal/stdlib/promise/then_spec.rb
863
+ - spec/opal/stdlib/promise/trace_spec.rb
864
+ - spec/opal/stdlib/promise/value_spec.rb
865
+ - spec/opal/stdlib/promise/when_spec.rb
866
+ - spec/opal/stdlib/source_map_spec.rb
867
+ - spec/opal/stdlib/strscan/scan_spec.rb
868
+ - spec/opal/stdlib/template/paths_spec.rb
869
+ - spec/opal/stdlib/thread/mutex_spec.rb
870
+ - spec/opal/stdlib/thread/thread_queue_spec.rb
871
+ - spec/opal/stdlib/thread/thread_spec.rb
872
+ - spec/ruby_specs
873
+ - spec/spec_helper.rb
874
+ - spec/support/guard_platform.rb
875
+ - spec/support/match_helpers.rb
876
+ - spec/support/mspec_rspec_adapter.rb
877
+ - spec/support/rewriters_helper.rb
878
+ - spec/support/source_map_helper.rb
580
879
  - stdlib/README.md
581
880
  - stdlib/base64.rb
582
881
  - stdlib/benchmark.rb
583
882
  - stdlib/bigdecimal.rb
584
883
  - stdlib/bigdecimal/bignumber.js.rb
585
- - stdlib/bigdecimal/kernel.rb
884
+ - stdlib/bigdecimal/util.rb
586
885
  - stdlib/buffer.rb
587
886
  - stdlib/buffer/array.rb
588
887
  - stdlib/buffer/view.rb
@@ -695,6 +994,7 @@ files:
695
994
  - stdlib/ostruct.rb
696
995
  - stdlib/pathname.rb
697
996
  - stdlib/pp.rb
997
+ - stdlib/prettyprint.rb
698
998
  - stdlib/promise.rb
699
999
  - stdlib/racc/parser.rb
700
1000
  - stdlib/rbconfig.rb
@@ -716,6 +1016,26 @@ files:
716
1016
  - tasks/testing.rake
717
1017
  - tasks/testing/mspec_special_calls.rb
718
1018
  - tasks/testing/opal_rspec_smoketest.Gemfile
1019
+ - test/nodejs/fixtures/cat.png
1020
+ - test/nodejs/fixtures/hello.rb
1021
+ - test/nodejs/fixtures/iso88591.txt
1022
+ - test/nodejs/fixtures/utf8.txt
1023
+ - test/nodejs/fixtures/win1258.txt
1024
+ - test/nodejs/test_dir.rb
1025
+ - test/nodejs/test_env.rb
1026
+ - test/nodejs/test_error.rb
1027
+ - test/nodejs/test_file.rb
1028
+ - test/nodejs/test_file_encoding.rb
1029
+ - test/nodejs/test_io.rb
1030
+ - test/nodejs/test_opal_builder.rb
1031
+ - test/nodejs/test_pathname.rb
1032
+ - test/opal/cat.png
1033
+ - test/opal/http_server.rb
1034
+ - test/opal/test_base64.rb
1035
+ - test/opal/test_keyword.rb
1036
+ - test/opal/test_matrix.rb
1037
+ - test/opal/test_openuri.rb
1038
+ - test/opal/unsupported_and_bugs.rb
719
1039
  - vendored-minitest/minitest.rb
720
1040
  - vendored-minitest/minitest/assertions.rb
721
1041
  - vendored-minitest/minitest/autorun.rb
@@ -730,19 +1050,20 @@ files:
730
1050
  - vendored-minitest/minitest/test.rb
731
1051
  - vendored-minitest/minitest/unit.rb
732
1052
  - vendored-minitest/test/unit.rb
1053
+ - yarn.lock
733
1054
  homepage: https://opalrb.com
734
1055
  licenses:
735
1056
  - MIT
736
1057
  metadata:
737
- bug_tracker_uri: https://github.com/opal/opal/issues
738
- changelog_uri: https://github.com/opal/opal/blob/v1.0.3/CHANGELOG.md
739
- readme_uri: https://github.com/opal/opal/blob/v1.0.3/README.md
740
- api_documentation_uri: http://opalrb.com/docs/api/v1.0.3/index.html
741
- guides_uri: http://opalrb.com/docs/guides/v1.0.3/index.html
742
1058
  homepage_uri: https://opalrb.com/
1059
+ bug_tracker_uri: https://github.com/opal/opal/issues
1060
+ changelog_uri: https://github.com/opal/opal/blob/v1.1.1.rc1/CHANGELOG.md
1061
+ readme_uri: https://github.com/opal/opal/blob/v1.1.1.rc1/README.md
1062
+ api_documentation_uri: http://opalrb.com/docs/api/v1.1.1.rc1/index.html
1063
+ guides_uri: http://opalrb.com/docs/guides/v1.1.1.rc1/index.html
743
1064
  chat_uri: https://gitter.im/opal/opal
744
1065
  source_code_uri: https://github.com/opal/opal
745
- post_install_message:
1066
+ post_install_message:
746
1067
  rdoc_options: []
747
1068
  require_paths:
748
1069
  - lib
@@ -753,12 +1074,556 @@ required_ruby_version: !ruby/object:Gem::Requirement
753
1074
  version: '2.3'
754
1075
  required_rubygems_version: !ruby/object:Gem::Requirement
755
1076
  requirements:
756
- - - ">="
1077
+ - - ">"
757
1078
  - !ruby/object:Gem::Version
758
- version: '0'
1079
+ version: 1.3.1
759
1080
  requirements: []
760
- rubygems_version: 3.1.2
761
- signing_key:
1081
+ rubygems_version: 3.2.3
1082
+ signing_key:
762
1083
  specification_version: 4
763
1084
  summary: Ruby runtime and core library for JavaScript
764
- test_files: []
1085
+ test_files:
1086
+ - ".codeclimate.yml"
1087
+ - ".gitattributes"
1088
+ - ".github/FUNDING.yml"
1089
+ - ".github/workflows/build.yml"
1090
+ - ".gitignore"
1091
+ - ".gitmodules"
1092
+ - ".inch.yml"
1093
+ - ".jshintrc"
1094
+ - ".overcommit.yml"
1095
+ - ".rspec"
1096
+ - ".rubocop.yml"
1097
+ - ".rubocop/todo.yml"
1098
+ - ".yardopts"
1099
+ - CHANGELOG.md
1100
+ - CONDUCT.md
1101
+ - CONTRIBUTING.md
1102
+ - Gemfile
1103
+ - Guardfile
1104
+ - HACKING.md
1105
+ - LICENSE
1106
+ - README.md
1107
+ - Rakefile
1108
+ - UNRELEASED.md
1109
+ - benchmark-ips/README.md
1110
+ - benchmark-ips/bm_array_pop_1.rb
1111
+ - benchmark-ips/bm_array_shift.rb
1112
+ - benchmark-ips/bm_block_vs_yield.rb
1113
+ - benchmark-ips/bm_case.rb
1114
+ - benchmark-ips/bm_constants_lookup.rb
1115
+ - benchmark-ips/bm_is_number.rb
1116
+ - benchmark-ips/bm_js_symbols_vs_strings.rb
1117
+ - benchmark-ips/bm_symbol_to_proc.rb
1118
+ - benchmark-ips/bm_while_true_vs_loop.rb
1119
+ - benchmark-ips/class_shovel_vs_singleton_class.rb
1120
+ - benchmark/benchmarks
1121
+ - benchmark/bm_array_flatten.rb
1122
+ - benchmark/bm_array_intersection_numbers.rb
1123
+ - benchmark/bm_array_intersection_objects.rb
1124
+ - benchmark/bm_array_intersection_strings.rb
1125
+ - benchmark/bm_array_join_ary.rb
1126
+ - benchmark/bm_array_minus_numbers.rb
1127
+ - benchmark/bm_array_minus_objects.rb
1128
+ - benchmark/bm_array_minus_strings.rb
1129
+ - benchmark/bm_array_union_numbers.rb
1130
+ - benchmark/bm_array_union_objects.rb
1131
+ - benchmark/bm_array_union_strings.rb
1132
+ - benchmark/bm_array_uniq_bang_numbers.rb
1133
+ - benchmark/bm_array_uniq_bang_objects.rb
1134
+ - benchmark/bm_array_uniq_bang_strings.rb
1135
+ - benchmark/bm_array_uniq_numbers.rb
1136
+ - benchmark/bm_array_uniq_objects.rb
1137
+ - benchmark/bm_array_uniq_strings.rb
1138
+ - benchmark/bm_constant_lookup_big.rb
1139
+ - benchmark/bm_constant_lookup_small.rb
1140
+ - benchmark/bm_dispatch_bind_table.rb
1141
+ - benchmark/bm_dispatch_code_gen.rb
1142
+ - benchmark/bm_dispatch_code_gen_if.rb
1143
+ - benchmark/bm_dispatch_hardcoded.rb
1144
+ - benchmark/bm_dispatch_send.rb
1145
+ - benchmark/bm_dispatch_send_table.rb
1146
+ - benchmark/bm_hash_assoc_object.rb
1147
+ - benchmark/bm_hash_assoc_string.rb
1148
+ - benchmark/bm_hash_clone_object.rb
1149
+ - benchmark/bm_hash_clone_string.rb
1150
+ - benchmark/bm_hash_delete_object.rb
1151
+ - benchmark/bm_hash_delete_string.rb
1152
+ - benchmark/bm_hash_each_key_object.rb
1153
+ - benchmark/bm_hash_each_key_string.rb
1154
+ - benchmark/bm_hash_each_object.rb
1155
+ - benchmark/bm_hash_each_string.rb
1156
+ - benchmark/bm_hash_each_value_object.rb
1157
+ - benchmark/bm_hash_each_value_string.rb
1158
+ - benchmark/bm_hash_element_reference_object.rb
1159
+ - benchmark/bm_hash_element_reference_string.rb
1160
+ - benchmark/bm_hash_element_set_object.rb
1161
+ - benchmark/bm_hash_element_set_string.rb
1162
+ - benchmark/bm_hash_equal_value_object.rb
1163
+ - benchmark/bm_hash_equal_value_string.rb
1164
+ - benchmark/bm_hash_fetch_object.rb
1165
+ - benchmark/bm_hash_fetch_string.rb
1166
+ - benchmark/bm_hash_flatten_object.rb
1167
+ - benchmark/bm_hash_flatten_string.rb
1168
+ - benchmark/bm_hash_has_key_object.rb
1169
+ - benchmark/bm_hash_has_key_string.rb
1170
+ - benchmark/bm_hash_has_value_object.rb
1171
+ - benchmark/bm_hash_has_value_string.rb
1172
+ - benchmark/bm_hash_hash_object.rb
1173
+ - benchmark/bm_hash_hash_string.rb
1174
+ - benchmark/bm_hash_inspect_object.rb
1175
+ - benchmark/bm_hash_inspect_string.rb
1176
+ - benchmark/bm_hash_invert_object.rb
1177
+ - benchmark/bm_hash_invert_string.rb
1178
+ - benchmark/bm_hash_keep_if_object.rb
1179
+ - benchmark/bm_hash_keep_if_string.rb
1180
+ - benchmark/bm_hash_key_object.rb
1181
+ - benchmark/bm_hash_key_string.rb
1182
+ - benchmark/bm_hash_keys_object.rb
1183
+ - benchmark/bm_hash_keys_string.rb
1184
+ - benchmark/bm_hash_literal_mixed_large.rb
1185
+ - benchmark/bm_hash_literal_mixed_small.rb
1186
+ - benchmark/bm_hash_literal_object_large.rb
1187
+ - benchmark/bm_hash_literal_object_small.rb
1188
+ - benchmark/bm_hash_literal_string_large.rb
1189
+ - benchmark/bm_hash_literal_string_small.rb
1190
+ - benchmark/bm_hash_merge_object.rb
1191
+ - benchmark/bm_hash_merge_string.rb
1192
+ - benchmark/bm_hash_rassoc_object.rb
1193
+ - benchmark/bm_hash_rassoc_string.rb
1194
+ - benchmark/bm_hash_rehash_object.rb
1195
+ - benchmark/bm_hash_rehash_string.rb
1196
+ - benchmark/bm_hash_reject_bang_object.rb
1197
+ - benchmark/bm_hash_reject_bang_string.rb
1198
+ - benchmark/bm_hash_reject_object.rb
1199
+ - benchmark/bm_hash_reject_string.rb
1200
+ - benchmark/bm_hash_replace_object.rb
1201
+ - benchmark/bm_hash_replace_string.rb
1202
+ - benchmark/bm_hash_select_bang_object.rb
1203
+ - benchmark/bm_hash_select_bang_string.rb
1204
+ - benchmark/bm_hash_select_object.rb
1205
+ - benchmark/bm_hash_select_string.rb
1206
+ - benchmark/bm_hash_shift_object.rb
1207
+ - benchmark/bm_hash_shift_string.rb
1208
+ - benchmark/bm_hash_to_a_object.rb
1209
+ - benchmark/bm_hash_to_a_string.rb
1210
+ - benchmark/bm_hash_to_h_object.rb
1211
+ - benchmark/bm_hash_to_h_string.rb
1212
+ - benchmark/bm_hash_values_object.rb
1213
+ - benchmark/bm_hash_values_string.rb
1214
+ - benchmark/bm_module_definition_big.rb
1215
+ - benchmark/bm_module_definition_small.rb
1216
+ - benchmark/run.rb
1217
+ - bin/build-browser-source-map-support
1218
+ - bin/console
1219
+ - bin/format-filters
1220
+ - bin/git-submodule-fast-install
1221
+ - bin/opal
1222
+ - bin/opal-benchmark-ips
1223
+ - bin/opal-mspec
1224
+ - bin/opal-repl
1225
+ - bin/rake
1226
+ - bin/remove-filters
1227
+ - bin/setup
1228
+ - bin/yarn
1229
+ - config.ru
1230
+ - docs/compiled_ruby.md
1231
+ - docs/compiler.md
1232
+ - docs/compiler_directives.md
1233
+ - docs/configuring_gems.md
1234
+ - docs/encoding.md
1235
+ - docs/faq.md
1236
+ - docs/getting_started.md
1237
+ - docs/headless_chrome.md
1238
+ - docs/jquery.md
1239
+ - docs/opal_parser.md
1240
+ - docs/promises.md
1241
+ - docs/rails.md
1242
+ - docs/releasing.md
1243
+ - docs/roda-sprockets.md
1244
+ - docs/rspec.md
1245
+ - docs/sinatra.md
1246
+ - docs/source_maps.md
1247
+ - docs/static_applications.md
1248
+ - docs/templates.md
1249
+ - docs/unsupported_features.md
1250
+ - docs/upgrading.md
1251
+ - docs/using_sprockets.md
1252
+ - examples/rack/.gitignore
1253
+ - examples/rack/Gemfile
1254
+ - examples/rack/Gemfile.lock
1255
+ - examples/rack/app/application.rb
1256
+ - examples/rack/app/user.rb
1257
+ - examples/rack/config.ru
1258
+ - examples/rack/index.html.erb
1259
+ - examples/sinatra/Gemfile
1260
+ - examples/sinatra/Gemfile.lock
1261
+ - examples/sinatra/app/application.rb
1262
+ - examples/sinatra/config.ru
1263
+ - exe/opal
1264
+ - exe/opal-build
1265
+ - exe/opal-repl
1266
+ - lib/opal.rb
1267
+ - lib/opal/ast/builder.rb
1268
+ - lib/opal/ast/node.rb
1269
+ - lib/opal/builder.rb
1270
+ - lib/opal/builder_processors.rb
1271
+ - lib/opal/cli.rb
1272
+ - lib/opal/cli_options.rb
1273
+ - lib/opal/cli_runners.rb
1274
+ - lib/opal/cli_runners/applescript.rb
1275
+ - lib/opal/cli_runners/chrome.js
1276
+ - lib/opal/cli_runners/chrome.rb
1277
+ - lib/opal/cli_runners/compiler.rb
1278
+ - lib/opal/cli_runners/nashorn.rb
1279
+ - lib/opal/cli_runners/node_modules/chrome-remote-interface/LICENSE
1280
+ - lib/opal/cli_runners/node_modules/chrome-remote-interface/README.md
1281
+ - lib/opal/cli_runners/node_modules/chrome-remote-interface/bin/client.js
1282
+ - lib/opal/cli_runners/node_modules/chrome-remote-interface/chrome-remote-interface.js
1283
+ - lib/opal/cli_runners/node_modules/chrome-remote-interface/index.js
1284
+ - lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/api.js
1285
+ - lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/chrome.js
1286
+ - lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/defaults.js
1287
+ - lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/devtools.js
1288
+ - lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/external-request.js
1289
+ - lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/protocol.json
1290
+ - lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/websocket-wrapper.js
1291
+ - lib/opal/cli_runners/node_modules/chrome-remote-interface/package.json
1292
+ - lib/opal/cli_runners/node_modules/chrome-remote-interface/webpack.config.js
1293
+ - lib/opal/cli_runners/node_modules/commander/Readme.md
1294
+ - lib/opal/cli_runners/node_modules/commander/index.js
1295
+ - lib/opal/cli_runners/node_modules/commander/package.json
1296
+ - lib/opal/cli_runners/node_modules/ultron/LICENSE
1297
+ - lib/opal/cli_runners/node_modules/ultron/index.js
1298
+ - lib/opal/cli_runners/node_modules/ultron/package.json
1299
+ - lib/opal/cli_runners/node_modules/ws/LICENSE
1300
+ - lib/opal/cli_runners/node_modules/ws/README.md
1301
+ - lib/opal/cli_runners/node_modules/ws/SECURITY.md
1302
+ - lib/opal/cli_runners/node_modules/ws/index.js
1303
+ - lib/opal/cli_runners/node_modules/ws/lib/BufferUtil.fallback.js
1304
+ - lib/opal/cli_runners/node_modules/ws/lib/BufferUtil.js
1305
+ - lib/opal/cli_runners/node_modules/ws/lib/ErrorCodes.js
1306
+ - lib/opal/cli_runners/node_modules/ws/lib/EventTarget.js
1307
+ - lib/opal/cli_runners/node_modules/ws/lib/Extensions.js
1308
+ - lib/opal/cli_runners/node_modules/ws/lib/PerMessageDeflate.js
1309
+ - lib/opal/cli_runners/node_modules/ws/lib/Receiver.js
1310
+ - lib/opal/cli_runners/node_modules/ws/lib/Sender.js
1311
+ - lib/opal/cli_runners/node_modules/ws/lib/Validation.fallback.js
1312
+ - lib/opal/cli_runners/node_modules/ws/lib/Validation.js
1313
+ - lib/opal/cli_runners/node_modules/ws/lib/WebSocket.js
1314
+ - lib/opal/cli_runners/node_modules/ws/lib/WebSocketServer.js
1315
+ - lib/opal/cli_runners/node_modules/ws/package.json
1316
+ - lib/opal/cli_runners/nodejs.rb
1317
+ - lib/opal/cli_runners/package.json
1318
+ - lib/opal/cli_runners/server.rb
1319
+ - lib/opal/cli_runners/source-map-support-browser.js
1320
+ - lib/opal/cli_runners/source-map-support-node.js
1321
+ - lib/opal/cli_runners/source-map-support.js
1322
+ - lib/opal/cli_runners/system_runner.rb
1323
+ - lib/opal/compiler.rb
1324
+ - lib/opal/config.rb
1325
+ - lib/opal/deprecations.rb
1326
+ - lib/opal/eof_content.rb
1327
+ - lib/opal/erb.rb
1328
+ - lib/opal/errors.rb
1329
+ - lib/opal/fragment.rb
1330
+ - lib/opal/hike.rb
1331
+ - lib/opal/magic_comments.rb
1332
+ - lib/opal/nodes.rb
1333
+ - lib/opal/nodes/arglist.rb
1334
+ - lib/opal/nodes/args.rb
1335
+ - lib/opal/nodes/args/arg.rb
1336
+ - lib/opal/nodes/args/arity_check.rb
1337
+ - lib/opal/nodes/args/ensure_kwargs_are_kwargs.rb
1338
+ - lib/opal/nodes/args/extract_block_arg.rb
1339
+ - lib/opal/nodes/args/extract_kwarg.rb
1340
+ - lib/opal/nodes/args/extract_kwargs.rb
1341
+ - lib/opal/nodes/args/extract_kwoptarg.rb
1342
+ - lib/opal/nodes/args/extract_kwrestarg.rb
1343
+ - lib/opal/nodes/args/extract_optarg.rb
1344
+ - lib/opal/nodes/args/extract_post_arg.rb
1345
+ - lib/opal/nodes/args/extract_post_optarg.rb
1346
+ - lib/opal/nodes/args/extract_restarg.rb
1347
+ - lib/opal/nodes/args/fake_arg.rb
1348
+ - lib/opal/nodes/args/initialize_iterarg.rb
1349
+ - lib/opal/nodes/args/initialize_shadowarg.rb
1350
+ - lib/opal/nodes/args/parameters.rb
1351
+ - lib/opal/nodes/args/prepare_post_args.rb
1352
+ - lib/opal/nodes/array.rb
1353
+ - lib/opal/nodes/base.rb
1354
+ - lib/opal/nodes/call.rb
1355
+ - lib/opal/nodes/call_special.rb
1356
+ - lib/opal/nodes/case.rb
1357
+ - lib/opal/nodes/class.rb
1358
+ - lib/opal/nodes/constants.rb
1359
+ - lib/opal/nodes/csend.rb
1360
+ - lib/opal/nodes/def.rb
1361
+ - lib/opal/nodes/defined.rb
1362
+ - lib/opal/nodes/definitions.rb
1363
+ - lib/opal/nodes/defs.rb
1364
+ - lib/opal/nodes/hash.rb
1365
+ - lib/opal/nodes/helpers.rb
1366
+ - lib/opal/nodes/if.rb
1367
+ - lib/opal/nodes/iter.rb
1368
+ - lib/opal/nodes/lambda.rb
1369
+ - lib/opal/nodes/literal.rb
1370
+ - lib/opal/nodes/logic.rb
1371
+ - lib/opal/nodes/masgn.rb
1372
+ - lib/opal/nodes/module.rb
1373
+ - lib/opal/nodes/node_with_args.rb
1374
+ - lib/opal/nodes/rescue.rb
1375
+ - lib/opal/nodes/scope.rb
1376
+ - lib/opal/nodes/singleton_class.rb
1377
+ - lib/opal/nodes/super.rb
1378
+ - lib/opal/nodes/top.rb
1379
+ - lib/opal/nodes/variables.rb
1380
+ - lib/opal/nodes/while.rb
1381
+ - lib/opal/nodes/x_string.rb
1382
+ - lib/opal/nodes/yield.rb
1383
+ - lib/opal/parser.rb
1384
+ - lib/opal/parser/default_config.rb
1385
+ - lib/opal/parser/patch.rb
1386
+ - lib/opal/parser/source_buffer.rb
1387
+ - lib/opal/parser/with_c_lexer.rb
1388
+ - lib/opal/parser/with_ruby_lexer.rb
1389
+ - lib/opal/path_reader.rb
1390
+ - lib/opal/paths.rb
1391
+ - lib/opal/regexp_anchors.rb
1392
+ - lib/opal/repl.rb
1393
+ - lib/opal/rewriter.rb
1394
+ - lib/opal/rewriters/arguments.rb
1395
+ - lib/opal/rewriters/base.rb
1396
+ - lib/opal/rewriters/binary_operator_assignment.rb
1397
+ - lib/opal/rewriters/block_to_iter.rb
1398
+ - lib/opal/rewriters/break_finder.rb
1399
+ - lib/opal/rewriters/dot_js_syntax.rb
1400
+ - lib/opal/rewriters/dump_args.rb
1401
+ - lib/opal/rewriters/explicit_writer_return.rb
1402
+ - lib/opal/rewriters/for_rewriter.rb
1403
+ - lib/opal/rewriters/hashes/key_duplicates_rewriter.rb
1404
+ - lib/opal/rewriters/inline_args.rb
1405
+ - lib/opal/rewriters/js_reserved_words.rb
1406
+ - lib/opal/rewriters/logical_operator_assignment.rb
1407
+ - lib/opal/rewriters/mlhs_args.rb
1408
+ - lib/opal/rewriters/numblocks.rb
1409
+ - lib/opal/rewriters/opal_engine_check.rb
1410
+ - lib/opal/rewriters/returnable_logic.rb
1411
+ - lib/opal/rewriters/rubyspec/filters_rewriter.rb
1412
+ - lib/opal/server.rb
1413
+ - lib/opal/simple_server.rb
1414
+ - lib/opal/source_map.rb
1415
+ - lib/opal/source_map/file.rb
1416
+ - lib/opal/source_map/index.rb
1417
+ - lib/opal/source_map/map.rb
1418
+ - lib/opal/source_map/vlq.rb
1419
+ - lib/opal/util.rb
1420
+ - lib/opal/version.rb
1421
+ - lib/tilt/opal.rb
1422
+ - opal.gemspec
1423
+ - opal/README.md
1424
+ - opal/corelib/array.rb
1425
+ - opal/corelib/array/pack.rb
1426
+ - opal/corelib/basic_object.rb
1427
+ - opal/corelib/boolean.rb
1428
+ - opal/corelib/class.rb
1429
+ - opal/corelib/comparable.rb
1430
+ - opal/corelib/complex.rb
1431
+ - opal/corelib/constants.rb
1432
+ - opal/corelib/dir.rb
1433
+ - opal/corelib/enumerable.rb
1434
+ - opal/corelib/enumerator.rb
1435
+ - opal/corelib/error.rb
1436
+ - opal/corelib/file.rb
1437
+ - opal/corelib/hash.rb
1438
+ - opal/corelib/helpers.rb
1439
+ - opal/corelib/io.rb
1440
+ - opal/corelib/kernel.rb
1441
+ - opal/corelib/kernel/format.rb
1442
+ - opal/corelib/main.rb
1443
+ - opal/corelib/marshal.rb
1444
+ - opal/corelib/marshal/read_buffer.rb
1445
+ - opal/corelib/marshal/write_buffer.rb
1446
+ - opal/corelib/math.rb
1447
+ - opal/corelib/method.rb
1448
+ - opal/corelib/module.rb
1449
+ - opal/corelib/nil.rb
1450
+ - opal/corelib/number.rb
1451
+ - opal/corelib/numeric.rb
1452
+ - opal/corelib/pack_unpack/format_string_parser.rb
1453
+ - opal/corelib/proc.rb
1454
+ - opal/corelib/process.rb
1455
+ - opal/corelib/random.rb
1456
+ - opal/corelib/random/math_random.js.rb
1457
+ - opal/corelib/random/mersenne_twister.rb
1458
+ - opal/corelib/random/seedrandom.js.rb
1459
+ - opal/corelib/range.rb
1460
+ - opal/corelib/rational.rb
1461
+ - opal/corelib/regexp.rb
1462
+ - opal/corelib/runtime.js
1463
+ - opal/corelib/string.rb
1464
+ - opal/corelib/string/encoding.rb
1465
+ - opal/corelib/string/unpack.rb
1466
+ - opal/corelib/struct.rb
1467
+ - opal/corelib/time.rb
1468
+ - opal/corelib/unsupported.rb
1469
+ - opal/corelib/variables.rb
1470
+ - opal/opal.rb
1471
+ - opal/opal/base.rb
1472
+ - opal/opal/full.rb
1473
+ - opal/opal/mini.rb
1474
+ - package.json
1475
+ - stdlib/README.md
1476
+ - stdlib/base64.rb
1477
+ - stdlib/benchmark.rb
1478
+ - stdlib/bigdecimal.rb
1479
+ - stdlib/bigdecimal/bignumber.js.rb
1480
+ - stdlib/bigdecimal/util.rb
1481
+ - stdlib/buffer.rb
1482
+ - stdlib/buffer/array.rb
1483
+ - stdlib/buffer/view.rb
1484
+ - stdlib/console.rb
1485
+ - stdlib/date.rb
1486
+ - stdlib/delegate.rb
1487
+ - stdlib/dir.rb
1488
+ - stdlib/e2mmap.rb
1489
+ - stdlib/encoding.rb
1490
+ - stdlib/enumerator.rb
1491
+ - stdlib/erb.rb
1492
+ - stdlib/file.rb
1493
+ - stdlib/fileutils.rb
1494
+ - stdlib/forwardable.rb
1495
+ - stdlib/headless_chrome.rb
1496
+ - stdlib/iconv.rb
1497
+ - stdlib/js.rb
1498
+ - stdlib/json.rb
1499
+ - stdlib/logger.rb
1500
+ - stdlib/math.rb
1501
+ - stdlib/matrix.rb
1502
+ - stdlib/matrix/eigenvalue_decomposition.rb
1503
+ - stdlib/matrix/lup_decomposition.rb
1504
+ - stdlib/nashorn.rb
1505
+ - stdlib/nashorn/file.rb
1506
+ - stdlib/nashorn/io.rb
1507
+ - stdlib/native.rb
1508
+ - stdlib/nodejs.rb
1509
+ - stdlib/nodejs/dir.rb
1510
+ - stdlib/nodejs/env.rb
1511
+ - stdlib/nodejs/file.rb
1512
+ - stdlib/nodejs/fileutils.rb
1513
+ - stdlib/nodejs/io.rb
1514
+ - stdlib/nodejs/irb.rb
1515
+ - stdlib/nodejs/js-yaml-3-6-1.js
1516
+ - stdlib/nodejs/kernel.rb
1517
+ - stdlib/nodejs/node_modules/balanced-match/.npmignore
1518
+ - stdlib/nodejs/node_modules/balanced-match/LICENSE.md
1519
+ - stdlib/nodejs/node_modules/balanced-match/README.md
1520
+ - stdlib/nodejs/node_modules/balanced-match/index.js
1521
+ - stdlib/nodejs/node_modules/balanced-match/package.json
1522
+ - stdlib/nodejs/node_modules/brace-expansion/LICENSE
1523
+ - stdlib/nodejs/node_modules/brace-expansion/README.md
1524
+ - stdlib/nodejs/node_modules/brace-expansion/index.js
1525
+ - stdlib/nodejs/node_modules/brace-expansion/package.json
1526
+ - stdlib/nodejs/node_modules/concat-map/.travis.yml
1527
+ - stdlib/nodejs/node_modules/concat-map/LICENSE
1528
+ - stdlib/nodejs/node_modules/concat-map/README.markdown
1529
+ - stdlib/nodejs/node_modules/concat-map/example/map.js
1530
+ - stdlib/nodejs/node_modules/concat-map/index.js
1531
+ - stdlib/nodejs/node_modules/concat-map/package.json
1532
+ - stdlib/nodejs/node_modules/concat-map/test/map.js
1533
+ - stdlib/nodejs/node_modules/fs.realpath/LICENSE
1534
+ - stdlib/nodejs/node_modules/fs.realpath/README.md
1535
+ - stdlib/nodejs/node_modules/fs.realpath/index.js
1536
+ - stdlib/nodejs/node_modules/fs.realpath/old.js
1537
+ - stdlib/nodejs/node_modules/fs.realpath/package.json
1538
+ - stdlib/nodejs/node_modules/glob/LICENSE
1539
+ - stdlib/nodejs/node_modules/glob/README.md
1540
+ - stdlib/nodejs/node_modules/glob/changelog.md
1541
+ - stdlib/nodejs/node_modules/glob/common.js
1542
+ - stdlib/nodejs/node_modules/glob/glob.js
1543
+ - stdlib/nodejs/node_modules/glob/package.json
1544
+ - stdlib/nodejs/node_modules/glob/sync.js
1545
+ - stdlib/nodejs/node_modules/inflight/LICENSE
1546
+ - stdlib/nodejs/node_modules/inflight/README.md
1547
+ - stdlib/nodejs/node_modules/inflight/inflight.js
1548
+ - stdlib/nodejs/node_modules/inflight/package.json
1549
+ - stdlib/nodejs/node_modules/inherits/LICENSE
1550
+ - stdlib/nodejs/node_modules/inherits/README.md
1551
+ - stdlib/nodejs/node_modules/inherits/inherits.js
1552
+ - stdlib/nodejs/node_modules/inherits/inherits_browser.js
1553
+ - stdlib/nodejs/node_modules/inherits/package.json
1554
+ - stdlib/nodejs/node_modules/minimatch/LICENSE
1555
+ - stdlib/nodejs/node_modules/minimatch/README.md
1556
+ - stdlib/nodejs/node_modules/minimatch/minimatch.js
1557
+ - stdlib/nodejs/node_modules/minimatch/package.json
1558
+ - stdlib/nodejs/node_modules/once/LICENSE
1559
+ - stdlib/nodejs/node_modules/once/README.md
1560
+ - stdlib/nodejs/node_modules/once/once.js
1561
+ - stdlib/nodejs/node_modules/once/package.json
1562
+ - stdlib/nodejs/node_modules/path-is-absolute/index.js
1563
+ - stdlib/nodejs/node_modules/path-is-absolute/license
1564
+ - stdlib/nodejs/node_modules/path-is-absolute/package.json
1565
+ - stdlib/nodejs/node_modules/path-is-absolute/readme.md
1566
+ - stdlib/nodejs/node_modules/unxhr/LICENSE
1567
+ - stdlib/nodejs/node_modules/unxhr/README.md
1568
+ - stdlib/nodejs/node_modules/unxhr/lib/XMLHttpRequest.js
1569
+ - stdlib/nodejs/node_modules/unxhr/lib/browser.js
1570
+ - stdlib/nodejs/node_modules/unxhr/lib/request.js
1571
+ - stdlib/nodejs/node_modules/unxhr/package.json
1572
+ - stdlib/nodejs/node_modules/wrappy/LICENSE
1573
+ - stdlib/nodejs/node_modules/wrappy/README.md
1574
+ - stdlib/nodejs/node_modules/wrappy/package.json
1575
+ - stdlib/nodejs/node_modules/wrappy/wrappy.js
1576
+ - stdlib/nodejs/open-uri.rb
1577
+ - stdlib/nodejs/package-lock.json
1578
+ - stdlib/nodejs/package.json
1579
+ - stdlib/nodejs/pathname.rb
1580
+ - stdlib/nodejs/require.rb
1581
+ - stdlib/nodejs/stacktrace.rb
1582
+ - stdlib/nodejs/yaml.rb
1583
+ - stdlib/observer.rb
1584
+ - stdlib/opal-builder.rb
1585
+ - stdlib/opal-parser.rb
1586
+ - stdlib/opal-platform.rb
1587
+ - stdlib/opal-source-maps.rb
1588
+ - stdlib/opal/platform.rb
1589
+ - stdlib/open-uri.rb
1590
+ - stdlib/ostruct.rb
1591
+ - stdlib/pathname.rb
1592
+ - stdlib/pp.rb
1593
+ - stdlib/prettyprint.rb
1594
+ - stdlib/promise.rb
1595
+ - stdlib/racc/parser.rb
1596
+ - stdlib/rbconfig.rb
1597
+ - stdlib/rbconfig/sizeof.rb
1598
+ - stdlib/securerandom.rb
1599
+ - stdlib/set.rb
1600
+ - stdlib/singleton.rb
1601
+ - stdlib/stringio.rb
1602
+ - stdlib/strscan.rb
1603
+ - stdlib/template.rb
1604
+ - stdlib/thread.rb
1605
+ - stdlib/time.rb
1606
+ - stdlib/yaml.rb
1607
+ - tasks/benchmarking.rake
1608
+ - tasks/building.rake
1609
+ - tasks/github.rake
1610
+ - tasks/linting.rake
1611
+ - tasks/releasing.rake
1612
+ - tasks/testing.rake
1613
+ - tasks/testing/mspec_special_calls.rb
1614
+ - tasks/testing/opal_rspec_smoketest.Gemfile
1615
+ - vendored-minitest/minitest.rb
1616
+ - vendored-minitest/minitest/assertions.rb
1617
+ - vendored-minitest/minitest/autorun.rb
1618
+ - vendored-minitest/minitest/benchmark.rb
1619
+ - vendored-minitest/minitest/expectations.rb
1620
+ - vendored-minitest/minitest/hell.rb
1621
+ - vendored-minitest/minitest/mock.rb
1622
+ - vendored-minitest/minitest/parallel.rb
1623
+ - vendored-minitest/minitest/pride.rb
1624
+ - vendored-minitest/minitest/pride_plugin.rb
1625
+ - vendored-minitest/minitest/spec.rb
1626
+ - vendored-minitest/minitest/test.rb
1627
+ - vendored-minitest/minitest/unit.rb
1628
+ - vendored-minitest/test/unit.rb
1629
+ - yarn.lock