traceur-rb 0.0.2 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. checksums.yaml +8 -8
  2. data/lib/traceur/configuration.rb +1 -1
  3. data/lib/traceur/version.rb +1 -1
  4. data/{vendor/node_modules → node_modules}/.bin/traceur +0 -0
  5. data/{vendor/node_modules → node_modules}/traceur/LICENSE +0 -0
  6. data/{vendor/node_modules → node_modules}/traceur/README.md +0 -0
  7. data/node_modules/traceur/bin/traceur-runtime.js +3420 -0
  8. data/node_modules/traceur/bin/traceur.js +30354 -0
  9. data/{vendor/node_modules → node_modules}/traceur/node_modules/.bin/semver +0 -0
  10. data/node_modules/traceur/node_modules/commander/History.md +256 -0
  11. data/node_modules/traceur/node_modules/commander/LICENSE +22 -0
  12. data/node_modules/traceur/node_modules/commander/Readme.md +342 -0
  13. data/node_modules/traceur/node_modules/commander/index.js +1103 -0
  14. data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/.npmignore +3 -0
  15. data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/.travis.yml +5 -0
  16. data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/LICENSE +22 -0
  17. data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/README.md +17 -0
  18. data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/index.js +12 -0
  19. data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/package.json +48 -0
  20. data/node_modules/traceur/node_modules/commander/package.json +75 -0
  21. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/LICENSE +0 -0
  22. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/README.md +0 -0
  23. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/common.js +0 -0
  24. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/glob.js +0 -0
  25. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/.eslintrc +0 -0
  26. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/LICENSE +0 -0
  27. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/README.md +0 -0
  28. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/inflight.js +0 -0
  29. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/LICENSE +0 -0
  30. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md +0 -0
  31. data/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +52 -0
  32. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/test/basic.js +0 -0
  33. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js +0 -0
  34. data/node_modules/traceur/node_modules/glob/node_modules/inflight/package.json +61 -0
  35. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/test.js +0 -0
  36. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/LICENSE +0 -0
  37. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/README.md +0 -0
  38. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/inherits.js +0 -0
  39. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/inherits_browser.js +0 -0
  40. data/node_modules/traceur/node_modules/glob/node_modules/inherits/package.json +50 -0
  41. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/test.js +0 -0
  42. data/{vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy → node_modules/traceur/node_modules/glob/node_modules/minimatch}/LICENSE +0 -0
  43. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/README.md +0 -0
  44. data/node_modules/traceur/node_modules/glob/node_modules/minimatch/browser.js +1159 -0
  45. data/node_modules/traceur/node_modules/glob/node_modules/minimatch/minimatch.js +912 -0
  46. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +0 -0
  47. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.travis.yml +0 -0
  48. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -0
  49. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -0
  50. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -0
  51. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -0
  52. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +0 -0
  53. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -0
  54. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +0 -0
  55. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -0
  56. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +0 -0
  57. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +0 -0
  58. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -0
  59. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +0 -0
  60. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE +0 -0
  61. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +0 -0
  62. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +0 -0
  63. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +0 -0
  64. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +0 -0
  65. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +0 -0
  66. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -0
  67. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-comparison.js +0 -0
  68. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-results.txt +0 -0
  69. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/cases.txt +0 -0
  70. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/dollar.js +0 -0
  71. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/empty-option.js +0 -0
  72. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/generate.sh +0 -0
  73. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/negative-increment.js +0 -0
  74. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/nested.js +0 -0
  75. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/order.js +0 -0
  76. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/pad.js +0 -0
  77. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/same-type.js +0 -0
  78. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/sequence.js +0 -0
  79. data/node_modules/traceur/node_modules/glob/node_modules/minimatch/package.json +63 -0
  80. data/node_modules/traceur/node_modules/glob/node_modules/once/LICENSE +15 -0
  81. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/README.md +0 -0
  82. data/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE +15 -0
  83. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +0 -0
  84. data/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +52 -0
  85. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +0 -0
  86. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +0 -0
  87. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/once.js +0 -0
  88. data/node_modules/traceur/node_modules/glob/node_modules/once/package.json +60 -0
  89. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/test/once.js +0 -0
  90. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/package.json +0 -0
  91. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/sync.js +0 -0
  92. data/node_modules/traceur/node_modules/rsvp/CHANGELOG.md +255 -0
  93. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/LICENSE +0 -0
  94. data/node_modules/traceur/node_modules/rsvp/README.md +366 -0
  95. data/node_modules/traceur/node_modules/rsvp/dist/rsvp.js +1597 -0
  96. data/node_modules/traceur/node_modules/rsvp/dist/rsvp.min.js +9 -0
  97. data/node_modules/traceur/node_modules/rsvp/lib/rsvp.js +70 -0
  98. data/node_modules/traceur/node_modules/rsvp/lib/rsvp.umd.js +51 -0
  99. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/-internal.js +0 -0
  100. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/all-settled.js +73 -0
  101. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/all.js +0 -0
  102. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/asap.js +112 -0
  103. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/config.js +0 -0
  104. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/defer.js +45 -0
  105. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/enumerator.js +130 -0
  106. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/events.js +205 -0
  107. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/filter.js +0 -0
  108. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/hash-settled.js +126 -0
  109. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/hash.js +94 -0
  110. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/instrument.js +41 -0
  111. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/map.js +0 -0
  112. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/node.js +281 -0
  113. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/platform.js +14 -0
  114. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise-hash.js +52 -0
  115. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise.js +496 -0
  116. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/promise/all.js +0 -0
  117. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/race.js +105 -0
  118. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/reject.js +47 -0
  119. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/resolve.js +49 -0
  120. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/race.js +0 -0
  121. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/reject.js +16 -0
  122. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/resolve.js +17 -0
  123. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/rethrow.js +0 -0
  124. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/utils.js +0 -0
  125. data/node_modules/traceur/node_modules/rsvp/package.json +106 -0
  126. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/.npmignore +0 -0
  127. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/LICENSE +0 -0
  128. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/Makefile +0 -0
  129. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/README.md +0 -0
  130. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/bin/semver +0 -0
  131. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/foot.js +0 -0
  132. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/head.js +0 -0
  133. data/node_modules/traceur/node_modules/semver/package.json +50 -0
  134. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.browser.js +0 -0
  135. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.browser.js.gz +0 -0
  136. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.js +0 -0
  137. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.min.js +0 -0
  138. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.min.js.gz +0 -0
  139. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/amd.js +0 -0
  140. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/gtr.js +0 -0
  141. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/index.js +0 -0
  142. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/ltr.js +0 -0
  143. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/no-module.js +0 -0
  144. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/.npmignore +0 -0
  145. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/LICENSE.md +0 -0
  146. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/README.md +0 -0
  147. data/node_modules/traceur/node_modules/source-map-support/amd-test/browser-source-map-support.js +89 -0
  148. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/index.html +0 -0
  149. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/require.js +0 -0
  150. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/script.coffee +0 -0
  151. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/script.js +0 -0
  152. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/script.map +0 -0
  153. data/node_modules/traceur/node_modules/source-map-support/browser-source-map-support.js +89 -0
  154. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/browser-test/index.html +0 -0
  155. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/browser-test/script.coffee +0 -0
  156. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/browser-test/script.js +0 -0
  157. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/browser-test/script.map +0 -0
  158. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/build.js +0 -0
  159. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/index.html +0 -0
  160. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/script.coffee +0 -0
  161. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/script.js +0 -0
  162. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/script.map +0 -0
  163. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/server.js +0 -0
  164. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/.npmignore +0 -0
  165. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/.travis.yml +0 -0
  166. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/CHANGELOG.md +0 -0
  167. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/LICENSE +0 -0
  168. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/Makefile.dryice.js +0 -0
  169. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/README.md +0 -0
  170. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/assert-shim.js +0 -0
  171. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/mini-require.js +0 -0
  172. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/prefix-source-map.jsm +0 -0
  173. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/prefix-utils.jsm +0 -0
  174. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-browser.js +0 -0
  175. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-source-map.jsm +0 -0
  176. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-utils.jsm +0 -0
  177. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/test-prefix.js +0 -0
  178. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/test-suffix.js +0 -0
  179. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map.js +0 -0
  180. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/array-set.js +0 -0
  181. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/base64-vlq.js +0 -0
  182. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/base64.js +0 -0
  183. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/binary-search.js +0 -0
  184. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-map-consumer.js +0 -0
  185. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-map-generator.js +0 -0
  186. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-node.js +0 -0
  187. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/util.js +0 -0
  188. data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/LICENSE +58 -0
  189. data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/README.md +171 -0
  190. data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/amdefine.js +301 -0
  191. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/intercept.js +0 -0
  192. data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/package.json +47 -0
  193. data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/package.json +142 -0
  194. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/run-tests.js +0 -0
  195. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-api.js +0 -0
  196. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-array-set.js +0 -0
  197. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-base64-vlq.js +0 -0
  198. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-base64.js +0 -0
  199. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-binary-search.js +0 -0
  200. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-dog-fooding.js +0 -0
  201. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-map-consumer.js +0 -0
  202. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-map-generator.js +0 -0
  203. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-node.js +0 -0
  204. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/util.js +0 -0
  205. data/node_modules/traceur/node_modules/source-map-support/package.json +52 -0
  206. data/node_modules/traceur/node_modules/source-map-support/source-map-support.js +386 -0
  207. data/node_modules/traceur/node_modules/source-map-support/test.js +384 -0
  208. data/node_modules/traceur/package.json +286 -0
  209. data/node_modules/traceur/src/node/NodeCompiler.js +81 -0
  210. data/{vendor/node_modules → node_modules}/traceur/src/node/System.js +0 -0
  211. data/{vendor/node_modules → node_modules}/traceur/src/node/api.js +0 -0
  212. data/node_modules/traceur/src/node/command.js +203 -0
  213. data/{vendor/node_modules → node_modules}/traceur/src/node/compileAllJsFilesInDir.js +0 -0
  214. data/{vendor/node_modules → node_modules}/traceur/src/node/deferred.js +0 -0
  215. data/{vendor/node_modules → node_modules}/traceur/src/node/file-util.js +0 -0
  216. data/{vendor/node_modules → node_modules}/traceur/src/node/getopt.js +0 -0
  217. data/node_modules/traceur/src/node/interpreter.js +37 -0
  218. data/{vendor/node_modules → node_modules}/traceur/src/node/nodeLoader.js +0 -0
  219. data/node_modules/traceur/src/node/recursiveModuleCompile.js +171 -0
  220. data/{vendor/node_modules → node_modules}/traceur/src/node/require.js +0 -0
  221. data/{vendor/node_modules → node_modules}/traceur/src/node/to-amd-compiler.js +0 -0
  222. data/{vendor/node_modules → node_modules}/traceur/src/node/to-closure-compiler.js +0 -0
  223. data/{vendor/node_modules → node_modules}/traceur/src/node/to-commonjs-compiler.js +0 -0
  224. data/{vendor/node_modules → node_modules}/traceur/src/node/traceur.js +0 -0
  225. data/{vendor/node_modules → node_modules}/traceur/traceur +0 -0
  226. data/package.json +15 -0
  227. data/spec/traceur/configuration_spec.rb +3 -3
  228. metadata +225 -161
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "source-map-support",
3
+ "description": "Fixes stack traces for files with source maps",
4
+ "version": "0.2.10",
5
+ "main": "./source-map-support.js",
6
+ "scripts": {
7
+ "test": "node_modules/mocha/bin/mocha"
8
+ },
9
+ "dependencies": {
10
+ "source-map": "0.1.32"
11
+ },
12
+ "devDependencies": {
13
+ "coffee-script": "1.7.1",
14
+ "browserify": "3.44.2",
15
+ "mocha": "1.18.2"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/evanw/node-source-map-support.git"
20
+ },
21
+ "bugs": {
22
+ "url": "https://github.com/evanw/node-source-map-support/issues"
23
+ },
24
+ "licenses": [
25
+ {
26
+ "type": "MIT"
27
+ }
28
+ ],
29
+ "gitHead": "e1a092fe79a1abf1a6d7b59b7878ced3fa9e793d",
30
+ "homepage": "https://github.com/evanw/node-source-map-support",
31
+ "_id": "source-map-support@0.2.10",
32
+ "_shasum": "ea5a3900a1c1cb25096a0ae8cc5c2b4b10ded3dc",
33
+ "_from": "source-map-support@>=0.2.8 <0.3.0",
34
+ "_npmVersion": "1.4.28",
35
+ "_npmUser": {
36
+ "name": "evanw",
37
+ "email": "evan.exe@gmail.com"
38
+ },
39
+ "maintainers": [
40
+ {
41
+ "name": "evanw",
42
+ "email": "evan.exe@gmail.com"
43
+ }
44
+ ],
45
+ "dist": {
46
+ "shasum": "ea5a3900a1c1cb25096a0ae8cc5c2b4b10ded3dc",
47
+ "tarball": "http://registry.npmjs.org/source-map-support/-/source-map-support-0.2.10.tgz"
48
+ },
49
+ "directories": {},
50
+ "_resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.2.10.tgz",
51
+ "readme": "ERROR: No README data found!"
52
+ }
@@ -0,0 +1,386 @@
1
+ var SourceMapConsumer = require('source-map').SourceMapConsumer;
2
+ var path = require('path');
3
+ var fs = require('fs');
4
+
5
+ // Only install once if called multiple times
6
+ var alreadyInstalled = false;
7
+
8
+ // If true, the caches are reset before a stack trace formatting operation
9
+ var emptyCacheBetweenOperations = false;
10
+
11
+ // Maps a file path to a string containing the file contents
12
+ var fileContentsCache = {};
13
+
14
+ // Maps a file path to a source map for that file
15
+ var sourceMapCache = {};
16
+
17
+ function isInBrowser() {
18
+ return ((typeof window !== 'undefined') && (typeof XMLHttpRequest === 'function'));
19
+ }
20
+
21
+ function retrieveFile(path) {
22
+ if (path in fileContentsCache) {
23
+ return fileContentsCache[path];
24
+ }
25
+
26
+ try {
27
+ // Use SJAX if we are in the browser
28
+ if (isInBrowser()) {
29
+ var xhr = new XMLHttpRequest();
30
+ xhr.open('GET', path, false);
31
+ xhr.send(null);
32
+ var contents = xhr.readyState === 4 ? xhr.responseText : null;
33
+ }
34
+
35
+ // Otherwise, use the filesystem
36
+ else {
37
+ var contents = fs.readFileSync(path, 'utf8');
38
+ }
39
+ } catch (e) {
40
+ var contents = null;
41
+ }
42
+
43
+ return fileContentsCache[path] = contents;
44
+ }
45
+
46
+ // Support URLs relative to a directory, but be careful about a protocol prefix
47
+ // in case we are in the browser (i.e. directories may start with "http://")
48
+ function supportRelativeURL(file, url) {
49
+ if (!file) return url;
50
+ var dir = path.dirname(file);
51
+ var match = /^\w+:\/\/[^\/]*/.exec(dir);
52
+ var protocol = match ? match[0] : '';
53
+ return protocol + path.resolve(dir.slice(protocol.length), url);
54
+ }
55
+
56
+ function retrieveSourceMapURL(source) {
57
+ var fileData;
58
+
59
+ if (isInBrowser()) {
60
+ var xhr = new XMLHttpRequest();
61
+ xhr.open('GET', source, false);
62
+ xhr.send(null);
63
+ fileData = xhr.readyState === 4 ? xhr.responseText : null;
64
+
65
+ // Support providing a sourceMappingURL via the SourceMap header
66
+ var sourceMapHeader = xhr.getResponseHeader("SourceMap") ||
67
+ xhr.getResponseHeader("X-SourceMap");
68
+ if (sourceMapHeader) {
69
+ return sourceMapHeader;
70
+ }
71
+ }
72
+
73
+ // Get the URL of the source map
74
+ fileData = retrieveFile(source);
75
+ var match = /\/\/[#@]\s*sourceMappingURL=(.*)\s*$/m.exec(fileData);
76
+ if (!match) return null;
77
+ return match[1];
78
+ };
79
+
80
+ // Can be overridden by the retrieveSourceMap option to install. Takes a
81
+ // generated source filename; returns a {map, optional url} object, or null if
82
+ // there is no source map. The map field may be either a string or the parsed
83
+ // JSON object (ie, it must be a valid argument to the SourceMapConsumer
84
+ // constructor).
85
+ function retrieveSourceMap(source) {
86
+ var sourceMappingURL = retrieveSourceMapURL(source);
87
+ if (!sourceMappingURL) return null;
88
+
89
+ // Read the contents of the source map
90
+ var sourceMapData;
91
+ var dataUrlPrefix = "data:application/json;base64,";
92
+ if (sourceMappingURL.slice(0, dataUrlPrefix.length).toLowerCase() == dataUrlPrefix) {
93
+ // Support source map URL as a data url
94
+ sourceMapData = new Buffer(sourceMappingURL.slice(dataUrlPrefix.length), "base64").toString();
95
+ sourceMappingURL = null;
96
+ } else {
97
+ // Support source map URLs relative to the source URL
98
+ sourceMappingURL = supportRelativeURL(source, sourceMappingURL);
99
+ sourceMapData = retrieveFile(sourceMappingURL, 'utf8');
100
+ }
101
+
102
+ if (!sourceMapData) {
103
+ return null;
104
+ }
105
+
106
+ return {
107
+ url: sourceMappingURL,
108
+ map: sourceMapData
109
+ };
110
+ }
111
+
112
+ function mapSourcePosition(position) {
113
+ var sourceMap = sourceMapCache[position.source];
114
+ if (!sourceMap) {
115
+ // Call the (overrideable) retrieveSourceMap function to get the source map.
116
+ var urlAndMap = retrieveSourceMap(position.source);
117
+ if (urlAndMap) {
118
+ sourceMap = sourceMapCache[position.source] = {
119
+ url: urlAndMap.url,
120
+ map: new SourceMapConsumer(urlAndMap.map)
121
+ };
122
+
123
+ // Load all sources stored inline with the source map into the file cache
124
+ // to pretend like they are already loaded. They may not exist on disk.
125
+ if (sourceMap.map.sourcesContent) {
126
+ sourceMap.map.sources.forEach(function(source, i) {
127
+ var contents = sourceMap.map.sourcesContent[i];
128
+ if (contents) {
129
+ var url = supportRelativeURL(sourceMap.url, source);
130
+ fileContentsCache[url] = contents;
131
+ }
132
+ });
133
+ }
134
+ } else {
135
+ sourceMap = sourceMapCache[position.source] = {
136
+ url: null,
137
+ map: null
138
+ };
139
+ }
140
+ }
141
+
142
+ // Resolve the source URL relative to the URL of the source map
143
+ if (sourceMap && sourceMap.map) {
144
+ var originalPosition = sourceMap.map.originalPositionFor(position);
145
+
146
+ // Only return the original position if a matching line was found. If no
147
+ // matching line is found then we return position instead, which will cause
148
+ // the stack trace to print the path and line for the compiled file. It is
149
+ // better to give a precise location in the compiled file than a vague
150
+ // location in the original file.
151
+ if (originalPosition.source !== null) {
152
+ originalPosition.source = supportRelativeURL(
153
+ sourceMap.url, originalPosition.source);
154
+ return originalPosition;
155
+ }
156
+ }
157
+
158
+ return position;
159
+ }
160
+
161
+ // Parses code generated by FormatEvalOrigin(), a function inside V8:
162
+ // https://code.google.com/p/v8/source/browse/trunk/src/messages.js
163
+ function mapEvalOrigin(origin) {
164
+ // Most eval() calls are in this format
165
+ var match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin);
166
+ if (match) {
167
+ var position = mapSourcePosition({
168
+ source: match[2],
169
+ line: match[3],
170
+ column: match[4] - 1
171
+ });
172
+ return 'eval at ' + match[1] + ' (' + position.source + ':' +
173
+ position.line + ':' + (position.column + 1) + ')';
174
+ }
175
+
176
+ // Parse nested eval() calls using recursion
177
+ match = /^eval at ([^(]+) \((.+)\)$/.exec(origin);
178
+ if (match) {
179
+ return 'eval at ' + match[1] + ' (' + mapEvalOrigin(match[2]) + ')';
180
+ }
181
+
182
+ // Make sure we still return useful information if we didn't find anything
183
+ return origin;
184
+ }
185
+
186
+ // This is copied almost verbatim from the V8 source code at
187
+ // https://code.google.com/p/v8/source/browse/trunk/src/messages.js. The
188
+ // implementation of wrapCallSite() used to just forward to the actual source
189
+ // code of CallSite.prototype.toString but unfortunately a new release of V8
190
+ // did something to the prototype chain and broke the shim. The only fix I
191
+ // could find was copy/paste.
192
+ function CallSiteToString() {
193
+ var fileName;
194
+ var fileLocation = "";
195
+ if (this.isNative()) {
196
+ fileLocation = "native";
197
+ } else {
198
+ fileName = this.getScriptNameOrSourceURL();
199
+ if (!fileName && this.isEval()) {
200
+ fileLocation = this.getEvalOrigin();
201
+ fileLocation += ", "; // Expecting source position to follow.
202
+ }
203
+
204
+ if (fileName) {
205
+ fileLocation += fileName;
206
+ } else {
207
+ // Source code does not originate from a file and is not native, but we
208
+ // can still get the source position inside the source string, e.g. in
209
+ // an eval string.
210
+ fileLocation += "<anonymous>";
211
+ }
212
+ var lineNumber = this.getLineNumber();
213
+ if (lineNumber != null) {
214
+ fileLocation += ":" + lineNumber;
215
+ var columnNumber = this.getColumnNumber();
216
+ if (columnNumber) {
217
+ fileLocation += ":" + columnNumber;
218
+ }
219
+ }
220
+ }
221
+
222
+ var line = "";
223
+ var functionName = this.getFunctionName();
224
+ var addSuffix = true;
225
+ var isConstructor = this.isConstructor();
226
+ var isMethodCall = !(this.isToplevel() || isConstructor);
227
+ if (isMethodCall) {
228
+ var typeName = this.getTypeName();
229
+ var methodName = this.getMethodName();
230
+ if (functionName) {
231
+ if (typeName && functionName.indexOf(typeName) != 0) {
232
+ line += typeName + ".";
233
+ }
234
+ line += functionName;
235
+ if (methodName && functionName.indexOf("." + methodName) != functionName.length - methodName.length - 1) {
236
+ line += " [as " + methodName + "]";
237
+ }
238
+ } else {
239
+ line += typeName + "." + (methodName || "<anonymous>");
240
+ }
241
+ } else if (isConstructor) {
242
+ line += "new " + (functionName || "<anonymous>");
243
+ } else if (functionName) {
244
+ line += functionName;
245
+ } else {
246
+ line += fileLocation;
247
+ addSuffix = false;
248
+ }
249
+ if (addSuffix) {
250
+ line += " (" + fileLocation + ")";
251
+ }
252
+ return line;
253
+ }
254
+
255
+ function cloneCallSite(frame) {
256
+ var object = {};
257
+ Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach(function(name) {
258
+ object[name] = /^(?:is|get)/.test(name) ? function() { return frame[name].call(frame); } : frame[name];
259
+ });
260
+ object.toString = CallSiteToString;
261
+ return object;
262
+ }
263
+
264
+ function wrapCallSite(frame) {
265
+ // Most call sites will return the source file from getFileName(), but code
266
+ // passed to eval() ending in "//# sourceURL=..." will return the source file
267
+ // from getScriptNameOrSourceURL() instead
268
+ var source = frame.getFileName() || frame.getScriptNameOrSourceURL();
269
+ if (source) {
270
+ var position = mapSourcePosition({
271
+ source: source,
272
+ line: frame.getLineNumber(),
273
+ column: frame.getColumnNumber() - 1
274
+ });
275
+ frame = cloneCallSite(frame);
276
+ frame.getFileName = function() { return position.source; };
277
+ frame.getLineNumber = function() { return position.line; };
278
+ frame.getColumnNumber = function() { return position.column + 1; };
279
+ frame.getScriptNameOrSourceURL = function() { return position.source; };
280
+ return frame;
281
+ }
282
+
283
+ // Code called using eval() needs special handling
284
+ var origin = frame.isEval() && frame.getEvalOrigin();
285
+ if (origin) {
286
+ origin = mapEvalOrigin(origin);
287
+ frame = cloneCallSite(frame);
288
+ frame.getEvalOrigin = function() { return origin; };
289
+ return frame;
290
+ }
291
+
292
+ // If we get here then we were unable to change the source position
293
+ return frame;
294
+ }
295
+
296
+ // This function is part of the V8 stack trace API, for more info see:
297
+ // http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi
298
+ function prepareStackTrace(error, stack) {
299
+ if (emptyCacheBetweenOperations) {
300
+ fileContentsCache = {};
301
+ sourceMapCache = {};
302
+ }
303
+ return error + stack.map(function(frame) {
304
+ return '\n at ' + wrapCallSite(frame);
305
+ }).join('');
306
+ }
307
+
308
+ // Generate position and snippet of original source with pointer
309
+ function getErrorSource(error) {
310
+ var match = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack);
311
+ if (match) {
312
+ var source = match[1];
313
+ var line = +match[2];
314
+ var column = +match[3];
315
+
316
+ // Support the inline sourceContents inside the source map
317
+ var contents = fileContentsCache[source];
318
+
319
+ // Support files on disk
320
+ if (!contents && fs.existsSync(source)) {
321
+ contents = fs.readFileSync(source, 'utf8');
322
+ }
323
+
324
+ // Format the line from the original source code like node does
325
+ if (contents) {
326
+ var code = contents.split(/(?:\r\n|\r|\n)/)[line - 1];
327
+ if (code) {
328
+ return '\n' + source + ':' + line + '\n' + code + '\n' +
329
+ new Array(column).join(' ') + '^';
330
+ }
331
+ }
332
+ }
333
+ return null;
334
+ }
335
+
336
+ // Mimic node's stack trace printing when an exception escapes the process
337
+ function handleUncaughtExceptions(error) {
338
+ if (!error || !error.stack) {
339
+ console.log('Uncaught exception:', error);
340
+ } else {
341
+ var source = getErrorSource(error);
342
+ if (source !== null) console.log(source);
343
+ console.log(error.stack);
344
+ }
345
+ process.exit(1);
346
+ }
347
+
348
+ exports.wrapCallSite = wrapCallSite;
349
+ exports.getErrorSource = getErrorSource;
350
+ exports.mapSourcePosition = mapSourcePosition;
351
+ exports.retrieveSourceMap = retrieveSourceMap;
352
+
353
+ exports.install = function(options) {
354
+ if (!alreadyInstalled) {
355
+ alreadyInstalled = true;
356
+ Error.prepareStackTrace = prepareStackTrace;
357
+
358
+ // Configure options
359
+ options = options || {};
360
+ var installHandler = 'handleUncaughtExceptions' in options ?
361
+ options.handleUncaughtExceptions : true;
362
+ emptyCacheBetweenOperations = 'emptyCacheBetweenOperations' in options ?
363
+ options.emptyCacheBetweenOperations : false;
364
+
365
+ // Allow sources to be found by methods other than reading the files
366
+ // directly from disk.
367
+ if (options.retrieveFile)
368
+ retrieveFile = options.retrieveFile;
369
+
370
+ // Allow source maps to be found by methods other than reading the files
371
+ // directly from disk.
372
+ if (options.retrieveSourceMap)
373
+ retrieveSourceMap = options.retrieveSourceMap;
374
+
375
+ // Provide the option to not install the uncaught exception handler. This is
376
+ // to support other uncaught exception handlers (in test frameworks, for
377
+ // example). If this handler is not installed and there are no other uncaught
378
+ // exception handlers, uncaught exceptions will be caught by node's built-in
379
+ // exception handler and the process will still be terminated. However, the
380
+ // generated JavaScript code will be shown above the stack trace instead of
381
+ // the original source code.
382
+ if (installHandler && !isInBrowser()) {
383
+ process.on('uncaughtException', handleUncaughtExceptions);
384
+ }
385
+ }
386
+ };