snowball 0.1.21 → 0.1.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (589) hide show
  1. checksums.yaml +5 -13
  2. data/.gitignore +1 -3
  3. data/{lib/snowball → bin}/roll.js +0 -0
  4. data/lib/snowball/roller.rb +1 -1
  5. data/lib/snowball/version.rb +1 -1
  6. data/node_modules/.bin/browserify +161 -0
  7. data/node_modules/.bin/cake +7 -0
  8. data/node_modules/.bin/coffee +7 -0
  9. data/node_modules/.bin/jade +168 -0
  10. data/node_modules/browserify/.travis.yml +4 -0
  11. data/node_modules/browserify/LICENSE +63 -0
  12. data/node_modules/browserify/README.markdown +172 -0
  13. data/node_modules/browserify/bin/cmd.js +161 -0
  14. data/node_modules/browserify/builtins/__browserify_process.js +55 -0
  15. data/node_modules/browserify/builtins/assert.js +314 -0
  16. data/node_modules/browserify/builtins/child_process.js +2 -0
  17. data/node_modules/browserify/builtins/events.js +178 -0
  18. data/node_modules/browserify/builtins/fs.js +1 -0
  19. data/node_modules/browserify/builtins/https.js +1 -0
  20. data/node_modules/browserify/builtins/net.js +1 -0
  21. data/node_modules/browserify/builtins/path.js +175 -0
  22. data/node_modules/browserify/builtins/querystring.js +250 -0
  23. data/node_modules/browserify/builtins/stream.js +119 -0
  24. data/node_modules/browserify/builtins/string_decoder.js +161 -0
  25. data/node_modules/browserify/builtins/sys.js +1 -0
  26. data/node_modules/browserify/builtins/timers.js +39 -0
  27. data/node_modules/browserify/builtins/tls.js +1 -0
  28. data/node_modules/browserify/builtins/tty.js +2 -0
  29. data/node_modules/browserify/builtins/url.js +604 -0
  30. data/node_modules/browserify/builtins/util.js +351 -0
  31. data/node_modules/browserify/example/debug/browserify.js +219 -0
  32. data/node_modules/browserify/example/debug/build.sh +3 -0
  33. data/node_modules/browserify/example/debug/index.html +7 -0
  34. data/node_modules/browserify/example/debug/js/entry.js +2 -0
  35. data/node_modules/browserify/example/debug/js/thrower.js +3 -0
  36. data/node_modules/browserify/example/debug/server.js +9 -0
  37. data/node_modules/browserify/example/simple-build/browserify.js +368 -0
  38. data/node_modules/browserify/example/simple-build/build.sh +3 -0
  39. data/node_modules/browserify/example/simple-build/index.html +9 -0
  40. data/node_modules/browserify/example/simple-build/js/bar.js +3 -0
  41. data/node_modules/browserify/example/simple-build/js/entry.js +5 -0
  42. data/node_modules/browserify/example/simple-build/js/foo.js +5 -0
  43. data/node_modules/browserify/example/simple-build/server.js +9 -0
  44. data/node_modules/browserify/example/test/b.js +5 -0
  45. data/node_modules/browserify/example/test/bar.js +3 -0
  46. data/node_modules/browserify/example/test/foo.js +3 -0
  47. data/node_modules/browserify/example/test/m.js +3 -0
  48. data/node_modules/browserify/example/test/n.js +3 -0
  49. data/node_modules/browserify/example/using-http/bundle.js +813 -0
  50. data/node_modules/browserify/example/using-http/entry.js +25 -0
  51. data/node_modules/browserify/example/using-http/index.html +9 -0
  52. data/node_modules/browserify/example/using-http/server.js +28 -0
  53. data/node_modules/browserify/index.js +202 -0
  54. data/node_modules/browserify/lib/watch.js +75 -0
  55. data/node_modules/browserify/lib/wrap.js +580 -0
  56. data/node_modules/browserify/lib/wrappers.js +10 -0
  57. data/node_modules/browserify/node_modules/buffer-browserify/.npmignore +1 -0
  58. data/node_modules/browserify/node_modules/buffer-browserify/README.md +11 -0
  59. data/node_modules/browserify/node_modules/buffer-browserify/buffer_ieee754.js +84 -0
  60. data/node_modules/browserify/node_modules/buffer-browserify/index.js +1317 -0
  61. data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/README.md +14 -0
  62. data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/lib/b64.js +84 -0
  63. data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/package.json +30 -0
  64. data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/test/runner.js +50 -0
  65. data/node_modules/browserify/node_modules/buffer-browserify/package.json +46 -0
  66. data/node_modules/browserify/node_modules/buffer-browserify/test/buffer.js +218 -0
  67. data/node_modules/browserify/node_modules/commondir/README.markdown +45 -0
  68. data/node_modules/browserify/node_modules/commondir/example/base.js +3 -0
  69. data/node_modules/browserify/node_modules/commondir/example/dir.js +3 -0
  70. data/node_modules/browserify/node_modules/commondir/index.js +29 -0
  71. data/node_modules/browserify/node_modules/commondir/package.json +47 -0
  72. data/node_modules/browserify/node_modules/commondir/test/dirs.js +66 -0
  73. data/node_modules/browserify/node_modules/crypto-browserify/.travis.yml +4 -0
  74. data/node_modules/browserify/node_modules/crypto-browserify/example/bundle.js +637 -0
  75. data/node_modules/browserify/node_modules/crypto-browserify/example/index.html +12 -0
  76. data/node_modules/browserify/node_modules/crypto-browserify/example/test.js +4 -0
  77. data/node_modules/browserify/node_modules/crypto-browserify/index.js +74 -0
  78. data/node_modules/browserify/node_modules/crypto-browserify/md5.js +384 -0
  79. data/node_modules/browserify/node_modules/crypto-browserify/package.json +33 -0
  80. data/node_modules/browserify/node_modules/crypto-browserify/readme.markdown +20 -0
  81. data/node_modules/browserify/node_modules/crypto-browserify/rng.js +37 -0
  82. data/node_modules/browserify/node_modules/crypto-browserify/sha.js +210 -0
  83. data/node_modules/browserify/node_modules/crypto-browserify/test/simple.js +35 -0
  84. data/node_modules/browserify/node_modules/deputy/.travis.yml +4 -0
  85. data/node_modules/browserify/node_modules/deputy/README.markdown +55 -0
  86. data/node_modules/browserify/node_modules/deputy/example/cache.js +5 -0
  87. data/node_modules/browserify/node_modules/deputy/index.js +46 -0
  88. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/.npmignore +2 -0
  89. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/.travis.yml +5 -0
  90. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/LICENSE +21 -0
  91. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/examples/pow.js +6 -0
  92. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/index.js +82 -0
  93. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/package.json +34 -0
  94. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/readme.markdown +63 -0
  95. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/chmod.js +38 -0
  96. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/clobber.js +37 -0
  97. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/mkdirp.js +28 -0
  98. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/perm.js +32 -0
  99. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/perm_sync.js +39 -0
  100. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/race.js +41 -0
  101. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/rel.js +32 -0
  102. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/return.js +25 -0
  103. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/return_sync.js +24 -0
  104. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/root.js +18 -0
  105. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/sync.js +32 -0
  106. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/umask.js +28 -0
  107. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/umask_sync.js +32 -0
  108. data/node_modules/browserify/node_modules/deputy/package.json +47 -0
  109. data/node_modules/browserify/node_modules/deputy/test/cache.js +58 -0
  110. data/node_modules/browserify/node_modules/detective/.travis.yml +4 -0
  111. data/node_modules/browserify/node_modules/detective/README.markdown +66 -0
  112. data/node_modules/browserify/node_modules/detective/example/strings.js +6 -0
  113. data/node_modules/browserify/node_modules/detective/example/strings_src.js +3 -0
  114. data/node_modules/browserify/node_modules/detective/index.js +60 -0
  115. data/node_modules/browserify/node_modules/detective/node_modules/.bin/esparse +42 -0
  116. data/node_modules/browserify/node_modules/detective/node_modules/esprima/.travis.yml +5 -0
  117. data/node_modules/browserify/node_modules/detective/node_modules/esprima/LICENSE.BSD +19 -0
  118. data/node_modules/browserify/node_modules/detective/node_modules/esprima/README.md +74 -0
  119. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/codemirror/codemirror.css +112 -0
  120. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/codemirror/codemirror.js +2972 -0
  121. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/codemirror/javascript.js +360 -0
  122. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/json2.js +487 -0
  123. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/style.css +164 -0
  124. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/treeview-min.js +12 -0
  125. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/treeview-sprite.gif +0 -0
  126. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/treeview.css +7 -0
  127. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/yahoo-dom-event.js +14 -0
  128. data/node_modules/browserify/node_modules/detective/node_modules/esprima/bin/esparse.js +42 -0
  129. data/node_modules/browserify/node_modules/detective/node_modules/esprima/changes +92 -0
  130. data/node_modules/browserify/node_modules/detective/node_modules/esprima/cm +696 -0
  131. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/checkenv.js +42 -0
  132. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/collector.html +82 -0
  133. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/collector.js +170 -0
  134. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/functiontrace.html +106 -0
  135. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/functiontrace.js +123 -0
  136. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/parse.css +82 -0
  137. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/parse.html +352 -0
  138. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/precedence.html +225 -0
  139. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/rewrite.html +120 -0
  140. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/rewrite.js +71 -0
  141. data/node_modules/browserify/node_modules/detective/node_modules/esprima/esprima.js +3577 -0
  142. data/node_modules/browserify/node_modules/detective/node_modules/esprima/index.html +103 -0
  143. data/node_modules/browserify/node_modules/detective/node_modules/esprima/package.json +42 -0
  144. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/Tokenizer.js +646 -0
  145. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/XMLHttpRequest.js +509 -0
  146. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/ZeParser.js +2185 -0
  147. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/backbone-0.5.3.js +1158 -0
  148. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/benchmark.js +3261 -0
  149. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/escodegen.js +906 -0
  150. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/esmorph.js +240 -0
  151. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/ext-core-3.0.0.js +6579 -0
  152. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/ext-core-3.1.0.js +10255 -0
  153. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jquery-1.6.4.js +9046 -0
  154. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jquery-1.7.1.js +9266 -0
  155. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jquery.mobile-1.0.js +6951 -0
  156. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jsdefs.js +731 -0
  157. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jslex.js +588 -0
  158. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jsparse.js +1921 -0
  159. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/mootools-1.3.2.js +5952 -0
  160. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/mootools-1.4.1.js +6297 -0
  161. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/parse-js.js +1342 -0
  162. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/platform.js +878 -0
  163. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/prototype-1.6.1.js +4874 -0
  164. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/prototype-1.7.0.0.js +6082 -0
  165. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/underscore-1.2.3.js +981 -0
  166. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/benchmarks.html +58 -0
  167. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/benchmarks.js +328 -0
  168. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compare.html +140 -0
  169. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compare.js +270 -0
  170. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compat.html +40 -0
  171. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compat.js +239 -0
  172. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/coverage.footer.html +3 -0
  173. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/coverage.header.html +37 -0
  174. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/coverage.html +3617 -0
  175. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/index.html +36 -0
  176. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/reflect.js +403 -0
  177. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/run.js +66 -0
  178. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/test.js +16659 -0
  179. data/node_modules/browserify/node_modules/detective/node_modules/esprima/tools/generate-unicode-regex.py +164 -0
  180. data/node_modules/browserify/node_modules/detective/node_modules/esprima/tools/update-coverage.sh +28 -0
  181. data/node_modules/browserify/node_modules/detective/package.json +47 -0
  182. data/node_modules/browserify/node_modules/detective/test/both.js +11 -0
  183. data/node_modules/browserify/node_modules/detective/test/chained.js +9 -0
  184. data/node_modules/browserify/node_modules/detective/test/files/both.js +4 -0
  185. data/node_modules/browserify/node_modules/detective/test/files/chained.js +5 -0
  186. data/node_modules/browserify/node_modules/detective/test/files/nested.js +22 -0
  187. data/node_modules/browserify/node_modules/detective/test/files/skip.js +7 -0
  188. data/node_modules/browserify/node_modules/detective/test/files/strings.js +13 -0
  189. data/node_modules/browserify/node_modules/detective/test/files/word.js +13 -0
  190. data/node_modules/browserify/node_modules/detective/test/nested.js +9 -0
  191. data/node_modules/browserify/node_modules/detective/test/skip.js +9 -0
  192. data/node_modules/browserify/node_modules/detective/test/strings.js +9 -0
  193. data/node_modules/browserify/node_modules/detective/test/word.js +12 -0
  194. data/node_modules/browserify/node_modules/http-browserify/.npmignore +1 -0
  195. data/node_modules/browserify/node_modules/http-browserify/example/get/index.html +9 -0
  196. data/node_modules/browserify/node_modules/http-browserify/example/get/main.js +14 -0
  197. data/node_modules/browserify/node_modules/http-browserify/example/get/server.js +12 -0
  198. data/node_modules/browserify/node_modules/http-browserify/example/headers/index.html +9 -0
  199. data/node_modules/browserify/node_modules/http-browserify/example/headers/main.js +18 -0
  200. data/node_modules/browserify/node_modules/http-browserify/example/headers/server.js +15 -0
  201. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/data.json +139 -0
  202. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/index.html +9 -0
  203. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/main.js +13 -0
  204. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/.npmignore +2 -0
  205. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/.travis.yml +4 -0
  206. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/LICENSE.APACHE2 +15 -0
  207. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/LICENSE.MIT +24 -0
  208. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/examples/all_docs.js +13 -0
  209. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/index.js +189 -0
  210. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/LICENSE +24 -0
  211. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/README.markdown +11 -0
  212. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/bench.js +26 -0
  213. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/examples/twitterfeed.js +30 -0
  214. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/jsonparse.js +379 -0
  215. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/package.json +36 -0
  216. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic.json +167 -0
  217. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic2.json +180 -0
  218. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/test/primitives.js +54 -0
  219. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/test/utf8.js +38 -0
  220. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/package.json +40 -0
  221. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/readme.markdown +145 -0
  222. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/bool.js +41 -0
  223. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/destroy_missing.js +22 -0
  224. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/empty.js +44 -0
  225. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/fixtures/all_npm.json +4030 -0
  226. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/fn.js +39 -0
  227. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/memory.js +69 -0
  228. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/multiple_objects.js +42 -0
  229. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/multiple_objects_error.js +35 -0
  230. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/parsejson.js +28 -0
  231. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/stringify.js +41 -0
  232. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/stringify_object.js +47 -0
  233. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/test.js +35 -0
  234. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/test2.js +29 -0
  235. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/two-ways.js +41 -0
  236. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/server.js +10 -0
  237. data/node_modules/browserify/node_modules/http-browserify/example/post/index.html +9 -0
  238. data/node_modules/browserify/node_modules/http-browserify/example/post/main.js +16 -0
  239. data/node_modules/browserify/node_modules/http-browserify/example/post/server.js +19 -0
  240. data/node_modules/browserify/node_modules/http-browserify/example/streaming/index.html +9 -0
  241. data/node_modules/browserify/node_modules/http-browserify/example/streaming/main.js +16 -0
  242. data/node_modules/browserify/node_modules/http-browserify/example/streaming/server.js +21 -0
  243. data/node_modules/browserify/node_modules/http-browserify/index.js +59 -0
  244. data/node_modules/browserify/node_modules/http-browserify/lib/request.js +128 -0
  245. data/node_modules/browserify/node_modules/http-browserify/lib/response.js +119 -0
  246. data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/index.js +48 -0
  247. data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/package.json +30 -0
  248. data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/readme.md +31 -0
  249. data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/test.js +34 -0
  250. data/node_modules/browserify/node_modules/http-browserify/package.json +46 -0
  251. data/node_modules/browserify/node_modules/http-browserify/readme.markdown +128 -0
  252. data/node_modules/browserify/node_modules/nub/README.markdown +23 -0
  253. data/node_modules/browserify/node_modules/nub/index.js +64 -0
  254. data/node_modules/browserify/node_modules/nub/package.json +46 -0
  255. data/node_modules/browserify/node_modules/nub/test/by.js +51 -0
  256. data/node_modules/browserify/node_modules/nub/test/nub.js +46 -0
  257. data/node_modules/browserify/node_modules/resolve/.travis.yml +4 -0
  258. data/node_modules/browserify/node_modules/resolve/LICENSE +18 -0
  259. data/node_modules/browserify/node_modules/resolve/README.markdown +47 -0
  260. data/node_modules/browserify/node_modules/resolve/index.js +106 -0
  261. data/node_modules/browserify/node_modules/resolve/package.json +45 -0
  262. data/node_modules/browserify/node_modules/resolve/test/core.js +12 -0
  263. data/node_modules/browserify/node_modules/resolve/test/filter.js +15 -0
  264. data/node_modules/browserify/node_modules/resolve/test/mock.js +64 -0
  265. data/node_modules/browserify/node_modules/resolve/test/resolver.js +157 -0
  266. data/node_modules/browserify/node_modules/resolve/test/resolver/bar/node_modules/foo/index.js +1 -0
  267. data/node_modules/browserify/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  268. data/node_modules/browserify/node_modules/resolve/test/resolver/baz/package.json +3 -0
  269. data/node_modules/browserify/node_modules/resolve/test/resolver/baz/quux.js +1 -0
  270. data/node_modules/browserify/node_modules/resolve/test/resolver/biz/node_modules/grux/index.js +1 -0
  271. data/node_modules/browserify/node_modules/resolve/test/resolver/biz/node_modules/tiv/index.js +1 -0
  272. data/node_modules/browserify/node_modules/resolve/test/resolver/cup.coffee +1 -0
  273. data/node_modules/browserify/node_modules/resolve/test/resolver/foo.js +1 -0
  274. data/node_modules/browserify/node_modules/resolve/test/resolver/mug.coffee +0 -0
  275. data/node_modules/browserify/node_modules/resolve/test/resolver/mug.js +0 -0
  276. data/node_modules/browserify/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  277. data/node_modules/browserify/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  278. data/node_modules/browserify/node_modules/syntax-error/.travis.yml +4 -0
  279. data/node_modules/browserify/node_modules/syntax-error/LICENSE +18 -0
  280. data/node_modules/browserify/node_modules/syntax-error/example/check.js +12 -0
  281. data/node_modules/browserify/node_modules/syntax-error/example/src.js +9 -0
  282. data/node_modules/browserify/node_modules/syntax-error/index.js +54 -0
  283. data/node_modules/browserify/node_modules/syntax-error/node_modules/.bin/esparse +42 -0
  284. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/.travis.yml +5 -0
  285. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/LICENSE.BSD +19 -0
  286. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/README.md +74 -0
  287. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/codemirror/codemirror.css +112 -0
  288. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/codemirror/codemirror.js +2972 -0
  289. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/codemirror/javascript.js +360 -0
  290. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/json2.js +487 -0
  291. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/style.css +164 -0
  292. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/treeview-min.js +12 -0
  293. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/treeview-sprite.gif +0 -0
  294. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/treeview.css +7 -0
  295. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/yahoo-dom-event.js +14 -0
  296. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/bin/esparse.js +42 -0
  297. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/changes +92 -0
  298. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/cm +696 -0
  299. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/checkenv.js +42 -0
  300. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/collector.html +82 -0
  301. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/collector.js +170 -0
  302. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/functiontrace.html +106 -0
  303. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/functiontrace.js +123 -0
  304. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/parse.css +82 -0
  305. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/parse.html +352 -0
  306. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/precedence.html +225 -0
  307. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/rewrite.html +120 -0
  308. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/rewrite.js +71 -0
  309. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/esprima.js +3577 -0
  310. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/index.html +103 -0
  311. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/package.json +42 -0
  312. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/Tokenizer.js +646 -0
  313. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/XMLHttpRequest.js +509 -0
  314. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/ZeParser.js +2185 -0
  315. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/backbone-0.5.3.js +1158 -0
  316. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/benchmark.js +3261 -0
  317. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/escodegen.js +906 -0
  318. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/esmorph.js +240 -0
  319. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/ext-core-3.0.0.js +6579 -0
  320. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/ext-core-3.1.0.js +10255 -0
  321. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery-1.6.4.js +9046 -0
  322. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery-1.7.1.js +9266 -0
  323. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery.mobile-1.0.js +6951 -0
  324. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jsdefs.js +731 -0
  325. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jslex.js +588 -0
  326. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jsparse.js +1921 -0
  327. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/mootools-1.3.2.js +5952 -0
  328. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/mootools-1.4.1.js +6297 -0
  329. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/parse-js.js +1342 -0
  330. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/platform.js +878 -0
  331. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/prototype-1.6.1.js +4874 -0
  332. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/prototype-1.7.0.0.js +6082 -0
  333. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/underscore-1.2.3.js +981 -0
  334. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/benchmarks.html +58 -0
  335. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/benchmarks.js +328 -0
  336. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compare.html +140 -0
  337. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compare.js +270 -0
  338. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compat.html +40 -0
  339. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compat.js +239 -0
  340. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/coverage.footer.html +3 -0
  341. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/coverage.header.html +37 -0
  342. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/coverage.html +3617 -0
  343. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/index.html +36 -0
  344. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/reflect.js +403 -0
  345. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/run.js +66 -0
  346. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/test.js +16659 -0
  347. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/tools/generate-unicode-regex.py +164 -0
  348. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/tools/update-coverage.sh +28 -0
  349. data/node_modules/browserify/node_modules/syntax-error/package.json +49 -0
  350. data/node_modules/browserify/node_modules/syntax-error/readme.markdown +87 -0
  351. data/node_modules/browserify/node_modules/syntax-error/test/check.js +17 -0
  352. data/node_modules/browserify/node_modules/syntax-error/test/sources/check.js +9 -0
  353. data/node_modules/browserify/node_modules/vm-browserify/README.markdown +103 -0
  354. data/node_modules/browserify/node_modules/vm-browserify/example/run/bundle.js +473 -0
  355. data/node_modules/browserify/node_modules/vm-browserify/example/run/entry.js +6 -0
  356. data/node_modules/browserify/node_modules/vm-browserify/example/run/index.html +9 -0
  357. data/node_modules/browserify/node_modules/vm-browserify/example/run/server.js +6 -0
  358. data/node_modules/browserify/node_modules/vm-browserify/index.js +85 -0
  359. data/node_modules/browserify/node_modules/vm-browserify/package.json +43 -0
  360. data/node_modules/browserify/node_modules/vm-browserify/testling/run.js +22 -0
  361. data/node_modules/browserify/node_modules/vm-browserify/testling/test.sh +11 -0
  362. data/node_modules/browserify/package.json +78 -0
  363. data/node_modules/browserify/test/alias.js +58 -0
  364. data/node_modules/browserify/test/backbone.js +21 -0
  365. data/node_modules/browserify/test/bin.js +39 -0
  366. data/node_modules/browserify/test/buffer.js +99 -0
  367. data/node_modules/browserify/test/bundle.js +32 -0
  368. data/node_modules/browserify/test/cache.js +28 -0
  369. data/node_modules/browserify/test/coffee.js +39 -0
  370. data/node_modules/browserify/test/coffee/bar.js +1 -0
  371. data/node_modules/browserify/test/coffee/baz.coffee +1 -0
  372. data/node_modules/browserify/test/coffee/entry.coffee +1 -0
  373. data/node_modules/browserify/test/coffee/foo.coffee +1 -0
  374. data/node_modules/browserify/test/coffee/index.coffee +5 -0
  375. data/node_modules/browserify/test/coffee/nested/nested.coffee +2 -0
  376. data/node_modules/browserify/test/comment.js +17 -0
  377. data/node_modules/browserify/test/comment/main.js +2 -0
  378. data/node_modules/browserify/test/crypto.js +37 -0
  379. data/node_modules/browserify/test/dnode.js +27 -0
  380. data/node_modules/browserify/test/dollar.js +19 -0
  381. data/node_modules/browserify/test/dollar/dollar/index.js +7 -0
  382. data/node_modules/browserify/test/entry.js +36 -0
  383. data/node_modules/browserify/test/entry/main.js +1 -0
  384. data/node_modules/browserify/test/entry/one.js +1 -0
  385. data/node_modules/browserify/test/entry/two.js +1 -0
  386. data/node_modules/browserify/test/error_code.js +24 -0
  387. data/node_modules/browserify/test/error_code/src.js +2 -0
  388. data/node_modules/browserify/test/export.js +52 -0
  389. data/node_modules/browserify/test/export/entry.js +1 -0
  390. data/node_modules/browserify/test/field.js +64 -0
  391. data/node_modules/browserify/test/field/miss.js +1 -0
  392. data/node_modules/browserify/test/field/node_modules/z-miss/browser.js +1 -0
  393. data/node_modules/browserify/test/field/node_modules/z-miss/main.js +1 -0
  394. data/node_modules/browserify/test/field/node_modules/z-miss/package.json +4 -0
  395. data/node_modules/browserify/test/field/node_modules/z-object/browser.js +1 -0
  396. data/node_modules/browserify/test/field/node_modules/z-object/main.js +1 -0
  397. data/node_modules/browserify/test/field/node_modules/z-object/package.json +6 -0
  398. data/node_modules/browserify/test/field/node_modules/z-string/browser.js +1 -0
  399. data/node_modules/browserify/test/field/node_modules/z-string/main.js +1 -0
  400. data/node_modules/browserify/test/field/node_modules/z-string/package.json +4 -0
  401. data/node_modules/browserify/test/field/node_modules/z-sub/browser/a.js +1 -0
  402. data/node_modules/browserify/test/field/node_modules/z-sub/browser/b.js +1 -0
  403. data/node_modules/browserify/test/field/node_modules/z-sub/main.js +1 -0
  404. data/node_modules/browserify/test/field/node_modules/z-sub/package.json +4 -0
  405. data/node_modules/browserify/test/field/object.js +1 -0
  406. data/node_modules/browserify/test/field/string.js +1 -0
  407. data/node_modules/browserify/test/field/sub.js +1 -0
  408. data/node_modules/browserify/test/global.js +19 -0
  409. data/node_modules/browserify/test/global/main.js +2 -0
  410. data/node_modules/browserify/test/jade.js +35 -0
  411. data/node_modules/browserify/test/json.js +17 -0
  412. data/node_modules/browserify/test/json/beep.json +4 -0
  413. data/node_modules/browserify/test/json/main.js +1 -0
  414. data/node_modules/browserify/test/maxlisteners.js +8 -0
  415. data/node_modules/browserify/test/module.js +22 -0
  416. data/node_modules/browserify/test/multi_entry.js +20 -0
  417. data/node_modules/browserify/test/multi_entry/a.js +2 -0
  418. data/node_modules/browserify/test/multi_entry/b.js +2 -0
  419. data/node_modules/browserify/test/multi_entry/c.js +3 -0
  420. data/node_modules/browserify/test/multi_ignore.js +23 -0
  421. data/node_modules/browserify/test/node_modules/beep/index.js +1 -0
  422. data/node_modules/browserify/test/require_cache.js +18 -0
  423. data/node_modules/browserify/test/retarget.js +27 -0
  424. data/node_modules/browserify/test/seq.js +47 -0
  425. data/node_modules/browserify/test/subdep.js +26 -0
  426. data/node_modules/browserify/test/subdep/index.js +1 -0
  427. data/node_modules/browserify/test/subdep/package.json +6 -0
  428. data/node_modules/browserify/test/util.js +48 -0
  429. data/node_modules/browserify/test/watch.js +91 -0
  430. data/node_modules/browserify/test/watch/a.js +1 -0
  431. data/node_modules/browserify/test/wrap.js +43 -0
  432. data/node_modules/browserify/test/wrap/a.js +2 -0
  433. data/node_modules/browserify/test/wrap/c.js +1 -0
  434. data/node_modules/browserify/test/wrap/node_modules/b/main.js +1 -0
  435. data/node_modules/browserify/test/wrap/node_modules/b/package.json +3 -0
  436. data/node_modules/browserify/test/wrap/node_modules/skipmetoo/index.js +1 -0
  437. data/node_modules/browserify/test/wrap/skipme.js +1 -0
  438. data/node_modules/browserify/test/wrap/x.js +0 -0
  439. data/node_modules/browserify/testling/README.markdown +29 -0
  440. data/node_modules/browserify/testling/test.sh +37 -0
  441. data/node_modules/browserify/testling/tick.js +9 -0
  442. data/node_modules/browserify/testling/timers.js +50 -0
  443. data/node_modules/browserify/testling/util.js +24 -0
  444. data/node_modules/browserify/v2.markdown +41 -0
  445. data/node_modules/browserify/wrappers/alias.js +1 -0
  446. data/node_modules/browserify/wrappers/body.js +2 -0
  447. data/node_modules/browserify/wrappers/body_debug.js +2 -0
  448. data/node_modules/browserify/wrappers/entry.js +3 -0
  449. data/node_modules/browserify/wrappers/entry_debug.js +3 -0
  450. data/node_modules/browserify/wrappers/package.js +3 -0
  451. data/node_modules/browserify/wrappers/prelude.js +196 -0
  452. data/node_modules/coffee-script/.npmignore +11 -0
  453. data/node_modules/coffee-script/CNAME +1 -0
  454. data/node_modules/coffee-script/CONTRIBUTING.md +9 -0
  455. data/node_modules/coffee-script/LICENSE +22 -0
  456. data/node_modules/coffee-script/README +51 -0
  457. data/node_modules/coffee-script/Rakefile +78 -0
  458. data/node_modules/coffee-script/bin/cake +7 -0
  459. data/node_modules/coffee-script/bin/coffee +7 -0
  460. data/node_modules/coffee-script/extras/jsl.conf +44 -0
  461. data/node_modules/coffee-script/lib/coffee-script/browser.js +92 -0
  462. data/node_modules/coffee-script/lib/coffee-script/cake.js +113 -0
  463. data/node_modules/coffee-script/lib/coffee-script/coffee-script.js +171 -0
  464. data/node_modules/coffee-script/lib/coffee-script/command.js +502 -0
  465. data/node_modules/coffee-script/lib/coffee-script/grammar.js +606 -0
  466. data/node_modules/coffee-script/lib/coffee-script/helpers.js +88 -0
  467. data/node_modules/coffee-script/lib/coffee-script/index.js +11 -0
  468. data/node_modules/coffee-script/lib/coffee-script/lexer.js +788 -0
  469. data/node_modules/coffee-script/lib/coffee-script/nodes.js +2971 -0
  470. data/node_modules/coffee-script/lib/coffee-script/optparse.js +138 -0
  471. data/node_modules/coffee-script/lib/coffee-script/parser.js +683 -0
  472. data/node_modules/coffee-script/lib/coffee-script/repl.js +276 -0
  473. data/node_modules/coffee-script/lib/coffee-script/rewriter.js +349 -0
  474. data/node_modules/coffee-script/lib/coffee-script/scope.js +146 -0
  475. data/node_modules/coffee-script/package.json +50 -0
  476. data/node_modules/jade-runtime/.npmignore +15 -0
  477. data/node_modules/jade-runtime/README.md +8 -0
  478. data/node_modules/jade-runtime/globals.js +32 -0
  479. data/node_modules/jade-runtime/index.js +2 -0
  480. data/node_modules/jade-runtime/jade-runtime.js +181 -0
  481. data/node_modules/jade-runtime/package.json +18 -0
  482. data/node_modules/jade/.npmignore +14 -0
  483. data/node_modules/jade/LICENSE +22 -0
  484. data/node_modules/jade/Readme.md +1299 -0
  485. data/node_modules/jade/bin/jade +168 -0
  486. data/node_modules/jade/index.js +4 -0
  487. data/node_modules/jade/jade.js +3586 -0
  488. data/node_modules/jade/jade.md +510 -0
  489. data/node_modules/jade/jade.min.js +2 -0
  490. data/node_modules/jade/lib/compiler.js +654 -0
  491. data/node_modules/jade/lib/doctypes.js +18 -0
  492. data/node_modules/jade/lib/filters.js +97 -0
  493. data/node_modules/jade/lib/inline-tags.js +28 -0
  494. data/node_modules/jade/lib/jade.js +253 -0
  495. data/node_modules/jade/lib/lexer.js +774 -0
  496. data/node_modules/jade/lib/nodes/attrs.js +77 -0
  497. data/node_modules/jade/lib/nodes/block-comment.js +33 -0
  498. data/node_modules/jade/lib/nodes/block.js +122 -0
  499. data/node_modules/jade/lib/nodes/case.js +43 -0
  500. data/node_modules/jade/lib/nodes/code.js +35 -0
  501. data/node_modules/jade/lib/nodes/comment.js +32 -0
  502. data/node_modules/jade/lib/nodes/doctype.js +29 -0
  503. data/node_modules/jade/lib/nodes/each.js +35 -0
  504. data/node_modules/jade/lib/nodes/filter.js +35 -0
  505. data/node_modules/jade/lib/nodes/index.js +20 -0
  506. data/node_modules/jade/lib/nodes/literal.js +32 -0
  507. data/node_modules/jade/lib/nodes/mixin.js +36 -0
  508. data/node_modules/jade/lib/nodes/node.js +25 -0
  509. data/node_modules/jade/lib/nodes/tag.js +95 -0
  510. data/node_modules/jade/lib/nodes/text.js +36 -0
  511. data/node_modules/jade/lib/parser.js +714 -0
  512. data/node_modules/jade/lib/runtime.js +174 -0
  513. data/node_modules/jade/lib/self-closing.js +19 -0
  514. data/node_modules/jade/lib/utils.js +49 -0
  515. data/node_modules/jade/node_modules/commander/.npmignore +4 -0
  516. data/node_modules/jade/node_modules/commander/.travis.yml +4 -0
  517. data/node_modules/jade/node_modules/commander/History.md +107 -0
  518. data/node_modules/jade/node_modules/commander/Makefile +7 -0
  519. data/node_modules/jade/node_modules/commander/Readme.md +262 -0
  520. data/node_modules/jade/node_modules/commander/index.js +2 -0
  521. data/node_modules/jade/node_modules/commander/lib/commander.js +1026 -0
  522. data/node_modules/jade/node_modules/commander/package.json +39 -0
  523. data/node_modules/jade/node_modules/mkdirp/.npmignore +2 -0
  524. data/node_modules/jade/node_modules/mkdirp/.travis.yml +4 -0
  525. data/node_modules/jade/node_modules/mkdirp/LICENSE +21 -0
  526. data/node_modules/jade/node_modules/mkdirp/README.markdown +61 -0
  527. data/node_modules/jade/node_modules/mkdirp/examples/pow.js +6 -0
  528. data/node_modules/jade/node_modules/mkdirp/index.js +82 -0
  529. data/node_modules/jade/node_modules/mkdirp/package.json +37 -0
  530. data/node_modules/jade/node_modules/mkdirp/test/chmod.js +38 -0
  531. data/node_modules/jade/node_modules/mkdirp/test/clobber.js +37 -0
  532. data/node_modules/jade/node_modules/mkdirp/test/mkdirp.js +28 -0
  533. data/node_modules/jade/node_modules/mkdirp/test/perm.js +32 -0
  534. data/node_modules/jade/node_modules/mkdirp/test/perm_sync.js +39 -0
  535. data/node_modules/jade/node_modules/mkdirp/test/race.js +41 -0
  536. data/node_modules/jade/node_modules/mkdirp/test/rel.js +32 -0
  537. data/node_modules/jade/node_modules/mkdirp/test/return.js +25 -0
  538. data/node_modules/jade/node_modules/mkdirp/test/return_sync.js +24 -0
  539. data/node_modules/jade/node_modules/mkdirp/test/root.js +18 -0
  540. data/node_modules/jade/node_modules/mkdirp/test/sync.js +32 -0
  541. data/node_modules/jade/node_modules/mkdirp/test/umask.js +28 -0
  542. data/node_modules/jade/node_modules/mkdirp/test/umask_sync.js +32 -0
  543. data/node_modules/jade/package.json +53 -0
  544. data/node_modules/jade/runtime.js +179 -0
  545. data/node_modules/jade/runtime.min.js +1 -0
  546. data/node_modules/jade/test.jade +7 -0
  547. data/node_modules/jade/testing/head.jade +5 -0
  548. data/node_modules/jade/testing/index.jade +1 -0
  549. data/node_modules/jade/testing/index.js +14 -0
  550. data/node_modules/jade/testing/layout.jade +10 -0
  551. data/node_modules/jade/testing/user.jade +7 -0
  552. data/node_modules/jade/testing/user.js +27 -0
  553. data/node_modules/optimist/.travis.yml +4 -0
  554. data/node_modules/optimist/LICENSE +21 -0
  555. data/node_modules/optimist/README.markdown +487 -0
  556. data/node_modules/optimist/example/bool.js +10 -0
  557. data/node_modules/optimist/example/boolean_double.js +7 -0
  558. data/node_modules/optimist/example/boolean_single.js +7 -0
  559. data/node_modules/optimist/example/default_hash.js +8 -0
  560. data/node_modules/optimist/example/default_singles.js +7 -0
  561. data/node_modules/optimist/example/divide.js +8 -0
  562. data/node_modules/optimist/example/line_count.js +20 -0
  563. data/node_modules/optimist/example/line_count_options.js +29 -0
  564. data/node_modules/optimist/example/line_count_wrap.js +29 -0
  565. data/node_modules/optimist/example/nonopt.js +4 -0
  566. data/node_modules/optimist/example/reflect.js +2 -0
  567. data/node_modules/optimist/example/short.js +3 -0
  568. data/node_modules/optimist/example/string.js +11 -0
  569. data/node_modules/optimist/example/usage-options.js +19 -0
  570. data/node_modules/optimist/example/xup.js +10 -0
  571. data/node_modules/optimist/index.js +475 -0
  572. data/node_modules/optimist/node_modules/wordwrap/.npmignore +1 -0
  573. data/node_modules/optimist/node_modules/wordwrap/README.markdown +70 -0
  574. data/node_modules/optimist/node_modules/wordwrap/example/center.js +10 -0
  575. data/node_modules/optimist/node_modules/wordwrap/example/meat.js +3 -0
  576. data/node_modules/optimist/node_modules/wordwrap/index.js +76 -0
  577. data/node_modules/optimist/node_modules/wordwrap/package.json +45 -0
  578. data/node_modules/optimist/node_modules/wordwrap/test/break.js +30 -0
  579. data/node_modules/optimist/node_modules/wordwrap/test/idleness.txt +63 -0
  580. data/node_modules/optimist/node_modules/wordwrap/test/wrap.js +31 -0
  581. data/node_modules/optimist/package.json +55 -0
  582. data/node_modules/optimist/test/_.js +71 -0
  583. data/node_modules/optimist/test/_/argv.js +2 -0
  584. data/node_modules/optimist/test/_/bin.js +3 -0
  585. data/node_modules/optimist/test/parse.js +420 -0
  586. data/node_modules/optimist/test/usage.js +292 -0
  587. data/snowball.gemspec +1 -2
  588. metadata +601 -21
  589. data/extconf.rb +0 -9
@@ -0,0 +1,981 @@
1
+ // Underscore.js 1.2.3
2
+ // (c) 2009-2011 Jeremy Ashkenas, DocumentCloud Inc.
3
+ // Underscore is freely distributable under the MIT license.
4
+ // Portions of Underscore are inspired or borrowed from Prototype,
5
+ // Oliver Steele's Functional, and John Resig's Micro-Templating.
6
+ // For all details and documentation:
7
+ // http://documentcloud.github.com/underscore
8
+
9
+ (function() {
10
+
11
+ // Baseline setup
12
+ // --------------
13
+
14
+ // Establish the root object, `window` in the browser, or `global` on the server.
15
+ var root = this;
16
+
17
+ // Save the previous value of the `_` variable.
18
+ var previousUnderscore = root._;
19
+
20
+ // Establish the object that gets returned to break out of a loop iteration.
21
+ var breaker = {};
22
+
23
+ // Save bytes in the minified (but not gzipped) version:
24
+ var ArrayProto = Array.prototype, ObjProto = Object.prototype, FuncProto = Function.prototype;
25
+
26
+ // Create quick reference variables for speed access to core prototypes.
27
+ var slice = ArrayProto.slice,
28
+ concat = ArrayProto.concat,
29
+ unshift = ArrayProto.unshift,
30
+ toString = ObjProto.toString,
31
+ hasOwnProperty = ObjProto.hasOwnProperty;
32
+
33
+ // All **ECMAScript 5** native function implementations that we hope to use
34
+ // are declared here.
35
+ var
36
+ nativeForEach = ArrayProto.forEach,
37
+ nativeMap = ArrayProto.map,
38
+ nativeReduce = ArrayProto.reduce,
39
+ nativeReduceRight = ArrayProto.reduceRight,
40
+ nativeFilter = ArrayProto.filter,
41
+ nativeEvery = ArrayProto.every,
42
+ nativeSome = ArrayProto.some,
43
+ nativeIndexOf = ArrayProto.indexOf,
44
+ nativeLastIndexOf = ArrayProto.lastIndexOf,
45
+ nativeIsArray = Array.isArray,
46
+ nativeKeys = Object.keys,
47
+ nativeBind = FuncProto.bind;
48
+
49
+ // Create a safe reference to the Underscore object for use below.
50
+ var _ = function(obj) { return new wrapper(obj); };
51
+
52
+ // Export the Underscore object for **Node.js** and **"CommonJS"**, with
53
+ // backwards-compatibility for the old `require()` API. If we're not in
54
+ // CommonJS, add `_` to the global object.
55
+ if (typeof exports !== 'undefined') {
56
+ if (typeof module !== 'undefined' && module.exports) {
57
+ exports = module.exports = _;
58
+ }
59
+ exports._ = _;
60
+ } else if (typeof define === 'function' && define.amd) {
61
+ // Register as a named module with AMD.
62
+ define('underscore', function() {
63
+ return _;
64
+ });
65
+ } else {
66
+ // Exported as a string, for Closure Compiler "advanced" mode.
67
+ root['_'] = _;
68
+ }
69
+
70
+ // Current version.
71
+ _.VERSION = '1.2.3';
72
+
73
+ // Collection Functions
74
+ // --------------------
75
+
76
+ // The cornerstone, an `each` implementation, aka `forEach`.
77
+ // Handles objects with the built-in `forEach`, arrays, and raw objects.
78
+ // Delegates to **ECMAScript 5**'s native `forEach` if available.
79
+ var each = _.each = _.forEach = function(obj, iterator, context) {
80
+ if (obj == null) return;
81
+ if (nativeForEach && obj.forEach === nativeForEach) {
82
+ obj.forEach(iterator, context);
83
+ } else if (obj.length === +obj.length) {
84
+ for (var i = 0, l = obj.length; i < l; i++) {
85
+ if (i in obj && iterator.call(context, obj[i], i, obj) === breaker) return;
86
+ }
87
+ } else {
88
+ for (var key in obj) {
89
+ if (hasOwnProperty.call(obj, key)) {
90
+ if (iterator.call(context, obj[key], key, obj) === breaker) return;
91
+ }
92
+ }
93
+ }
94
+ };
95
+
96
+ // Return the results of applying the iterator to each element.
97
+ // Delegates to **ECMAScript 5**'s native `map` if available.
98
+ _.map = function(obj, iterator, context) {
99
+ var results = [];
100
+ if (obj == null) return results;
101
+ if (nativeMap && obj.map === nativeMap) return obj.map(iterator, context);
102
+ each(obj, function(value, index, list) {
103
+ results[results.length] = iterator.call(context, value, index, list);
104
+ });
105
+ return results;
106
+ };
107
+
108
+ // **Reduce** builds up a single result from a list of values, aka `inject`,
109
+ // or `foldl`. Delegates to **ECMAScript 5**'s native `reduce` if available.
110
+ _.reduce = _.foldl = _.inject = function(obj, iterator, memo, context) {
111
+ var initial = arguments.length > 2;
112
+ if (obj == null) obj = [];
113
+ if (nativeReduce && obj.reduce === nativeReduce) {
114
+ if (context) iterator = _.bind(iterator, context);
115
+ return initial ? obj.reduce(iterator, memo) : obj.reduce(iterator);
116
+ }
117
+ each(obj, function(value, index, list) {
118
+ if (!initial) {
119
+ memo = value;
120
+ initial = true;
121
+ } else {
122
+ memo = iterator.call(context, memo, value, index, list);
123
+ }
124
+ });
125
+ if (!initial) throw new TypeError('Reduce of empty array with no initial value');
126
+ return memo;
127
+ };
128
+
129
+ // The right-associative version of reduce, also known as `foldr`.
130
+ // Delegates to **ECMAScript 5**'s native `reduceRight` if available.
131
+ _.reduceRight = _.foldr = function(obj, iterator, memo, context) {
132
+ var initial = arguments.length > 2;
133
+ if (obj == null) obj = [];
134
+ if (nativeReduceRight && obj.reduceRight === nativeReduceRight) {
135
+ if (context) iterator = _.bind(iterator, context);
136
+ return initial ? obj.reduceRight(iterator, memo) : obj.reduceRight(iterator);
137
+ }
138
+ var reversed = _.toArray(obj).reverse();
139
+ if (context && !initial) iterator = _.bind(iterator, context);
140
+ return initial ? _.reduce(reversed, iterator, memo, context) : _.reduce(reversed, iterator);
141
+ };
142
+
143
+ // Return the first value which passes a truth test. Aliased as `detect`.
144
+ _.find = _.detect = function(obj, iterator, context) {
145
+ var result;
146
+ any(obj, function(value, index, list) {
147
+ if (iterator.call(context, value, index, list)) {
148
+ result = value;
149
+ return true;
150
+ }
151
+ });
152
+ return result;
153
+ };
154
+
155
+ // Return all the elements that pass a truth test.
156
+ // Delegates to **ECMAScript 5**'s native `filter` if available.
157
+ // Aliased as `select`.
158
+ _.filter = _.select = function(obj, iterator, context) {
159
+ var results = [];
160
+ if (obj == null) return results;
161
+ if (nativeFilter && obj.filter === nativeFilter) return obj.filter(iterator, context);
162
+ each(obj, function(value, index, list) {
163
+ if (iterator.call(context, value, index, list)) results[results.length] = value;
164
+ });
165
+ return results;
166
+ };
167
+
168
+ // Return all the elements for which a truth test fails.
169
+ _.reject = function(obj, iterator, context) {
170
+ var results = [];
171
+ if (obj == null) return results;
172
+ each(obj, function(value, index, list) {
173
+ if (!iterator.call(context, value, index, list)) results[results.length] = value;
174
+ });
175
+ return results;
176
+ };
177
+
178
+ // Determine whether all of the elements match a truth test.
179
+ // Delegates to **ECMAScript 5**'s native `every` if available.
180
+ // Aliased as `all`.
181
+ _.every = _.all = function(obj, iterator, context) {
182
+ var result = true;
183
+ if (obj == null) return result;
184
+ if (nativeEvery && obj.every === nativeEvery) return obj.every(iterator, context);
185
+ each(obj, function(value, index, list) {
186
+ if (!(result = result && iterator.call(context, value, index, list))) return breaker;
187
+ });
188
+ return result;
189
+ };
190
+
191
+ // Determine if at least one element in the object matches a truth test.
192
+ // Delegates to **ECMAScript 5**'s native `some` if available.
193
+ // Aliased as `any`.
194
+ var any = _.some = _.any = function(obj, iterator, context) {
195
+ iterator || (iterator = _.identity);
196
+ var result = false;
197
+ if (obj == null) return result;
198
+ if (nativeSome && obj.some === nativeSome) return obj.some(iterator, context);
199
+ each(obj, function(value, index, list) {
200
+ if (result || (result = iterator.call(context, value, index, list))) return breaker;
201
+ });
202
+ return !!result;
203
+ };
204
+
205
+ // Determine if a given value is included in the array or object using `===`.
206
+ // Aliased as `contains`.
207
+ _.include = _.contains = function(obj, target) {
208
+ var found = false;
209
+ if (obj == null) return found;
210
+ if (nativeIndexOf && obj.indexOf === nativeIndexOf) return obj.indexOf(target) != -1;
211
+ found = any(obj, function(value) {
212
+ return value === target;
213
+ });
214
+ return found;
215
+ };
216
+
217
+ // Invoke a method (with arguments) on every item in a collection.
218
+ _.invoke = function(obj, method) {
219
+ var args = slice.call(arguments, 2);
220
+ return _.map(obj, function(value) {
221
+ return (method.call ? method || value : value[method]).apply(value, args);
222
+ });
223
+ };
224
+
225
+ // Convenience version of a common use case of `map`: fetching a property.
226
+ _.pluck = function(obj, key) {
227
+ return _.map(obj, function(value){ return value[key]; });
228
+ };
229
+
230
+ // Return the maximum element or (element-based computation).
231
+ _.max = function(obj, iterator, context) {
232
+ if (!iterator && _.isArray(obj)) return Math.max.apply(Math, obj);
233
+ if (!iterator && _.isEmpty(obj)) return -Infinity;
234
+ var result = {computed : -Infinity};
235
+ each(obj, function(value, index, list) {
236
+ var computed = iterator ? iterator.call(context, value, index, list) : value;
237
+ computed >= result.computed && (result = {value : value, computed : computed});
238
+ });
239
+ return result.value;
240
+ };
241
+
242
+ // Return the minimum element (or element-based computation).
243
+ _.min = function(obj, iterator, context) {
244
+ if (!iterator && _.isArray(obj)) return Math.min.apply(Math, obj);
245
+ if (!iterator && _.isEmpty(obj)) return Infinity;
246
+ var result = {computed : Infinity};
247
+ each(obj, function(value, index, list) {
248
+ var computed = iterator ? iterator.call(context, value, index, list) : value;
249
+ computed < result.computed && (result = {value : value, computed : computed});
250
+ });
251
+ return result.value;
252
+ };
253
+
254
+ // Shuffle an array.
255
+ _.shuffle = function(obj) {
256
+ var shuffled = [], rand;
257
+ each(obj, function(value, index, list) {
258
+ if (index == 0) {
259
+ shuffled[0] = value;
260
+ } else {
261
+ rand = Math.floor(Math.random() * (index + 1));
262
+ shuffled[index] = shuffled[rand];
263
+ shuffled[rand] = value;
264
+ }
265
+ });
266
+ return shuffled;
267
+ };
268
+
269
+ // Sort the object's values by a criterion produced by an iterator.
270
+ _.sortBy = function(obj, iterator, context) {
271
+ return _.pluck(_.map(obj, function(value, index, list) {
272
+ return {
273
+ value : value,
274
+ criteria : iterator.call(context, value, index, list)
275
+ };
276
+ }).sort(function(left, right) {
277
+ var a = left.criteria, b = right.criteria;
278
+ return a < b ? -1 : a > b ? 1 : 0;
279
+ }), 'value');
280
+ };
281
+
282
+ // Groups the object's values by a criterion. Pass either a string attribute
283
+ // to group by, or a function that returns the criterion.
284
+ _.groupBy = function(obj, val) {
285
+ var result = {};
286
+ var iterator = _.isFunction(val) ? val : function(obj) { return obj[val]; };
287
+ each(obj, function(value, index) {
288
+ var key = iterator(value, index);
289
+ (result[key] || (result[key] = [])).push(value);
290
+ });
291
+ return result;
292
+ };
293
+
294
+ // Use a comparator function to figure out at what index an object should
295
+ // be inserted so as to maintain order. Uses binary search.
296
+ _.sortedIndex = function(array, obj, iterator) {
297
+ iterator || (iterator = _.identity);
298
+ var low = 0, high = array.length;
299
+ while (low < high) {
300
+ var mid = (low + high) >> 1;
301
+ iterator(array[mid]) < iterator(obj) ? low = mid + 1 : high = mid;
302
+ }
303
+ return low;
304
+ };
305
+
306
+ // Safely convert anything iterable into a real, live array.
307
+ _.toArray = function(iterable) {
308
+ if (!iterable) return [];
309
+ if (iterable.toArray) return iterable.toArray();
310
+ if (_.isArray(iterable)) return slice.call(iterable);
311
+ if (_.isArguments(iterable)) return slice.call(iterable);
312
+ return _.values(iterable);
313
+ };
314
+
315
+ // Return the number of elements in an object.
316
+ _.size = function(obj) {
317
+ return _.toArray(obj).length;
318
+ };
319
+
320
+ // Array Functions
321
+ // ---------------
322
+
323
+ // Get the first element of an array. Passing **n** will return the first N
324
+ // values in the array. Aliased as `head`. The **guard** check allows it to work
325
+ // with `_.map`.
326
+ _.first = _.head = function(array, n, guard) {
327
+ return (n != null) && !guard ? slice.call(array, 0, n) : array[0];
328
+ };
329
+
330
+ // Returns everything but the last entry of the array. Especcialy useful on
331
+ // the arguments object. Passing **n** will return all the values in
332
+ // the array, excluding the last N. The **guard** check allows it to work with
333
+ // `_.map`.
334
+ _.initial = function(array, n, guard) {
335
+ return slice.call(array, 0, array.length - ((n == null) || guard ? 1 : n));
336
+ };
337
+
338
+ // Get the last element of an array. Passing **n** will return the last N
339
+ // values in the array. The **guard** check allows it to work with `_.map`.
340
+ _.last = function(array, n, guard) {
341
+ if ((n != null) && !guard) {
342
+ return slice.call(array, Math.max(array.length - n, 0));
343
+ } else {
344
+ return array[array.length - 1];
345
+ }
346
+ };
347
+
348
+ // Returns everything but the first entry of the array. Aliased as `tail`.
349
+ // Especially useful on the arguments object. Passing an **index** will return
350
+ // the rest of the values in the array from that index onward. The **guard**
351
+ // check allows it to work with `_.map`.
352
+ _.rest = _.tail = function(array, index, guard) {
353
+ return slice.call(array, (index == null) || guard ? 1 : index);
354
+ };
355
+
356
+ // Trim out all falsy values from an array.
357
+ _.compact = function(array) {
358
+ return _.filter(array, function(value){ return !!value; });
359
+ };
360
+
361
+ // Return a completely flattened version of an array.
362
+ _.flatten = function(array, shallow) {
363
+ return _.reduce(array, function(memo, value) {
364
+ if (_.isArray(value)) return memo.concat(shallow ? value : _.flatten(value));
365
+ memo[memo.length] = value;
366
+ return memo;
367
+ }, []);
368
+ };
369
+
370
+ // Return a version of the array that does not contain the specified value(s).
371
+ _.without = function(array) {
372
+ return _.difference(array, slice.call(arguments, 1));
373
+ };
374
+
375
+ // Produce a duplicate-free version of the array. If the array has already
376
+ // been sorted, you have the option of using a faster algorithm.
377
+ // Aliased as `unique`.
378
+ _.uniq = _.unique = function(array, isSorted, iterator) {
379
+ var initial = iterator ? _.map(array, iterator) : array;
380
+ var result = [];
381
+ _.reduce(initial, function(memo, el, i) {
382
+ if (0 == i || (isSorted === true ? _.last(memo) != el : !_.include(memo, el))) {
383
+ memo[memo.length] = el;
384
+ result[result.length] = array[i];
385
+ }
386
+ return memo;
387
+ }, []);
388
+ return result;
389
+ };
390
+
391
+ // Produce an array that contains the union: each distinct element from all of
392
+ // the passed-in arrays.
393
+ _.union = function() {
394
+ return _.uniq(_.flatten(arguments, true));
395
+ };
396
+
397
+ // Produce an array that contains every item shared between all the
398
+ // passed-in arrays. (Aliased as "intersect" for back-compat.)
399
+ _.intersection = _.intersect = function(array) {
400
+ var rest = slice.call(arguments, 1);
401
+ return _.filter(_.uniq(array), function(item) {
402
+ return _.every(rest, function(other) {
403
+ return _.indexOf(other, item) >= 0;
404
+ });
405
+ });
406
+ };
407
+
408
+ // Take the difference between one array and a number of other arrays.
409
+ // Only the elements present in just the first array will remain.
410
+ _.difference = function(array) {
411
+ var rest = _.flatten(slice.call(arguments, 1));
412
+ return _.filter(array, function(value){ return !_.include(rest, value); });
413
+ };
414
+
415
+ // Zip together multiple lists into a single array -- elements that share
416
+ // an index go together.
417
+ _.zip = function() {
418
+ var args = slice.call(arguments);
419
+ var length = _.max(_.pluck(args, 'length'));
420
+ var results = new Array(length);
421
+ for (var i = 0; i < length; i++) results[i] = _.pluck(args, "" + i);
422
+ return results;
423
+ };
424
+
425
+ // If the browser doesn't supply us with indexOf (I'm looking at you, **MSIE**),
426
+ // we need this function. Return the position of the first occurrence of an
427
+ // item in an array, or -1 if the item is not included in the array.
428
+ // Delegates to **ECMAScript 5**'s native `indexOf` if available.
429
+ // If the array is large and already in sort order, pass `true`
430
+ // for **isSorted** to use binary search.
431
+ _.indexOf = function(array, item, isSorted) {
432
+ if (array == null) return -1;
433
+ var i, l;
434
+ if (isSorted) {
435
+ i = _.sortedIndex(array, item);
436
+ return array[i] === item ? i : -1;
437
+ }
438
+ if (nativeIndexOf && array.indexOf === nativeIndexOf) return array.indexOf(item);
439
+ for (i = 0, l = array.length; i < l; i++) if (i in array && array[i] === item) return i;
440
+ return -1;
441
+ };
442
+
443
+ // Delegates to **ECMAScript 5**'s native `lastIndexOf` if available.
444
+ _.lastIndexOf = function(array, item) {
445
+ if (array == null) return -1;
446
+ if (nativeLastIndexOf && array.lastIndexOf === nativeLastIndexOf) return array.lastIndexOf(item);
447
+ var i = array.length;
448
+ while (i--) if (i in array && array[i] === item) return i;
449
+ return -1;
450
+ };
451
+
452
+ // Generate an integer Array containing an arithmetic progression. A port of
453
+ // the native Python `range()` function. See
454
+ // [the Python documentation](http://docs.python.org/library/functions.html#range).
455
+ _.range = function(start, stop, step) {
456
+ if (arguments.length <= 1) {
457
+ stop = start || 0;
458
+ start = 0;
459
+ }
460
+ step = arguments[2] || 1;
461
+
462
+ var len = Math.max(Math.ceil((stop - start) / step), 0);
463
+ var idx = 0;
464
+ var range = new Array(len);
465
+
466
+ while(idx < len) {
467
+ range[idx++] = start;
468
+ start += step;
469
+ }
470
+
471
+ return range;
472
+ };
473
+
474
+ // Function (ahem) Functions
475
+ // ------------------
476
+
477
+ // Reusable constructor function for prototype setting.
478
+ var ctor = function(){};
479
+
480
+ // Create a function bound to a given object (assigning `this`, and arguments,
481
+ // optionally). Binding with arguments is also known as `curry`.
482
+ // Delegates to **ECMAScript 5**'s native `Function.bind` if available.
483
+ // We check for `func.bind` first, to fail fast when `func` is undefined.
484
+ _.bind = function bind(func, context) {
485
+ var bound, args;
486
+ if (func.bind === nativeBind && nativeBind) return nativeBind.apply(func, slice.call(arguments, 1));
487
+ if (!_.isFunction(func)) throw new TypeError;
488
+ args = slice.call(arguments, 2);
489
+ return bound = function() {
490
+ if (!(this instanceof bound)) return func.apply(context, args.concat(slice.call(arguments)));
491
+ ctor.prototype = func.prototype;
492
+ var self = new ctor;
493
+ var result = func.apply(self, args.concat(slice.call(arguments)));
494
+ if (Object(result) === result) return result;
495
+ return self;
496
+ };
497
+ };
498
+
499
+ // Bind all of an object's methods to that object. Useful for ensuring that
500
+ // all callbacks defined on an object belong to it.
501
+ _.bindAll = function(obj) {
502
+ var funcs = slice.call(arguments, 1);
503
+ if (funcs.length == 0) funcs = _.functions(obj);
504
+ each(funcs, function(f) { obj[f] = _.bind(obj[f], obj); });
505
+ return obj;
506
+ };
507
+
508
+ // Memoize an expensive function by storing its results.
509
+ _.memoize = function(func, hasher) {
510
+ var memo = {};
511
+ hasher || (hasher = _.identity);
512
+ return function() {
513
+ var key = hasher.apply(this, arguments);
514
+ return hasOwnProperty.call(memo, key) ? memo[key] : (memo[key] = func.apply(this, arguments));
515
+ };
516
+ };
517
+
518
+ // Delays a function for the given number of milliseconds, and then calls
519
+ // it with the arguments supplied.
520
+ _.delay = function(func, wait) {
521
+ var args = slice.call(arguments, 2);
522
+ return setTimeout(function(){ return func.apply(func, args); }, wait);
523
+ };
524
+
525
+ // Defers a function, scheduling it to run after the current call stack has
526
+ // cleared.
527
+ _.defer = function(func) {
528
+ return _.delay.apply(_, [func, 1].concat(slice.call(arguments, 1)));
529
+ };
530
+
531
+ // Returns a function, that, when invoked, will only be triggered at most once
532
+ // during a given window of time.
533
+ _.throttle = function(func, wait) {
534
+ var context, args, timeout, throttling, more;
535
+ var whenDone = _.debounce(function(){ more = throttling = false; }, wait);
536
+ return function() {
537
+ context = this; args = arguments;
538
+ var later = function() {
539
+ timeout = null;
540
+ if (more) func.apply(context, args);
541
+ whenDone();
542
+ };
543
+ if (!timeout) timeout = setTimeout(later, wait);
544
+ if (throttling) {
545
+ more = true;
546
+ } else {
547
+ func.apply(context, args);
548
+ }
549
+ whenDone();
550
+ throttling = true;
551
+ };
552
+ };
553
+
554
+ // Returns a function, that, as long as it continues to be invoked, will not
555
+ // be triggered. The function will be called after it stops being called for
556
+ // N milliseconds.
557
+ _.debounce = function(func, wait) {
558
+ var timeout;
559
+ return function() {
560
+ var context = this, args = arguments;
561
+ var later = function() {
562
+ timeout = null;
563
+ func.apply(context, args);
564
+ };
565
+ clearTimeout(timeout);
566
+ timeout = setTimeout(later, wait);
567
+ };
568
+ };
569
+
570
+ // Returns a function that will be executed at most one time, no matter how
571
+ // often you call it. Useful for lazy initialization.
572
+ _.once = function(func) {
573
+ var ran = false, memo;
574
+ return function() {
575
+ if (ran) return memo;
576
+ ran = true;
577
+ return memo = func.apply(this, arguments);
578
+ };
579
+ };
580
+
581
+ // Returns the first function passed as an argument to the second,
582
+ // allowing you to adjust arguments, run code before and after, and
583
+ // conditionally execute the original function.
584
+ _.wrap = function(func, wrapper) {
585
+ return function() {
586
+ var args = concat.apply([func], arguments);
587
+ return wrapper.apply(this, args);
588
+ };
589
+ };
590
+
591
+ // Returns a function that is the composition of a list of functions, each
592
+ // consuming the return value of the function that follows.
593
+ _.compose = function() {
594
+ var funcs = arguments;
595
+ return function() {
596
+ var args = arguments;
597
+ for (var i = funcs.length - 1; i >= 0; i--) {
598
+ args = [funcs[i].apply(this, args)];
599
+ }
600
+ return args[0];
601
+ };
602
+ };
603
+
604
+ // Returns a function that will only be executed after being called N times.
605
+ _.after = function(times, func) {
606
+ if (times <= 0) return func();
607
+ return function() {
608
+ if (--times < 1) { return func.apply(this, arguments); }
609
+ };
610
+ };
611
+
612
+ // Object Functions
613
+ // ----------------
614
+
615
+ // Retrieve the names of an object's properties.
616
+ // Delegates to **ECMAScript 5**'s native `Object.keys`
617
+ _.keys = nativeKeys || function(obj) {
618
+ if (obj !== Object(obj)) throw new TypeError('Invalid object');
619
+ var keys = [];
620
+ for (var key in obj) if (hasOwnProperty.call(obj, key)) keys[keys.length] = key;
621
+ return keys;
622
+ };
623
+
624
+ // Retrieve the values of an object's properties.
625
+ _.values = function(obj) {
626
+ return _.map(obj, _.identity);
627
+ };
628
+
629
+ // Return a sorted list of the function names available on the object.
630
+ // Aliased as `methods`
631
+ _.functions = _.methods = function(obj) {
632
+ var names = [];
633
+ for (var key in obj) {
634
+ if (_.isFunction(obj[key])) names.push(key);
635
+ }
636
+ return names.sort();
637
+ };
638
+
639
+ // Extend a given object with all the properties in passed-in object(s).
640
+ _.extend = function(obj) {
641
+ each(slice.call(arguments, 1), function(source) {
642
+ for (var prop in source) {
643
+ if (source[prop] !== void 0) obj[prop] = source[prop];
644
+ }
645
+ });
646
+ return obj;
647
+ };
648
+
649
+ // Fill in a given object with default properties.
650
+ _.defaults = function(obj) {
651
+ each(slice.call(arguments, 1), function(source) {
652
+ for (var prop in source) {
653
+ if (obj[prop] == null) obj[prop] = source[prop];
654
+ }
655
+ });
656
+ return obj;
657
+ };
658
+
659
+ // Create a (shallow-cloned) duplicate of an object.
660
+ _.clone = function(obj) {
661
+ if (!_.isObject(obj)) return obj;
662
+ return _.isArray(obj) ? obj.slice() : _.extend({}, obj);
663
+ };
664
+
665
+ // Invokes interceptor with the obj, and then returns obj.
666
+ // The primary purpose of this method is to "tap into" a method chain, in
667
+ // order to perform operations on intermediate results within the chain.
668
+ _.tap = function(obj, interceptor) {
669
+ interceptor(obj);
670
+ return obj;
671
+ };
672
+
673
+ // Internal recursive comparison function.
674
+ function eq(a, b, stack) {
675
+ // Identical objects are equal. `0 === -0`, but they aren't identical.
676
+ // See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal.
677
+ if (a === b) return a !== 0 || 1 / a == 1 / b;
678
+ // A strict comparison is necessary because `null == undefined`.
679
+ if (a == null || b == null) return a === b;
680
+ // Unwrap any wrapped objects.
681
+ if (a._chain) a = a._wrapped;
682
+ if (b._chain) b = b._wrapped;
683
+ // Invoke a custom `isEqual` method if one is provided.
684
+ if (a.isEqual && _.isFunction(a.isEqual)) return a.isEqual(b);
685
+ if (b.isEqual && _.isFunction(b.isEqual)) return b.isEqual(a);
686
+ // Compare `[[Class]]` names.
687
+ var className = toString.call(a);
688
+ if (className != toString.call(b)) return false;
689
+ switch (className) {
690
+ // Strings, numbers, dates, and booleans are compared by value.
691
+ case '[object String]':
692
+ // Primitives and their corresponding object wrappers are equivalent; thus, `"5"` is
693
+ // equivalent to `new String("5")`.
694
+ return a == String(b);
695
+ case '[object Number]':
696
+ // `NaN`s are equivalent, but non-reflexive. An `egal` comparison is performed for
697
+ // other numeric values.
698
+ return a != +a ? b != +b : (a == 0 ? 1 / a == 1 / b : a == +b);
699
+ case '[object Date]':
700
+ case '[object Boolean]':
701
+ // Coerce dates and booleans to numeric primitive values. Dates are compared by their
702
+ // millisecond representations. Note that invalid dates with millisecond representations
703
+ // of `NaN` are not equivalent.
704
+ return +a == +b;
705
+ // RegExps are compared by their source patterns and flags.
706
+ case '[object RegExp]':
707
+ return a.source == b.source &&
708
+ a.global == b.global &&
709
+ a.multiline == b.multiline &&
710
+ a.ignoreCase == b.ignoreCase;
711
+ }
712
+ if (typeof a != 'object' || typeof b != 'object') return false;
713
+ // Assume equality for cyclic structures. The algorithm for detecting cyclic
714
+ // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.
715
+ var length = stack.length;
716
+ while (length--) {
717
+ // Linear search. Performance is inversely proportional to the number of
718
+ // unique nested structures.
719
+ if (stack[length] == a) return true;
720
+ }
721
+ // Add the first object to the stack of traversed objects.
722
+ stack.push(a);
723
+ var size = 0, result = true;
724
+ // Recursively compare objects and arrays.
725
+ if (className == '[object Array]') {
726
+ // Compare array lengths to determine if a deep comparison is necessary.
727
+ size = a.length;
728
+ result = size == b.length;
729
+ if (result) {
730
+ // Deep compare the contents, ignoring non-numeric properties.
731
+ while (size--) {
732
+ // Ensure commutative equality for sparse arrays.
733
+ if (!(result = size in a == size in b && eq(a[size], b[size], stack))) break;
734
+ }
735
+ }
736
+ } else {
737
+ // Objects with different constructors are not equivalent.
738
+ if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) return false;
739
+ // Deep compare objects.
740
+ for (var key in a) {
741
+ if (hasOwnProperty.call(a, key)) {
742
+ // Count the expected number of properties.
743
+ size++;
744
+ // Deep compare each member.
745
+ if (!(result = hasOwnProperty.call(b, key) && eq(a[key], b[key], stack))) break;
746
+ }
747
+ }
748
+ // Ensure that both objects contain the same number of properties.
749
+ if (result) {
750
+ for (key in b) {
751
+ if (hasOwnProperty.call(b, key) && !(size--)) break;
752
+ }
753
+ result = !size;
754
+ }
755
+ }
756
+ // Remove the first object from the stack of traversed objects.
757
+ stack.pop();
758
+ return result;
759
+ }
760
+
761
+ // Perform a deep comparison to check if two objects are equal.
762
+ _.isEqual = function(a, b) {
763
+ return eq(a, b, []);
764
+ };
765
+
766
+ // Is a given array, string, or object empty?
767
+ // An "empty" object has no enumerable own-properties.
768
+ _.isEmpty = function(obj) {
769
+ if (_.isArray(obj) || _.isString(obj)) return obj.length === 0;
770
+ for (var key in obj) if (hasOwnProperty.call(obj, key)) return false;
771
+ return true;
772
+ };
773
+
774
+ // Is a given value a DOM element?
775
+ _.isElement = function(obj) {
776
+ return !!(obj && obj.nodeType == 1);
777
+ };
778
+
779
+ // Is a given value an array?
780
+ // Delegates to ECMA5's native Array.isArray
781
+ _.isArray = nativeIsArray || function(obj) {
782
+ return toString.call(obj) == '[object Array]';
783
+ };
784
+
785
+ // Is a given variable an object?
786
+ _.isObject = function(obj) {
787
+ return obj === Object(obj);
788
+ };
789
+
790
+ // Is a given variable an arguments object?
791
+ _.isArguments = function(obj) {
792
+ return toString.call(obj) == '[object Arguments]';
793
+ };
794
+ if (!_.isArguments(arguments)) {
795
+ _.isArguments = function(obj) {
796
+ return !!(obj && hasOwnProperty.call(obj, 'callee'));
797
+ };
798
+ }
799
+
800
+ // Is a given value a function?
801
+ _.isFunction = function(obj) {
802
+ return toString.call(obj) == '[object Function]';
803
+ };
804
+
805
+ // Is a given value a string?
806
+ _.isString = function(obj) {
807
+ return toString.call(obj) == '[object String]';
808
+ };
809
+
810
+ // Is a given value a number?
811
+ _.isNumber = function(obj) {
812
+ return toString.call(obj) == '[object Number]';
813
+ };
814
+
815
+ // Is the given value `NaN`?
816
+ _.isNaN = function(obj) {
817
+ // `NaN` is the only value for which `===` is not reflexive.
818
+ return obj !== obj;
819
+ };
820
+
821
+ // Is a given value a boolean?
822
+ _.isBoolean = function(obj) {
823
+ return obj === true || obj === false || toString.call(obj) == '[object Boolean]';
824
+ };
825
+
826
+ // Is a given value a date?
827
+ _.isDate = function(obj) {
828
+ return toString.call(obj) == '[object Date]';
829
+ };
830
+
831
+ // Is the given value a regular expression?
832
+ _.isRegExp = function(obj) {
833
+ return toString.call(obj) == '[object RegExp]';
834
+ };
835
+
836
+ // Is a given value equal to null?
837
+ _.isNull = function(obj) {
838
+ return obj === null;
839
+ };
840
+
841
+ // Is a given variable undefined?
842
+ _.isUndefined = function(obj) {
843
+ return obj === void 0;
844
+ };
845
+
846
+ // Utility Functions
847
+ // -----------------
848
+
849
+ // Run Underscore.js in *noConflict* mode, returning the `_` variable to its
850
+ // previous owner. Returns a reference to the Underscore object.
851
+ _.noConflict = function() {
852
+ root._ = previousUnderscore;
853
+ return this;
854
+ };
855
+
856
+ // Keep the identity function around for default iterators.
857
+ _.identity = function(value) {
858
+ return value;
859
+ };
860
+
861
+ // Run a function **n** times.
862
+ _.times = function (n, iterator, context) {
863
+ for (var i = 0; i < n; i++) iterator.call(context, i);
864
+ };
865
+
866
+ // Escape a string for HTML interpolation.
867
+ _.escape = function(string) {
868
+ return (''+string).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#x27;').replace(/\//g,'&#x2F;');
869
+ };
870
+
871
+ // Add your own custom functions to the Underscore object, ensuring that
872
+ // they're correctly added to the OOP wrapper as well.
873
+ _.mixin = function(obj) {
874
+ each(_.functions(obj), function(name){
875
+ addToWrapper(name, _[name] = obj[name]);
876
+ });
877
+ };
878
+
879
+ // Generate a unique integer id (unique within the entire client session).
880
+ // Useful for temporary DOM ids.
881
+ var idCounter = 0;
882
+ _.uniqueId = function(prefix) {
883
+ var id = idCounter++;
884
+ return prefix ? prefix + id : id;
885
+ };
886
+
887
+ // By default, Underscore uses ERB-style template delimiters, change the
888
+ // following template settings to use alternative delimiters.
889
+ _.templateSettings = {
890
+ evaluate : /<%([\s\S]+?)%>/g,
891
+ interpolate : /<%=([\s\S]+?)%>/g,
892
+ escape : /<%-([\s\S]+?)%>/g
893
+ };
894
+
895
+ // JavaScript micro-templating, similar to John Resig's implementation.
896
+ // Underscore templating handles arbitrary delimiters, preserves whitespace,
897
+ // and correctly escapes quotes within interpolated code.
898
+ _.template = function(str, data) {
899
+ var c = _.templateSettings;
900
+ var tmpl = 'var __p=[],print=function(){__p.push.apply(__p,arguments);};' +
901
+ 'with(obj||{}){__p.push(\'' +
902
+ str.replace(/\\/g, '\\\\')
903
+ .replace(/'/g, "\\'")
904
+ .replace(c.escape, function(match, code) {
905
+ return "',_.escape(" + code.replace(/\\'/g, "'") + "),'";
906
+ })
907
+ .replace(c.interpolate, function(match, code) {
908
+ return "'," + code.replace(/\\'/g, "'") + ",'";
909
+ })
910
+ .replace(c.evaluate || null, function(match, code) {
911
+ return "');" + code.replace(/\\'/g, "'")
912
+ .replace(/[\r\n\t]/g, ' ') + ";__p.push('";
913
+ })
914
+ .replace(/\r/g, '\\r')
915
+ .replace(/\n/g, '\\n')
916
+ .replace(/\t/g, '\\t')
917
+ + "');}return __p.join('');";
918
+ var func = new Function('obj', '_', tmpl);
919
+ if (data) return func(data, _);
920
+ return function(data) {
921
+ return func.call(this, data, _);
922
+ };
923
+ };
924
+
925
+ // The OOP Wrapper
926
+ // ---------------
927
+
928
+ // If Underscore is called as a function, it returns a wrapped object that
929
+ // can be used OO-style. This wrapper holds altered versions of all the
930
+ // underscore functions. Wrapped objects may be chained.
931
+ var wrapper = function(obj) { this._wrapped = obj; };
932
+
933
+ // Expose `wrapper.prototype` as `_.prototype`
934
+ _.prototype = wrapper.prototype;
935
+
936
+ // Helper function to continue chaining intermediate results.
937
+ var result = function(obj, chain) {
938
+ return chain ? _(obj).chain() : obj;
939
+ };
940
+
941
+ // A method to easily add functions to the OOP wrapper.
942
+ var addToWrapper = function(name, func) {
943
+ wrapper.prototype[name] = function() {
944
+ var args = slice.call(arguments);
945
+ unshift.call(args, this._wrapped);
946
+ return result(func.apply(_, args), this._chain);
947
+ };
948
+ };
949
+
950
+ // Add all of the Underscore functions to the wrapper object.
951
+ _.mixin(_);
952
+
953
+ // Add all mutator Array functions to the wrapper.
954
+ each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {
955
+ var method = ArrayProto[name];
956
+ wrapper.prototype[name] = function() {
957
+ method.apply(this._wrapped, arguments);
958
+ return result(this._wrapped, this._chain);
959
+ };
960
+ });
961
+
962
+ // Add all accessor Array functions to the wrapper.
963
+ each(['concat', 'join', 'slice'], function(name) {
964
+ var method = ArrayProto[name];
965
+ wrapper.prototype[name] = function() {
966
+ return result(method.apply(this._wrapped, arguments), this._chain);
967
+ };
968
+ });
969
+
970
+ // Start chaining a wrapped Underscore object.
971
+ wrapper.prototype.chain = function() {
972
+ this._chain = true;
973
+ return this;
974
+ };
975
+
976
+ // Extracts the result from a wrapped and chained object.
977
+ wrapper.prototype.value = function() {
978
+ return this._wrapped;
979
+ };
980
+
981
+ }).call(this);