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,205 @@
1
+ function indexOf(callbacks, callback) {
2
+ for (var i=0, l=callbacks.length; i<l; i++) {
3
+ if (callbacks[i] === callback) { return i; }
4
+ }
5
+
6
+ return -1;
7
+ }
8
+
9
+ function callbacksFor(object) {
10
+ var callbacks = object._promiseCallbacks;
11
+
12
+ if (!callbacks) {
13
+ callbacks = object._promiseCallbacks = {};
14
+ }
15
+
16
+ return callbacks;
17
+ }
18
+
19
+ /**
20
+ @class RSVP.EventTarget
21
+ */
22
+ export default {
23
+
24
+ /**
25
+ `RSVP.EventTarget.mixin` extends an object with EventTarget methods. For
26
+ Example:
27
+
28
+ ```javascript
29
+ var object = {};
30
+
31
+ RSVP.EventTarget.mixin(object);
32
+
33
+ object.on('finished', function(event) {
34
+ // handle event
35
+ });
36
+
37
+ object.trigger('finished', { detail: value });
38
+ ```
39
+
40
+ `EventTarget.mixin` also works with prototypes:
41
+
42
+ ```javascript
43
+ var Person = function() {};
44
+ RSVP.EventTarget.mixin(Person.prototype);
45
+
46
+ var yehuda = new Person();
47
+ var tom = new Person();
48
+
49
+ yehuda.on('poke', function(event) {
50
+ console.log('Yehuda says OW');
51
+ });
52
+
53
+ tom.on('poke', function(event) {
54
+ console.log('Tom says OW');
55
+ });
56
+
57
+ yehuda.trigger('poke');
58
+ tom.trigger('poke');
59
+ ```
60
+
61
+ @method mixin
62
+ @for RSVP.EventTarget
63
+ @private
64
+ @param {Object} object object to extend with EventTarget methods
65
+ */
66
+ 'mixin': function(object) {
67
+ object['on'] = this['on'];
68
+ object['off'] = this['off'];
69
+ object['trigger'] = this['trigger'];
70
+ object._promiseCallbacks = undefined;
71
+ return object;
72
+ },
73
+
74
+ /**
75
+ Registers a callback to be executed when `eventName` is triggered
76
+
77
+ ```javascript
78
+ object.on('event', function(eventInfo){
79
+ // handle the event
80
+ });
81
+
82
+ object.trigger('event');
83
+ ```
84
+
85
+ @method on
86
+ @for RSVP.EventTarget
87
+ @private
88
+ @param {String} eventName name of the event to listen for
89
+ @param {Function} callback function to be called when the event is triggered.
90
+ */
91
+ 'on': function(eventName, callback) {
92
+ if (typeof callback !== 'function') {
93
+ throw new TypeError('Callback must be a function');
94
+ }
95
+
96
+ var allCallbacks = callbacksFor(this), callbacks;
97
+
98
+ callbacks = allCallbacks[eventName];
99
+
100
+ if (!callbacks) {
101
+ callbacks = allCallbacks[eventName] = [];
102
+ }
103
+
104
+ if (indexOf(callbacks, callback) === -1) {
105
+ callbacks.push(callback);
106
+ }
107
+ },
108
+
109
+ /**
110
+ You can use `off` to stop firing a particular callback for an event:
111
+
112
+ ```javascript
113
+ function doStuff() { // do stuff! }
114
+ object.on('stuff', doStuff);
115
+
116
+ object.trigger('stuff'); // doStuff will be called
117
+
118
+ // Unregister ONLY the doStuff callback
119
+ object.off('stuff', doStuff);
120
+ object.trigger('stuff'); // doStuff will NOT be called
121
+ ```
122
+
123
+ If you don't pass a `callback` argument to `off`, ALL callbacks for the
124
+ event will not be executed when the event fires. For example:
125
+
126
+ ```javascript
127
+ var callback1 = function(){};
128
+ var callback2 = function(){};
129
+
130
+ object.on('stuff', callback1);
131
+ object.on('stuff', callback2);
132
+
133
+ object.trigger('stuff'); // callback1 and callback2 will be executed.
134
+
135
+ object.off('stuff');
136
+ object.trigger('stuff'); // callback1 and callback2 will not be executed!
137
+ ```
138
+
139
+ @method off
140
+ @for RSVP.EventTarget
141
+ @private
142
+ @param {String} eventName event to stop listening to
143
+ @param {Function} callback optional argument. If given, only the function
144
+ given will be removed from the event's callback queue. If no `callback`
145
+ argument is given, all callbacks will be removed from the event's callback
146
+ queue.
147
+ */
148
+ 'off': function(eventName, callback) {
149
+ var allCallbacks = callbacksFor(this), callbacks, index;
150
+
151
+ if (!callback) {
152
+ allCallbacks[eventName] = [];
153
+ return;
154
+ }
155
+
156
+ callbacks = allCallbacks[eventName];
157
+
158
+ index = indexOf(callbacks, callback);
159
+
160
+ if (index !== -1) { callbacks.splice(index, 1); }
161
+ },
162
+
163
+ /**
164
+ Use `trigger` to fire custom events. For example:
165
+
166
+ ```javascript
167
+ object.on('foo', function(){
168
+ console.log('foo event happened!');
169
+ });
170
+ object.trigger('foo');
171
+ // 'foo event happened!' logged to the console
172
+ ```
173
+
174
+ You can also pass a value as a second argument to `trigger` that will be
175
+ passed as an argument to all event listeners for the event:
176
+
177
+ ```javascript
178
+ object.on('foo', function(value){
179
+ console.log(value.name);
180
+ });
181
+
182
+ object.trigger('foo', { name: 'bar' });
183
+ // 'bar' logged to the console
184
+ ```
185
+
186
+ @method trigger
187
+ @for RSVP.EventTarget
188
+ @private
189
+ @param {String} eventName name of the event to be triggered
190
+ @param {*} options optional value to be passed to any event handlers for
191
+ the given `eventName`
192
+ */
193
+ 'trigger': function(eventName, options) {
194
+ var allCallbacks = callbacksFor(this), callbacks, callback;
195
+
196
+ if (callbacks = allCallbacks[eventName]) {
197
+ // Don't cache the callbacks.length since it may grow
198
+ for (var i=0; i<callbacks.length; i++) {
199
+ callback = callbacks[i];
200
+
201
+ callback(options);
202
+ }
203
+ }
204
+ }
205
+ };
@@ -0,0 +1,126 @@
1
+ import Promise from './promise';
2
+ import {
3
+ default as Enumerator,
4
+ makeSettledResult
5
+ } from './enumerator';
6
+ import PromiseHash from './promise-hash';
7
+ import {
8
+ o_create
9
+ } from './utils';
10
+
11
+ function HashSettled(Constructor, object, label) {
12
+ this._superConstructor(Constructor, object, false, label);
13
+ }
14
+
15
+ HashSettled.prototype = o_create(PromiseHash.prototype);
16
+ HashSettled.prototype._superConstructor = Enumerator;
17
+ HashSettled.prototype._makeResult = makeSettledResult;
18
+
19
+ HashSettled.prototype._validationError = function() {
20
+ return new Error('hashSettled must be called with an object');
21
+ };
22
+
23
+ /**
24
+ `RSVP.hashSettled` is similar to `RSVP.allSettled`, but takes an object
25
+ instead of an array for its `promises` argument.
26
+
27
+ Unlike `RSVP.all` or `RSVP.hash`, which implement a fail-fast method,
28
+ but like `RSVP.allSettled`, `hashSettled` waits until all the
29
+ constituent promises have returned and then shows you all the results
30
+ with their states and values/reasons. This is useful if you want to
31
+ handle multiple promises' failure states together as a set.
32
+
33
+ Returns a promise that is fulfilled when all the given promises have been
34
+ settled, or rejected if the passed parameters are invalid.
35
+
36
+ The returned promise is fulfilled with a hash that has the same key names as
37
+ the `promises` object argument. If any of the values in the object are not
38
+ promises, they will be copied over to the fulfilled object and marked with state
39
+ 'fulfilled'.
40
+
41
+ Example:
42
+
43
+ ```javascript
44
+ var promises = {
45
+ myPromise: RSVP.Promise.resolve(1),
46
+ yourPromise: RSVP.Promise.resolve(2),
47
+ theirPromise: RSVP.Promise.resolve(3),
48
+ notAPromise: 4
49
+ };
50
+
51
+ RSVP.hashSettled(promises).then(function(hash){
52
+ // hash here is an object that looks like:
53
+ // {
54
+ // myPromise: { state: 'fulfilled', value: 1 },
55
+ // yourPromise: { state: 'fulfilled', value: 2 },
56
+ // theirPromise: { state: 'fulfilled', value: 3 },
57
+ // notAPromise: { state: 'fulfilled', value: 4 }
58
+ // }
59
+ });
60
+ ```
61
+
62
+ If any of the `promises` given to `RSVP.hash` are rejected, the state will
63
+ be set to 'rejected' and the reason for rejection provided.
64
+
65
+ Example:
66
+
67
+ ```javascript
68
+ var promises = {
69
+ myPromise: RSVP.Promise.resolve(1),
70
+ rejectedPromise: RSVP.Promise.reject(new Error('rejection')),
71
+ anotherRejectedPromise: RSVP.Promise.reject(new Error('more rejection')),
72
+ };
73
+
74
+ RSVP.hashSettled(promises).then(function(hash){
75
+ // hash here is an object that looks like:
76
+ // {
77
+ // myPromise: { state: 'fulfilled', value: 1 },
78
+ // rejectedPromise: { state: 'rejected', reason: Error },
79
+ // anotherRejectedPromise: { state: 'rejected', reason: Error },
80
+ // }
81
+ // Note that for rejectedPromise, reason.message == 'rejection',
82
+ // and for anotherRejectedPromise, reason.message == 'more rejection'.
83
+ });
84
+ ```
85
+
86
+ An important note: `RSVP.hashSettled` is intended for plain JavaScript objects that
87
+ are just a set of keys and values. `RSVP.hashSettled` will NOT preserve prototype
88
+ chains.
89
+
90
+ Example:
91
+
92
+ ```javascript
93
+ function MyConstructor(){
94
+ this.example = RSVP.Promise.resolve('Example');
95
+ }
96
+
97
+ MyConstructor.prototype = {
98
+ protoProperty: RSVP.Promise.resolve('Proto Property')
99
+ };
100
+
101
+ var myObject = new MyConstructor();
102
+
103
+ RSVP.hashSettled(myObject).then(function(hash){
104
+ // protoProperty will not be present, instead you will just have an
105
+ // object that looks like:
106
+ // {
107
+ // example: { state: 'fulfilled', value: 'Example' }
108
+ // }
109
+ //
110
+ // hash.hasOwnProperty('protoProperty'); // false
111
+ // 'undefined' === typeof hash.protoProperty
112
+ });
113
+ ```
114
+
115
+ @method hashSettled
116
+ @for RSVP
117
+ @param {Object} object
118
+ @param {String} label optional string that describes the promise.
119
+ Useful for tooling.
120
+ @return {Promise} promise that is fulfilled when when all properties of `promises`
121
+ have been settled.
122
+ @static
123
+ */
124
+ export default function hashSettled(object, label) {
125
+ return new HashSettled(Promise, object, label).promise;
126
+ }
@@ -0,0 +1,94 @@
1
+ import Promise from './promise';
2
+ import PromiseHash from './promise-hash';
3
+
4
+ /**
5
+ `RSVP.hash` is similar to `RSVP.all`, but takes an object instead of an array
6
+ for its `promises` argument.
7
+
8
+ Returns a promise that is fulfilled when all the given promises have been
9
+ fulfilled, or rejected if any of them become rejected. The returned promise
10
+ is fulfilled with a hash that has the same key names as the `promises` object
11
+ argument. If any of the values in the object are not promises, they will
12
+ simply be copied over to the fulfilled object.
13
+
14
+ Example:
15
+
16
+ ```javascript
17
+ var promises = {
18
+ myPromise: RSVP.resolve(1),
19
+ yourPromise: RSVP.resolve(2),
20
+ theirPromise: RSVP.resolve(3),
21
+ notAPromise: 4
22
+ };
23
+
24
+ RSVP.hash(promises).then(function(hash){
25
+ // hash here is an object that looks like:
26
+ // {
27
+ // myPromise: 1,
28
+ // yourPromise: 2,
29
+ // theirPromise: 3,
30
+ // notAPromise: 4
31
+ // }
32
+ });
33
+ ````
34
+
35
+ If any of the `promises` given to `RSVP.hash` are rejected, the first promise
36
+ that is rejected will be given as the reason to the rejection handler.
37
+
38
+ Example:
39
+
40
+ ```javascript
41
+ var promises = {
42
+ myPromise: RSVP.resolve(1),
43
+ rejectedPromise: RSVP.reject(new Error('rejectedPromise')),
44
+ anotherRejectedPromise: RSVP.reject(new Error('anotherRejectedPromise')),
45
+ };
46
+
47
+ RSVP.hash(promises).then(function(hash){
48
+ // Code here never runs because there are rejected promises!
49
+ }, function(reason) {
50
+ // reason.message === 'rejectedPromise'
51
+ });
52
+ ```
53
+
54
+ An important note: `RSVP.hash` is intended for plain JavaScript objects that
55
+ are just a set of keys and values. `RSVP.hash` will NOT preserve prototype
56
+ chains.
57
+
58
+ Example:
59
+
60
+ ```javascript
61
+ function MyConstructor(){
62
+ this.example = RSVP.resolve('Example');
63
+ }
64
+
65
+ MyConstructor.prototype = {
66
+ protoProperty: RSVP.resolve('Proto Property')
67
+ };
68
+
69
+ var myObject = new MyConstructor();
70
+
71
+ RSVP.hash(myObject).then(function(hash){
72
+ // protoProperty will not be present, instead you will just have an
73
+ // object that looks like:
74
+ // {
75
+ // example: 'Example'
76
+ // }
77
+ //
78
+ // hash.hasOwnProperty('protoProperty'); // false
79
+ // 'undefined' === typeof hash.protoProperty
80
+ });
81
+ ```
82
+
83
+ @method hash
84
+ @static
85
+ @for RSVP
86
+ @param {Object} object
87
+ @param {String} label optional string that describes the promise.
88
+ Useful for tooling.
89
+ @return {Promise} promise that is fulfilled when all properties of `promises`
90
+ have been fulfilled, or rejected if any of them become rejected.
91
+ */
92
+ export default function hash(object, label) {
93
+ return new PromiseHash(Promise, object, label).promise;
94
+ }
@@ -0,0 +1,41 @@
1
+ import { config } from './config';
2
+ import { now } from './utils';
3
+
4
+ var queue = [];
5
+
6
+ function scheduleFlush() {
7
+ setTimeout(function() {
8
+ var entry;
9
+ for (var i = 0; i < queue.length; i++) {
10
+ entry = queue[i];
11
+
12
+ var payload = entry.payload;
13
+
14
+ payload.guid = payload.key + payload.id;
15
+ payload.childGuid = payload.key + payload.childId;
16
+ if (payload.error) {
17
+ payload.stack = payload.error.stack;
18
+ }
19
+
20
+ config['trigger'](entry.name, entry.payload);
21
+ }
22
+ queue.length = 0;
23
+ }, 50);
24
+ }
25
+
26
+ export default function instrument(eventName, promise, child) {
27
+ if (1 === queue.push({
28
+ name: eventName,
29
+ payload: {
30
+ key: promise._guidKey,
31
+ id: promise._id,
32
+ eventName: eventName,
33
+ detail: promise._result,
34
+ childId: child && child._id,
35
+ label: promise._label,
36
+ timeStamp: now(),
37
+ error: config["instrument-with-stack"] ? new Error(promise._label) : null
38
+ }})) {
39
+ scheduleFlush();
40
+ }
41
+ }