traceur-rb 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +22 -0
- data/.rspec +1 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/Gemfile +4 -0
- data/Guardfile +8 -0
- data/LICENSE.txt +22 -0
- data/README.md +87 -0
- data/Rakefile +2 -0
- data/lib/js/compile.js +31 -0
- data/lib/traceur-rb.rb +1 -0
- data/lib/traceur.rb +43 -0
- data/lib/traceur/compilation_options.rb +65 -0
- data/lib/traceur/compiler.rb +33 -0
- data/lib/traceur/configuration.rb +47 -0
- data/lib/traceur/node.rb +26 -0
- data/lib/traceur/node/command_result.rb +28 -0
- data/lib/traceur/node/runner.rb +40 -0
- data/lib/traceur/version.rb +3 -0
- data/spec/examples/classes.js +12 -0
- data/spec/integration/examples_spec.rb +28 -0
- data/spec/spec_helper.rb +1 -0
- data/spec/traceur/compilation_options_spec.rb +31 -0
- data/spec/traceur/configuration_spec.rb +54 -0
- data/spec/traceur/node_spec.rb +15 -0
- data/traceur-rb.gemspec +25 -0
- data/vendor/node_modules/.bin/traceur +3 -0
- data/vendor/node_modules/traceur/README.md +40 -0
- data/vendor/node_modules/traceur/bin/traceur-runtime.js +2101 -0
- data/vendor/node_modules/traceur/bin/traceur.js +23034 -0
- data/vendor/node_modules/traceur/node_modules/.bin/semver +125 -0
- data/vendor/node_modules/traceur/node_modules/commander/Readme.md +208 -0
- data/vendor/node_modules/traceur/node_modules/commander/index.js +852 -0
- data/vendor/node_modules/traceur/node_modules/commander/package.json +40 -0
- data/vendor/node_modules/traceur/node_modules/q-io/.npmignore +1 -0
- data/vendor/node_modules/traceur/node_modules/q-io/.travis.yml +3 -0
- data/vendor/node_modules/traceur/node_modules/q-io/CHANGES.md +122 -0
- data/vendor/node_modules/traceur/node_modules/q-io/LICENSE +19 -0
- data/vendor/node_modules/traceur/node_modules/q-io/README.md +928 -0
- data/vendor/node_modules/traceur/node_modules/q-io/buffer-stream.js +59 -0
- data/vendor/node_modules/traceur/node_modules/q-io/coverage-report.js +44 -0
- data/vendor/node_modules/traceur/node_modules/q-io/deprecate.js +51 -0
- data/vendor/node_modules/traceur/node_modules/q-io/fs-boot.js +307 -0
- data/vendor/node_modules/traceur/node_modules/q-io/fs-common.js +499 -0
- data/vendor/node_modules/traceur/node_modules/q-io/fs-mock.js +547 -0
- data/vendor/node_modules/traceur/node_modules/q-io/fs-root.js +105 -0
- data/vendor/node_modules/traceur/node_modules/q-io/fs.js +355 -0
- data/vendor/node_modules/traceur/node_modules/q-io/fs2http.js +65 -0
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps.js +152 -0
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/chain.js +24 -0
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/content.js +93 -0
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/cookie.js +154 -0
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/decorators.js +178 -0
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/fs.js +417 -0
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/html.js +58 -0
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/json.js +78 -0
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/negotiate.js +120 -0
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/proxy.js +27 -0
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/redirect.js +209 -0
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/route.js +125 -0
- data/vendor/node_modules/traceur/node_modules/q-io/http-apps/status.js +175 -0
- data/vendor/node_modules/traceur/node_modules/q-io/http-cookie.js +75 -0
- data/vendor/node_modules/traceur/node_modules/q-io/http.js +378 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/.npmignore +11 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/.travis.yml +4 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/CHANGES.md +78 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/LICENSE.md +21 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/README.md +1285 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/collections.js +22 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/dict.js +142 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/fast-map.js +57 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/fast-set.js +183 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-collection.js +261 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-map.js +186 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-order.js +55 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-set.js +59 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/heap.js +236 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/iterator.js +371 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/list.js +435 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/array-changes.js +247 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/map-changes.js +147 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/property-changes.js +448 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/range-changes.js +139 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/lru-map.js +79 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/lru-set.js +142 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/map.js +60 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/multi-map.js +41 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/package.json +12 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/sync +7 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/sync.patch +48 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/weak-map.js +590 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/package.json +49 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/set.js +173 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-array.js +274 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-function.js +59 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-object.js +538 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-regexp.js +14 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim.js +6 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-array-map.js +49 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-array-set.js +51 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-array.js +269 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-map.js +61 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-set.js +736 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/tree-log.js +40 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/weak-map.js +1 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/LICENSE +19 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/README.md +66 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/mime.js +114 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/package.json +35 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/test.js +84 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/types/mime.types +1588 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/types/node.types +77 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/CHANGES +15 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/LICENSE +19 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/README +96 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/lib/mimeparse.js +166 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/package.json +43 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/CONTRIBUTING.md +40 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/LICENSE +19 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/README.md +813 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/benchmark/compare-with-callbacks.js +71 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/benchmark/scenarios.js +36 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/package.json +93 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/q.js +1937 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/queue.js +35 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/.gitmodules +6 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/History.md +36 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/Makefile +7 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/Readme.md +38 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/benchmark.js +32 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/examples.js +39 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/index.js +2 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/lib/querystring.js +123 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/package.json +19 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/.gitmodules +3 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/.npmignore +3 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/History.md +128 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/Makefile +53 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/Readme.md +61 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/bin/expresso +856 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/api.html +1080 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/index.html +377 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/index.md +290 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/layout/foot.html +3 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/layout/head.html +42 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/lib/bar.js +4 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/lib/foo.js +16 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/package.json +12 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/assert.test.js +91 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/async.test.js +12 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/bar.test.js +13 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/foo.test.js +14 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/http.test.js +146 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/serial/async.test.js +39 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/serial/http.test.js +48 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/.gitmodules +3 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/History.md +22 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/Makefile +6 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/Readme.md +248 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/examples/runner.js +53 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/index.js +2 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/lib/eql.js +91 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/lib/should.js +548 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/package.json +8 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/test/should.test.js +358 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/test/querystring.test.js +133 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/.npmignore +3 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/.travis.yml +4 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/LICENSE.md +20 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/README.md +33 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/package.json +37 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/test/url2-spec.js +125 -0
- data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/url2.js +151 -0
- data/vendor/node_modules/traceur/node_modules/q-io/package.json +51 -0
- data/vendor/node_modules/traceur/node_modules/q-io/reader.js +133 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/boot-directory-spec.js +47 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/contains-spec.js +11 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/fixtures/hello.txt +1 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/issues/1-spec.js +33 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/make-tree-spec.js +92 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/append-spec.js +41 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/copy-tree-spec.js +57 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/fixture/hello.txt +1 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/link-spec.js +70 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/make-tree-spec.js +109 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/merge-spec.js +67 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/move-spec.js +219 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/object-spec.js +20 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/range-spec.js +26 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/read-spec.js +40 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/remove-directory-spec.js +37 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/remove-tree-spec.js +39 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/root-spec.js +32 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/stat-spec.js +26 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/symbolic-link-spec.js +86 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/working-directory-spec.js +31 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/write-spec.js +73 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/range-spec.js +23 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/range-spec.txt +1 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/read-spec.js +22 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/relative-spec.js +25 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/reroot-spec.js +45 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/write-spec.js +38 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/cookie-spec.js +52 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/directory-list-spec.js +86 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/fixtures/01234.txt +1 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/fixtures/1234.txt +1 -0
- 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 +49 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/interpret-range-spec.js +47 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/partial-range-spec.js +186 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/proxy-spec.js +82 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/symbolic-link-spec.js +110 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http/agent-spec.js +96 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/http/basic-spec.js +96 -0
- data/vendor/node_modules/traceur/node_modules/q-io/spec/lib/jasmine-promise.js +42 -0
- data/vendor/node_modules/traceur/node_modules/q-io/writer.js +111 -0
- data/vendor/node_modules/traceur/node_modules/semver/.npmignore +1 -0
- data/vendor/node_modules/traceur/node_modules/semver/LICENSE +27 -0
- data/vendor/node_modules/traceur/node_modules/semver/Makefile +24 -0
- data/vendor/node_modules/traceur/node_modules/semver/README.md +158 -0
- data/vendor/node_modules/traceur/node_modules/semver/bin/semver +125 -0
- data/vendor/node_modules/traceur/node_modules/semver/foot.js +6 -0
- data/vendor/node_modules/traceur/node_modules/semver/head.js +2 -0
- data/vendor/node_modules/traceur/node_modules/semver/package.json +31 -0
- data/vendor/node_modules/traceur/node_modules/semver/semver.browser.js +1039 -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 +1043 -0
- data/vendor/node_modules/traceur/node_modules/semver/semver.min.js +1 -0
- data/vendor/node_modules/traceur/node_modules/semver/semver.min.js.gz +0 -0
- data/vendor/node_modules/traceur/node_modules/semver/test/amd.js +15 -0
- data/vendor/node_modules/traceur/node_modules/semver/test/gtr.js +173 -0
- data/vendor/node_modules/traceur/node_modules/semver/test/index.js +584 -0
- data/vendor/node_modules/traceur/node_modules/semver/test/ltr.js +174 -0
- data/vendor/node_modules/traceur/node_modules/semver/test/no-module.js +19 -0
- data/vendor/node_modules/traceur/package.json +64 -0
- data/vendor/node_modules/traceur/src/node/System.js +31 -0
- data/vendor/node_modules/traceur/src/node/api.js +124 -0
- data/vendor/node_modules/traceur/src/node/command.js +141 -0
- data/vendor/node_modules/traceur/src/node/compile-single-file.js +69 -0
- data/vendor/node_modules/traceur/src/node/compiler.js +116 -0
- data/vendor/node_modules/traceur/src/node/deferred.js +110 -0
- data/vendor/node_modules/traceur/src/node/file-util.js +73 -0
- data/vendor/node_modules/traceur/src/node/getopt.js +147 -0
- data/vendor/node_modules/traceur/src/node/inline-module.js +149 -0
- data/vendor/node_modules/traceur/src/node/interpreter.js +33 -0
- data/vendor/node_modules/traceur/src/node/nodeLoader.js +41 -0
- data/vendor/node_modules/traceur/src/node/require.js +85 -0
- data/vendor/node_modules/traceur/src/node/to-amd-compiler.js +33 -0
- data/vendor/node_modules/traceur/src/node/to-commonjs-compiler.js +33 -0
- data/vendor/node_modules/traceur/src/node/traceur.js +32 -0
- data/vendor/node_modules/traceur/traceur +3 -0
- metadata +359 -0
@@ -0,0 +1,35 @@
|
|
1
|
+
|
2
|
+
var Q = require("./q");
|
3
|
+
|
4
|
+
module.exports = Queue;
|
5
|
+
function Queue() {
|
6
|
+
var ends = Q.defer();
|
7
|
+
var closed = Q.defer();
|
8
|
+
return {
|
9
|
+
put: function (value) {
|
10
|
+
var next = Q.defer();
|
11
|
+
ends.resolve({
|
12
|
+
head: value,
|
13
|
+
tail: next.promise
|
14
|
+
});
|
15
|
+
ends.resolve = next.resolve;
|
16
|
+
},
|
17
|
+
get: function () {
|
18
|
+
var result = ends.promise.get("head");
|
19
|
+
ends.promise = ends.promise.get("tail");
|
20
|
+
return result.fail(function (error) {
|
21
|
+
closed.resolve(error);
|
22
|
+
throw error;
|
23
|
+
});
|
24
|
+
},
|
25
|
+
closed: closed.promise,
|
26
|
+
close: function (error) {
|
27
|
+
error = error || new Error("Can't get value from closed queue");
|
28
|
+
var end = {head: Q.reject(error)};
|
29
|
+
end.tail = end;
|
30
|
+
ends.resolve(end);
|
31
|
+
return closed.promise;
|
32
|
+
}
|
33
|
+
};
|
34
|
+
}
|
35
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
|
2
|
+
0.1.0 / 2011-04-13
|
3
|
+
==================
|
4
|
+
|
5
|
+
* Added jQuery-ish array support
|
6
|
+
|
7
|
+
0.0.7 / 2011-03-13
|
8
|
+
==================
|
9
|
+
|
10
|
+
* Fixed; handle empty string and `== null` in `qs.parse()` [dmit]
|
11
|
+
allows for convenient `qs.parse(url.parse(str).query)`
|
12
|
+
|
13
|
+
0.0.6 / 2011-02-14
|
14
|
+
==================
|
15
|
+
|
16
|
+
* Fixed; support for implicit arrays
|
17
|
+
|
18
|
+
0.0.4 / 2011-02-09
|
19
|
+
==================
|
20
|
+
|
21
|
+
* Fixed `+` as a space
|
22
|
+
|
23
|
+
0.0.3 / 2011-02-08
|
24
|
+
==================
|
25
|
+
|
26
|
+
* Fixed case when right-hand value contains "]"
|
27
|
+
|
28
|
+
0.0.2 / 2011-02-07
|
29
|
+
==================
|
30
|
+
|
31
|
+
* Fixed "=" presence in key
|
32
|
+
|
33
|
+
0.0.1 / 2011-02-07
|
34
|
+
==================
|
35
|
+
|
36
|
+
* Initial release
|
@@ -0,0 +1,38 @@
|
|
1
|
+
|
2
|
+
# node-querystring
|
3
|
+
|
4
|
+
query string parser for node supporting nesting, as it was removed from `0.3.x`, so this library provides the previous and commonly desired behaviour (and twice as fast). Used by [express](http://expressjs.com), [connect](http://senchalabs.github.com/connect) and others.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
$ npm install qs
|
9
|
+
|
10
|
+
## Examples
|
11
|
+
|
12
|
+
require('querystring').parse('user[name][first]=tj&user[email]=tj');
|
13
|
+
// => { user: { name: { first: 'tj' }}}
|
14
|
+
|
15
|
+
## License
|
16
|
+
|
17
|
+
(The MIT License)
|
18
|
+
|
19
|
+
Copyright (c) 2010 TJ Holowaychuk <tj@vision-media.ca>
|
20
|
+
|
21
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
22
|
+
a copy of this software and associated documentation files (the
|
23
|
+
'Software'), to deal in the Software without restriction, including
|
24
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
25
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
26
|
+
permit persons to whom the Software is furnished to do so, subject to
|
27
|
+
the following conditions:
|
28
|
+
|
29
|
+
The above copyright notice and this permission notice shall be
|
30
|
+
included in all copies or substantial portions of the Software.
|
31
|
+
|
32
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
33
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
34
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
35
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
36
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
37
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
38
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,32 @@
|
|
1
|
+
|
2
|
+
var old = require('querystring')
|
3
|
+
, qs = require('./')
|
4
|
+
, times = 100000;
|
5
|
+
|
6
|
+
var start = new Date
|
7
|
+
, n = times;
|
8
|
+
|
9
|
+
while (n--) old.parse('foo=bar');
|
10
|
+
console.log('old simple: %dms', new Date - start);
|
11
|
+
|
12
|
+
var start = new Date
|
13
|
+
, n = times;
|
14
|
+
|
15
|
+
while (n--) old.parse('user[name][first]=tj&user[name][last]=holowaychuk');
|
16
|
+
console.log('old nested: %dms', new Date - start);
|
17
|
+
|
18
|
+
|
19
|
+
console.log();
|
20
|
+
|
21
|
+
|
22
|
+
var start = new Date
|
23
|
+
, n = times;
|
24
|
+
|
25
|
+
while (n--) qs.parse('foo=bar');
|
26
|
+
console.log('new simple: %dms', new Date - start);
|
27
|
+
|
28
|
+
var start = new Date
|
29
|
+
, n = times;
|
30
|
+
|
31
|
+
while (n--) qs.parse('user[name][first]=tj&user[name][last]=holowaychuk');
|
32
|
+
console.log('new nested: %dms', new Date - start);
|
@@ -0,0 +1,39 @@
|
|
1
|
+
|
2
|
+
/**
|
3
|
+
* Module dependencies.
|
4
|
+
*/
|
5
|
+
|
6
|
+
var qs = require('./');
|
7
|
+
|
8
|
+
var obj = qs.parse('foo');
|
9
|
+
require('inspect')(obj)
|
10
|
+
|
11
|
+
var obj = qs.parse('foo=bar=baz');
|
12
|
+
require('inspect')(obj)
|
13
|
+
|
14
|
+
var obj = qs.parse('users[]');
|
15
|
+
require('inspect')(obj)
|
16
|
+
|
17
|
+
var obj = qs.parse('name=tj&email=tj@vision-media.ca');
|
18
|
+
require('inspect')(obj)
|
19
|
+
|
20
|
+
var obj = qs.parse('users[]=tj&users[]=tobi&users[]=jane');
|
21
|
+
require('inspect')(obj)
|
22
|
+
|
23
|
+
var obj = qs.parse('user[name][first]=tj&user[name][last]=holowaychuk');
|
24
|
+
require('inspect')(obj)
|
25
|
+
|
26
|
+
var obj = qs.parse('users[][name][first]=tj&users[][name][last]=holowaychuk');
|
27
|
+
require('inspect')(obj)
|
28
|
+
|
29
|
+
var obj = qs.parse('a=a&a=b&a=c');
|
30
|
+
require('inspect')(obj)
|
31
|
+
|
32
|
+
var obj = qs.parse('user[tj]=tj&user[tj]=TJ');
|
33
|
+
require('inspect')(obj)
|
34
|
+
|
35
|
+
var obj = qs.parse('user[names]=tj&user[names]=TJ&user[names]=Tyler');
|
36
|
+
require('inspect')(obj)
|
37
|
+
|
38
|
+
var obj = qs.parse('user[name][first]=tj&user[name][first]=TJ');
|
39
|
+
require('inspect')(obj)
|
@@ -0,0 +1,123 @@
|
|
1
|
+
|
2
|
+
/*!
|
3
|
+
* querystring
|
4
|
+
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
|
5
|
+
* MIT Licensed
|
6
|
+
*/
|
7
|
+
|
8
|
+
/**
|
9
|
+
* Library version.
|
10
|
+
*/
|
11
|
+
|
12
|
+
exports.version = '0.1.0';
|
13
|
+
|
14
|
+
/**
|
15
|
+
* Parse the given query `str`, returning an object.
|
16
|
+
*
|
17
|
+
* @param {String} str
|
18
|
+
* @return {Object}
|
19
|
+
* @api public
|
20
|
+
*/
|
21
|
+
|
22
|
+
exports.parse = function(str) {
|
23
|
+
if (str == undefined || str == '') return {};
|
24
|
+
|
25
|
+
return String(str)
|
26
|
+
.split('&')
|
27
|
+
.reduce(function(ret, pair){
|
28
|
+
var pair = decodeURIComponent(pair.replace(/\+/g, ' '))
|
29
|
+
, eql = pair.indexOf('=')
|
30
|
+
, brace = lastBraceInKey(pair)
|
31
|
+
, key = pair.substr(0, brace || eql)
|
32
|
+
, val = pair.substr(brace || eql, pair.length)
|
33
|
+
, val = val.substr(val.indexOf('=') + 1, val.length)
|
34
|
+
, obj = ret;
|
35
|
+
|
36
|
+
// ?foo
|
37
|
+
if ('' == key) key = pair, val = '';
|
38
|
+
|
39
|
+
// nested
|
40
|
+
if (~key.indexOf(']')) {
|
41
|
+
var parts = key.split('[')
|
42
|
+
, len = parts.length
|
43
|
+
, last = len - 1;
|
44
|
+
|
45
|
+
function parse(obj, parts, parent, key) {
|
46
|
+
var part = parts.shift();
|
47
|
+
|
48
|
+
// end
|
49
|
+
if (!part) {
|
50
|
+
if (Array.isArray(parent[key])) {
|
51
|
+
parent[key].push(val);
|
52
|
+
} else if ('object' == typeof parent[key]) {
|
53
|
+
parent[key] = val;
|
54
|
+
} else {
|
55
|
+
parent[key] = [parent[key], val];
|
56
|
+
}
|
57
|
+
// array
|
58
|
+
} else if (']' == part) {
|
59
|
+
obj = parent[key] = Array.isArray(parent[key])
|
60
|
+
? parent[key]
|
61
|
+
: [];
|
62
|
+
if ('' != val) obj.push(val);
|
63
|
+
// prop
|
64
|
+
} else if (~part.indexOf(']')) {
|
65
|
+
part = part.substr(0, part.length - 1);
|
66
|
+
parse(obj[part] = obj[part] || {}, parts, obj, part);
|
67
|
+
// key
|
68
|
+
} else {
|
69
|
+
parse(obj[part] = obj[part] || {}, parts, obj, part);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
parse(obj, parts);
|
74
|
+
// optimize
|
75
|
+
} else {
|
76
|
+
set(obj, key, val);
|
77
|
+
}
|
78
|
+
|
79
|
+
return ret;
|
80
|
+
}, {});
|
81
|
+
};
|
82
|
+
|
83
|
+
/**
|
84
|
+
* Set `obj`'s `key` to `val` respecting
|
85
|
+
* the weird and wonderful syntax of a qs,
|
86
|
+
* where "foo=bar&foo=baz" becomes an array.
|
87
|
+
*
|
88
|
+
* @param {Object} obj
|
89
|
+
* @param {String} key
|
90
|
+
* @param {String} val
|
91
|
+
* @api private
|
92
|
+
*/
|
93
|
+
|
94
|
+
function set(obj, key, val) {
|
95
|
+
var v = obj[key];
|
96
|
+
if (undefined === v) {
|
97
|
+
obj[key] = val;
|
98
|
+
} else if (Array.isArray(v)) {
|
99
|
+
v.push(val);
|
100
|
+
} else {
|
101
|
+
obj[key] = [v, val];
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
/**
|
106
|
+
* Locate last brace in `str` within the key.
|
107
|
+
*
|
108
|
+
* @param {String} str
|
109
|
+
* @return {Number}
|
110
|
+
* @api private
|
111
|
+
*/
|
112
|
+
|
113
|
+
function lastBraceInKey(str) {
|
114
|
+
var len = str.length
|
115
|
+
, brace
|
116
|
+
, c;
|
117
|
+
for (var i = 0; i < len; ++i) {
|
118
|
+
c = str[i];
|
119
|
+
if (']' == c) brace = false;
|
120
|
+
if ('[' == c) brace = true;
|
121
|
+
if ('=' == c && !brace) return i;
|
122
|
+
}
|
123
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{
|
2
|
+
"name": "qs",
|
3
|
+
"description": "querystring parser",
|
4
|
+
"version": "0.1.0",
|
5
|
+
"repository": {},
|
6
|
+
"author": {
|
7
|
+
"name": "TJ Holowaychuk",
|
8
|
+
"email": "tj@vision-media.ca",
|
9
|
+
"url": "http://tjholowaychuk.com"
|
10
|
+
},
|
11
|
+
"main": "index",
|
12
|
+
"engines": {
|
13
|
+
"node": "*"
|
14
|
+
},
|
15
|
+
"readme": "\n# node-querystring\n\n query string parser for node supporting nesting, as it was removed from `0.3.x`, so this library provides the previous and commonly desired behaviour (and twice as fast). Used by [express](http://expressjs.com), [connect](http://senchalabs.github.com/connect) and others.\n\n## Installation\n\n $ npm install qs\n\n## Examples\n\n require('querystring').parse('user[name][first]=tj&user[email]=tj');\n // => { user: { name: { first: 'tj' }}}\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2010 TJ Holowaychuk <tj@vision-media.ca>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
|
16
|
+
"readmeFilename": "Readme.md",
|
17
|
+
"_id": "qs@0.1.0",
|
18
|
+
"_from": "qs@~0.1.0"
|
19
|
+
}
|
data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/History.md
ADDED
@@ -0,0 +1,128 @@
|
|
1
|
+
|
2
|
+
0.7.2 / 2010-12-29
|
3
|
+
==================
|
4
|
+
|
5
|
+
* Fixed problem with `listen()` sometimes firing on the same tick [guillermo]
|
6
|
+
|
7
|
+
0.7.1 / 2010-12-28
|
8
|
+
==================
|
9
|
+
|
10
|
+
* Fixed `assert.request()` client logic into an issue() function, fired upon the `listen()` callback if the server doesn't have an assigned fd. [guillermo]
|
11
|
+
* Removed `--watch`
|
12
|
+
|
13
|
+
0.7.0 / 2010-11-19
|
14
|
+
==================
|
15
|
+
|
16
|
+
* Removed `assert` from test function signature
|
17
|
+
Just use `require('assert')` :) this will make integration
|
18
|
+
with libraries like [should](http://github.com/visionmedia/should) cleaner.
|
19
|
+
|
20
|
+
0.6.4 / 2010-11-02
|
21
|
+
==================
|
22
|
+
|
23
|
+
* Added regexp support to `assert.response()` headers
|
24
|
+
* Removed `waitForExit` code, causing issues
|
25
|
+
|
26
|
+
0.6.3 / 2010-11-02
|
27
|
+
==================
|
28
|
+
|
29
|
+
* Added `assert.response()` body RegExp support
|
30
|
+
* Fixed issue with _--serial_ not executing files sequentially. Closes #42
|
31
|
+
* Fixed hang when modules use `setInterval` - monitor running tests & force the process to quit after all have completed + timeout [Steve Mason]
|
32
|
+
|
33
|
+
0.6.2 / 2010-09-17
|
34
|
+
==================
|
35
|
+
|
36
|
+
* Added _node-jsocoverage_ to package.json (aka will respect npm's binroot)
|
37
|
+
* Added _-t, --timeout_ MS option, defaulting to 2000 ms
|
38
|
+
* Added _-s, --serial_
|
39
|
+
* __PREFIX__ clobberable
|
40
|
+
* Fixed `assert.response()` for latest node
|
41
|
+
* Fixed cov reporting from exploding on empty files
|
42
|
+
|
43
|
+
0.6.2 / 2010-08-03
|
44
|
+
==================
|
45
|
+
|
46
|
+
* Added `assert.type()`
|
47
|
+
* Renamed `assert.isNotUndefined()` to `assert.isDefined()`
|
48
|
+
* Fixed `assert.includes()` param ordering
|
49
|
+
|
50
|
+
0.6.0 / 2010-07-31
|
51
|
+
==================
|
52
|
+
|
53
|
+
* Added _docs/api.html_
|
54
|
+
* Added -w, --watch
|
55
|
+
* Added `Array` support to `assert.includes()`
|
56
|
+
* Added; outputting exceptions immediately. Closes #19
|
57
|
+
* Fixed `assert.includes()` param ordering
|
58
|
+
* Fixed `assert.length()` param ordering
|
59
|
+
* Fixed jscoverage links
|
60
|
+
|
61
|
+
0.5.0 / 2010-07-16
|
62
|
+
==================
|
63
|
+
|
64
|
+
* Added support for async exports
|
65
|
+
* Added timeout support to `assert.response()`. Closes #3
|
66
|
+
* Added 4th arg callback support to `assert.response()`
|
67
|
+
* Added `assert.length()`
|
68
|
+
* Added `assert.match()`
|
69
|
+
* Added `assert.isUndefined()`
|
70
|
+
* Added `assert.isNull()`
|
71
|
+
* Added `assert.includes()`
|
72
|
+
* Added growlnotify support via -g, --growl
|
73
|
+
* Added -o, --only TESTS. Ex: --only "test foo()" --only "test foo(), test bar()"
|
74
|
+
* Removed profanity
|
75
|
+
|
76
|
+
0.4.0 / 2010-07-09
|
77
|
+
==================
|
78
|
+
|
79
|
+
* Added reporting source coverage (respects --boring for color haters)
|
80
|
+
* Added callback to assert.response(). Closes #12
|
81
|
+
* Fixed; putting exceptions to stderr. Closes #13
|
82
|
+
|
83
|
+
0.3.1 / 2010-06-28
|
84
|
+
==================
|
85
|
+
|
86
|
+
* Faster assert.response()
|
87
|
+
|
88
|
+
0.3.0 / 2010-06-28
|
89
|
+
==================
|
90
|
+
|
91
|
+
* Added -p, --port NUM flags
|
92
|
+
* Added assert.response(). Closes #11
|
93
|
+
|
94
|
+
0.2.1 / 2010-06-25
|
95
|
+
==================
|
96
|
+
|
97
|
+
* Fixed issue with reporting object assertions
|
98
|
+
|
99
|
+
0.2.0 / 2010-06-21
|
100
|
+
==================
|
101
|
+
|
102
|
+
* Added `make uninstall`
|
103
|
+
* Added better readdir() failure message
|
104
|
+
* Fixed `make install` for kiwi
|
105
|
+
|
106
|
+
0.1.0 / 2010-06-15
|
107
|
+
==================
|
108
|
+
|
109
|
+
* Added better usage docs via --help
|
110
|
+
* Added better conditional color support
|
111
|
+
* Added pre exit assertion support
|
112
|
+
|
113
|
+
0.0.3 / 2010-06-02
|
114
|
+
==================
|
115
|
+
|
116
|
+
* Added more room for filenames in test coverage
|
117
|
+
* Added boring output support via --boring (suppress colored output)
|
118
|
+
* Fixed async failure exit status
|
119
|
+
|
120
|
+
0.0.2 / 2010-05-30
|
121
|
+
==================
|
122
|
+
|
123
|
+
* Fixed exit status for CI support
|
124
|
+
|
125
|
+
0.0.1 / 2010-05-30
|
126
|
+
==================
|
127
|
+
|
128
|
+
* Initial release
|