traceur-rb 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +2 -2
- data/lib/js/compile.js +7 -15
- data/lib/traceur.rb +2 -1
- data/lib/traceur/compilation_error.rb +27 -0
- data/lib/traceur/compiler.rb +4 -1
- data/lib/traceur/configuration.rb +1 -1
- data/lib/traceur/node/runner.rb +1 -1
- data/lib/traceur/version.rb +1 -1
- data/spec/examples/syntax_error.js +3 -0
- data/spec/integration/examples_spec.rb +6 -0
- data/vendor/node_modules/traceur/LICENSE +202 -0
- data/vendor/node_modules/traceur/README.md +5 -5
- data/vendor/node_modules/traceur/bin/traceur-runtime.js +1392 -623
- data/vendor/node_modules/traceur/bin/traceur.js +24749 -17990
- data/vendor/node_modules/traceur/node_modules/.bin/semver +2 -2
- data/vendor/node_modules/traceur/node_modules/commander/History.md +222 -0
- data/vendor/node_modules/traceur/node_modules/commander/Readme.md +127 -35
- data/vendor/node_modules/traceur/node_modules/commander/index.js +261 -93
- data/vendor/node_modules/traceur/node_modules/commander/package.json +41 -9
- data/vendor/node_modules/traceur/node_modules/glob/LICENSE +15 -0
- data/vendor/node_modules/traceur/node_modules/glob/README.md +357 -0
- data/vendor/node_modules/traceur/node_modules/glob/common.js +177 -0
- data/vendor/node_modules/traceur/node_modules/glob/glob.js +649 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/.eslintrc +17 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/LICENSE +15 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/README.md +37 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/inflight.js +44 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/LICENSE +15 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md +36 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +34 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/test/basic.js +51 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js +33 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/package.json +61 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/test.js +97 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/LICENSE +16 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/README.md +42 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/inherits.js +1 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/inherits_browser.js +23 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/package.json +33 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/test.js +25 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/.npmignore +1 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/.travis.yml +4 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/LICENSE +23 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/README.md +216 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/benchmark.js +15 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/browser.js +1181 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/minimatch.js +845 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +2 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.travis.yml +3 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +121 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +8 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +191 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +2 -0
- data/vendor/node_modules/traceur/node_modules/{q-io/node_modules/collections → glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/.travis.yml +0 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +6 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +80 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +5 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +38 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +73 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +56 -0
- data/vendor/node_modules/traceur/node_modules/{q-io/node_modules/url2 → glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/.travis.yml +1 -1
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE +18 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +62 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +6 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +13 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +83 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +39 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +75 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-comparison.js +32 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-results.txt +1075 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/cases.txt +182 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/dollar.js +9 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/empty-option.js +10 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/generate.sh +24 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/negative-increment.js +15 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/nested.js +16 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/order.js +10 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/pad.js +13 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/same-type.js +7 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/sequence.js +50 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/package.json +60 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/test/basic.js +399 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/test/brace-expand.js +45 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/test/defaults.js +274 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/test/extglob-ending-with-state-char.js +8 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/LICENSE +27 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/README.md +51 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE +15 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +36 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +34 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +51 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +33 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/once.js +21 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/package.json +42 -0
- data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/test/once.js +23 -0
- data/vendor/node_modules/traceur/node_modules/glob/package.json +72 -0
- data/vendor/node_modules/traceur/node_modules/glob/sync.js +409 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/.release.json +17 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/CHANGELOG.md +165 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/LICENSE +19 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/README.md +364 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/dist/rsvp.js +1671 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/dist/rsvp.min.js +9 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp.js +66 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp.umd.js +50 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/-internal.js +265 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/all-settled.js +71 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/all.js +15 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/asap.js +109 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/config.js +28 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/defer.js +45 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/enumerator.js +125 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/events.js +201 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/filter.js +120 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/hash-settled.js +124 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/hash.js +94 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/instrument.js +41 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/map.js +99 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/node.js +281 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise-hash.js +51 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise.js +496 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/all.js +52 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/race.js +105 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/reject.js +47 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/resolve.js +49 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/race.js +15 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/reject.js +16 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/resolve.js +17 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/rethrow.js +46 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/utils.js +39 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/package.json +100 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/README.md +9 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/bower.json +22 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/composer.json +18 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/package.json +52 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/rsvp.amd.js +1607 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/rsvp.js +1566 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/rsvp.min.js +26 -0
- data/vendor/node_modules/traceur/node_modules/rsvp/vertx.js +1 -0
- data/vendor/node_modules/traceur/node_modules/semver/bin/semver +2 -2
- data/vendor/node_modules/traceur/node_modules/semver/package.json +4 -3
- data/vendor/node_modules/traceur/node_modules/semver/semver.browser.js +7 -0
- data/vendor/node_modules/traceur/node_modules/semver/semver.browser.js.gz +0 -0
- data/vendor/node_modules/traceur/node_modules/semver/semver.js +7 -0
- data/vendor/node_modules/traceur/node_modules/semver/semver.min.js +1 -1
- data/vendor/node_modules/traceur/node_modules/semver/semver.min.js.gz +0 -0
- data/vendor/node_modules/traceur/node_modules/semver/test/index.js +8 -4
- data/vendor/node_modules/traceur/node_modules/semver/test/ltr.js +2 -1
- data/vendor/node_modules/traceur/node_modules/source-map-support/.npmignore +1 -0
- data/vendor/node_modules/traceur/node_modules/{q-io/node_modules/mime/LICENSE → source-map-support/LICENSE.md} +7 -5
- data/vendor/node_modules/traceur/node_modules/source-map-support/README.md +165 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/browser-source-map-support.js +89 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/index.html +6 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/require.js +36 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/script.coffee +13 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/script.js +24 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/script.map +10 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/browser-source-map-support.js +89 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/browser-test/index.html +6 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/browser-test/script.coffee +12 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/browser-test/script.js +25 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/browser-test/script.map +10 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/build.js +69 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/index.html +6 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/script.coffee +12 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/script.js +25 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/script.map +10 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/server.js +45 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/.npmignore +2 -0
- data/vendor/node_modules/traceur/node_modules/{q-io → source-map-support/node_modules/source-map}/.travis.yml +1 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/CHANGELOG.md +121 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/LICENSE +28 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/Makefile.dryice.js +166 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/README.md +434 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/assert-shim.js +56 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/mini-require.js +152 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/prefix-source-map.jsm +20 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/prefix-utils.jsm +18 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-browser.js +8 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-source-map.jsm +6 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-utils.jsm +21 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/test-prefix.js +8 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/test-suffix.js +3 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map.js +8 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/array-set.js +97 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/base64-vlq.js +144 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/base64.js +42 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/binary-search.js +81 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-map-consumer.js +478 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-map-generator.js +380 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-node.js +371 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/util.js +205 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/LICENSE +58 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/README.md +171 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/amdefine.js +299 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/intercept.js +36 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/package.json +37 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/package.json +142 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/run-tests.js +62 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-api.js +26 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-array-set.js +104 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-base64-vlq.js +24 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-base64.js +35 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-dog-fooding.js +72 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-map-consumer.js +451 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-map-generator.js +417 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-node.js +365 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/util.js +161 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/package.json +52 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/source-map-support.js +381 -0
- data/vendor/node_modules/traceur/node_modules/source-map-support/test.js +359 -0
- data/vendor/node_modules/traceur/package.json +234 -20
- data/vendor/node_modules/traceur/src/node/NodeCompiler.js +78 -0
- data/vendor/node_modules/traceur/src/node/System.js +32 -5
- data/vendor/node_modules/traceur/src/node/api.js +28 -93
- data/vendor/node_modules/traceur/src/node/command.js +84 -19
- data/vendor/node_modules/traceur/src/node/compileAllJsFilesInDir.js +40 -0
- data/vendor/node_modules/traceur/src/node/interpreter.js +11 -8
- data/vendor/node_modules/traceur/src/node/recursiveModuleCompile.js +171 -0
- data/vendor/node_modules/traceur/src/node/require.js +7 -21
- data/vendor/node_modules/traceur/src/node/to-amd-compiler.js +2 -7
- data/vendor/node_modules/traceur/src/node/to-closure-compiler.js +28 -0
- data/vendor/node_modules/traceur/src/node/to-commonjs-compiler.js +3 -7
- data/vendor/node_modules/traceur/src/node/traceur.js +1 -1
- metadata +196 -190
- data/vendor/node_modules/traceur/node_modules/q-io/.npmignore +0 -1
- data/vendor/node_modules/traceur/node_modules/q-io/CHANGES.md +0 -122
- data/vendor/node_modules/traceur/node_modules/q-io/LICENSE +0 -19
- data/vendor/node_modules/traceur/node_modules/q-io/README.md +0 -928
- data/vendor/node_modules/traceur/node_modules/q-io/buffer-stream.js +0 -59
- data/vendor/node_modules/traceur/node_modules/q-io/coverage-report.js +0 -44
- data/vendor/node_modules/traceur/node_modules/q-io/deprecate.js +0 -51
- data/vendor/node_modules/traceur/node_modules/q-io/fs-boot.js +0 -307
- data/vendor/node_modules/traceur/node_modules/q-io/fs-common.js +0 -499
- data/vendor/node_modules/traceur/node_modules/q-io/fs-mock.js +0 -547
- data/vendor/node_modules/traceur/node_modules/q-io/fs-root.js +0 -105
- data/vendor/node_modules/traceur/node_modules/q-io/fs.js +0 -355
- data/vendor/node_modules/traceur/node_modules/q-io/fs2http.js +0 -65
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps.js +0 -152
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/chain.js +0 -24
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/content.js +0 -93
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/cookie.js +0 -154
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/decorators.js +0 -178
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/fs.js +0 -417
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/html.js +0 -58
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/json.js +0 -78
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/negotiate.js +0 -120
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/proxy.js +0 -27
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/redirect.js +0 -209
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/route.js +0 -125
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/status.js +0 -175
- data/vendor/node_modules/traceur/node_modules/q-io/http-cookie.js +0 -75
- data/vendor/node_modules/traceur/node_modules/q-io/http.js +0 -378
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/.npmignore +0 -11
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/CHANGES.md +0 -78
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/LICENSE.md +0 -21
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/README.md +0 -1285
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/collections.js +0 -22
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/dict.js +0 -142
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/fast-map.js +0 -57
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/fast-set.js +0 -183
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-collection.js +0 -261
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-map.js +0 -186
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-order.js +0 -55
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-set.js +0 -59
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/heap.js +0 -236
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/iterator.js +0 -371
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/list.js +0 -435
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/array-changes.js +0 -247
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/map-changes.js +0 -147
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/property-changes.js +0 -448
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/range-changes.js +0 -139
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/lru-map.js +0 -79
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/lru-set.js +0 -142
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/map.js +0 -60
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/multi-map.js +0 -41
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/package.json +0 -12
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/sync +0 -7
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/sync.patch +0 -48
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/weak-map.js +0 -590
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/package.json +0 -49
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/set.js +0 -173
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-array.js +0 -274
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-function.js +0 -59
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-object.js +0 -538
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-regexp.js +0 -14
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim.js +0 -6
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-array-map.js +0 -49
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-array-set.js +0 -51
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-array.js +0 -269
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-map.js +0 -61
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-set.js +0 -736
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/tree-log.js +0 -40
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/weak-map.js +0 -1
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/README.md +0 -66
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/mime.js +0 -114
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/package.json +0 -35
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/test.js +0 -84
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/types/mime.types +0 -1588
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/types/node.types +0 -77
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/CHANGES +0 -15
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/LICENSE +0 -19
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/README +0 -96
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/lib/mimeparse.js +0 -166
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/package.json +0 -43
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/CONTRIBUTING.md +0 -40
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/LICENSE +0 -19
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/README.md +0 -813
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/benchmark/compare-with-callbacks.js +0 -71
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/benchmark/scenarios.js +0 -36
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/package.json +0 -93
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/q.js +0 -1937
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/queue.js +0 -35
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/.gitmodules +0 -6
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/History.md +0 -36
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/Makefile +0 -7
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/Readme.md +0 -38
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/benchmark.js +0 -32
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/examples.js +0 -39
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/index.js +0 -2
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/lib/querystring.js +0 -123
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/package.json +0 -19
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/.gitmodules +0 -3
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/.npmignore +0 -3
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/History.md +0 -128
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/Makefile +0 -53
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/Readme.md +0 -61
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/bin/expresso +0 -856
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/api.html +0 -1080
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/index.html +0 -377
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/index.md +0 -290
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/layout/foot.html +0 -3
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/layout/head.html +0 -42
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/lib/bar.js +0 -4
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/lib/foo.js +0 -16
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/package.json +0 -12
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/assert.test.js +0 -91
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/async.test.js +0 -12
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/bar.test.js +0 -13
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/foo.test.js +0 -14
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/http.test.js +0 -146
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/serial/async.test.js +0 -39
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/serial/http.test.js +0 -48
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/.gitmodules +0 -3
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/History.md +0 -22
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/Makefile +0 -6
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/Readme.md +0 -248
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/examples/runner.js +0 -53
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/index.js +0 -2
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/lib/eql.js +0 -91
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/lib/should.js +0 -548
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/package.json +0 -8
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/test/should.test.js +0 -358
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/test/querystring.test.js +0 -133
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/.npmignore +0 -3
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/LICENSE.md +0 -20
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/README.md +0 -33
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/package.json +0 -37
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/test/url2-spec.js +0 -125
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/url2.js +0 -151
- data/vendor/node_modules/traceur/node_modules/q-io/package.json +0 -51
- data/vendor/node_modules/traceur/node_modules/q-io/reader.js +0 -133
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/boot-directory-spec.js +0 -47
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/contains-spec.js +0 -11
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/fixtures/hello.txt +0 -1
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/issues/1-spec.js +0 -33
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/make-tree-spec.js +0 -92
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/append-spec.js +0 -41
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/copy-tree-spec.js +0 -57
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/fixture/hello.txt +0 -1
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/link-spec.js +0 -70
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/make-tree-spec.js +0 -109
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/merge-spec.js +0 -67
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/move-spec.js +0 -219
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/object-spec.js +0 -20
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/range-spec.js +0 -26
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/read-spec.js +0 -40
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/remove-directory-spec.js +0 -37
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/remove-tree-spec.js +0 -39
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/root-spec.js +0 -32
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/stat-spec.js +0 -26
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/symbolic-link-spec.js +0 -86
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/working-directory-spec.js +0 -31
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/write-spec.js +0 -73
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/range-spec.js +0 -23
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/range-spec.txt +0 -1
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/read-spec.js +0 -22
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/relative-spec.js +0 -25
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/reroot-spec.js +0 -45
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/write-spec.js +0 -38
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/cookie-spec.js +0 -52
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/directory-list-spec.js +0 -86
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/fixtures/01234.txt +0 -1
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/fixtures/1234.txt +0 -1
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/fixtures/5678.txt +0 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/fixtures/9012/3456.txt +0 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/hosts-spec.js +0 -49
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/interpret-range-spec.js +0 -47
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/partial-range-spec.js +0 -186
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/proxy-spec.js +0 -82
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/symbolic-link-spec.js +0 -110
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http/agent-spec.js +0 -96
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http/basic-spec.js +0 -96
- data/vendor/node_modules/traceur/node_modules/q-io/spec/lib/jasmine-promise.js +0 -42
- data/vendor/node_modules/traceur/node_modules/q-io/writer.js +0 -111
- data/vendor/node_modules/traceur/src/node/compile-single-file.js +0 -69
- data/vendor/node_modules/traceur/src/node/compiler.js +0 -116
- data/vendor/node_modules/traceur/src/node/inline-module.js +0 -149
@@ -1,77 +0,0 @@
|
|
1
|
-
# What: WebVTT
|
2
|
-
# Why: To allow formats intended for marking up external text track resources.
|
3
|
-
# http://dev.w3.org/html5/webvtt/
|
4
|
-
# Added by: niftylettuce
|
5
|
-
text/vtt vtt
|
6
|
-
|
7
|
-
# What: Google Chrome Extension
|
8
|
-
# Why: To allow apps to (work) be served with the right content type header.
|
9
|
-
# http://codereview.chromium.org/2830017
|
10
|
-
# Added by: niftylettuce
|
11
|
-
application/x-chrome-extension crx
|
12
|
-
|
13
|
-
# What: HTC support
|
14
|
-
# Why: To properly render .htc files such as CSS3PIE
|
15
|
-
# Added by: niftylettuce
|
16
|
-
text/x-component htc
|
17
|
-
|
18
|
-
# What: HTML5 application cache manifes ('.manifest' extension)
|
19
|
-
# Why: De-facto standard. Required by Mozilla browser when serving HTML5 apps
|
20
|
-
# per https://developer.mozilla.org/en/offline_resources_in_firefox
|
21
|
-
# Added by: louisremi
|
22
|
-
text/cache-manifest manifest
|
23
|
-
|
24
|
-
# What: node binary buffer format
|
25
|
-
# Why: semi-standard extension w/in the node community
|
26
|
-
# Added by: tootallnate
|
27
|
-
application/octet-stream buffer
|
28
|
-
|
29
|
-
# What: The "protected" MP-4 formats used by iTunes.
|
30
|
-
# Why: Required for streaming music to browsers (?)
|
31
|
-
# Added by: broofa
|
32
|
-
application/mp4 m4p
|
33
|
-
audio/mp4 m4a
|
34
|
-
|
35
|
-
# What: Video format, Part of RFC1890
|
36
|
-
# Why: See https://github.com/bentomas/node-mime/pull/6
|
37
|
-
# Added by: mjrusso
|
38
|
-
video/MP2T ts
|
39
|
-
|
40
|
-
# What: EventSource mime type
|
41
|
-
# Why: mime type of Server-Sent Events stream
|
42
|
-
# http://www.w3.org/TR/eventsource/#text-event-stream
|
43
|
-
# Added by: francois2metz
|
44
|
-
text/event-stream event-stream
|
45
|
-
|
46
|
-
# What: Mozilla App manifest mime type
|
47
|
-
# Why: https://developer.mozilla.org/en/Apps/Manifest#Serving_manifests
|
48
|
-
# Added by: ednapiranha
|
49
|
-
application/x-web-app-manifest+json webapp
|
50
|
-
|
51
|
-
# What: Lua file types
|
52
|
-
# Why: Googling around shows de-facto consensus on these
|
53
|
-
# Added by: creationix (Issue #45)
|
54
|
-
text/x-lua lua
|
55
|
-
application/x-lua-bytecode luac
|
56
|
-
|
57
|
-
# What: Markdown files, as per http://daringfireball.net/projects/markdown/syntax
|
58
|
-
# Why: http://stackoverflow.com/questions/10701983/what-is-the-mime-type-for-markdown
|
59
|
-
# Added by: avoidwork
|
60
|
-
text/x-markdown markdown md mkd
|
61
|
-
|
62
|
-
# What: ini files
|
63
|
-
# Why: because they're just text files
|
64
|
-
# Added by: Matthew Kastor
|
65
|
-
text/plain ini
|
66
|
-
|
67
|
-
# What: DASH Adaptive Streaming manifest
|
68
|
-
# Why: https://developer.mozilla.org/en-US/docs/DASH_Adaptive_Streaming_for_HTML_5_Video
|
69
|
-
# Added by: eelcocramer
|
70
|
-
application/dash+xml mdp
|
71
|
-
|
72
|
-
# What: OpenType font files - http://www.microsoft.com/typography/otspec/
|
73
|
-
# Why: Browsers usually ignore the font MIME types and sniff the content,
|
74
|
-
# but Chrome, shows a warning if OpenType fonts aren't served with
|
75
|
-
# the `font/opentype` MIME type: http://i.imgur.com/8c5RN8M.png.
|
76
|
-
# Added by: alrra
|
77
|
-
font/opentype otf
|
@@ -1,15 +0,0 @@
|
|
1
|
-
0.1.4
|
2
|
-
|
3
|
-
* Fixed several coding style issues, as suggested by JSHint
|
4
|
-
(e.g. using === instead of ==).
|
5
|
-
|
6
|
-
0.1.3
|
7
|
-
|
8
|
-
* Moved the main module into lib to be consistent with the overlay
|
9
|
-
package style.
|
10
|
-
|
11
|
-
0.1.2
|
12
|
-
|
13
|
-
* Ported by J. Chris Anderson, then by Kris Kowal to Chiron, Narwhal,
|
14
|
-
and finally NPM for Node.
|
15
|
-
|
@@ -1,19 +0,0 @@
|
|
1
|
-
|
2
|
-
Copyright 2009, 2010 Kristopher Michael Kowal. All rights reserved.
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
-
of this software and associated documentation files (the "Software"), to
|
5
|
-
deal in the Software without restriction, including without limitation the
|
6
|
-
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
7
|
-
sell copies of the Software, and to permit persons to whom the Software is
|
8
|
-
furnished to do so, subject to the following conditions:
|
9
|
-
|
10
|
-
The above copyright notice and this permission notice shall be included in
|
11
|
-
all copies or substantial portions of the Software.
|
12
|
-
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
18
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
19
|
-
IN THE SOFTWARE.
|
@@ -1,96 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
This module provides basic functions for handling mime-types. It can
|
4
|
-
handle matching mime-types against a list of media-ranges. See section
|
5
|
-
14.1 of the HTTP specification [RFC 2616] for a complete explanation.
|
6
|
-
|
7
|
-
<http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1>
|
8
|
-
|
9
|
-
A port to JavaScript of Joe Gregorio's MIME-Type Parser:
|
10
|
-
|
11
|
-
<http://code.google.com/p/mimeparse/>
|
12
|
-
|
13
|
-
Ported by J. Chris Anderson <jchris@apache.org>, targeting the
|
14
|
-
Spidermonkey runtime.
|
15
|
-
|
16
|
-
Ported to Chiron, Narwhal, Node by Kris Kowal.
|
17
|
-
|
18
|
-
<http://github.com/kriskowal/mimeparse>
|
19
|
-
|
20
|
-
|
21
|
-
Installation
|
22
|
-
============
|
23
|
-
|
24
|
-
Install <http://github.com/isaacs/npm>
|
25
|
-
|
26
|
-
npm install mimeparse
|
27
|
-
|
28
|
-
|
29
|
-
The API
|
30
|
-
=======
|
31
|
-
|
32
|
-
parseMimeType(mimeType)
|
33
|
-
|
34
|
-
Carves up a mime-type and returns an Array of the
|
35
|
-
[type, subtype, params] where "params" is a Hash of all
|
36
|
-
the parameters for the media range.
|
37
|
-
|
38
|
-
For example, the media range "application/xhtml;q=0.5" would
|
39
|
-
get parsed into::
|
40
|
-
|
41
|
-
["application", "xhtml", { "q" : "0.5" }]
|
42
|
-
|
43
|
-
parseMediaRange(range)
|
44
|
-
|
45
|
-
Carves up a media range and returns an Array of the
|
46
|
-
[type, subtype, params] where "params" is a Object with
|
47
|
-
all the parameters for the media range.
|
48
|
-
|
49
|
-
For example, the media range "application/*;q=0.5" would
|
50
|
-
get parsed into::
|
51
|
-
|
52
|
-
["application", "*", { "q" : "0.5" }]
|
53
|
-
|
54
|
-
In addition this function also guarantees that there
|
55
|
-
is a value for "q" in the params dictionary, filling it
|
56
|
-
in with a proper default if necessary.
|
57
|
-
|
58
|
-
fitnessAndQualityParsed(mimeType, parsedRanges)
|
59
|
-
|
60
|
-
Find the best match for a given mime-type against
|
61
|
-
a list of media_ranges that have already been
|
62
|
-
parsed by parseMediaRange(). Returns an array of
|
63
|
-
the fitness value and the value of the 'q' quality
|
64
|
-
parameter of the best match, or (-1, 0) if no match
|
65
|
-
was found. Just as for qualityParsed(), 'parsed_ranges'
|
66
|
-
must be a list of parsed media ranges.
|
67
|
-
|
68
|
-
qualityParsed(mimeType, parsedRanges)
|
69
|
-
|
70
|
-
Find the best match for a given mime-type against
|
71
|
-
a list of media_ranges that have already been
|
72
|
-
parsed by parseMediaRange(). Returns the
|
73
|
-
'q' quality parameter of the best match, 0 if no
|
74
|
-
match was found. This function bahaves the same as quality()
|
75
|
-
except that 'parsedRanges' must be a list of
|
76
|
-
parsed media ranges.
|
77
|
-
|
78
|
-
quality(mimeType, ranges)
|
79
|
-
|
80
|
-
Returns the quality 'q' of a mime-type when compared
|
81
|
-
against the media-ranges in ranges. For example::
|
82
|
-
|
83
|
-
>>> quality('text/html','text/*;q=0.3, text/html;q=0.7, text/html;level=1, text/html;level=2;q=0.4, *\/*;q=0.5')
|
84
|
-
0.7
|
85
|
-
|
86
|
-
bestMatch(supported, header)
|
87
|
-
|
88
|
-
Takes a list of supported mime-types and finds the best
|
89
|
-
match for all the media-ranges listed in header. The value of
|
90
|
-
header must be a string that conforms to the format of the
|
91
|
-
HTTP Accept: header. The value of 'supported' is a list of
|
92
|
-
mime-types::
|
93
|
-
|
94
|
-
>>> bestMatch(['application/xbel+xml', 'text/xml'], 'text/*;q=0.5,*\/*; q=0.1')
|
95
|
-
'text/xml'
|
96
|
-
|
@@ -1,166 +0,0 @@
|
|
1
|
-
|
2
|
-
/**
|
3
|
-
This module provides basic functions for handling mime-types. It can
|
4
|
-
handle matching mime-types against a list of media-ranges. See section
|
5
|
-
14.1 of the HTTP specification [RFC 2616] for a complete explanation.
|
6
|
-
|
7
|
-
<http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1>
|
8
|
-
|
9
|
-
A port to JavaScript of Joe Gregorio's MIME-Type Parser:
|
10
|
-
|
11
|
-
<http://code.google.com/p/mimeparse/>
|
12
|
-
|
13
|
-
Ported by J. Chris Anderson <jchris@apache.org>, targeting the
|
14
|
-
Spidermonkey runtime.
|
15
|
-
Ported from version 0.1.2.
|
16
|
-
Comments are mostly excerpted from the original.
|
17
|
-
|
18
|
-
Ported to Chiron, Narwhal, Node by Kris Kowal.
|
19
|
-
|
20
|
-
*/
|
21
|
-
|
22
|
-
/*** parseMimeType
|
23
|
-
Carves up a mime-type and returns an Array of the
|
24
|
-
[type, subtype, params] where "params" is a Hash of all
|
25
|
-
the parameters for the media range.
|
26
|
-
|
27
|
-
For example, the media range "application/xhtml;q=0.5" would
|
28
|
-
get parsed into::
|
29
|
-
|
30
|
-
["application", "xhtml", { "q" : "0.5" }]
|
31
|
-
*/
|
32
|
-
exports.parseMimeType = function (mimeType) {
|
33
|
-
var fullType, typeParts, params = {}, parts = mimeType.split(';');
|
34
|
-
for (var i=0; i < parts.length; i++) {
|
35
|
-
var p = parts[i].split('=');
|
36
|
-
if (p.length === 2) {
|
37
|
-
params[p[0].trim()] = p[1].trim();
|
38
|
-
}
|
39
|
-
}
|
40
|
-
fullType = parts[0].replace(/^\s+/, '').replace(/\s+$/, '');
|
41
|
-
if (fullType === '*') { fullType = '*/*'; }
|
42
|
-
typeParts = fullType.split('/');
|
43
|
-
return [typeParts[0], typeParts[1], params];
|
44
|
-
};
|
45
|
-
|
46
|
-
/*** parseMediaRange
|
47
|
-
Carves up a media range and returns an Array of the
|
48
|
-
[type, subtype, params] where "params" is a Object with
|
49
|
-
all the parameters for the media range.
|
50
|
-
|
51
|
-
For example, the media range "application/*;q=0.5" would
|
52
|
-
get parsed into::
|
53
|
-
|
54
|
-
["application", "*", { "q" : "0.5" }]
|
55
|
-
|
56
|
-
In addition this function also guarantees that there
|
57
|
-
is a value for "q" in the params dictionary, filling it
|
58
|
-
in with a proper default if necessary.
|
59
|
-
*/
|
60
|
-
exports.parseMediaRange = function (range) {
|
61
|
-
var q, parsedType = exports.parseMimeType(range);
|
62
|
-
if (!parsedType[2]['q']) {
|
63
|
-
parsedType[2]['q'] = '1';
|
64
|
-
} else {
|
65
|
-
q = parseFloat(parsedType[2]['q']);
|
66
|
-
if (isNaN(q)) {
|
67
|
-
parsedType[2]['q'] = '1';
|
68
|
-
} else if (q > 1 || q < 0) {
|
69
|
-
parsedType[2]['q'] = '1';
|
70
|
-
}
|
71
|
-
}
|
72
|
-
return parsedType;
|
73
|
-
};
|
74
|
-
|
75
|
-
/*** fitnessAndQualityParsed
|
76
|
-
Find the best match for a given mime-type against
|
77
|
-
a list of media_ranges that have already been
|
78
|
-
parsed by parseMediaRange(). Returns an array of
|
79
|
-
the fitness value and the value of the 'q' quality
|
80
|
-
parameter of the best match, or (-1, 0) if no match
|
81
|
-
was found. Just as for qualityParsed(), 'parsed_ranges'
|
82
|
-
must be a list of parsed media ranges.
|
83
|
-
*/
|
84
|
-
exports.fitnessAndQualityParsed = function (mimeType, parsedRanges) {
|
85
|
-
var bestFitness = -1, bestFitQ = 0, target = exports.parseMediaRange(mimeType);
|
86
|
-
var targetType = target[0], targetSubtype = target[1], targetParams = target[2];
|
87
|
-
|
88
|
-
for (var i=0; i < parsedRanges.length; i++) {
|
89
|
-
var parsed = parsedRanges[i];
|
90
|
-
var type = parsed[0], subtype = parsed[1], params = parsed[2];
|
91
|
-
if ((type === targetType || type === "*" || targetType === "*") &&
|
92
|
-
(subtype === targetSubtype || subtype === "*" || targetSubtype === "*")) {
|
93
|
-
var matchCount = 0;
|
94
|
-
for (var param in targetParams) {
|
95
|
-
if (param !== 'q' && params[param] && params[param] === targetParams[param]) {
|
96
|
-
matchCount += 1;
|
97
|
-
}
|
98
|
-
}
|
99
|
-
|
100
|
-
var fitness = (type === targetType) ? 100 : 0;
|
101
|
-
fitness += (subtype === targetSubtype) ? 10 : 0;
|
102
|
-
fitness += matchCount;
|
103
|
-
|
104
|
-
if (fitness > bestFitness) {
|
105
|
-
bestFitness = fitness;
|
106
|
-
bestFitQ = params["q"];
|
107
|
-
}
|
108
|
-
}
|
109
|
-
}
|
110
|
-
return [bestFitness, parseFloat(bestFitQ)];
|
111
|
-
};
|
112
|
-
|
113
|
-
/*** qualityParsed
|
114
|
-
Find the best match for a given mime-type against
|
115
|
-
a list of media_ranges that have already been
|
116
|
-
parsed by parseMediaRange(). Returns the
|
117
|
-
'q' quality parameter of the best match, 0 if no
|
118
|
-
match was found. This function bahaves the same as quality()
|
119
|
-
except that 'parsedRanges' must be a list of
|
120
|
-
parsed media ranges.
|
121
|
-
*/
|
122
|
-
exports.qualityParsed = function (mimeType, parsedRanges) {
|
123
|
-
return exports.fitnessAndQualityParsed(mimeType, parsedRanges)[1];
|
124
|
-
};
|
125
|
-
|
126
|
-
/*** quality
|
127
|
-
Returns the quality 'q' of a mime-type when compared
|
128
|
-
against the media-ranges in ranges. For example::
|
129
|
-
|
130
|
-
>>> quality('text/html','text/*;q=0.3, text/html;q=0.7, text/html;level=1, text/html;level=2;q=0.4, *\/*;q=0.5')
|
131
|
-
0.7
|
132
|
-
*/
|
133
|
-
exports.quality = function (mimeType, ranges) {
|
134
|
-
return exports.qualityParsed(mimeType, parseRanges(ranges));
|
135
|
-
};
|
136
|
-
|
137
|
-
/*** bestMatch
|
138
|
-
Takes a list of supported mime-types and finds the best
|
139
|
-
match for all the media-ranges listed in header. The value of
|
140
|
-
header must be a string that conforms to the format of the
|
141
|
-
HTTP Accept: header. The value of 'supported' is a list of
|
142
|
-
mime-types::
|
143
|
-
|
144
|
-
>>> bestMatch(['application/xbel+xml', 'text/xml'], 'text/*;q=0.5,*\/*; q=0.1')
|
145
|
-
'text/xml'
|
146
|
-
*/
|
147
|
-
exports.bestMatch = function (supported, header) {
|
148
|
-
var parsedHeader = parseRanges(header);
|
149
|
-
var weighted = [];
|
150
|
-
for (var i=0; i < supported.length; i++) {
|
151
|
-
weighted.push([
|
152
|
-
exports.fitnessAndQualityParsed(supported[i], parsedHeader),
|
153
|
-
supported[i]
|
154
|
-
]);
|
155
|
-
}
|
156
|
-
weighted.sort();
|
157
|
-
return weighted[weighted.length-1][0][1] ? weighted[weighted.length-1][1] : '';
|
158
|
-
};
|
159
|
-
|
160
|
-
function parseRanges(ranges) {
|
161
|
-
var parsedRanges = [], rangeParts = ranges.split(",");
|
162
|
-
for (var i=0; i < rangeParts.length; i++) {
|
163
|
-
parsedRanges.push(exports.parseMediaRange(rangeParts[i]));
|
164
|
-
}
|
165
|
-
return parsedRanges;
|
166
|
-
}
|
@@ -1,43 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "mimeparse",
|
3
|
-
"version": "0.1.4",
|
4
|
-
"description": "Basic functions for handling mime-types.",
|
5
|
-
"homepage": "http://github.com/kriskowal/mimeparse/",
|
6
|
-
"contributors": [
|
7
|
-
{
|
8
|
-
"name": "Joe Gregario"
|
9
|
-
},
|
10
|
-
{
|
11
|
-
"name": "J. Chris Anderson",
|
12
|
-
"email": "jchris@apache.org"
|
13
|
-
},
|
14
|
-
{
|
15
|
-
"name": "Kris Kowal",
|
16
|
-
"email": "kris@cixar.com",
|
17
|
-
"url": "http://github.com/kriskowal/"
|
18
|
-
},
|
19
|
-
{
|
20
|
-
"name": "Ivan Zuzak",
|
21
|
-
"email": "izuzak@gmail.com",
|
22
|
-
"url": "http://ivanzuzak.info"
|
23
|
-
}
|
24
|
-
],
|
25
|
-
"bugs": {
|
26
|
-
"url": "http://github.com/kriskowal/mimeparse/issues"
|
27
|
-
},
|
28
|
-
"licenses": [
|
29
|
-
{
|
30
|
-
"type": "MIT",
|
31
|
-
"url": "http://github.com/kriskowal/mimeparse/raw/master/LICENSE"
|
32
|
-
}
|
33
|
-
],
|
34
|
-
"repository": {
|
35
|
-
"type": "git",
|
36
|
-
"url": "http://github.com/kriskowal/mimeparse.git"
|
37
|
-
},
|
38
|
-
"main": "lib/mimeparse.js",
|
39
|
-
"readme": "\n\nThis module provides basic functions for handling mime-types. It can\nhandle matching mime-types against a list of media-ranges. See section\n14.1 of the HTTP specification [RFC 2616] for a complete explanation.\n\n <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1>\n\nA port to JavaScript of Joe Gregorio's MIME-Type Parser:\n\n <http://code.google.com/p/mimeparse/>\n\nPorted by J. Chris Anderson <jchris@apache.org>, targeting the\nSpidermonkey runtime.\n\nPorted to Chiron, Narwhal, Node by Kris Kowal.\n\n <http://github.com/kriskowal/mimeparse>\n\n\nInstallation\n============\n\n Install <http://github.com/isaacs/npm>\n\n npm install mimeparse\n\n\nThe API\n=======\n\nparseMimeType(mimeType)\n\n Carves up a mime-type and returns an Array of the\n [type, subtype, params] where \"params\" is a Hash of all\n the parameters for the media range.\n\n For example, the media range \"application/xhtml;q=0.5\" would\n get parsed into::\n\n [\"application\", \"xhtml\", { \"q\" : \"0.5\" }]\n\nparseMediaRange(range)\n\n Carves up a media range and returns an Array of the\n [type, subtype, params] where \"params\" is a Object with\n all the parameters for the media range.\n \n For example, the media range \"application/*;q=0.5\" would\n get parsed into::\n \n [\"application\", \"*\", { \"q\" : \"0.5\" }]\n \n In addition this function also guarantees that there\n is a value for \"q\" in the params dictionary, filling it\n in with a proper default if necessary.\n\nfitnessAndQualityParsed(mimeType, parsedRanges)\n\n Find the best match for a given mime-type against\n a list of media_ranges that have already been\n parsed by parseMediaRange(). Returns an array of\n the fitness value and the value of the 'q' quality\n parameter of the best match, or (-1, 0) if no match\n was found. Just as for qualityParsed(), 'parsed_ranges'\n must be a list of parsed media ranges.\n\nqualityParsed(mimeType, parsedRanges)\n\n Find the best match for a given mime-type against\n a list of media_ranges that have already been\n parsed by parseMediaRange(). Returns the\n 'q' quality parameter of the best match, 0 if no\n match was found. This function bahaves the same as quality()\n except that 'parsedRanges' must be a list of\n parsed media ranges.\n\nquality(mimeType, ranges)\n\n Returns the quality 'q' of a mime-type when compared\n against the media-ranges in ranges. For example::\n\n >>> quality('text/html','text/*;q=0.3, text/html;q=0.7, text/html;level=1, text/html;level=2;q=0.4, *\\/*;q=0.5')\n 0.7\n\nbestMatch(supported, header)\n\n Takes a list of supported mime-types and finds the best\n match for all the media-ranges listed in header. The value of\n header must be a string that conforms to the format of the\n HTTP Accept: header. The value of 'supported' is a list of\n mime-types::\n \n >>> bestMatch(['application/xbel+xml', 'text/xml'], 'text/*;q=0.5,*\\/*; q=0.1')\n 'text/xml'\n\n",
|
40
|
-
"readmeFilename": "README",
|
41
|
-
"_id": "mimeparse@0.1.4",
|
42
|
-
"_from": "mimeparse@~0.1.4"
|
43
|
-
}
|
@@ -1,40 +0,0 @@
|
|
1
|
-
|
2
|
-
For pull requests:
|
3
|
-
|
4
|
-
- Be consistent with prevalent style and design decisions.
|
5
|
-
- Add a Jasmine spec to `specs/q-spec.js`.
|
6
|
-
- Use `npm test` to avoid regressions.
|
7
|
-
- Run tests in `q-spec/run.html` in as many supported browsers as you
|
8
|
-
can find the will to deal with.
|
9
|
-
- Do not build minified versions; we do this each release.
|
10
|
-
- If you would be so kind, add a note to `CHANGES.md` in an
|
11
|
-
appropriate section:
|
12
|
-
|
13
|
-
- `Next Major Version` if it introduces backward incompatibilities
|
14
|
-
to code in the wild using documented features.
|
15
|
-
- `Next Minor Version` if it adds a new feature.
|
16
|
-
- `Next Patch Version` if it fixes a bug.
|
17
|
-
|
18
|
-
For releases:
|
19
|
-
|
20
|
-
- Run `npm test`.
|
21
|
-
- Run tests in `q-spec/run.html` in a representative sample of every
|
22
|
-
browser under the sun.
|
23
|
-
- Run `npm run cover` and make sure you're happy with the results.
|
24
|
-
- Run `npm run minify` and be sure to commit the resulting `q.min.js`.
|
25
|
-
- Note the Gzipped size output by the previous command, and update
|
26
|
-
`README.md` if it has changed to 1 significant digit.
|
27
|
-
- Stash any local changes.
|
28
|
-
- Update `CHANGES.md` to reflect all changes in the differences
|
29
|
-
between `HEAD` and the previous tagged version. Give credit where
|
30
|
-
credit is due.
|
31
|
-
- Update `README.md` to address all new, non-experimental features.
|
32
|
-
- Update the API reference on the Wiki to reflect all non-experimental
|
33
|
-
features.
|
34
|
-
- Use `npm version major|minor|patch` to update `package.json`,
|
35
|
-
commit, and tag the new version.
|
36
|
-
- Use `npm publish` to send up a new release.
|
37
|
-
- Send an email to the q-continuum mailing list announcing the new
|
38
|
-
release and the notes from the change log. This helps folks
|
39
|
-
maintaining other package ecosystems.
|
40
|
-
|