snowball 0.1.21 → 0.1.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.gitignore +1 -3
- data/{lib/snowball → bin}/roll.js +0 -0
- data/lib/snowball/roller.rb +1 -1
- data/lib/snowball/version.rb +1 -1
- data/node_modules/.bin/browserify +161 -0
- data/node_modules/.bin/cake +7 -0
- data/node_modules/.bin/coffee +7 -0
- data/node_modules/.bin/jade +168 -0
- data/node_modules/browserify/.travis.yml +4 -0
- data/node_modules/browserify/LICENSE +63 -0
- data/node_modules/browserify/README.markdown +172 -0
- data/node_modules/browserify/bin/cmd.js +161 -0
- data/node_modules/browserify/builtins/__browserify_process.js +55 -0
- data/node_modules/browserify/builtins/assert.js +314 -0
- data/node_modules/browserify/builtins/child_process.js +2 -0
- data/node_modules/browserify/builtins/events.js +178 -0
- data/node_modules/browserify/builtins/fs.js +1 -0
- data/node_modules/browserify/builtins/https.js +1 -0
- data/node_modules/browserify/builtins/net.js +1 -0
- data/node_modules/browserify/builtins/path.js +175 -0
- data/node_modules/browserify/builtins/querystring.js +250 -0
- data/node_modules/browserify/builtins/stream.js +119 -0
- data/node_modules/browserify/builtins/string_decoder.js +161 -0
- data/node_modules/browserify/builtins/sys.js +1 -0
- data/node_modules/browserify/builtins/timers.js +39 -0
- data/node_modules/browserify/builtins/tls.js +1 -0
- data/node_modules/browserify/builtins/tty.js +2 -0
- data/node_modules/browserify/builtins/url.js +604 -0
- data/node_modules/browserify/builtins/util.js +351 -0
- data/node_modules/browserify/example/debug/browserify.js +219 -0
- data/node_modules/browserify/example/debug/build.sh +3 -0
- data/node_modules/browserify/example/debug/index.html +7 -0
- data/node_modules/browserify/example/debug/js/entry.js +2 -0
- data/node_modules/browserify/example/debug/js/thrower.js +3 -0
- data/node_modules/browserify/example/debug/server.js +9 -0
- data/node_modules/browserify/example/simple-build/browserify.js +368 -0
- data/node_modules/browserify/example/simple-build/build.sh +3 -0
- data/node_modules/browserify/example/simple-build/index.html +9 -0
- data/node_modules/browserify/example/simple-build/js/bar.js +3 -0
- data/node_modules/browserify/example/simple-build/js/entry.js +5 -0
- data/node_modules/browserify/example/simple-build/js/foo.js +5 -0
- data/node_modules/browserify/example/simple-build/server.js +9 -0
- data/node_modules/browserify/example/test/b.js +5 -0
- data/node_modules/browserify/example/test/bar.js +3 -0
- data/node_modules/browserify/example/test/foo.js +3 -0
- data/node_modules/browserify/example/test/m.js +3 -0
- data/node_modules/browserify/example/test/n.js +3 -0
- data/node_modules/browserify/example/using-http/bundle.js +813 -0
- data/node_modules/browserify/example/using-http/entry.js +25 -0
- data/node_modules/browserify/example/using-http/index.html +9 -0
- data/node_modules/browserify/example/using-http/server.js +28 -0
- data/node_modules/browserify/index.js +202 -0
- data/node_modules/browserify/lib/watch.js +75 -0
- data/node_modules/browserify/lib/wrap.js +580 -0
- data/node_modules/browserify/lib/wrappers.js +10 -0
- data/node_modules/browserify/node_modules/buffer-browserify/.npmignore +1 -0
- data/node_modules/browserify/node_modules/buffer-browserify/README.md +11 -0
- data/node_modules/browserify/node_modules/buffer-browserify/buffer_ieee754.js +84 -0
- data/node_modules/browserify/node_modules/buffer-browserify/index.js +1317 -0
- data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/README.md +14 -0
- data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/lib/b64.js +84 -0
- data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/package.json +30 -0
- data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/test/runner.js +50 -0
- data/node_modules/browserify/node_modules/buffer-browserify/package.json +46 -0
- data/node_modules/browserify/node_modules/buffer-browserify/test/buffer.js +218 -0
- data/node_modules/browserify/node_modules/commondir/README.markdown +45 -0
- data/node_modules/browserify/node_modules/commondir/example/base.js +3 -0
- data/node_modules/browserify/node_modules/commondir/example/dir.js +3 -0
- data/node_modules/browserify/node_modules/commondir/index.js +29 -0
- data/node_modules/browserify/node_modules/commondir/package.json +47 -0
- data/node_modules/browserify/node_modules/commondir/test/dirs.js +66 -0
- data/node_modules/browserify/node_modules/crypto-browserify/.travis.yml +4 -0
- data/node_modules/browserify/node_modules/crypto-browserify/example/bundle.js +637 -0
- data/node_modules/browserify/node_modules/crypto-browserify/example/index.html +12 -0
- data/node_modules/browserify/node_modules/crypto-browserify/example/test.js +4 -0
- data/node_modules/browserify/node_modules/crypto-browserify/index.js +74 -0
- data/node_modules/browserify/node_modules/crypto-browserify/md5.js +384 -0
- data/node_modules/browserify/node_modules/crypto-browserify/package.json +33 -0
- data/node_modules/browserify/node_modules/crypto-browserify/readme.markdown +20 -0
- data/node_modules/browserify/node_modules/crypto-browserify/rng.js +37 -0
- data/node_modules/browserify/node_modules/crypto-browserify/sha.js +210 -0
- data/node_modules/browserify/node_modules/crypto-browserify/test/simple.js +35 -0
- data/node_modules/browserify/node_modules/deputy/.travis.yml +4 -0
- data/node_modules/browserify/node_modules/deputy/README.markdown +55 -0
- data/node_modules/browserify/node_modules/deputy/example/cache.js +5 -0
- data/node_modules/browserify/node_modules/deputy/index.js +46 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/.npmignore +2 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/.travis.yml +5 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/LICENSE +21 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/examples/pow.js +6 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/index.js +82 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/package.json +34 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/readme.markdown +63 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/chmod.js +38 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/clobber.js +37 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/mkdirp.js +28 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/perm.js +32 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/perm_sync.js +39 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/race.js +41 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/rel.js +32 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/return.js +25 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/return_sync.js +24 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/root.js +18 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/sync.js +32 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/umask.js +28 -0
- data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/umask_sync.js +32 -0
- data/node_modules/browserify/node_modules/deputy/package.json +47 -0
- data/node_modules/browserify/node_modules/deputy/test/cache.js +58 -0
- data/node_modules/browserify/node_modules/detective/.travis.yml +4 -0
- data/node_modules/browserify/node_modules/detective/README.markdown +66 -0
- data/node_modules/browserify/node_modules/detective/example/strings.js +6 -0
- data/node_modules/browserify/node_modules/detective/example/strings_src.js +3 -0
- data/node_modules/browserify/node_modules/detective/index.js +60 -0
- data/node_modules/browserify/node_modules/detective/node_modules/.bin/esparse +42 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/.travis.yml +5 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/LICENSE.BSD +19 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/README.md +74 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/codemirror/codemirror.css +112 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/codemirror/codemirror.js +2972 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/codemirror/javascript.js +360 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/json2.js +487 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/style.css +164 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/treeview-min.js +12 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/treeview-sprite.gif +0 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/treeview.css +7 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/yahoo-dom-event.js +14 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/bin/esparse.js +42 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/changes +92 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/cm +696 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/checkenv.js +42 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/collector.html +82 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/collector.js +170 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/functiontrace.html +106 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/functiontrace.js +123 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/parse.css +82 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/parse.html +352 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/precedence.html +225 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/rewrite.html +120 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/rewrite.js +71 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/esprima.js +3577 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/index.html +103 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/package.json +42 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/Tokenizer.js +646 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/XMLHttpRequest.js +509 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/ZeParser.js +2185 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/backbone-0.5.3.js +1158 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/benchmark.js +3261 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/escodegen.js +906 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/esmorph.js +240 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/ext-core-3.0.0.js +6579 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/ext-core-3.1.0.js +10255 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jquery-1.6.4.js +9046 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jquery-1.7.1.js +9266 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jquery.mobile-1.0.js +6951 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jsdefs.js +731 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jslex.js +588 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jsparse.js +1921 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/mootools-1.3.2.js +5952 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/mootools-1.4.1.js +6297 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/parse-js.js +1342 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/platform.js +878 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/prototype-1.6.1.js +4874 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/prototype-1.7.0.0.js +6082 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/underscore-1.2.3.js +981 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/benchmarks.html +58 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/benchmarks.js +328 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compare.html +140 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compare.js +270 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compat.html +40 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compat.js +239 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/coverage.footer.html +3 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/coverage.header.html +37 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/coverage.html +3617 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/index.html +36 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/reflect.js +403 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/run.js +66 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/test.js +16659 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/tools/generate-unicode-regex.py +164 -0
- data/node_modules/browserify/node_modules/detective/node_modules/esprima/tools/update-coverage.sh +28 -0
- data/node_modules/browserify/node_modules/detective/package.json +47 -0
- data/node_modules/browserify/node_modules/detective/test/both.js +11 -0
- data/node_modules/browserify/node_modules/detective/test/chained.js +9 -0
- data/node_modules/browserify/node_modules/detective/test/files/both.js +4 -0
- data/node_modules/browserify/node_modules/detective/test/files/chained.js +5 -0
- data/node_modules/browserify/node_modules/detective/test/files/nested.js +22 -0
- data/node_modules/browserify/node_modules/detective/test/files/skip.js +7 -0
- data/node_modules/browserify/node_modules/detective/test/files/strings.js +13 -0
- data/node_modules/browserify/node_modules/detective/test/files/word.js +13 -0
- data/node_modules/browserify/node_modules/detective/test/nested.js +9 -0
- data/node_modules/browserify/node_modules/detective/test/skip.js +9 -0
- data/node_modules/browserify/node_modules/detective/test/strings.js +9 -0
- data/node_modules/browserify/node_modules/detective/test/word.js +12 -0
- data/node_modules/browserify/node_modules/http-browserify/.npmignore +1 -0
- data/node_modules/browserify/node_modules/http-browserify/example/get/index.html +9 -0
- data/node_modules/browserify/node_modules/http-browserify/example/get/main.js +14 -0
- data/node_modules/browserify/node_modules/http-browserify/example/get/server.js +12 -0
- data/node_modules/browserify/node_modules/http-browserify/example/headers/index.html +9 -0
- data/node_modules/browserify/node_modules/http-browserify/example/headers/main.js +18 -0
- data/node_modules/browserify/node_modules/http-browserify/example/headers/server.js +15 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/data.json +139 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/index.html +9 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/main.js +13 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/.npmignore +2 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/.travis.yml +4 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/LICENSE.APACHE2 +15 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/LICENSE.MIT +24 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/examples/all_docs.js +13 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/index.js +189 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/LICENSE +24 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/README.markdown +11 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/bench.js +26 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/examples/twitterfeed.js +30 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/jsonparse.js +379 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/package.json +36 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic.json +167 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic2.json +180 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/test/primitives.js +54 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/test/utf8.js +38 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/package.json +40 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/readme.markdown +145 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/bool.js +41 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/destroy_missing.js +22 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/empty.js +44 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/fixtures/all_npm.json +4030 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/fn.js +39 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/memory.js +69 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/multiple_objects.js +42 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/multiple_objects_error.js +35 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/parsejson.js +28 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/stringify.js +41 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/stringify_object.js +47 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/test.js +35 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/test2.js +29 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/two-ways.js +41 -0
- data/node_modules/browserify/node_modules/http-browserify/example/json-stream/server.js +10 -0
- data/node_modules/browserify/node_modules/http-browserify/example/post/index.html +9 -0
- data/node_modules/browserify/node_modules/http-browserify/example/post/main.js +16 -0
- data/node_modules/browserify/node_modules/http-browserify/example/post/server.js +19 -0
- data/node_modules/browserify/node_modules/http-browserify/example/streaming/index.html +9 -0
- data/node_modules/browserify/node_modules/http-browserify/example/streaming/main.js +16 -0
- data/node_modules/browserify/node_modules/http-browserify/example/streaming/server.js +21 -0
- data/node_modules/browserify/node_modules/http-browserify/index.js +59 -0
- data/node_modules/browserify/node_modules/http-browserify/lib/request.js +128 -0
- data/node_modules/browserify/node_modules/http-browserify/lib/response.js +119 -0
- data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/index.js +48 -0
- data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/package.json +30 -0
- data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/readme.md +31 -0
- data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/test.js +34 -0
- data/node_modules/browserify/node_modules/http-browserify/package.json +46 -0
- data/node_modules/browserify/node_modules/http-browserify/readme.markdown +128 -0
- data/node_modules/browserify/node_modules/nub/README.markdown +23 -0
- data/node_modules/browserify/node_modules/nub/index.js +64 -0
- data/node_modules/browserify/node_modules/nub/package.json +46 -0
- data/node_modules/browserify/node_modules/nub/test/by.js +51 -0
- data/node_modules/browserify/node_modules/nub/test/nub.js +46 -0
- data/node_modules/browserify/node_modules/resolve/.travis.yml +4 -0
- data/node_modules/browserify/node_modules/resolve/LICENSE +18 -0
- data/node_modules/browserify/node_modules/resolve/README.markdown +47 -0
- data/node_modules/browserify/node_modules/resolve/index.js +106 -0
- data/node_modules/browserify/node_modules/resolve/package.json +45 -0
- data/node_modules/browserify/node_modules/resolve/test/core.js +12 -0
- data/node_modules/browserify/node_modules/resolve/test/filter.js +15 -0
- data/node_modules/browserify/node_modules/resolve/test/mock.js +64 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver.js +157 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/bar/node_modules/foo/index.js +1 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/baz/package.json +3 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/baz/quux.js +1 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/biz/node_modules/grux/index.js +1 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/biz/node_modules/tiv/index.js +1 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/cup.coffee +1 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/foo.js +1 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/mug.coffee +0 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/mug.js +0 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- data/node_modules/browserify/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- data/node_modules/browserify/node_modules/syntax-error/.travis.yml +4 -0
- data/node_modules/browserify/node_modules/syntax-error/LICENSE +18 -0
- data/node_modules/browserify/node_modules/syntax-error/example/check.js +12 -0
- data/node_modules/browserify/node_modules/syntax-error/example/src.js +9 -0
- data/node_modules/browserify/node_modules/syntax-error/index.js +54 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/.bin/esparse +42 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/.travis.yml +5 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/LICENSE.BSD +19 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/README.md +74 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/codemirror/codemirror.css +112 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/codemirror/codemirror.js +2972 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/codemirror/javascript.js +360 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/json2.js +487 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/style.css +164 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/treeview-min.js +12 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/treeview-sprite.gif +0 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/treeview.css +7 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/yahoo-dom-event.js +14 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/bin/esparse.js +42 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/changes +92 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/cm +696 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/checkenv.js +42 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/collector.html +82 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/collector.js +170 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/functiontrace.html +106 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/functiontrace.js +123 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/parse.css +82 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/parse.html +352 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/precedence.html +225 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/rewrite.html +120 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/rewrite.js +71 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/esprima.js +3577 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/index.html +103 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/package.json +42 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/Tokenizer.js +646 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/XMLHttpRequest.js +509 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/ZeParser.js +2185 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/backbone-0.5.3.js +1158 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/benchmark.js +3261 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/escodegen.js +906 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/esmorph.js +240 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/ext-core-3.0.0.js +6579 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/ext-core-3.1.0.js +10255 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery-1.6.4.js +9046 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery-1.7.1.js +9266 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery.mobile-1.0.js +6951 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jsdefs.js +731 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jslex.js +588 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jsparse.js +1921 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/mootools-1.3.2.js +5952 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/mootools-1.4.1.js +6297 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/parse-js.js +1342 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/platform.js +878 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/prototype-1.6.1.js +4874 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/prototype-1.7.0.0.js +6082 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/underscore-1.2.3.js +981 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/benchmarks.html +58 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/benchmarks.js +328 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compare.html +140 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compare.js +270 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compat.html +40 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compat.js +239 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/coverage.footer.html +3 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/coverage.header.html +37 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/coverage.html +3617 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/index.html +36 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/reflect.js +403 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/run.js +66 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/test.js +16659 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/tools/generate-unicode-regex.py +164 -0
- data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/tools/update-coverage.sh +28 -0
- data/node_modules/browserify/node_modules/syntax-error/package.json +49 -0
- data/node_modules/browserify/node_modules/syntax-error/readme.markdown +87 -0
- data/node_modules/browserify/node_modules/syntax-error/test/check.js +17 -0
- data/node_modules/browserify/node_modules/syntax-error/test/sources/check.js +9 -0
- data/node_modules/browserify/node_modules/vm-browserify/README.markdown +103 -0
- data/node_modules/browserify/node_modules/vm-browserify/example/run/bundle.js +473 -0
- data/node_modules/browserify/node_modules/vm-browserify/example/run/entry.js +6 -0
- data/node_modules/browserify/node_modules/vm-browserify/example/run/index.html +9 -0
- data/node_modules/browserify/node_modules/vm-browserify/example/run/server.js +6 -0
- data/node_modules/browserify/node_modules/vm-browserify/index.js +85 -0
- data/node_modules/browserify/node_modules/vm-browserify/package.json +43 -0
- data/node_modules/browserify/node_modules/vm-browserify/testling/run.js +22 -0
- data/node_modules/browserify/node_modules/vm-browserify/testling/test.sh +11 -0
- data/node_modules/browserify/package.json +78 -0
- data/node_modules/browserify/test/alias.js +58 -0
- data/node_modules/browserify/test/backbone.js +21 -0
- data/node_modules/browserify/test/bin.js +39 -0
- data/node_modules/browserify/test/buffer.js +99 -0
- data/node_modules/browserify/test/bundle.js +32 -0
- data/node_modules/browserify/test/cache.js +28 -0
- data/node_modules/browserify/test/coffee.js +39 -0
- data/node_modules/browserify/test/coffee/bar.js +1 -0
- data/node_modules/browserify/test/coffee/baz.coffee +1 -0
- data/node_modules/browserify/test/coffee/entry.coffee +1 -0
- data/node_modules/browserify/test/coffee/foo.coffee +1 -0
- data/node_modules/browserify/test/coffee/index.coffee +5 -0
- data/node_modules/browserify/test/coffee/nested/nested.coffee +2 -0
- data/node_modules/browserify/test/comment.js +17 -0
- data/node_modules/browserify/test/comment/main.js +2 -0
- data/node_modules/browserify/test/crypto.js +37 -0
- data/node_modules/browserify/test/dnode.js +27 -0
- data/node_modules/browserify/test/dollar.js +19 -0
- data/node_modules/browserify/test/dollar/dollar/index.js +7 -0
- data/node_modules/browserify/test/entry.js +36 -0
- data/node_modules/browserify/test/entry/main.js +1 -0
- data/node_modules/browserify/test/entry/one.js +1 -0
- data/node_modules/browserify/test/entry/two.js +1 -0
- data/node_modules/browserify/test/error_code.js +24 -0
- data/node_modules/browserify/test/error_code/src.js +2 -0
- data/node_modules/browserify/test/export.js +52 -0
- data/node_modules/browserify/test/export/entry.js +1 -0
- data/node_modules/browserify/test/field.js +64 -0
- data/node_modules/browserify/test/field/miss.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-miss/browser.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-miss/main.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-miss/package.json +4 -0
- data/node_modules/browserify/test/field/node_modules/z-object/browser.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-object/main.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-object/package.json +6 -0
- data/node_modules/browserify/test/field/node_modules/z-string/browser.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-string/main.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-string/package.json +4 -0
- data/node_modules/browserify/test/field/node_modules/z-sub/browser/a.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-sub/browser/b.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-sub/main.js +1 -0
- data/node_modules/browserify/test/field/node_modules/z-sub/package.json +4 -0
- data/node_modules/browserify/test/field/object.js +1 -0
- data/node_modules/browserify/test/field/string.js +1 -0
- data/node_modules/browserify/test/field/sub.js +1 -0
- data/node_modules/browserify/test/global.js +19 -0
- data/node_modules/browserify/test/global/main.js +2 -0
- data/node_modules/browserify/test/jade.js +35 -0
- data/node_modules/browserify/test/json.js +17 -0
- data/node_modules/browserify/test/json/beep.json +4 -0
- data/node_modules/browserify/test/json/main.js +1 -0
- data/node_modules/browserify/test/maxlisteners.js +8 -0
- data/node_modules/browserify/test/module.js +22 -0
- data/node_modules/browserify/test/multi_entry.js +20 -0
- data/node_modules/browserify/test/multi_entry/a.js +2 -0
- data/node_modules/browserify/test/multi_entry/b.js +2 -0
- data/node_modules/browserify/test/multi_entry/c.js +3 -0
- data/node_modules/browserify/test/multi_ignore.js +23 -0
- data/node_modules/browserify/test/node_modules/beep/index.js +1 -0
- data/node_modules/browserify/test/require_cache.js +18 -0
- data/node_modules/browserify/test/retarget.js +27 -0
- data/node_modules/browserify/test/seq.js +47 -0
- data/node_modules/browserify/test/subdep.js +26 -0
- data/node_modules/browserify/test/subdep/index.js +1 -0
- data/node_modules/browserify/test/subdep/package.json +6 -0
- data/node_modules/browserify/test/util.js +48 -0
- data/node_modules/browserify/test/watch.js +91 -0
- data/node_modules/browserify/test/watch/a.js +1 -0
- data/node_modules/browserify/test/wrap.js +43 -0
- data/node_modules/browserify/test/wrap/a.js +2 -0
- data/node_modules/browserify/test/wrap/c.js +1 -0
- data/node_modules/browserify/test/wrap/node_modules/b/main.js +1 -0
- data/node_modules/browserify/test/wrap/node_modules/b/package.json +3 -0
- data/node_modules/browserify/test/wrap/node_modules/skipmetoo/index.js +1 -0
- data/node_modules/browserify/test/wrap/skipme.js +1 -0
- data/node_modules/browserify/test/wrap/x.js +0 -0
- data/node_modules/browserify/testling/README.markdown +29 -0
- data/node_modules/browserify/testling/test.sh +37 -0
- data/node_modules/browserify/testling/tick.js +9 -0
- data/node_modules/browserify/testling/timers.js +50 -0
- data/node_modules/browserify/testling/util.js +24 -0
- data/node_modules/browserify/v2.markdown +41 -0
- data/node_modules/browserify/wrappers/alias.js +1 -0
- data/node_modules/browserify/wrappers/body.js +2 -0
- data/node_modules/browserify/wrappers/body_debug.js +2 -0
- data/node_modules/browserify/wrappers/entry.js +3 -0
- data/node_modules/browserify/wrappers/entry_debug.js +3 -0
- data/node_modules/browserify/wrappers/package.js +3 -0
- data/node_modules/browserify/wrappers/prelude.js +196 -0
- data/node_modules/coffee-script/.npmignore +11 -0
- data/node_modules/coffee-script/CNAME +1 -0
- data/node_modules/coffee-script/CONTRIBUTING.md +9 -0
- data/node_modules/coffee-script/LICENSE +22 -0
- data/node_modules/coffee-script/README +51 -0
- data/node_modules/coffee-script/Rakefile +78 -0
- data/node_modules/coffee-script/bin/cake +7 -0
- data/node_modules/coffee-script/bin/coffee +7 -0
- data/node_modules/coffee-script/extras/jsl.conf +44 -0
- data/node_modules/coffee-script/lib/coffee-script/browser.js +92 -0
- data/node_modules/coffee-script/lib/coffee-script/cake.js +113 -0
- data/node_modules/coffee-script/lib/coffee-script/coffee-script.js +171 -0
- data/node_modules/coffee-script/lib/coffee-script/command.js +502 -0
- data/node_modules/coffee-script/lib/coffee-script/grammar.js +606 -0
- data/node_modules/coffee-script/lib/coffee-script/helpers.js +88 -0
- data/node_modules/coffee-script/lib/coffee-script/index.js +11 -0
- data/node_modules/coffee-script/lib/coffee-script/lexer.js +788 -0
- data/node_modules/coffee-script/lib/coffee-script/nodes.js +2971 -0
- data/node_modules/coffee-script/lib/coffee-script/optparse.js +138 -0
- data/node_modules/coffee-script/lib/coffee-script/parser.js +683 -0
- data/node_modules/coffee-script/lib/coffee-script/repl.js +276 -0
- data/node_modules/coffee-script/lib/coffee-script/rewriter.js +349 -0
- data/node_modules/coffee-script/lib/coffee-script/scope.js +146 -0
- data/node_modules/coffee-script/package.json +50 -0
- data/node_modules/jade-runtime/.npmignore +15 -0
- data/node_modules/jade-runtime/README.md +8 -0
- data/node_modules/jade-runtime/globals.js +32 -0
- data/node_modules/jade-runtime/index.js +2 -0
- data/node_modules/jade-runtime/jade-runtime.js +181 -0
- data/node_modules/jade-runtime/package.json +18 -0
- data/node_modules/jade/.npmignore +14 -0
- data/node_modules/jade/LICENSE +22 -0
- data/node_modules/jade/Readme.md +1299 -0
- data/node_modules/jade/bin/jade +168 -0
- data/node_modules/jade/index.js +4 -0
- data/node_modules/jade/jade.js +3586 -0
- data/node_modules/jade/jade.md +510 -0
- data/node_modules/jade/jade.min.js +2 -0
- data/node_modules/jade/lib/compiler.js +654 -0
- data/node_modules/jade/lib/doctypes.js +18 -0
- data/node_modules/jade/lib/filters.js +97 -0
- data/node_modules/jade/lib/inline-tags.js +28 -0
- data/node_modules/jade/lib/jade.js +253 -0
- data/node_modules/jade/lib/lexer.js +774 -0
- data/node_modules/jade/lib/nodes/attrs.js +77 -0
- data/node_modules/jade/lib/nodes/block-comment.js +33 -0
- data/node_modules/jade/lib/nodes/block.js +122 -0
- data/node_modules/jade/lib/nodes/case.js +43 -0
- data/node_modules/jade/lib/nodes/code.js +35 -0
- data/node_modules/jade/lib/nodes/comment.js +32 -0
- data/node_modules/jade/lib/nodes/doctype.js +29 -0
- data/node_modules/jade/lib/nodes/each.js +35 -0
- data/node_modules/jade/lib/nodes/filter.js +35 -0
- data/node_modules/jade/lib/nodes/index.js +20 -0
- data/node_modules/jade/lib/nodes/literal.js +32 -0
- data/node_modules/jade/lib/nodes/mixin.js +36 -0
- data/node_modules/jade/lib/nodes/node.js +25 -0
- data/node_modules/jade/lib/nodes/tag.js +95 -0
- data/node_modules/jade/lib/nodes/text.js +36 -0
- data/node_modules/jade/lib/parser.js +714 -0
- data/node_modules/jade/lib/runtime.js +174 -0
- data/node_modules/jade/lib/self-closing.js +19 -0
- data/node_modules/jade/lib/utils.js +49 -0
- data/node_modules/jade/node_modules/commander/.npmignore +4 -0
- data/node_modules/jade/node_modules/commander/.travis.yml +4 -0
- data/node_modules/jade/node_modules/commander/History.md +107 -0
- data/node_modules/jade/node_modules/commander/Makefile +7 -0
- data/node_modules/jade/node_modules/commander/Readme.md +262 -0
- data/node_modules/jade/node_modules/commander/index.js +2 -0
- data/node_modules/jade/node_modules/commander/lib/commander.js +1026 -0
- data/node_modules/jade/node_modules/commander/package.json +39 -0
- data/node_modules/jade/node_modules/mkdirp/.npmignore +2 -0
- data/node_modules/jade/node_modules/mkdirp/.travis.yml +4 -0
- data/node_modules/jade/node_modules/mkdirp/LICENSE +21 -0
- data/node_modules/jade/node_modules/mkdirp/README.markdown +61 -0
- data/node_modules/jade/node_modules/mkdirp/examples/pow.js +6 -0
- data/node_modules/jade/node_modules/mkdirp/index.js +82 -0
- data/node_modules/jade/node_modules/mkdirp/package.json +37 -0
- data/node_modules/jade/node_modules/mkdirp/test/chmod.js +38 -0
- data/node_modules/jade/node_modules/mkdirp/test/clobber.js +37 -0
- data/node_modules/jade/node_modules/mkdirp/test/mkdirp.js +28 -0
- data/node_modules/jade/node_modules/mkdirp/test/perm.js +32 -0
- data/node_modules/jade/node_modules/mkdirp/test/perm_sync.js +39 -0
- data/node_modules/jade/node_modules/mkdirp/test/race.js +41 -0
- data/node_modules/jade/node_modules/mkdirp/test/rel.js +32 -0
- data/node_modules/jade/node_modules/mkdirp/test/return.js +25 -0
- data/node_modules/jade/node_modules/mkdirp/test/return_sync.js +24 -0
- data/node_modules/jade/node_modules/mkdirp/test/root.js +18 -0
- data/node_modules/jade/node_modules/mkdirp/test/sync.js +32 -0
- data/node_modules/jade/node_modules/mkdirp/test/umask.js +28 -0
- data/node_modules/jade/node_modules/mkdirp/test/umask_sync.js +32 -0
- data/node_modules/jade/package.json +53 -0
- data/node_modules/jade/runtime.js +179 -0
- data/node_modules/jade/runtime.min.js +1 -0
- data/node_modules/jade/test.jade +7 -0
- data/node_modules/jade/testing/head.jade +5 -0
- data/node_modules/jade/testing/index.jade +1 -0
- data/node_modules/jade/testing/index.js +14 -0
- data/node_modules/jade/testing/layout.jade +10 -0
- data/node_modules/jade/testing/user.jade +7 -0
- data/node_modules/jade/testing/user.js +27 -0
- data/node_modules/optimist/.travis.yml +4 -0
- data/node_modules/optimist/LICENSE +21 -0
- data/node_modules/optimist/README.markdown +487 -0
- data/node_modules/optimist/example/bool.js +10 -0
- data/node_modules/optimist/example/boolean_double.js +7 -0
- data/node_modules/optimist/example/boolean_single.js +7 -0
- data/node_modules/optimist/example/default_hash.js +8 -0
- data/node_modules/optimist/example/default_singles.js +7 -0
- data/node_modules/optimist/example/divide.js +8 -0
- data/node_modules/optimist/example/line_count.js +20 -0
- data/node_modules/optimist/example/line_count_options.js +29 -0
- data/node_modules/optimist/example/line_count_wrap.js +29 -0
- data/node_modules/optimist/example/nonopt.js +4 -0
- data/node_modules/optimist/example/reflect.js +2 -0
- data/node_modules/optimist/example/short.js +3 -0
- data/node_modules/optimist/example/string.js +11 -0
- data/node_modules/optimist/example/usage-options.js +19 -0
- data/node_modules/optimist/example/xup.js +10 -0
- data/node_modules/optimist/index.js +475 -0
- data/node_modules/optimist/node_modules/wordwrap/.npmignore +1 -0
- data/node_modules/optimist/node_modules/wordwrap/README.markdown +70 -0
- data/node_modules/optimist/node_modules/wordwrap/example/center.js +10 -0
- data/node_modules/optimist/node_modules/wordwrap/example/meat.js +3 -0
- data/node_modules/optimist/node_modules/wordwrap/index.js +76 -0
- data/node_modules/optimist/node_modules/wordwrap/package.json +45 -0
- data/node_modules/optimist/node_modules/wordwrap/test/break.js +30 -0
- data/node_modules/optimist/node_modules/wordwrap/test/idleness.txt +63 -0
- data/node_modules/optimist/node_modules/wordwrap/test/wrap.js +31 -0
- data/node_modules/optimist/package.json +55 -0
- data/node_modules/optimist/test/_.js +71 -0
- data/node_modules/optimist/test/_/argv.js +2 -0
- data/node_modules/optimist/test/_/bin.js +3 -0
- data/node_modules/optimist/test/parse.js +420 -0
- data/node_modules/optimist/test/usage.js +292 -0
- data/snowball.gemspec +1 -2
- metadata +601 -21
- data/extconf.rb +0 -9
@@ -0,0 +1,171 @@
|
|
1
|
+
// Generated by CoffeeScript 1.4.0
|
2
|
+
(function() {
|
3
|
+
var Lexer, RESERVED, compile, fs, lexer, parser, path, stripBOM, vm, _ref,
|
4
|
+
__hasProp = {}.hasOwnProperty;
|
5
|
+
|
6
|
+
fs = require('fs');
|
7
|
+
|
8
|
+
path = require('path');
|
9
|
+
|
10
|
+
_ref = require('./lexer'), Lexer = _ref.Lexer, RESERVED = _ref.RESERVED;
|
11
|
+
|
12
|
+
parser = require('./parser').parser;
|
13
|
+
|
14
|
+
vm = require('vm');
|
15
|
+
|
16
|
+
stripBOM = function(content) {
|
17
|
+
if (content.charCodeAt(0) === 0xFEFF) {
|
18
|
+
return content.substring(1);
|
19
|
+
} else {
|
20
|
+
return content;
|
21
|
+
}
|
22
|
+
};
|
23
|
+
|
24
|
+
if (require.extensions) {
|
25
|
+
require.extensions['.coffee'] = function(module, filename) {
|
26
|
+
var content;
|
27
|
+
content = compile(stripBOM(fs.readFileSync(filename, 'utf8')), {
|
28
|
+
filename: filename
|
29
|
+
});
|
30
|
+
return module._compile(content, filename);
|
31
|
+
};
|
32
|
+
}
|
33
|
+
|
34
|
+
exports.VERSION = '1.4.0';
|
35
|
+
|
36
|
+
exports.RESERVED = RESERVED;
|
37
|
+
|
38
|
+
exports.helpers = require('./helpers');
|
39
|
+
|
40
|
+
exports.compile = compile = function(code, options) {
|
41
|
+
var header, js, merge;
|
42
|
+
if (options == null) {
|
43
|
+
options = {};
|
44
|
+
}
|
45
|
+
merge = exports.helpers.merge;
|
46
|
+
try {
|
47
|
+
js = (parser.parse(lexer.tokenize(code))).compile(options);
|
48
|
+
if (!options.header) {
|
49
|
+
return js;
|
50
|
+
}
|
51
|
+
} catch (err) {
|
52
|
+
if (options.filename) {
|
53
|
+
err.message = "In " + options.filename + ", " + err.message;
|
54
|
+
}
|
55
|
+
throw err;
|
56
|
+
}
|
57
|
+
header = "Generated by CoffeeScript " + this.VERSION;
|
58
|
+
return "// " + header + "\n" + js;
|
59
|
+
};
|
60
|
+
|
61
|
+
exports.tokens = function(code, options) {
|
62
|
+
return lexer.tokenize(code, options);
|
63
|
+
};
|
64
|
+
|
65
|
+
exports.nodes = function(source, options) {
|
66
|
+
if (typeof source === 'string') {
|
67
|
+
return parser.parse(lexer.tokenize(source, options));
|
68
|
+
} else {
|
69
|
+
return parser.parse(source);
|
70
|
+
}
|
71
|
+
};
|
72
|
+
|
73
|
+
exports.run = function(code, options) {
|
74
|
+
var mainModule;
|
75
|
+
if (options == null) {
|
76
|
+
options = {};
|
77
|
+
}
|
78
|
+
mainModule = require.main;
|
79
|
+
mainModule.filename = process.argv[1] = options.filename ? fs.realpathSync(options.filename) : '.';
|
80
|
+
mainModule.moduleCache && (mainModule.moduleCache = {});
|
81
|
+
mainModule.paths = require('module')._nodeModulePaths(path.dirname(fs.realpathSync(options.filename)));
|
82
|
+
if (path.extname(mainModule.filename) !== '.coffee' || require.extensions) {
|
83
|
+
return mainModule._compile(compile(code, options), mainModule.filename);
|
84
|
+
} else {
|
85
|
+
return mainModule._compile(code, mainModule.filename);
|
86
|
+
}
|
87
|
+
};
|
88
|
+
|
89
|
+
exports["eval"] = function(code, options) {
|
90
|
+
var Module, Script, js, k, o, r, sandbox, v, _i, _len, _module, _ref1, _ref2, _require;
|
91
|
+
if (options == null) {
|
92
|
+
options = {};
|
93
|
+
}
|
94
|
+
if (!(code = code.trim())) {
|
95
|
+
return;
|
96
|
+
}
|
97
|
+
Script = vm.Script;
|
98
|
+
if (Script) {
|
99
|
+
if (options.sandbox != null) {
|
100
|
+
if (options.sandbox instanceof Script.createContext().constructor) {
|
101
|
+
sandbox = options.sandbox;
|
102
|
+
} else {
|
103
|
+
sandbox = Script.createContext();
|
104
|
+
_ref1 = options.sandbox;
|
105
|
+
for (k in _ref1) {
|
106
|
+
if (!__hasProp.call(_ref1, k)) continue;
|
107
|
+
v = _ref1[k];
|
108
|
+
sandbox[k] = v;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
sandbox.global = sandbox.root = sandbox.GLOBAL = sandbox;
|
112
|
+
} else {
|
113
|
+
sandbox = global;
|
114
|
+
}
|
115
|
+
sandbox.__filename = options.filename || 'eval';
|
116
|
+
sandbox.__dirname = path.dirname(sandbox.__filename);
|
117
|
+
if (!(sandbox !== global || sandbox.module || sandbox.require)) {
|
118
|
+
Module = require('module');
|
119
|
+
sandbox.module = _module = new Module(options.modulename || 'eval');
|
120
|
+
sandbox.require = _require = function(path) {
|
121
|
+
return Module._load(path, _module, true);
|
122
|
+
};
|
123
|
+
_module.filename = sandbox.__filename;
|
124
|
+
_ref2 = Object.getOwnPropertyNames(require);
|
125
|
+
for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
|
126
|
+
r = _ref2[_i];
|
127
|
+
if (r !== 'paths') {
|
128
|
+
_require[r] = require[r];
|
129
|
+
}
|
130
|
+
}
|
131
|
+
_require.paths = _module.paths = Module._nodeModulePaths(process.cwd());
|
132
|
+
_require.resolve = function(request) {
|
133
|
+
return Module._resolveFilename(request, _module);
|
134
|
+
};
|
135
|
+
}
|
136
|
+
}
|
137
|
+
o = {};
|
138
|
+
for (k in options) {
|
139
|
+
if (!__hasProp.call(options, k)) continue;
|
140
|
+
v = options[k];
|
141
|
+
o[k] = v;
|
142
|
+
}
|
143
|
+
o.bare = true;
|
144
|
+
js = compile(code, o);
|
145
|
+
if (sandbox === global) {
|
146
|
+
return vm.runInThisContext(js);
|
147
|
+
} else {
|
148
|
+
return vm.runInContext(js, sandbox);
|
149
|
+
}
|
150
|
+
};
|
151
|
+
|
152
|
+
lexer = new Lexer;
|
153
|
+
|
154
|
+
parser.lexer = {
|
155
|
+
lex: function() {
|
156
|
+
var tag, _ref1;
|
157
|
+
_ref1 = this.tokens[this.pos++] || [''], tag = _ref1[0], this.yytext = _ref1[1], this.yylineno = _ref1[2];
|
158
|
+
return tag;
|
159
|
+
},
|
160
|
+
setInput: function(tokens) {
|
161
|
+
this.tokens = tokens;
|
162
|
+
return this.pos = 0;
|
163
|
+
},
|
164
|
+
upcomingInput: function() {
|
165
|
+
return "";
|
166
|
+
}
|
167
|
+
};
|
168
|
+
|
169
|
+
parser.yy = require('./nodes');
|
170
|
+
|
171
|
+
}).call(this);
|
@@ -0,0 +1,502 @@
|
|
1
|
+
// Generated by CoffeeScript 1.4.0
|
2
|
+
(function() {
|
3
|
+
var BANNER, CoffeeScript, EventEmitter, SWITCHES, compileJoin, compileOptions, compilePath, compileScript, compileStdio, exec, exists, forkNode, fs, helpers, hidden, joinTimeout, lint, loadRequires, notSources, optionParser, optparse, opts, outputPath, parseOptions, path, printLine, printTokens, printWarn, removeSource, sourceCode, sources, spawn, timeLog, unwatchDir, usage, version, wait, watch, watchDir, watchers, writeJs, _ref;
|
4
|
+
|
5
|
+
fs = require('fs');
|
6
|
+
|
7
|
+
path = require('path');
|
8
|
+
|
9
|
+
helpers = require('./helpers');
|
10
|
+
|
11
|
+
optparse = require('./optparse');
|
12
|
+
|
13
|
+
CoffeeScript = require('./coffee-script');
|
14
|
+
|
15
|
+
_ref = require('child_process'), spawn = _ref.spawn, exec = _ref.exec;
|
16
|
+
|
17
|
+
EventEmitter = require('events').EventEmitter;
|
18
|
+
|
19
|
+
exists = fs.exists || path.exists;
|
20
|
+
|
21
|
+
helpers.extend(CoffeeScript, new EventEmitter);
|
22
|
+
|
23
|
+
printLine = function(line) {
|
24
|
+
return process.stdout.write(line + '\n');
|
25
|
+
};
|
26
|
+
|
27
|
+
printWarn = function(line) {
|
28
|
+
return process.stderr.write(line + '\n');
|
29
|
+
};
|
30
|
+
|
31
|
+
hidden = function(file) {
|
32
|
+
return /^\.|~$/.test(file);
|
33
|
+
};
|
34
|
+
|
35
|
+
BANNER = 'Usage: coffee [options] path/to/script.coffee -- [args]\n\nIf called without options, `coffee` will run your script.';
|
36
|
+
|
37
|
+
SWITCHES = [['-b', '--bare', 'compile without a top-level function wrapper'], ['-c', '--compile', 'compile to JavaScript and save as .js files'], ['-e', '--eval', 'pass a string from the command line as input'], ['-h', '--help', 'display this help message'], ['-i', '--interactive', 'run an interactive CoffeeScript REPL'], ['-j', '--join [FILE]', 'concatenate the source CoffeeScript before compiling'], ['-l', '--lint', 'pipe the compiled JavaScript through JavaScript Lint'], ['-n', '--nodes', 'print out the parse tree that the parser produces'], ['--nodejs [ARGS]', 'pass options directly to the "node" binary'], ['-o', '--output [DIR]', 'set the output directory for compiled JavaScript'], ['-p', '--print', 'print out the compiled JavaScript'], ['-r', '--require [FILE*]', 'require a library before executing your script'], ['-s', '--stdio', 'listen for and compile scripts over stdio'], ['-t', '--tokens', 'print out the tokens that the lexer/rewriter produce'], ['-v', '--version', 'display the version number'], ['-w', '--watch', 'watch scripts for changes and rerun commands']];
|
38
|
+
|
39
|
+
opts = {};
|
40
|
+
|
41
|
+
sources = [];
|
42
|
+
|
43
|
+
sourceCode = [];
|
44
|
+
|
45
|
+
notSources = {};
|
46
|
+
|
47
|
+
watchers = {};
|
48
|
+
|
49
|
+
optionParser = null;
|
50
|
+
|
51
|
+
exports.run = function() {
|
52
|
+
var literals, source, _i, _len, _results;
|
53
|
+
parseOptions();
|
54
|
+
if (opts.nodejs) {
|
55
|
+
return forkNode();
|
56
|
+
}
|
57
|
+
if (opts.help) {
|
58
|
+
return usage();
|
59
|
+
}
|
60
|
+
if (opts.version) {
|
61
|
+
return version();
|
62
|
+
}
|
63
|
+
if (opts.require) {
|
64
|
+
loadRequires();
|
65
|
+
}
|
66
|
+
if (opts.interactive) {
|
67
|
+
return require('./repl');
|
68
|
+
}
|
69
|
+
if (opts.watch && !fs.watch) {
|
70
|
+
return printWarn("The --watch feature depends on Node v0.6.0+. You are running " + process.version + ".");
|
71
|
+
}
|
72
|
+
if (opts.stdio) {
|
73
|
+
return compileStdio();
|
74
|
+
}
|
75
|
+
if (opts["eval"]) {
|
76
|
+
return compileScript(null, sources[0]);
|
77
|
+
}
|
78
|
+
if (!sources.length) {
|
79
|
+
return require('./repl');
|
80
|
+
}
|
81
|
+
literals = opts.run ? sources.splice(1) : [];
|
82
|
+
process.argv = process.argv.slice(0, 2).concat(literals);
|
83
|
+
process.argv[0] = 'coffee';
|
84
|
+
process.execPath = require.main.filename;
|
85
|
+
_results = [];
|
86
|
+
for (_i = 0, _len = sources.length; _i < _len; _i++) {
|
87
|
+
source = sources[_i];
|
88
|
+
_results.push(compilePath(source, true, path.normalize(source)));
|
89
|
+
}
|
90
|
+
return _results;
|
91
|
+
};
|
92
|
+
|
93
|
+
compilePath = function(source, topLevel, base) {
|
94
|
+
return fs.stat(source, function(err, stats) {
|
95
|
+
if (err && err.code !== 'ENOENT') {
|
96
|
+
throw err;
|
97
|
+
}
|
98
|
+
if ((err != null ? err.code : void 0) === 'ENOENT') {
|
99
|
+
if (topLevel && source.slice(-7) !== '.coffee') {
|
100
|
+
source = sources[sources.indexOf(source)] = "" + source + ".coffee";
|
101
|
+
return compilePath(source, topLevel, base);
|
102
|
+
}
|
103
|
+
if (topLevel) {
|
104
|
+
console.error("File not found: " + source);
|
105
|
+
process.exit(1);
|
106
|
+
}
|
107
|
+
return;
|
108
|
+
}
|
109
|
+
if (stats.isDirectory()) {
|
110
|
+
if (opts.watch) {
|
111
|
+
watchDir(source, base);
|
112
|
+
}
|
113
|
+
return fs.readdir(source, function(err, files) {
|
114
|
+
var file, index, _ref1, _ref2;
|
115
|
+
if (err && err.code !== 'ENOENT') {
|
116
|
+
throw err;
|
117
|
+
}
|
118
|
+
if ((err != null ? err.code : void 0) === 'ENOENT') {
|
119
|
+
return;
|
120
|
+
}
|
121
|
+
index = sources.indexOf(source);
|
122
|
+
files = files.filter(function(file) {
|
123
|
+
return !hidden(file);
|
124
|
+
});
|
125
|
+
[].splice.apply(sources, [index, index - index + 1].concat(_ref1 = (function() {
|
126
|
+
var _i, _len, _results;
|
127
|
+
_results = [];
|
128
|
+
for (_i = 0, _len = files.length; _i < _len; _i++) {
|
129
|
+
file = files[_i];
|
130
|
+
_results.push(path.join(source, file));
|
131
|
+
}
|
132
|
+
return _results;
|
133
|
+
})())), _ref1;
|
134
|
+
[].splice.apply(sourceCode, [index, index - index + 1].concat(_ref2 = files.map(function() {
|
135
|
+
return null;
|
136
|
+
}))), _ref2;
|
137
|
+
return files.forEach(function(file) {
|
138
|
+
return compilePath(path.join(source, file), false, base);
|
139
|
+
});
|
140
|
+
});
|
141
|
+
} else if (topLevel || path.extname(source) === '.coffee') {
|
142
|
+
if (opts.watch) {
|
143
|
+
watch(source, base);
|
144
|
+
}
|
145
|
+
return fs.readFile(source, function(err, code) {
|
146
|
+
if (err && err.code !== 'ENOENT') {
|
147
|
+
throw err;
|
148
|
+
}
|
149
|
+
if ((err != null ? err.code : void 0) === 'ENOENT') {
|
150
|
+
return;
|
151
|
+
}
|
152
|
+
return compileScript(source, code.toString(), base);
|
153
|
+
});
|
154
|
+
} else {
|
155
|
+
notSources[source] = true;
|
156
|
+
return removeSource(source, base);
|
157
|
+
}
|
158
|
+
});
|
159
|
+
};
|
160
|
+
|
161
|
+
compileScript = function(file, input, base) {
|
162
|
+
var o, options, t, task;
|
163
|
+
o = opts;
|
164
|
+
options = compileOptions(file);
|
165
|
+
try {
|
166
|
+
t = task = {
|
167
|
+
file: file,
|
168
|
+
input: input,
|
169
|
+
options: options
|
170
|
+
};
|
171
|
+
CoffeeScript.emit('compile', task);
|
172
|
+
if (o.tokens) {
|
173
|
+
return printTokens(CoffeeScript.tokens(t.input));
|
174
|
+
} else if (o.nodes) {
|
175
|
+
return printLine(CoffeeScript.nodes(t.input).toString().trim());
|
176
|
+
} else if (o.run) {
|
177
|
+
return CoffeeScript.run(t.input, t.options);
|
178
|
+
} else if (o.join && t.file !== o.join) {
|
179
|
+
sourceCode[sources.indexOf(t.file)] = t.input;
|
180
|
+
return compileJoin();
|
181
|
+
} else {
|
182
|
+
t.output = CoffeeScript.compile(t.input, t.options);
|
183
|
+
CoffeeScript.emit('success', task);
|
184
|
+
if (o.print) {
|
185
|
+
return printLine(t.output.trim());
|
186
|
+
} else if (o.compile) {
|
187
|
+
return writeJs(t.file, t.output, base);
|
188
|
+
} else if (o.lint) {
|
189
|
+
return lint(t.file, t.output);
|
190
|
+
}
|
191
|
+
}
|
192
|
+
} catch (err) {
|
193
|
+
CoffeeScript.emit('failure', err, task);
|
194
|
+
if (CoffeeScript.listeners('failure').length) {
|
195
|
+
return;
|
196
|
+
}
|
197
|
+
if (o.watch) {
|
198
|
+
return printLine(err.message + '\x07');
|
199
|
+
}
|
200
|
+
printWarn(err instanceof Error && err.stack || ("ERROR: " + err));
|
201
|
+
return process.exit(1);
|
202
|
+
}
|
203
|
+
};
|
204
|
+
|
205
|
+
compileStdio = function() {
|
206
|
+
var code, stdin;
|
207
|
+
code = '';
|
208
|
+
stdin = process.openStdin();
|
209
|
+
stdin.on('data', function(buffer) {
|
210
|
+
if (buffer) {
|
211
|
+
return code += buffer.toString();
|
212
|
+
}
|
213
|
+
});
|
214
|
+
return stdin.on('end', function() {
|
215
|
+
return compileScript(null, code);
|
216
|
+
});
|
217
|
+
};
|
218
|
+
|
219
|
+
joinTimeout = null;
|
220
|
+
|
221
|
+
compileJoin = function() {
|
222
|
+
if (!opts.join) {
|
223
|
+
return;
|
224
|
+
}
|
225
|
+
if (!sourceCode.some(function(code) {
|
226
|
+
return code === null;
|
227
|
+
})) {
|
228
|
+
clearTimeout(joinTimeout);
|
229
|
+
return joinTimeout = wait(100, function() {
|
230
|
+
return compileScript(opts.join, sourceCode.join('\n'), opts.join);
|
231
|
+
});
|
232
|
+
}
|
233
|
+
};
|
234
|
+
|
235
|
+
loadRequires = function() {
|
236
|
+
var realFilename, req, _i, _len, _ref1;
|
237
|
+
realFilename = module.filename;
|
238
|
+
module.filename = '.';
|
239
|
+
_ref1 = opts.require;
|
240
|
+
for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
|
241
|
+
req = _ref1[_i];
|
242
|
+
require(req);
|
243
|
+
}
|
244
|
+
return module.filename = realFilename;
|
245
|
+
};
|
246
|
+
|
247
|
+
watch = function(source, base) {
|
248
|
+
var compile, compileTimeout, prevStats, rewatch, watchErr, watcher;
|
249
|
+
prevStats = null;
|
250
|
+
compileTimeout = null;
|
251
|
+
watchErr = function(e) {
|
252
|
+
if (e.code === 'ENOENT') {
|
253
|
+
if (sources.indexOf(source) === -1) {
|
254
|
+
return;
|
255
|
+
}
|
256
|
+
try {
|
257
|
+
rewatch();
|
258
|
+
return compile();
|
259
|
+
} catch (e) {
|
260
|
+
removeSource(source, base, true);
|
261
|
+
return compileJoin();
|
262
|
+
}
|
263
|
+
} else {
|
264
|
+
throw e;
|
265
|
+
}
|
266
|
+
};
|
267
|
+
compile = function() {
|
268
|
+
clearTimeout(compileTimeout);
|
269
|
+
return compileTimeout = wait(25, function() {
|
270
|
+
return fs.stat(source, function(err, stats) {
|
271
|
+
if (err) {
|
272
|
+
return watchErr(err);
|
273
|
+
}
|
274
|
+
if (prevStats && stats.size === prevStats.size && stats.mtime.getTime() === prevStats.mtime.getTime()) {
|
275
|
+
return rewatch();
|
276
|
+
}
|
277
|
+
prevStats = stats;
|
278
|
+
return fs.readFile(source, function(err, code) {
|
279
|
+
if (err) {
|
280
|
+
return watchErr(err);
|
281
|
+
}
|
282
|
+
compileScript(source, code.toString(), base);
|
283
|
+
return rewatch();
|
284
|
+
});
|
285
|
+
});
|
286
|
+
});
|
287
|
+
};
|
288
|
+
try {
|
289
|
+
watcher = fs.watch(source, compile);
|
290
|
+
} catch (e) {
|
291
|
+
watchErr(e);
|
292
|
+
}
|
293
|
+
return rewatch = function() {
|
294
|
+
if (watcher != null) {
|
295
|
+
watcher.close();
|
296
|
+
}
|
297
|
+
return watcher = fs.watch(source, compile);
|
298
|
+
};
|
299
|
+
};
|
300
|
+
|
301
|
+
watchDir = function(source, base) {
|
302
|
+
var readdirTimeout, watcher;
|
303
|
+
readdirTimeout = null;
|
304
|
+
try {
|
305
|
+
return watcher = fs.watch(source, function() {
|
306
|
+
clearTimeout(readdirTimeout);
|
307
|
+
return readdirTimeout = wait(25, function() {
|
308
|
+
return fs.readdir(source, function(err, files) {
|
309
|
+
var file, _i, _len, _results;
|
310
|
+
if (err) {
|
311
|
+
if (err.code !== 'ENOENT') {
|
312
|
+
throw err;
|
313
|
+
}
|
314
|
+
watcher.close();
|
315
|
+
return unwatchDir(source, base);
|
316
|
+
}
|
317
|
+
_results = [];
|
318
|
+
for (_i = 0, _len = files.length; _i < _len; _i++) {
|
319
|
+
file = files[_i];
|
320
|
+
if (!(!hidden(file) && !notSources[file])) {
|
321
|
+
continue;
|
322
|
+
}
|
323
|
+
file = path.join(source, file);
|
324
|
+
if (sources.some(function(s) {
|
325
|
+
return s.indexOf(file) >= 0;
|
326
|
+
})) {
|
327
|
+
continue;
|
328
|
+
}
|
329
|
+
sources.push(file);
|
330
|
+
sourceCode.push(null);
|
331
|
+
_results.push(compilePath(file, false, base));
|
332
|
+
}
|
333
|
+
return _results;
|
334
|
+
});
|
335
|
+
});
|
336
|
+
});
|
337
|
+
} catch (e) {
|
338
|
+
if (e.code !== 'ENOENT') {
|
339
|
+
throw e;
|
340
|
+
}
|
341
|
+
}
|
342
|
+
};
|
343
|
+
|
344
|
+
unwatchDir = function(source, base) {
|
345
|
+
var file, prevSources, toRemove, _i, _len;
|
346
|
+
prevSources = sources.slice(0);
|
347
|
+
toRemove = (function() {
|
348
|
+
var _i, _len, _results;
|
349
|
+
_results = [];
|
350
|
+
for (_i = 0, _len = sources.length; _i < _len; _i++) {
|
351
|
+
file = sources[_i];
|
352
|
+
if (file.indexOf(source) >= 0) {
|
353
|
+
_results.push(file);
|
354
|
+
}
|
355
|
+
}
|
356
|
+
return _results;
|
357
|
+
})();
|
358
|
+
for (_i = 0, _len = toRemove.length; _i < _len; _i++) {
|
359
|
+
file = toRemove[_i];
|
360
|
+
removeSource(file, base, true);
|
361
|
+
}
|
362
|
+
if (!sources.some(function(s, i) {
|
363
|
+
return prevSources[i] !== s;
|
364
|
+
})) {
|
365
|
+
return;
|
366
|
+
}
|
367
|
+
return compileJoin();
|
368
|
+
};
|
369
|
+
|
370
|
+
removeSource = function(source, base, removeJs) {
|
371
|
+
var index, jsPath;
|
372
|
+
index = sources.indexOf(source);
|
373
|
+
sources.splice(index, 1);
|
374
|
+
sourceCode.splice(index, 1);
|
375
|
+
if (removeJs && !opts.join) {
|
376
|
+
jsPath = outputPath(source, base);
|
377
|
+
return exists(jsPath, function(itExists) {
|
378
|
+
if (itExists) {
|
379
|
+
return fs.unlink(jsPath, function(err) {
|
380
|
+
if (err && err.code !== 'ENOENT') {
|
381
|
+
throw err;
|
382
|
+
}
|
383
|
+
return timeLog("removed " + source);
|
384
|
+
});
|
385
|
+
}
|
386
|
+
});
|
387
|
+
}
|
388
|
+
};
|
389
|
+
|
390
|
+
outputPath = function(source, base) {
|
391
|
+
var baseDir, dir, filename, srcDir;
|
392
|
+
filename = path.basename(source, path.extname(source)) + '.js';
|
393
|
+
srcDir = path.dirname(source);
|
394
|
+
baseDir = base === '.' ? srcDir : srcDir.substring(base.length);
|
395
|
+
dir = opts.output ? path.join(opts.output, baseDir) : srcDir;
|
396
|
+
return path.join(dir, filename);
|
397
|
+
};
|
398
|
+
|
399
|
+
writeJs = function(source, js, base) {
|
400
|
+
var compile, jsDir, jsPath;
|
401
|
+
jsPath = outputPath(source, base);
|
402
|
+
jsDir = path.dirname(jsPath);
|
403
|
+
compile = function() {
|
404
|
+
if (js.length <= 0) {
|
405
|
+
js = ' ';
|
406
|
+
}
|
407
|
+
return fs.writeFile(jsPath, js, function(err) {
|
408
|
+
if (err) {
|
409
|
+
return printLine(err.message);
|
410
|
+
} else if (opts.compile && opts.watch) {
|
411
|
+
return timeLog("compiled " + source);
|
412
|
+
}
|
413
|
+
});
|
414
|
+
};
|
415
|
+
return exists(jsDir, function(itExists) {
|
416
|
+
if (itExists) {
|
417
|
+
return compile();
|
418
|
+
} else {
|
419
|
+
return exec("mkdir -p " + jsDir, compile);
|
420
|
+
}
|
421
|
+
});
|
422
|
+
};
|
423
|
+
|
424
|
+
wait = function(milliseconds, func) {
|
425
|
+
return setTimeout(func, milliseconds);
|
426
|
+
};
|
427
|
+
|
428
|
+
timeLog = function(message) {
|
429
|
+
return console.log("" + ((new Date).toLocaleTimeString()) + " - " + message);
|
430
|
+
};
|
431
|
+
|
432
|
+
lint = function(file, js) {
|
433
|
+
var conf, jsl, printIt;
|
434
|
+
printIt = function(buffer) {
|
435
|
+
return printLine(file + ':\t' + buffer.toString().trim());
|
436
|
+
};
|
437
|
+
conf = __dirname + '/../../extras/jsl.conf';
|
438
|
+
jsl = spawn('jsl', ['-nologo', '-stdin', '-conf', conf]);
|
439
|
+
jsl.stdout.on('data', printIt);
|
440
|
+
jsl.stderr.on('data', printIt);
|
441
|
+
jsl.stdin.write(js);
|
442
|
+
return jsl.stdin.end();
|
443
|
+
};
|
444
|
+
|
445
|
+
printTokens = function(tokens) {
|
446
|
+
var strings, tag, token, value;
|
447
|
+
strings = (function() {
|
448
|
+
var _i, _len, _ref1, _results;
|
449
|
+
_results = [];
|
450
|
+
for (_i = 0, _len = tokens.length; _i < _len; _i++) {
|
451
|
+
token = tokens[_i];
|
452
|
+
_ref1 = [token[0], token[1].toString().replace(/\n/, '\\n')], tag = _ref1[0], value = _ref1[1];
|
453
|
+
_results.push("[" + tag + " " + value + "]");
|
454
|
+
}
|
455
|
+
return _results;
|
456
|
+
})();
|
457
|
+
return printLine(strings.join(' '));
|
458
|
+
};
|
459
|
+
|
460
|
+
parseOptions = function() {
|
461
|
+
var i, o, source, _i, _len;
|
462
|
+
optionParser = new optparse.OptionParser(SWITCHES, BANNER);
|
463
|
+
o = opts = optionParser.parse(process.argv.slice(2));
|
464
|
+
o.compile || (o.compile = !!o.output);
|
465
|
+
o.run = !(o.compile || o.print || o.lint);
|
466
|
+
o.print = !!(o.print || (o["eval"] || o.stdio && o.compile));
|
467
|
+
sources = o["arguments"];
|
468
|
+
for (i = _i = 0, _len = sources.length; _i < _len; i = ++_i) {
|
469
|
+
source = sources[i];
|
470
|
+
sourceCode[i] = null;
|
471
|
+
}
|
472
|
+
};
|
473
|
+
|
474
|
+
compileOptions = function(filename) {
|
475
|
+
return {
|
476
|
+
filename: filename,
|
477
|
+
bare: opts.bare,
|
478
|
+
header: opts.compile
|
479
|
+
};
|
480
|
+
};
|
481
|
+
|
482
|
+
forkNode = function() {
|
483
|
+
var args, nodeArgs;
|
484
|
+
nodeArgs = opts.nodejs.split(/\s+/);
|
485
|
+
args = process.argv.slice(1);
|
486
|
+
args.splice(args.indexOf('--nodejs'), 2);
|
487
|
+
return spawn(process.execPath, nodeArgs.concat(args), {
|
488
|
+
cwd: process.cwd(),
|
489
|
+
env: process.env,
|
490
|
+
customFds: [0, 1, 2]
|
491
|
+
});
|
492
|
+
};
|
493
|
+
|
494
|
+
usage = function() {
|
495
|
+
return printLine((new optparse.OptionParser(SWITCHES, BANNER)).help());
|
496
|
+
};
|
497
|
+
|
498
|
+
version = function() {
|
499
|
+
return printLine("CoffeeScript version " + CoffeeScript.VERSION);
|
500
|
+
};
|
501
|
+
|
502
|
+
}).call(this);
|