Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: opal/opal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 58a22a4b7d23
Choose a base ref
...
head repository: opal/opal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a1dffdb68f50
Choose a head ref
  • 7 commits
  • 194 files changed
  • 1 contributor

Commits on Feb 9, 2015

  1. Update changelog

    [skip ci]
    elia committed Feb 9, 2015

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    566eedf View commit details

Commits on Feb 13, 2015

  1. Cleanup nodejs stdlib additions

    elia committed Feb 13, 2015

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    25d498d View commit details
  2. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    43a8f19 View commit details
  3. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    b837e2b View commit details
  4. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    f35e882 View commit details
  5. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    f6a9d11 View commit details
  6. Bump version to 0.7.1

    elia committed Feb 13, 2015

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    a1dffdb View commit details
Showing with 50,019 additions and 36 deletions.
  1. +11 −1 CHANGELOG.md
  2. +1 −1 lib/opal/cli_options.rb
  3. +3 −2 lib/opal/cli_runners/nodejs.rb
  4. +1 −1 lib/opal/version.rb
  5. +1 −2 stdlib/nodejs.rb
  6. +6 −0 stdlib/nodejs/{process.rb → kernel.rb}
  7. +1 −0 stdlib/nodejs/node_modules/.bin/js-yaml
  8. +15 −0 stdlib/nodejs/node_modules/glob/LICENSE
  9. +357 −0 stdlib/nodejs/node_modules/glob/README.md
  10. +177 −0 stdlib/nodejs/node_modules/glob/common.js
  11. +649 −0 stdlib/nodejs/node_modules/glob/glob.js
  12. +17 −0 stdlib/nodejs/node_modules/glob/node_modules/inflight/.eslintrc
  13. +15 −0 stdlib/nodejs/node_modules/glob/node_modules/inflight/LICENSE
  14. +37 −0 stdlib/nodejs/node_modules/glob/node_modules/inflight/README.md
  15. +44 −0 stdlib/nodejs/node_modules/glob/node_modules/inflight/inflight.js
  16. +15 −0 stdlib/nodejs/node_modules/glob/node_modules/inflight/node_modules/wrappy/LICENSE
  17. +36 −0 stdlib/nodejs/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md
  18. +52 −0 stdlib/nodejs/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json
  19. +51 −0 stdlib/nodejs/node_modules/glob/node_modules/inflight/node_modules/wrappy/test/basic.js
  20. +33 −0 stdlib/nodejs/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js
  21. +61 −0 stdlib/nodejs/node_modules/glob/node_modules/inflight/package.json
  22. +97 −0 stdlib/nodejs/node_modules/glob/node_modules/inflight/test.js
  23. +16 −0 stdlib/nodejs/node_modules/glob/node_modules/inherits/LICENSE
  24. +42 −0 stdlib/nodejs/node_modules/glob/node_modules/inherits/README.md
  25. +1 −0 stdlib/nodejs/node_modules/glob/node_modules/inherits/inherits.js
  26. +23 −0 stdlib/nodejs/node_modules/glob/node_modules/inherits/inherits_browser.js
  27. +51 −0 stdlib/nodejs/node_modules/glob/node_modules/inherits/package.json
  28. +25 −0 stdlib/nodejs/node_modules/glob/node_modules/inherits/test.js
  29. +1 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/.npmignore
  30. +4 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/.travis.yml
  31. +23 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/LICENSE
  32. +216 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/README.md
  33. +15 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
  34. +1,181 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/browser.js
  35. +845 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/minimatch.js
  36. +2 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore
  37. +3 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.travis.yml
  38. +121 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md
  39. +8 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js
  40. +191 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js
  41. +2 −0 ...s/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore
  42. +4 −0 .../glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml
  43. +6 −0 ...les/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile
  44. +80 −0 ...es/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md
  45. +5 −0 ...s/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js
  46. +38 −0 ...les/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js
  47. +73 −0 ...glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json
  48. +56 −0 .../node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js
  49. +4 −0 ...ules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml
  50. +18 −0 ..._modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE
  51. +62 −0 .../glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown
  52. +6 −0 ...s/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js
  53. +13 −0 ...modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js
  54. +83 −0 ...les/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json
  55. +39 −0 ...ules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js
  56. +75 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json
  57. +32 −0 ...ejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-comparison.js
  58. +1,075 −0 ...odejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-results.txt
  59. +182 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/cases.txt
  60. +9 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/dollar.js
  61. +10 −0 ...nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/empty-option.js
  62. +24 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/generate.sh
  63. +15 −0 .../node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/negative-increment.js
  64. +16 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/nested.js
  65. +10 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/order.js
  66. +13 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/pad.js
  67. +7 −0 ...ib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/same-type.js
  68. +50 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/sequence.js
  69. +60 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/package.json
  70. +399 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/test/basic.js
  71. +45 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/test/brace-expand.js
  72. +274 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/test/defaults.js
  73. +8 −0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/test/extglob-ending-with-state-char.js
  74. +27 −0 stdlib/nodejs/node_modules/glob/node_modules/once/LICENSE
  75. +51 −0 stdlib/nodejs/node_modules/glob/node_modules/once/README.md
  76. +15 −0 stdlib/nodejs/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE
  77. +36 −0 stdlib/nodejs/node_modules/glob/node_modules/once/node_modules/wrappy/README.md
  78. +52 −0 stdlib/nodejs/node_modules/glob/node_modules/once/node_modules/wrappy/package.json
  79. +51 −0 stdlib/nodejs/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js
  80. +33 −0 stdlib/nodejs/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js
  81. +21 −0 stdlib/nodejs/node_modules/glob/node_modules/once/once.js
  82. +60 −0 stdlib/nodejs/node_modules/glob/node_modules/once/package.json
  83. +23 −0 stdlib/nodejs/node_modules/glob/node_modules/once/test/once.js
  84. +72 −0 stdlib/nodejs/node_modules/glob/package.json
  85. +409 −0 stdlib/nodejs/node_modules/glob/sync.js
  86. +277 −0 stdlib/nodejs/node_modules/js-yaml/HISTORY.md
  87. +21 −0 stdlib/nodejs/node_modules/js-yaml/LICENSE
  88. +288 −0 stdlib/nodejs/node_modules/js-yaml/README.md
  89. +140 −0 stdlib/nodejs/node_modules/js-yaml/bin/js-yaml.js
  90. +23 −0 stdlib/nodejs/node_modules/js-yaml/bower.json
  91. +3,666 −0 stdlib/nodejs/node_modules/js-yaml/dist/js-yaml.js
  92. +3 −0 stdlib/nodejs/node_modules/js-yaml/dist/js-yaml.min.js
  93. +102 −0 stdlib/nodejs/node_modules/js-yaml/examples/custom_types.js
  94. +18 −0 stdlib/nodejs/node_modules/js-yaml/examples/custom_types.yml
  95. +31 −0 stdlib/nodejs/node_modules/js-yaml/examples/dumper.js
  96. +22 −0 stdlib/nodejs/node_modules/js-yaml/examples/dumper.json
  97. +18 −0 stdlib/nodejs/node_modules/js-yaml/examples/sample_document.js
  98. +197 −0 stdlib/nodejs/node_modules/js-yaml/examples/sample_document.yml
  99. +7 −0 stdlib/nodejs/node_modules/js-yaml/index.js
  100. +39 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml.js
  101. +62 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/common.js
  102. +554 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/dumper.js
  103. +25 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
  104. +1,581 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/loader.js
  105. +78 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/mark.js
  106. +103 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/schema.js
  107. +18 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/schema/core.js
  108. +25 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/schema/default_full.js
  109. +28 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js
  110. +17 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js
  111. +25 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/schema/json.js
  112. +61 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/type.js
  113. +133 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/type/binary.js
  114. +37 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/type/bool.js
  115. +110 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/type/float.js
  116. +183 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/type/int.js
  117. +85 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/type/js/function.js
  118. +84 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js
  119. +27 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
  120. +8 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/type/map.js
  121. +12 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/type/merge.js
  122. +36 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/type/null.js
  123. +56 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/type/omap.js
  124. +61 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/type/pairs.js
  125. +8 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/type/seq.js
  126. +33 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/type/set.js
  127. +8 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/type/str.js
  128. +98 −0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/type/timestamp.js
  129. +1 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/.bin/esparse
  130. +1 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/.bin/esvalidate
  131. +115 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/HISTORY.md
  132. +21 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/LICENSE
  133. +239 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/README.md
  134. +36 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/examples/arguments.js
  135. +22 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/examples/choice.js
  136. +59 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/examples/constants.js
  137. +13 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/examples/help.js
  138. +33 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/examples/nargs.js
  139. +28 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/examples/parents.js
  140. +23 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/examples/prefix_chars.js
  141. +49 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/examples/sub_commands.js
  142. +35 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/examples/sum.js
  143. +270 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/examples/testformatters.js
  144. +1 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/index.js
  145. +146 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/action.js
  146. +55 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/action/append.js
  147. +47 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/action/append/constant.js
  148. +40 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/action/count.js
  149. +48 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/action/help.js
  150. +50 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/action/store.js
  151. +43 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/action/store/constant.js
  152. +27 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/action/store/false.js
  153. +26 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/action/store/true.js
  154. +148 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/action/subparsers.js
  155. +50 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/action/version.js
  156. +481 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/action_container.js
  157. +14 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/argparse.js
  158. +50 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/argument/error.js
  159. +54 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/argument/exclusive.js
  160. +75 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/argument/group.js
  161. +1,168 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/argument_parser.js
  162. +18 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/const.js
  163. +88 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/help/added_formatters.js
  164. +798 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/help/formatter.js
  165. +77 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/lib/namespace.js
  166. +2 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/.npmignore
  167. +8 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/.travis.yml
  168. +825 −0 .../nodejs/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/README.markdown
  169. +33 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/bower.json
  170. +11 −0 ...b/nodejs/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/component.json
  171. +10 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/foo.js
  172. +26 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/gulpfile.js
  173. +673 −0 ...ode_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/lib/underscore.string.js
  174. 0 ...s/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/libpeerconnection.log
  175. +107 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/package.json
  176. +23 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/LICENSE
  177. +22 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/README.md
  178. +69 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/package.json
  179. +6 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/underscore-min.js
  180. +1,415 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/underscore.js
  181. +62 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/package.json
  182. +73 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/esprima/README.md
  183. +117 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/esprima/bin/esparse.js
  184. +177 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/esprima/bin/esvalidate.js
  185. +3,908 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/esprima/esprima.js
  186. +69 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/esprima/package.json
  187. +239 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/esprima/test/compat.js
  188. +422 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/esprima/test/reflect.js
  189. +66 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/esprima/test/run.js
  190. +387 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/esprima/test/runner.js
  191. +20,238 −0 stdlib/nodejs/node_modules/js-yaml/node_modules/esprima/test/test.js
  192. +83 −0 stdlib/nodejs/node_modules/js-yaml/package.json
  193. +0 −3 { → stdlib/nodejs}/package.json
  194. +0 −26 stdlib/nodejs/runtime.rb
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
## edge (upcoming 0.7)
## edge (upcoming 0.7.1)

* CLI options `-d` and `-v` now set respectively `$DEBUG` and `$VERBOSE`

* Fixed a bug that would make the `-v` CLI option wait for STDIN input

* Add the `-E` / `--no-exit` CLI option to skip implicit `Kernel#exit` call

* Now the CLI implicitly calls `Kernel#exit` at the end of the script, thus making `at_exit` blocks be respected.

## 0.7.0 2015-02-01

* Stop keyword-arg variable names leaking to global javascript scope

2 changes: 1 addition & 1 deletion lib/opal/cli_options.rb
Original file line number Diff line number Diff line change
@@ -93,7 +93,7 @@ def initialize
options[:port] = port.to_i
end

on('-E', '--no-exit', 'Do not append a Kernel#exit at the end of file') do |no_exit|
on('--no-exit', 'Do not append a Kernel#exit at the end of file') do |no_exit|
options[:no_exit] = true
end

5 changes: 3 additions & 2 deletions lib/opal/cli_runners/nodejs.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'opal/cli_runners'
require 'opal/paths'

module Opal
module CliRunners
@@ -13,7 +14,7 @@ def puts(*args)
end

def node_modules
File.expand_path("../../../../node_modules", __FILE__)
File.expand_path('../stdlib/nodejs/node_modules', ::Opal.gem_dir)
end

def run(code, argv)
@@ -29,7 +30,7 @@ def run(code, argv)

# Let's support fake IO objects like StringIO
def system_with_output(env, *cmd)
if (io_output = IO.try_convert(output))
if IO.try_convert(output)
system(env,*cmd)
@exit_status = $?.exitstatus
return
2 changes: 1 addition & 1 deletion lib/opal/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Opal
VERSION = '0.7.0'
VERSION = '0.7.1'
end
3 changes: 1 addition & 2 deletions stdlib/nodejs.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
module NodeJS
end

require 'nodejs/runtime'
require 'nodejs/kernel'
require 'nodejs/file'
require 'nodejs/dir'
require 'nodejs/io'
require 'nodejs/process'
6 changes: 6 additions & 0 deletions stdlib/nodejs/process.rb → stdlib/nodejs/kernel.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
`Opal.exit = process.exit`

module Kernel
NODE_REQUIRE = `require`

def caller
%x{
var stack;
@@ -13,6 +15,10 @@ def caller
return stack.$split("\n").slice(3);
}
end

def node_require(path)
`#{NODE_REQUIRE}(#{path.to_str})`
end
end

ARGV = `process.argv.slice(2)`
1 change: 1 addition & 0 deletions stdlib/nodejs/node_modules/.bin/js-yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions stdlib/nodejs/node_modules/glob/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

357 changes: 357 additions & 0 deletions stdlib/nodejs/node_modules/glob/README.md
177 changes: 177 additions & 0 deletions stdlib/nodejs/node_modules/glob/common.js
649 changes: 649 additions & 0 deletions stdlib/nodejs/node_modules/glob/glob.js

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions stdlib/nodejs/node_modules/glob/node_modules/inflight/.eslintrc
15 changes: 15 additions & 0 deletions stdlib/nodejs/node_modules/glob/node_modules/inflight/LICENSE
37 changes: 37 additions & 0 deletions stdlib/nodejs/node_modules/glob/node_modules/inflight/README.md
44 changes: 44 additions & 0 deletions stdlib/nodejs/node_modules/glob/node_modules/inflight/inflight.js
61 changes: 61 additions & 0 deletions stdlib/nodejs/node_modules/glob/node_modules/inflight/package.json
97 changes: 97 additions & 0 deletions stdlib/nodejs/node_modules/glob/node_modules/inflight/test.js
16 changes: 16 additions & 0 deletions stdlib/nodejs/node_modules/glob/node_modules/inherits/LICENSE
42 changes: 42 additions & 0 deletions stdlib/nodejs/node_modules/glob/node_modules/inherits/README.md
51 changes: 51 additions & 0 deletions stdlib/nodejs/node_modules/glob/node_modules/inherits/package.json
25 changes: 25 additions & 0 deletions stdlib/nodejs/node_modules/glob/node_modules/inherits/test.js
23 changes: 23 additions & 0 deletions stdlib/nodejs/node_modules/glob/node_modules/minimatch/LICENSE
216 changes: 216 additions & 0 deletions stdlib/nodejs/node_modules/glob/node_modules/minimatch/README.md
1,181 changes: 1,181 additions & 0 deletions stdlib/nodejs/node_modules/glob/node_modules/minimatch/browser.js

Large diffs are not rendered by default.

845 changes: 845 additions & 0 deletions stdlib/nodejs/node_modules/glob/node_modules/minimatch/minimatch.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading