traceur-rb 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (410) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +2 -2
  3. data/lib/js/compile.js +7 -15
  4. data/lib/traceur.rb +2 -1
  5. data/lib/traceur/compilation_error.rb +27 -0
  6. data/lib/traceur/compiler.rb +4 -1
  7. data/lib/traceur/configuration.rb +1 -1
  8. data/lib/traceur/node/runner.rb +1 -1
  9. data/lib/traceur/version.rb +1 -1
  10. data/spec/examples/syntax_error.js +3 -0
  11. data/spec/integration/examples_spec.rb +6 -0
  12. data/vendor/node_modules/traceur/LICENSE +202 -0
  13. data/vendor/node_modules/traceur/README.md +5 -5
  14. data/vendor/node_modules/traceur/bin/traceur-runtime.js +1392 -623
  15. data/vendor/node_modules/traceur/bin/traceur.js +24749 -17990
  16. data/vendor/node_modules/traceur/node_modules/.bin/semver +2 -2
  17. data/vendor/node_modules/traceur/node_modules/commander/History.md +222 -0
  18. data/vendor/node_modules/traceur/node_modules/commander/Readme.md +127 -35
  19. data/vendor/node_modules/traceur/node_modules/commander/index.js +261 -93
  20. data/vendor/node_modules/traceur/node_modules/commander/package.json +41 -9
  21. data/vendor/node_modules/traceur/node_modules/glob/LICENSE +15 -0
  22. data/vendor/node_modules/traceur/node_modules/glob/README.md +357 -0
  23. data/vendor/node_modules/traceur/node_modules/glob/common.js +177 -0
  24. data/vendor/node_modules/traceur/node_modules/glob/glob.js +649 -0
  25. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/.eslintrc +17 -0
  26. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/LICENSE +15 -0
  27. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/README.md +37 -0
  28. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/inflight.js +44 -0
  29. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/LICENSE +15 -0
  30. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md +36 -0
  31. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +34 -0
  32. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/test/basic.js +51 -0
  33. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js +33 -0
  34. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/package.json +61 -0
  35. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/test.js +97 -0
  36. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/LICENSE +16 -0
  37. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/README.md +42 -0
  38. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/inherits.js +1 -0
  39. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/inherits_browser.js +23 -0
  40. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/package.json +33 -0
  41. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/test.js +25 -0
  42. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/.npmignore +1 -0
  43. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/.travis.yml +4 -0
  44. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/LICENSE +23 -0
  45. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/README.md +216 -0
  46. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/benchmark.js +15 -0
  47. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/browser.js +1181 -0
  48. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/minimatch.js +845 -0
  49. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +2 -0
  50. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.travis.yml +3 -0
  51. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +121 -0
  52. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +8 -0
  53. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +191 -0
  54. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +2 -0
  55. data/vendor/node_modules/traceur/node_modules/{q-io/node_modules/collections → glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/.travis.yml +0 -0
  56. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +6 -0
  57. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +80 -0
  58. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +5 -0
  59. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +38 -0
  60. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +73 -0
  61. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +56 -0
  62. data/vendor/node_modules/traceur/node_modules/{q-io/node_modules/url2 → glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/.travis.yml +1 -1
  63. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE +18 -0
  64. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +62 -0
  65. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +6 -0
  66. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +13 -0
  67. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +83 -0
  68. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +39 -0
  69. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +75 -0
  70. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-comparison.js +32 -0
  71. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-results.txt +1075 -0
  72. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/cases.txt +182 -0
  73. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/dollar.js +9 -0
  74. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/empty-option.js +10 -0
  75. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/generate.sh +24 -0
  76. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/negative-increment.js +15 -0
  77. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/nested.js +16 -0
  78. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/order.js +10 -0
  79. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/pad.js +13 -0
  80. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/same-type.js +7 -0
  81. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/sequence.js +50 -0
  82. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/package.json +60 -0
  83. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/test/basic.js +399 -0
  84. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/test/brace-expand.js +45 -0
  85. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/test/defaults.js +274 -0
  86. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/test/extglob-ending-with-state-char.js +8 -0
  87. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/LICENSE +27 -0
  88. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/README.md +51 -0
  89. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE +15 -0
  90. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +36 -0
  91. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +34 -0
  92. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +51 -0
  93. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +33 -0
  94. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/once.js +21 -0
  95. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/package.json +42 -0
  96. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/test/once.js +23 -0
  97. data/vendor/node_modules/traceur/node_modules/glob/package.json +72 -0
  98. data/vendor/node_modules/traceur/node_modules/glob/sync.js +409 -0
  99. data/vendor/node_modules/traceur/node_modules/rsvp/.release.json +17 -0
  100. data/vendor/node_modules/traceur/node_modules/rsvp/CHANGELOG.md +165 -0
  101. data/vendor/node_modules/traceur/node_modules/rsvp/LICENSE +19 -0
  102. data/vendor/node_modules/traceur/node_modules/rsvp/README.md +364 -0
  103. data/vendor/node_modules/traceur/node_modules/rsvp/dist/rsvp.js +1671 -0
  104. data/vendor/node_modules/traceur/node_modules/rsvp/dist/rsvp.min.js +9 -0
  105. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp.js +66 -0
  106. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp.umd.js +50 -0
  107. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/-internal.js +265 -0
  108. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/all-settled.js +71 -0
  109. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/all.js +15 -0
  110. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/asap.js +109 -0
  111. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/config.js +28 -0
  112. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/defer.js +45 -0
  113. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/enumerator.js +125 -0
  114. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/events.js +201 -0
  115. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/filter.js +120 -0
  116. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/hash-settled.js +124 -0
  117. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/hash.js +94 -0
  118. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/instrument.js +41 -0
  119. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/map.js +99 -0
  120. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/node.js +281 -0
  121. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise-hash.js +51 -0
  122. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise.js +496 -0
  123. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/all.js +52 -0
  124. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/race.js +105 -0
  125. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/reject.js +47 -0
  126. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/resolve.js +49 -0
  127. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/race.js +15 -0
  128. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/reject.js +16 -0
  129. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/resolve.js +17 -0
  130. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/rethrow.js +46 -0
  131. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/utils.js +39 -0
  132. data/vendor/node_modules/traceur/node_modules/rsvp/package.json +100 -0
  133. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/README.md +9 -0
  134. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/bower.json +22 -0
  135. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/composer.json +18 -0
  136. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/package.json +52 -0
  137. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/rsvp.amd.js +1607 -0
  138. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/rsvp.js +1566 -0
  139. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/rsvp.min.js +26 -0
  140. data/vendor/node_modules/traceur/node_modules/rsvp/vertx.js +1 -0
  141. data/vendor/node_modules/traceur/node_modules/semver/bin/semver +2 -2
  142. data/vendor/node_modules/traceur/node_modules/semver/package.json +4 -3
  143. data/vendor/node_modules/traceur/node_modules/semver/semver.browser.js +7 -0
  144. data/vendor/node_modules/traceur/node_modules/semver/semver.browser.js.gz +0 -0
  145. data/vendor/node_modules/traceur/node_modules/semver/semver.js +7 -0
  146. data/vendor/node_modules/traceur/node_modules/semver/semver.min.js +1 -1
  147. data/vendor/node_modules/traceur/node_modules/semver/semver.min.js.gz +0 -0
  148. data/vendor/node_modules/traceur/node_modules/semver/test/index.js +8 -4
  149. data/vendor/node_modules/traceur/node_modules/semver/test/ltr.js +2 -1
  150. data/vendor/node_modules/traceur/node_modules/source-map-support/.npmignore +1 -0
  151. data/vendor/node_modules/traceur/node_modules/{q-io/node_modules/mime/LICENSE → source-map-support/LICENSE.md} +7 -5
  152. data/vendor/node_modules/traceur/node_modules/source-map-support/README.md +165 -0
  153. data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/browser-source-map-support.js +89 -0
  154. data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/index.html +6 -0
  155. data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/require.js +36 -0
  156. data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/script.coffee +13 -0
  157. data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/script.js +24 -0
  158. data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/script.map +10 -0
  159. data/vendor/node_modules/traceur/node_modules/source-map-support/browser-source-map-support.js +89 -0
  160. data/vendor/node_modules/traceur/node_modules/source-map-support/browser-test/index.html +6 -0
  161. data/vendor/node_modules/traceur/node_modules/source-map-support/browser-test/script.coffee +12 -0
  162. data/vendor/node_modules/traceur/node_modules/source-map-support/browser-test/script.js +25 -0
  163. data/vendor/node_modules/traceur/node_modules/source-map-support/browser-test/script.map +10 -0
  164. data/vendor/node_modules/traceur/node_modules/source-map-support/build.js +69 -0
  165. data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/index.html +6 -0
  166. data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/script.coffee +12 -0
  167. data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/script.js +25 -0
  168. data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/script.map +10 -0
  169. data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/server.js +45 -0
  170. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/.npmignore +2 -0
  171. data/vendor/node_modules/traceur/node_modules/{q-io → source-map-support/node_modules/source-map}/.travis.yml +1 -0
  172. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/CHANGELOG.md +121 -0
  173. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/LICENSE +28 -0
  174. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/Makefile.dryice.js +166 -0
  175. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/README.md +434 -0
  176. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/assert-shim.js +56 -0
  177. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/mini-require.js +152 -0
  178. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/prefix-source-map.jsm +20 -0
  179. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/prefix-utils.jsm +18 -0
  180. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-browser.js +8 -0
  181. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-source-map.jsm +6 -0
  182. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-utils.jsm +21 -0
  183. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/test-prefix.js +8 -0
  184. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/test-suffix.js +3 -0
  185. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map.js +8 -0
  186. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/array-set.js +97 -0
  187. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/base64-vlq.js +144 -0
  188. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/base64.js +42 -0
  189. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/binary-search.js +81 -0
  190. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-map-consumer.js +478 -0
  191. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-map-generator.js +380 -0
  192. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-node.js +371 -0
  193. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/util.js +205 -0
  194. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/LICENSE +58 -0
  195. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/README.md +171 -0
  196. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/amdefine.js +299 -0
  197. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/intercept.js +36 -0
  198. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/package.json +37 -0
  199. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/package.json +142 -0
  200. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/run-tests.js +62 -0
  201. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-api.js +26 -0
  202. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-array-set.js +104 -0
  203. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-base64-vlq.js +24 -0
  204. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-base64.js +35 -0
  205. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
  206. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-dog-fooding.js +72 -0
  207. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-map-consumer.js +451 -0
  208. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-map-generator.js +417 -0
  209. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-node.js +365 -0
  210. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/util.js +161 -0
  211. data/vendor/node_modules/traceur/node_modules/source-map-support/package.json +52 -0
  212. data/vendor/node_modules/traceur/node_modules/source-map-support/source-map-support.js +381 -0
  213. data/vendor/node_modules/traceur/node_modules/source-map-support/test.js +359 -0
  214. data/vendor/node_modules/traceur/package.json +234 -20
  215. data/vendor/node_modules/traceur/src/node/NodeCompiler.js +78 -0
  216. data/vendor/node_modules/traceur/src/node/System.js +32 -5
  217. data/vendor/node_modules/traceur/src/node/api.js +28 -93
  218. data/vendor/node_modules/traceur/src/node/command.js +84 -19
  219. data/vendor/node_modules/traceur/src/node/compileAllJsFilesInDir.js +40 -0
  220. data/vendor/node_modules/traceur/src/node/interpreter.js +11 -8
  221. data/vendor/node_modules/traceur/src/node/recursiveModuleCompile.js +171 -0
  222. data/vendor/node_modules/traceur/src/node/require.js +7 -21
  223. data/vendor/node_modules/traceur/src/node/to-amd-compiler.js +2 -7
  224. data/vendor/node_modules/traceur/src/node/to-closure-compiler.js +28 -0
  225. data/vendor/node_modules/traceur/src/node/to-commonjs-compiler.js +3 -7
  226. data/vendor/node_modules/traceur/src/node/traceur.js +1 -1
  227. metadata +196 -190
  228. data/vendor/node_modules/traceur/node_modules/q-io/.npmignore +0 -1
  229. data/vendor/node_modules/traceur/node_modules/q-io/CHANGES.md +0 -122
  230. data/vendor/node_modules/traceur/node_modules/q-io/LICENSE +0 -19
  231. data/vendor/node_modules/traceur/node_modules/q-io/README.md +0 -928
  232. data/vendor/node_modules/traceur/node_modules/q-io/buffer-stream.js +0 -59
  233. data/vendor/node_modules/traceur/node_modules/q-io/coverage-report.js +0 -44
  234. data/vendor/node_modules/traceur/node_modules/q-io/deprecate.js +0 -51
  235. data/vendor/node_modules/traceur/node_modules/q-io/fs-boot.js +0 -307
  236. data/vendor/node_modules/traceur/node_modules/q-io/fs-common.js +0 -499
  237. data/vendor/node_modules/traceur/node_modules/q-io/fs-mock.js +0 -547
  238. data/vendor/node_modules/traceur/node_modules/q-io/fs-root.js +0 -105
  239. data/vendor/node_modules/traceur/node_modules/q-io/fs.js +0 -355
  240. data/vendor/node_modules/traceur/node_modules/q-io/fs2http.js +0 -65
  241. data/vendor/node_modules/traceur/node_modules/q-io/http-apps.js +0 -152
  242. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/chain.js +0 -24
  243. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/content.js +0 -93
  244. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/cookie.js +0 -154
  245. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/decorators.js +0 -178
  246. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/fs.js +0 -417
  247. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/html.js +0 -58
  248. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/json.js +0 -78
  249. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/negotiate.js +0 -120
  250. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/proxy.js +0 -27
  251. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/redirect.js +0 -209
  252. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/route.js +0 -125
  253. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/status.js +0 -175
  254. data/vendor/node_modules/traceur/node_modules/q-io/http-cookie.js +0 -75
  255. data/vendor/node_modules/traceur/node_modules/q-io/http.js +0 -378
  256. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/.npmignore +0 -11
  257. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/CHANGES.md +0 -78
  258. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/LICENSE.md +0 -21
  259. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/README.md +0 -1285
  260. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/collections.js +0 -22
  261. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/dict.js +0 -142
  262. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/fast-map.js +0 -57
  263. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/fast-set.js +0 -183
  264. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-collection.js +0 -261
  265. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-map.js +0 -186
  266. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-order.js +0 -55
  267. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-set.js +0 -59
  268. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/heap.js +0 -236
  269. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/iterator.js +0 -371
  270. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/list.js +0 -435
  271. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/array-changes.js +0 -247
  272. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/map-changes.js +0 -147
  273. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/property-changes.js +0 -448
  274. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/range-changes.js +0 -139
  275. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/lru-map.js +0 -79
  276. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/lru-set.js +0 -142
  277. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/map.js +0 -60
  278. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/multi-map.js +0 -41
  279. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/package.json +0 -12
  280. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/sync +0 -7
  281. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/sync.patch +0 -48
  282. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/weak-map.js +0 -590
  283. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/package.json +0 -49
  284. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/set.js +0 -173
  285. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-array.js +0 -274
  286. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-function.js +0 -59
  287. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-object.js +0 -538
  288. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-regexp.js +0 -14
  289. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim.js +0 -6
  290. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-array-map.js +0 -49
  291. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-array-set.js +0 -51
  292. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-array.js +0 -269
  293. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-map.js +0 -61
  294. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-set.js +0 -736
  295. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/tree-log.js +0 -40
  296. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/weak-map.js +0 -1
  297. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/README.md +0 -66
  298. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/mime.js +0 -114
  299. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/package.json +0 -35
  300. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/test.js +0 -84
  301. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/types/mime.types +0 -1588
  302. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/types/node.types +0 -77
  303. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/CHANGES +0 -15
  304. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/LICENSE +0 -19
  305. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/README +0 -96
  306. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/lib/mimeparse.js +0 -166
  307. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/package.json +0 -43
  308. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/CONTRIBUTING.md +0 -40
  309. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/LICENSE +0 -19
  310. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/README.md +0 -813
  311. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/benchmark/compare-with-callbacks.js +0 -71
  312. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/benchmark/scenarios.js +0 -36
  313. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/package.json +0 -93
  314. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/q.js +0 -1937
  315. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/queue.js +0 -35
  316. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/.gitmodules +0 -6
  317. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/History.md +0 -36
  318. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/Makefile +0 -7
  319. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/Readme.md +0 -38
  320. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/benchmark.js +0 -32
  321. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/examples.js +0 -39
  322. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/index.js +0 -2
  323. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/lib/querystring.js +0 -123
  324. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/package.json +0 -19
  325. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/.gitmodules +0 -3
  326. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/.npmignore +0 -3
  327. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/History.md +0 -128
  328. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/Makefile +0 -53
  329. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/Readme.md +0 -61
  330. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/bin/expresso +0 -856
  331. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/api.html +0 -1080
  332. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/index.html +0 -377
  333. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/index.md +0 -290
  334. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/layout/foot.html +0 -3
  335. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/layout/head.html +0 -42
  336. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/lib/bar.js +0 -4
  337. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/lib/foo.js +0 -16
  338. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/package.json +0 -12
  339. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/assert.test.js +0 -91
  340. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/async.test.js +0 -12
  341. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/bar.test.js +0 -13
  342. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/foo.test.js +0 -14
  343. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/http.test.js +0 -146
  344. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/serial/async.test.js +0 -39
  345. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/serial/http.test.js +0 -48
  346. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/.gitmodules +0 -3
  347. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/History.md +0 -22
  348. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/Makefile +0 -6
  349. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/Readme.md +0 -248
  350. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/examples/runner.js +0 -53
  351. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/index.js +0 -2
  352. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/lib/eql.js +0 -91
  353. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/lib/should.js +0 -548
  354. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/package.json +0 -8
  355. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/test/should.test.js +0 -358
  356. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/test/querystring.test.js +0 -133
  357. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/.npmignore +0 -3
  358. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/LICENSE.md +0 -20
  359. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/README.md +0 -33
  360. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/package.json +0 -37
  361. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/test/url2-spec.js +0 -125
  362. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/url2.js +0 -151
  363. data/vendor/node_modules/traceur/node_modules/q-io/package.json +0 -51
  364. data/vendor/node_modules/traceur/node_modules/q-io/reader.js +0 -133
  365. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/boot-directory-spec.js +0 -47
  366. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/contains-spec.js +0 -11
  367. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/fixtures/hello.txt +0 -1
  368. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/issues/1-spec.js +0 -33
  369. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/make-tree-spec.js +0 -92
  370. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/append-spec.js +0 -41
  371. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/copy-tree-spec.js +0 -57
  372. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/fixture/hello.txt +0 -1
  373. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/link-spec.js +0 -70
  374. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/make-tree-spec.js +0 -109
  375. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/merge-spec.js +0 -67
  376. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/move-spec.js +0 -219
  377. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/object-spec.js +0 -20
  378. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/range-spec.js +0 -26
  379. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/read-spec.js +0 -40
  380. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/remove-directory-spec.js +0 -37
  381. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/remove-tree-spec.js +0 -39
  382. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/root-spec.js +0 -32
  383. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/stat-spec.js +0 -26
  384. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/symbolic-link-spec.js +0 -86
  385. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/working-directory-spec.js +0 -31
  386. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/write-spec.js +0 -73
  387. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/range-spec.js +0 -23
  388. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/range-spec.txt +0 -1
  389. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/read-spec.js +0 -22
  390. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/relative-spec.js +0 -25
  391. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/reroot-spec.js +0 -45
  392. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/write-spec.js +0 -38
  393. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/cookie-spec.js +0 -52
  394. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/directory-list-spec.js +0 -86
  395. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/fixtures/01234.txt +0 -1
  396. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/fixtures/1234.txt +0 -1
  397. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/fixtures/5678.txt +0 -0
  398. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/fixtures/9012/3456.txt +0 -0
  399. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/hosts-spec.js +0 -49
  400. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/interpret-range-spec.js +0 -47
  401. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/partial-range-spec.js +0 -186
  402. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/proxy-spec.js +0 -82
  403. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/symbolic-link-spec.js +0 -110
  404. data/vendor/node_modules/traceur/node_modules/q-io/spec/http/agent-spec.js +0 -96
  405. data/vendor/node_modules/traceur/node_modules/q-io/spec/http/basic-spec.js +0 -96
  406. data/vendor/node_modules/traceur/node_modules/q-io/spec/lib/jasmine-promise.js +0 -42
  407. data/vendor/node_modules/traceur/node_modules/q-io/writer.js +0 -111
  408. data/vendor/node_modules/traceur/src/node/compile-single-file.js +0 -69
  409. data/vendor/node_modules/traceur/src/node/compiler.js +0 -116
  410. data/vendor/node_modules/traceur/src/node/inline-module.js +0 -149
@@ -1,377 +0,0 @@
1
- <html>
2
- <head>
3
- <title>Expresso - TDD Framework For Node</title>
4
- <style>
5
- body {
6
- font: 13px/1.4 "Helvetica", "Lucida Grande", Arial, sans-serif;
7
- text-align: center;
8
- }
9
- #ribbon {
10
- position: absolute;
11
- top: 0;
12
- right: 0;
13
- z-index: 10;
14
- }
15
- #wrapper {
16
- margin: 0 auto;
17
- padding: 50px 80px;
18
- width: 700px;
19
- text-align: left;
20
- }
21
- h1, h2, h3 {
22
- margin: 25px 0 15px 0;
23
- }
24
- h1 {
25
- font-size: 35px;
26
- }
27
- pre {
28
- margin: 0 5px;
29
- padding: 15px;
30
- border: 1px solid #eee;
31
- }
32
- a {
33
- color: #00aaff;
34
- }
35
- </style>
36
- </head>
37
- <body>
38
- <a href="http://github.com/visionmedia/expresso">
39
- <img alt="Fork me on GitHub" id="ribbon" src="http://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png" />
40
- </a>
41
- <div id="wrapper">
42
- <h1>Expresso</h1>
43
- <div class='mp'>
44
- <h2 id="NAME">NAME</h2>
45
- <p class="man-name">
46
- <code>index</code>
47
- </p>
48
- <p><a href="http://github.com/visionmedia/expresso">Expresso</a> is a JavaScript <a href="http://en.wikipedia.org/wiki/Test-driven_development">TDD</a> framework written for <a href="http://nodejs.org">nodejs</a>. Expresso is extremely fast, and is packed with features such as additional assertion methods, code coverage reporting, CI support, and more.</p>
49
-
50
- <h2 id="Features">Features</h2>
51
-
52
- <ul>
53
- <li>light-weight</li>
54
- <li>intuitive async support</li>
55
- <li>intuitive test runner executable</li>
56
- <li>test coverage support and reporting via <a href="http://github.com/visionmedia/node-jscoverage">node-jscoverage</a></li>
57
- <li>uses and extends the core <em>assert</em> module</li>
58
- <li><code>assert.eql()</code> alias of <code>assert.deepEqual()</code></li>
59
- <li><code>assert.response()</code> http response utility</li>
60
- <li><code>assert.includes()</code></li>
61
- <li><code>assert.isNull()</code></li>
62
- <li><code>assert.isUndefined()</code></li>
63
- <li><code>assert.isNotNull()</code></li>
64
- <li><code>assert.isDefined()</code></li>
65
- <li><code>assert.match()</code></li>
66
- <li><code>assert.length()</code></li>
67
- </ul>
68
-
69
-
70
- <h2 id="Installation">Installation</h2>
71
-
72
- <p>To install both expresso <em>and</em> node-jscoverage run
73
- the command below, which will first compile node-jscoverage:</p>
74
-
75
- <pre><code>$ make install
76
- </code></pre>
77
-
78
- <p>To install expresso alone without coverage reporting run:</p>
79
-
80
- <pre><code>$ make install-expresso
81
- </code></pre>
82
-
83
- <p>Install via npm:</p>
84
-
85
- <pre><code>$ npm install expresso
86
- </code></pre>
87
-
88
- <h2 id="Examples">Examples</h2>
89
-
90
- <p>To define tests we simply export several functions:</p>
91
-
92
- <pre><code>exports['test String#length'] = function(){
93
- assert.equal(6, 'foobar'.length);
94
- };
95
- </code></pre>
96
-
97
- <p>Alternatively for large numbers of tests you may want to
98
- export your own object containing the tests, however this
99
- is essentially the as above:</p>
100
-
101
- <pre><code>module.exports = {
102
- 'test String#length': function(){
103
- assert.equal(6, 'foobar'.length);
104
- }
105
- };
106
- </code></pre>
107
-
108
- <p>If you prefer not to use quoted keys:</p>
109
-
110
- <pre><code>exports.testsStringLength = function(){
111
- assert.equal(6, 'foobar'.length);
112
- };
113
- </code></pre>
114
-
115
- <p>The argument passed to each callback is <em>beforeExit</em>,
116
- which is typically used to assert that callbacks have been
117
- invoked.</p>
118
-
119
- <pre><code>exports.testAsync = function(beforeExit){
120
- var n = 0;
121
- setTimeout(function(){
122
- ++n;
123
- assert.ok(true);
124
- }, 200);
125
- setTimeout(function(){
126
- ++n;
127
- assert.ok(true);
128
- }, 200);
129
- beforeExit(function(){
130
- assert.equal(2, n, 'Ensure both timeouts are called');
131
- });
132
- };
133
- </code></pre>
134
-
135
- <h2 id="Assert-Utilities">Assert Utilities</h2>
136
-
137
- <h3 id="assert-isNull-val-msg-">assert.isNull(val[, msg])</h3>
138
-
139
- <p>Asserts that the given <em>val</em> is <em>null</em>.</p>
140
-
141
- <pre><code>assert.isNull(null);
142
- </code></pre>
143
-
144
- <h3 id="assert-isNotNull-val-msg-">assert.isNotNull(val[, msg])</h3>
145
-
146
- <p>Asserts that the given <em>val</em> is not <em>null</em>.</p>
147
-
148
- <pre><code>assert.isNotNull(undefined);
149
- assert.isNotNull(false);
150
- </code></pre>
151
-
152
- <h3 id="assert-isUndefined-val-msg-">assert.isUndefined(val[, msg])</h3>
153
-
154
- <p>Asserts that the given <em>val</em> is <em>undefined</em>.</p>
155
-
156
- <pre><code>assert.isUndefined(undefined);
157
- </code></pre>
158
-
159
- <h3 id="assert-isDefined-val-msg-">assert.isDefined(val[, msg])</h3>
160
-
161
- <p>Asserts that the given <em>val</em> is not <em>undefined</em>.</p>
162
-
163
- <pre><code>assert.isDefined(null);
164
- assert.isDefined(false);
165
- </code></pre>
166
-
167
- <h3 id="assert-match-str-regexp-msg-">assert.match(str, regexp[, msg])</h3>
168
-
169
- <p>Asserts that the given <em>str</em> matches <em>regexp</em>.</p>
170
-
171
- <pre><code>assert.match('foobar', /^foo(bar)?/);
172
- assert.match('foo', /^foo(bar)?/);
173
- </code></pre>
174
-
175
- <h3 id="assert-length-val-n-msg-">assert.length(val, n[, msg])</h3>
176
-
177
- <p>Assert that the given <em>val</em> has a length of <em>n</em>.</p>
178
-
179
- <pre><code>assert.length([1,2,3], 3);
180
- assert.length('foo', 3);
181
- </code></pre>
182
-
183
- <h3 id="assert-type-obj-type-msg-">assert.type(obj, type[, msg])</h3>
184
-
185
- <p>Assert that the given <em>obj</em> is typeof <em>type</em>.</p>
186
-
187
- <pre><code>assert.type(3, 'number');
188
- </code></pre>
189
-
190
- <h3 id="assert-eql-a-b-msg-">assert.eql(a, b[, msg])</h3>
191
-
192
- <p>Assert that object <em>b</em> is equal to object <em>a</em>. This is an
193
- alias for the core <em>assert.deepEqual()</em> method which does complex
194
- comparisons, opposed to <em>assert.equal()</em> which uses <em>==</em>.</p>
195
-
196
- <pre><code>assert.eql('foo', 'foo');
197
- assert.eql([1,2], [1,2]);
198
- assert.eql({ foo: 'bar' }, { foo: 'bar' });
199
- </code></pre>
200
-
201
- <h3 id="assert-includes-obj-val-msg-">assert.includes(obj, val[, msg])</h3>
202
-
203
- <p>Assert that <em>obj</em> is within <em>val</em>. This method supports <em>Array_s
204
- and </em>Strings_s.</p>
205
-
206
- <pre><code>assert.includes([1,2,3], 3);
207
- assert.includes('foobar', 'foo');
208
- assert.includes('foobar', 'bar');
209
- </code></pre>
210
-
211
- <h3 id="assert-response-server-req-res-fn-msg-fn-">assert.response(server, req, res|fn[, msg|fn])</h3>
212
-
213
- <p>Performs assertions on the given <em>server</em>, which should <em>not</em> call
214
- listen(), as this is handled internally by expresso and the server
215
- is killed after all responses have completed. This method works with
216
- any <em>http.Server</em> instance, so <em>Connect</em> and <em>Express</em> servers will work
217
- as well.</p>
218
-
219
- <p>The <em>req</em> object may contain:</p>
220
-
221
- <ul>
222
- <li><em>url</em> request url</li>
223
- <li><em>timeout</em> timeout in milliseconds</li>
224
- <li><em>method</em> HTTP method</li>
225
- <li><em>data</em> request body</li>
226
- <li><em>headers</em> headers object</li>
227
- </ul>
228
-
229
-
230
- <p>The <em>res</em> object may be a callback function which
231
- receives the response for assertions, or an object
232
- which is then used to perform several assertions
233
- on the response with the following properties:</p>
234
-
235
- <ul>
236
- <li><em>body</em> assert response body (regexp or string)</li>
237
- <li><em>status</em> assert response status code</li>
238
- <li><em>header</em> assert that all given headers match (unspecified are ignored, use a regexp or string)</li>
239
- </ul>
240
-
241
-
242
- <p>When providing <em>res</em> you may then also pass a callback function
243
- as the fourth argument for additional assertions.</p>
244
-
245
- <p>Below are some examples:</p>
246
-
247
- <pre><code>assert.response(server, {
248
- url: '/', timeout: 500
249
- }, {
250
- body: 'foobar'
251
- });
252
-
253
- assert.response(server, {
254
- url: '/',
255
- method: 'GET'
256
- },{
257
- body: '{"name":"tj"}',
258
- status: 200,
259
- headers: {
260
- 'Content-Type': 'application/json; charset=utf8',
261
- 'X-Foo': 'bar'
262
- }
263
- });
264
-
265
- assert.response(server, {
266
- url: '/foo',
267
- method: 'POST',
268
- data: 'bar baz'
269
- },{
270
- body: '/foo bar baz',
271
- status: 200
272
- }, 'Test POST');
273
-
274
- assert.response(server, {
275
- url: '/foo',
276
- method: 'POST',
277
- data: 'bar baz'
278
- },{
279
- body: '/foo bar baz',
280
- status: 200
281
- }, function(res){
282
- // All done, do some more tests if needed
283
- });
284
-
285
- assert.response(server, {
286
- url: '/'
287
- }, function(res){
288
- assert.ok(res.body.indexOf('tj') &gt;= 0, 'Test assert.response() callback');
289
- });
290
- </code></pre>
291
-
292
- <h2 id="expresso-1-">expresso(1)</h2>
293
-
294
- <p>To run a single test suite (file) run:</p>
295
-
296
- <pre><code>$ expresso test/a.test.js
297
- </code></pre>
298
-
299
- <p>To run several suites we may simply append another:</p>
300
-
301
- <pre><code>$ expresso test/a.test.js test/b.test.js
302
- </code></pre>
303
-
304
- <p>We can also pass a whitelist of tests to run within all suites:</p>
305
-
306
- <pre><code>$ expresso --only "foo()" --only "bar()"
307
- </code></pre>
308
-
309
- <p>Or several with one call:</p>
310
-
311
- <pre><code>$ expresso --only "foo(), bar()"
312
- </code></pre>
313
-
314
- <p>Globbing is of course possible as well:</p>
315
-
316
- <pre><code>$ expresso test/*
317
- </code></pre>
318
-
319
- <p>When expresso is called without any files, <em>test/*</em> is the default,
320
- so the following is equivalent to the command above:</p>
321
-
322
- <pre><code>$ expresso
323
- </code></pre>
324
-
325
- <p>If you wish to unshift a path to <code>require.paths</code> before
326
- running tests, you may use the <code>-I</code> or <code>--include</code> flag.</p>
327
-
328
- <pre><code>$ expresso --include lib test/*
329
- </code></pre>
330
-
331
- <p>The previous example is typically what I would recommend, since expresso
332
- supports test coverage via <a href="http://github.com/visionmedia/node-jscoverage">node-jscoverage</a> (bundled with expresso),
333
- so you will need to expose an instrumented version of you library.</p>
334
-
335
- <p>To instrument your library, simply run <a href="http://github.com/visionmedia/node-jscoverage">node-jscoverage</a>,
336
- passing the <em>src</em> and <em>dest</em> directories:</p>
337
-
338
- <pre><code>$ node-jscoverage lib lib-cov
339
- </code></pre>
340
-
341
- <p>Now we can run our tests again, using the <em>lib-cov</em> directory that has been
342
- instrumented with coverage statements:</p>
343
-
344
- <pre><code>$ expresso -I lib-cov test/*
345
- </code></pre>
346
-
347
- <p>The output will look similar to below, depending on your test coverage of course :)</p>
348
-
349
- <p><img src="http://dl.dropbox.com/u/6396913/cov.png" alt="node coverage" /></p>
350
-
351
- <p>To make this process easier expresso has the <em>-c</em> or <em>--cov</em> which essentially
352
- does the same as the two commands above. The following two commands will
353
- run the same tests, however one will auto-instrument, and unshift <em>lib-cov</em>,
354
- and the other will run tests normally:</p>
355
-
356
- <pre><code>$ expresso -I lib test/*
357
- $ expresso -I lib --cov test/*
358
- </code></pre>
359
-
360
- <p>Currently coverage is bound to the <em>lib</em> directory, however in the
361
- future <code>--cov</code> will most likely accept a path.</p>
362
-
363
- <h2 id="Async-Exports">Async Exports</h2>
364
-
365
- <p>Sometimes it is useful to postpone running of tests until a callback or event has fired, currently the <em>exports.foo = function(){};</em> syntax is supported for this:</p>
366
-
367
- <pre><code>setTimeout(function(){
368
- exports['test async exports'] = function(){
369
- assert.ok('wahoo');
370
- };
371
- }, 100);
372
- </code></pre>
373
-
374
- </div>
375
- </div>
376
- </body>
377
- </html>
@@ -1,290 +0,0 @@
1
-
2
- [Expresso](http://github.com/visionmedia/expresso) is a JavaScript [TDD](http://en.wikipedia.org/wiki/Test-driven_development) framework written for [nodejs](http://nodejs.org). Expresso is extremely fast, and is packed with features such as additional assertion methods, code coverage reporting, CI support, and more.
3
-
4
- ## Features
5
-
6
- - light-weight
7
- - intuitive async support
8
- - intuitive test runner executable
9
- - test coverage support and reporting via [node-jscoverage](http://github.com/visionmedia/node-jscoverage)
10
- - uses and extends the core _assert_ module
11
- - `assert.eql()` alias of `assert.deepEqual()`
12
- - `assert.response()` http response utility
13
- - `assert.includes()`
14
- - `assert.isNull()`
15
- - `assert.isUndefined()`
16
- - `assert.isNotNull()`
17
- - `assert.isDefined()`
18
- - `assert.match()`
19
- - `assert.length()`
20
-
21
- ## Installation
22
-
23
- To install both expresso _and_ node-jscoverage run
24
- the command below, which will first compile node-jscoverage:
25
-
26
- $ make install
27
-
28
- To install expresso alone without coverage reporting run:
29
-
30
- $ make install-expresso
31
-
32
- Install via npm:
33
-
34
- $ npm install expresso
35
-
36
- ## Examples
37
-
38
- To define tests we simply export several functions:
39
-
40
- exports['test String#length'] = function(){
41
- assert.equal(6, 'foobar'.length);
42
- };
43
-
44
- Alternatively for large numbers of tests you may want to
45
- export your own object containing the tests, however this
46
- is essentially the as above:
47
-
48
- module.exports = {
49
- 'test String#length': function(){
50
- assert.equal(6, 'foobar'.length);
51
- }
52
- };
53
-
54
- If you prefer not to use quoted keys:
55
-
56
- exports.testsStringLength = function(){
57
- assert.equal(6, 'foobar'.length);
58
- };
59
-
60
- The argument passed to each callback is _beforeExit_,
61
- which is typically used to assert that callbacks have been
62
- invoked.
63
-
64
- exports.testAsync = function(beforeExit){
65
- var n = 0;
66
- setTimeout(function(){
67
- ++n;
68
- assert.ok(true);
69
- }, 200);
70
- setTimeout(function(){
71
- ++n;
72
- assert.ok(true);
73
- }, 200);
74
- beforeExit(function(){
75
- assert.equal(2, n, 'Ensure both timeouts are called');
76
- });
77
- };
78
-
79
- ## Assert Utilities
80
-
81
- ### assert.isNull(val[, msg])
82
-
83
- Asserts that the given _val_ is _null_.
84
-
85
- assert.isNull(null);
86
-
87
- ### assert.isNotNull(val[, msg])
88
-
89
- Asserts that the given _val_ is not _null_.
90
-
91
- assert.isNotNull(undefined);
92
- assert.isNotNull(false);
93
-
94
- ### assert.isUndefined(val[, msg])
95
-
96
- Asserts that the given _val_ is _undefined_.
97
-
98
- assert.isUndefined(undefined);
99
-
100
- ### assert.isDefined(val[, msg])
101
-
102
- Asserts that the given _val_ is not _undefined_.
103
-
104
- assert.isDefined(null);
105
- assert.isDefined(false);
106
-
107
- ### assert.match(str, regexp[, msg])
108
-
109
- Asserts that the given _str_ matches _regexp_.
110
-
111
- assert.match('foobar', /^foo(bar)?/);
112
- assert.match('foo', /^foo(bar)?/);
113
-
114
- ### assert.length(val, n[, msg])
115
-
116
- Assert that the given _val_ has a length of _n_.
117
-
118
- assert.length([1,2,3], 3);
119
- assert.length('foo', 3);
120
-
121
- ### assert.type(obj, type[, msg])
122
-
123
- Assert that the given _obj_ is typeof _type_.
124
-
125
- assert.type(3, 'number');
126
-
127
- ### assert.eql(a, b[, msg])
128
-
129
- Assert that object _b_ is equal to object _a_. This is an
130
- alias for the core _assert.deepEqual()_ method which does complex
131
- comparisons, opposed to _assert.equal()_ which uses _==_.
132
-
133
- assert.eql('foo', 'foo');
134
- assert.eql([1,2], [1,2]);
135
- assert.eql({ foo: 'bar' }, { foo: 'bar' });
136
-
137
- ### assert.includes(obj, val[, msg])
138
-
139
- Assert that _obj_ is within _val_. This method supports _Array_s
140
- and _Strings_s.
141
-
142
- assert.includes([1,2,3], 3);
143
- assert.includes('foobar', 'foo');
144
- assert.includes('foobar', 'bar');
145
-
146
- ### assert.response(server, req, res|fn[, msg|fn])
147
-
148
- Performs assertions on the given _server_, which should _not_ call
149
- listen(), as this is handled internally by expresso and the server
150
- is killed after all responses have completed. This method works with
151
- any _http.Server_ instance, so _Connect_ and _Express_ servers will work
152
- as well.
153
-
154
- The _req_ object may contain:
155
-
156
- - _url_ request url
157
- - _timeout_ timeout in milliseconds
158
- - _method_ HTTP method
159
- - _data_ request body
160
- - _headers_ headers object
161
-
162
- The _res_ object may be a callback function which
163
- receives the response for assertions, or an object
164
- which is then used to perform several assertions
165
- on the response with the following properties:
166
-
167
- - _body_ assert response body (regexp or string)
168
- - _status_ assert response status code
169
- - _header_ assert that all given headers match (unspecified are ignored, use a regexp or string)
170
-
171
- When providing _res_ you may then also pass a callback function
172
- as the fourth argument for additional assertions.
173
-
174
- Below are some examples:
175
-
176
- assert.response(server, {
177
- url: '/', timeout: 500
178
- }, {
179
- body: 'foobar'
180
- });
181
-
182
- assert.response(server, {
183
- url: '/',
184
- method: 'GET'
185
- },{
186
- body: '{"name":"tj"}',
187
- status: 200,
188
- headers: {
189
- 'Content-Type': 'application/json; charset=utf8',
190
- 'X-Foo': 'bar'
191
- }
192
- });
193
-
194
- assert.response(server, {
195
- url: '/foo',
196
- method: 'POST',
197
- data: 'bar baz'
198
- },{
199
- body: '/foo bar baz',
200
- status: 200
201
- }, 'Test POST');
202
-
203
- assert.response(server, {
204
- url: '/foo',
205
- method: 'POST',
206
- data: 'bar baz'
207
- },{
208
- body: '/foo bar baz',
209
- status: 200
210
- }, function(res){
211
- // All done, do some more tests if needed
212
- });
213
-
214
- assert.response(server, {
215
- url: '/'
216
- }, function(res){
217
- assert.ok(res.body.indexOf('tj') >= 0, 'Test assert.response() callback');
218
- });
219
-
220
-
221
- ## expresso(1)
222
-
223
- To run a single test suite (file) run:
224
-
225
- $ expresso test/a.test.js
226
-
227
- To run several suites we may simply append another:
228
-
229
- $ expresso test/a.test.js test/b.test.js
230
-
231
- We can also pass a whitelist of tests to run within all suites:
232
-
233
- $ expresso --only "foo()" --only "bar()"
234
-
235
- Or several with one call:
236
-
237
- $ expresso --only "foo(), bar()"
238
-
239
- Globbing is of course possible as well:
240
-
241
- $ expresso test/*
242
-
243
- When expresso is called without any files, _test/*_ is the default,
244
- so the following is equivalent to the command above:
245
-
246
- $ expresso
247
-
248
- If you wish to unshift a path to `require.paths` before
249
- running tests, you may use the `-I` or `--include` flag.
250
-
251
- $ expresso --include lib test/*
252
-
253
- The previous example is typically what I would recommend, since expresso
254
- supports test coverage via [node-jscoverage](http://github.com/visionmedia/node-jscoverage) (bundled with expresso),
255
- so you will need to expose an instrumented version of you library.
256
-
257
- To instrument your library, simply run [node-jscoverage](http://github.com/visionmedia/node-jscoverage),
258
- passing the _src_ and _dest_ directories:
259
-
260
- $ node-jscoverage lib lib-cov
261
-
262
- Now we can run our tests again, using the _lib-cov_ directory that has been
263
- instrumented with coverage statements:
264
-
265
- $ expresso -I lib-cov test/*
266
-
267
- The output will look similar to below, depending on your test coverage of course :)
268
-
269
- ![node coverage](http://dl.dropbox.com/u/6396913/cov.png)
270
-
271
- To make this process easier expresso has the _-c_ or _--cov_ which essentially
272
- does the same as the two commands above. The following two commands will
273
- run the same tests, however one will auto-instrument, and unshift _lib-cov_,
274
- and the other will run tests normally:
275
-
276
- $ expresso -I lib test/*
277
- $ expresso -I lib --cov test/*
278
-
279
- Currently coverage is bound to the _lib_ directory, however in the
280
- future `--cov` will most likely accept a path.
281
-
282
- ## Async Exports
283
-
284
- Sometimes it is useful to postpone running of tests until a callback or event has fired, currently the _exports.foo = function(){};_ syntax is supported for this:
285
-
286
- setTimeout(function(){
287
- exports['test async exports'] = function(){
288
- assert.ok('wahoo');
289
- };
290
- }, 100);