embeditor-rails 1.1.1 → 2.0.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +25 -17
- data/app/assets/javascripts/embeditor/adapter.js.coffee +21 -2
- data/app/assets/javascripts/embeditor/adapters/embedly.js.coffee +4 -40
- data/app/assets/javascripts/embeditor/adapters/oembed.js.coffee +37 -2
- data/app/assets/javascripts/embeditor/embeditor.js.coffee +16 -4
- data/lib/embeditor-rails/version.rb +1 -1
- data/lib/node_modules/npm/AUTHORS +158 -0
- data/lib/node_modules/npm/CONTRIBUTING.md +9 -0
- data/lib/node_modules/npm/LICENSE +235 -0
- data/lib/node_modules/npm/Makefile +216 -0
- data/lib/node_modules/npm/README.md +241 -0
- data/lib/node_modules/npm/bin/node-gyp-bin/node-gyp +2 -0
- data/lib/node_modules/npm/bin/node-gyp-bin/node-gyp.cmd +1 -0
- data/lib/node_modules/npm/bin/npm +13 -0
- data/lib/node_modules/npm/bin/npm-cli.js +87 -0
- data/lib/node_modules/npm/bin/npm.cmd +6 -0
- data/lib/node_modules/npm/bin/read-package-json.js +22 -0
- data/lib/node_modules/npm/cli.js +2 -0
- data/lib/node_modules/npm/configure +33 -0
- data/lib/node_modules/npm/doc/api/npm-bin.md +13 -0
- data/lib/node_modules/npm/doc/api/npm-bugs.md +19 -0
- data/lib/node_modules/npm/doc/api/npm-commands.md +22 -0
- data/lib/node_modules/npm/doc/api/npm-config.md +45 -0
- data/lib/node_modules/npm/doc/api/npm-deprecate.md +34 -0
- data/lib/node_modules/npm/doc/api/npm-docs.md +19 -0
- data/lib/node_modules/npm/doc/api/npm-edit.md +24 -0
- data/lib/node_modules/npm/doc/api/npm-explore.md +18 -0
- data/lib/node_modules/npm/doc/api/npm-help-search.md +30 -0
- data/lib/node_modules/npm/doc/api/npm-init.md +29 -0
- data/lib/node_modules/npm/doc/api/npm-install.md +19 -0
- data/lib/node_modules/npm/doc/api/npm-link.md +33 -0
- data/lib/node_modules/npm/doc/api/npm-load.md +26 -0
- data/lib/node_modules/npm/doc/api/npm-ls.md +56 -0
- data/lib/node_modules/npm/doc/api/npm-outdated.md +13 -0
- data/lib/node_modules/npm/doc/api/npm-owner.md +31 -0
- data/lib/node_modules/npm/doc/api/npm-pack.md +19 -0
- data/lib/node_modules/npm/doc/api/npm-prefix.md +15 -0
- data/lib/node_modules/npm/doc/api/npm-prune.md +17 -0
- data/lib/node_modules/npm/doc/api/npm-publish.md +30 -0
- data/lib/node_modules/npm/doc/api/npm-rebuild.md +16 -0
- data/lib/node_modules/npm/doc/api/npm-repo.md +19 -0
- data/lib/node_modules/npm/doc/api/npm-restart.md +22 -0
- data/lib/node_modules/npm/doc/api/npm-root.md +15 -0
- data/lib/node_modules/npm/doc/api/npm-run-script.md +27 -0
- data/lib/node_modules/npm/doc/api/npm-search.md +35 -0
- data/lib/node_modules/npm/doc/api/npm-shrinkwrap.md +20 -0
- data/lib/node_modules/npm/doc/api/npm-start.md +13 -0
- data/lib/node_modules/npm/doc/api/npm-stop.md +13 -0
- data/lib/node_modules/npm/doc/api/npm-submodule.md +28 -0
- data/lib/node_modules/npm/doc/api/npm-tag.md +23 -0
- data/lib/node_modules/npm/doc/api/npm-test.md +16 -0
- data/lib/node_modules/npm/doc/api/npm-uninstall.md +16 -0
- data/lib/node_modules/npm/doc/api/npm-unpublish.md +20 -0
- data/lib/node_modules/npm/doc/api/npm-update.md +11 -0
- data/lib/node_modules/npm/doc/api/npm-version.md +18 -0
- data/lib/node_modules/npm/doc/api/npm-view.md +93 -0
- data/lib/node_modules/npm/doc/api/npm-whoami.md +15 -0
- data/lib/node_modules/npm/doc/api/npm.md +116 -0
- data/lib/node_modules/npm/doc/cli/npm-adduser.md +38 -0
- data/lib/node_modules/npm/doc/cli/npm-bin.md +19 -0
- data/lib/node_modules/npm/doc/cli/npm-bugs.md +42 -0
- data/lib/node_modules/npm/doc/cli/npm-build.md +22 -0
- data/lib/node_modules/npm/doc/cli/npm-bundle.md +14 -0
- data/lib/node_modules/npm/doc/cli/npm-cache.md +72 -0
- data/lib/node_modules/npm/doc/cli/npm-completion.md +29 -0
- data/lib/node_modules/npm/doc/cli/npm-config.md +71 -0
- data/lib/node_modules/npm/doc/cli/npm-dedupe.md +58 -0
- data/lib/node_modules/npm/doc/cli/npm-deprecate.md +26 -0
- data/lib/node_modules/npm/doc/cli/npm-docs.md +44 -0
- data/lib/node_modules/npm/doc/cli/npm-edit.md +37 -0
- data/lib/node_modules/npm/doc/cli/npm-explore.md +40 -0
- data/lib/node_modules/npm/doc/cli/npm-help-search.md +35 -0
- data/lib/node_modules/npm/doc/cli/npm-help.md +40 -0
- data/lib/node_modules/npm/doc/cli/npm-init.md +25 -0
- data/lib/node_modules/npm/doc/cli/npm-install.md +252 -0
- data/lib/node_modules/npm/doc/cli/npm-link.md +63 -0
- data/lib/node_modules/npm/doc/cli/npm-ls.md +80 -0
- data/lib/node_modules/npm/doc/cli/npm-outdated.md +58 -0
- data/lib/node_modules/npm/doc/cli/npm-owner.md +33 -0
- data/lib/node_modules/npm/doc/cli/npm-pack.md +27 -0
- data/lib/node_modules/npm/doc/cli/npm-prefix.md +19 -0
- data/lib/node_modules/npm/doc/cli/npm-prune.md +25 -0
- data/lib/node_modules/npm/doc/cli/npm-publish.md +30 -0
- data/lib/node_modules/npm/doc/cli/npm-rebuild.md +21 -0
- data/lib/node_modules/npm/doc/cli/npm-repo.md +28 -0
- data/lib/node_modules/npm/doc/cli/npm-restart.md +22 -0
- data/lib/node_modules/npm/doc/cli/npm-rm.md +23 -0
- data/lib/node_modules/npm/doc/cli/npm-root.md +19 -0
- data/lib/node_modules/npm/doc/cli/npm-run-script.md +21 -0
- data/lib/node_modules/npm/doc/cli/npm-search.md +36 -0
- data/lib/node_modules/npm/doc/cli/npm-shrinkwrap.md +185 -0
- data/lib/node_modules/npm/doc/cli/npm-star.md +22 -0
- data/lib/node_modules/npm/doc/cli/npm-stars.md +22 -0
- data/lib/node_modules/npm/doc/cli/npm-start.md +18 -0
- data/lib/node_modules/npm/doc/cli/npm-stop.md +18 -0
- data/lib/node_modules/npm/doc/cli/npm-submodule.md +28 -0
- data/lib/node_modules/npm/doc/cli/npm-tag.md +34 -0
- data/lib/node_modules/npm/doc/cli/npm-test.md +22 -0
- data/lib/node_modules/npm/doc/cli/npm-uninstall.md +21 -0
- data/lib/node_modules/npm/doc/cli/npm-unpublish.md +32 -0
- data/lib/node_modules/npm/doc/cli/npm-update.md +24 -0
- data/lib/node_modules/npm/doc/cli/npm-version.md +45 -0
- data/lib/node_modules/npm/doc/cli/npm-view.md +90 -0
- data/lib/node_modules/npm/doc/cli/npm-whoami.md +17 -0
- data/lib/node_modules/npm/doc/cli/npm.md +153 -0
- data/lib/node_modules/npm/doc/files/npm-folders.md +211 -0
- data/lib/node_modules/npm/doc/files/npmrc.md +59 -0
- data/lib/node_modules/npm/doc/files/package.json.md +576 -0
- data/lib/node_modules/npm/doc/misc/npm-coding-style.md +181 -0
- data/lib/node_modules/npm/doc/misc/npm-config.md +820 -0
- data/lib/node_modules/npm/doc/misc/npm-developers.md +207 -0
- data/lib/node_modules/npm/doc/misc/npm-disputes.md +99 -0
- data/lib/node_modules/npm/doc/misc/npm-faq.md +364 -0
- data/lib/node_modules/npm/doc/misc/npm-index.md +411 -0
- data/lib/node_modules/npm/doc/misc/npm-registry.md +69 -0
- data/lib/node_modules/npm/doc/misc/npm-scripts.md +245 -0
- data/lib/node_modules/npm/doc/misc/removing-npm.md +54 -0
- data/lib/node_modules/npm/doc/misc/semver.md +111 -0
- data/lib/node_modules/npm/html/doc/README.html +276 -0
- data/lib/node_modules/npm/html/doc/api/npm-bin.html +53 -0
- data/lib/node_modules/npm/html/doc/api/npm-bugs.html +59 -0
- data/lib/node_modules/npm/html/doc/api/npm-commands.html +62 -0
- data/lib/node_modules/npm/html/doc/api/npm-config.html +67 -0
- data/lib/node_modules/npm/html/doc/api/npm-deprecate.html +66 -0
- data/lib/node_modules/npm/html/doc/api/npm-docs.html +59 -0
- data/lib/node_modules/npm/html/doc/api/npm-edit.html +64 -0
- data/lib/node_modules/npm/html/doc/api/npm-explore.html +58 -0
- data/lib/node_modules/npm/html/doc/api/npm-help-search.html +66 -0
- data/lib/node_modules/npm/html/doc/api/npm-init.html +69 -0
- data/lib/node_modules/npm/html/doc/api/npm-install.html +59 -0
- data/lib/node_modules/npm/html/doc/api/npm-link.html +73 -0
- data/lib/node_modules/npm/html/doc/api/npm-load.html +66 -0
- data/lib/node_modules/npm/html/doc/api/npm-ls.html +93 -0
- data/lib/node_modules/npm/html/doc/api/npm-outdated.html +53 -0
- data/lib/node_modules/npm/html/doc/api/npm-owner.html +68 -0
- data/lib/node_modules/npm/html/doc/api/npm-pack.html +59 -0
- data/lib/node_modules/npm/html/doc/api/npm-prefix.html +55 -0
- data/lib/node_modules/npm/html/doc/api/npm-prune.html +57 -0
- data/lib/node_modules/npm/html/doc/api/npm-publish.html +66 -0
- data/lib/node_modules/npm/html/doc/api/npm-rebuild.html +56 -0
- data/lib/node_modules/npm/html/doc/api/npm-repo.html +59 -0
- data/lib/node_modules/npm/html/doc/api/npm-restart.html +61 -0
- data/lib/node_modules/npm/html/doc/api/npm-root.html +55 -0
- data/lib/node_modules/npm/html/doc/api/npm-run-script.html +63 -0
- data/lib/node_modules/npm/html/doc/api/npm-search.html +66 -0
- data/lib/node_modules/npm/html/doc/api/npm-shrinkwrap.html +60 -0
- data/lib/node_modules/npm/html/doc/api/npm-start.html +53 -0
- data/lib/node_modules/npm/html/doc/api/npm-stop.html +53 -0
- data/lib/node_modules/npm/html/doc/api/npm-submodule.html +67 -0
- data/lib/node_modules/npm/html/doc/api/npm-tag.html +63 -0
- data/lib/node_modules/npm/html/doc/api/npm-test.html +56 -0
- data/lib/node_modules/npm/html/doc/api/npm-uninstall.html +56 -0
- data/lib/node_modules/npm/html/doc/api/npm-unpublish.html +60 -0
- data/lib/node_modules/npm/html/doc/api/npm-update.html +52 -0
- data/lib/node_modules/npm/html/doc/api/npm-version.html +58 -0
- data/lib/node_modules/npm/html/doc/api/npm-view.html +133 -0
- data/lib/node_modules/npm/html/doc/api/npm-whoami.html +55 -0
- data/lib/node_modules/npm/html/doc/api/npm.html +126 -0
- data/lib/node_modules/npm/html/doc/cli/npm-adduser.html +73 -0
- data/lib/node_modules/npm/html/doc/cli/npm-bin.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm-bugs.html +72 -0
- data/lib/node_modules/npm/html/doc/cli/npm-build.html +59 -0
- data/lib/node_modules/npm/html/doc/cli/npm-bundle.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm-cache.html +100 -0
- data/lib/node_modules/npm/html/doc/cli/npm-completion.html +67 -0
- data/lib/node_modules/npm/html/doc/cli/npm-config.html +107 -0
- data/lib/node_modules/npm/html/doc/cli/npm-dedupe.html +96 -0
- data/lib/node_modules/npm/html/doc/cli/npm-deprecate.html +65 -0
- data/lib/node_modules/npm/html/doc/cli/npm-docs.html +75 -0
- data/lib/node_modules/npm/html/doc/cli/npm-edit.html +71 -0
- data/lib/node_modules/npm/html/doc/cli/npm-explore.html +74 -0
- data/lib/node_modules/npm/html/doc/cli/npm-help-search.html +72 -0
- data/lib/node_modules/npm/html/doc/cli/npm-help.html +70 -0
- data/lib/node_modules/npm/html/doc/cli/npm-init.html +63 -0
- data/lib/node_modules/npm/html/doc/cli/npm-install.html +183 -0
- data/lib/node_modules/npm/html/doc/cli/npm-link.html +96 -0
- data/lib/node_modules/npm/html/doc/cli/npm-ls.html +108 -0
- data/lib/node_modules/npm/html/doc/cli/npm-outdated.html +92 -0
- data/lib/node_modules/npm/html/doc/cli/npm-owner.html +68 -0
- data/lib/node_modules/npm/html/doc/cli/npm-pack.html +63 -0
- data/lib/node_modules/npm/html/doc/cli/npm-prefix.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm-prune.html +63 -0
- data/lib/node_modules/npm/html/doc/cli/npm-publish.html +63 -0
- data/lib/node_modules/npm/html/doc/cli/npm-rebuild.html +60 -0
- data/lib/node_modules/npm/html/doc/cli/npm-repo.html +66 -0
- data/lib/node_modules/npm/html/doc/cli/npm-restart.html +58 -0
- data/lib/node_modules/npm/html/doc/cli/npm-rm.html +58 -0
- data/lib/node_modules/npm/html/doc/cli/npm-root.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm-run-script.html +57 -0
- data/lib/node_modules/npm/html/doc/cli/npm-search.html +71 -0
- data/lib/node_modules/npm/html/doc/cli/npm-shrinkwrap.html +217 -0
- data/lib/node_modules/npm/html/doc/cli/npm-star.html +60 -0
- data/lib/node_modules/npm/html/doc/cli/npm-stars.html +59 -0
- data/lib/node_modules/npm/html/doc/cli/npm-start.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm-stop.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm-submodule.html +67 -0
- data/lib/node_modules/npm/html/doc/cli/npm-tag.html +68 -0
- data/lib/node_modules/npm/html/doc/cli/npm-test.html +58 -0
- data/lib/node_modules/npm/html/doc/cli/npm-uninstall.html +56 -0
- data/lib/node_modules/npm/html/doc/cli/npm-unpublish.html +68 -0
- data/lib/node_modules/npm/html/doc/cli/npm-update.html +60 -0
- data/lib/node_modules/npm/html/doc/cli/npm-version.html +83 -0
- data/lib/node_modules/npm/html/doc/cli/npm-view.html +125 -0
- data/lib/node_modules/npm/html/doc/cli/npm-whoami.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm.html +165 -0
- data/lib/node_modules/npm/html/doc/files/npm-folders.html +239 -0
- data/lib/node_modules/npm/html/doc/files/npm-global.html +239 -0
- data/lib/node_modules/npm/html/doc/files/npm-json.html +580 -0
- data/lib/node_modules/npm/html/doc/files/npmrc.html +93 -0
- data/lib/node_modules/npm/html/doc/files/package.json.html +580 -0
- data/lib/node_modules/npm/html/doc/index.html +450 -0
- data/lib/node_modules/npm/html/doc/misc/npm-coding-style.html +216 -0
- data/lib/node_modules/npm/html/doc/misc/npm-config.html +744 -0
- data/lib/node_modules/npm/html/doc/misc/npm-developers.html +208 -0
- data/lib/node_modules/npm/html/doc/misc/npm-disputes.html +126 -0
- data/lib/node_modules/npm/html/doc/misc/npm-faq.html +382 -0
- data/lib/node_modules/npm/html/doc/misc/npm-index.html +450 -0
- data/lib/node_modules/npm/html/doc/misc/npm-registry.html +105 -0
- data/lib/node_modules/npm/html/doc/misc/npm-scripts.html +257 -0
- data/lib/node_modules/npm/html/doc/misc/removing-npm.html +92 -0
- data/lib/node_modules/npm/html/doc/misc/semver.html +128 -0
- data/lib/node_modules/npm/html/docfoot-script.html +31 -0
- data/lib/node_modules/npm/html/docfoot.html +2 -0
- data/lib/node_modules/npm/html/dochead.html +8 -0
- data/lib/node_modules/npm/html/favicon.ico +0 -0
- data/lib/node_modules/npm/html/index.html +95 -0
- data/lib/node_modules/npm/html/static/style.css +329 -0
- data/lib/node_modules/npm/lib/adduser.js +138 -0
- data/lib/node_modules/npm/lib/bin.js +18 -0
- data/lib/node_modules/npm/lib/bugs.js +61 -0
- data/lib/node_modules/npm/lib/build.js +228 -0
- data/lib/node_modules/npm/lib/cache.js +1318 -0
- data/lib/node_modules/npm/lib/completion.js +253 -0
- data/lib/node_modules/npm/lib/config.js +285 -0
- data/lib/node_modules/npm/lib/dedupe.js +357 -0
- data/lib/node_modules/npm/lib/deprecate.js +47 -0
- data/lib/node_modules/npm/lib/docs.js +62 -0
- data/lib/node_modules/npm/lib/edit.js +32 -0
- data/lib/node_modules/npm/lib/explore.js +36 -0
- data/lib/node_modules/npm/lib/faq.js +8 -0
- data/lib/node_modules/npm/lib/get.js +12 -0
- data/lib/node_modules/npm/lib/help-search.js +218 -0
- data/lib/node_modules/npm/lib/help.js +231 -0
- data/lib/node_modules/npm/lib/init.js +36 -0
- data/lib/node_modules/npm/lib/install.js +979 -0
- data/lib/node_modules/npm/lib/link.js +173 -0
- data/lib/node_modules/npm/lib/ls.js +357 -0
- data/lib/node_modules/npm/lib/npm.js +528 -0
- data/lib/node_modules/npm/lib/outdated.js +303 -0
- data/lib/node_modules/npm/lib/owner.js +205 -0
- data/lib/node_modules/npm/lib/pack.js +65 -0
- data/lib/node_modules/npm/lib/prefix.js +11 -0
- data/lib/node_modules/npm/lib/prune.js +53 -0
- data/lib/node_modules/npm/lib/publish.js +118 -0
- data/lib/node_modules/npm/lib/rebuild.js +75 -0
- data/lib/node_modules/npm/lib/repo.js +54 -0
- data/lib/node_modules/npm/lib/restart.js +1 -0
- data/lib/node_modules/npm/lib/root.js +11 -0
- data/lib/node_modules/npm/lib/run-script.js +102 -0
- data/lib/node_modules/npm/lib/search.js +265 -0
- data/lib/node_modules/npm/lib/set.js +13 -0
- data/lib/node_modules/npm/lib/shrinkwrap.js +86 -0
- data/lib/node_modules/npm/lib/star.js +33 -0
- data/lib/node_modules/npm/lib/stars.js +27 -0
- data/lib/node_modules/npm/lib/start.js +1 -0
- data/lib/node_modules/npm/lib/stop.js +1 -0
- data/lib/node_modules/npm/lib/submodule.js +119 -0
- data/lib/node_modules/npm/lib/substack.js +20 -0
- data/lib/node_modules/npm/lib/tag.js +18 -0
- data/lib/node_modules/npm/lib/test.js +14 -0
- data/lib/node_modules/npm/lib/unbuild.js +112 -0
- data/lib/node_modules/npm/lib/uninstall.js +127 -0
- data/lib/node_modules/npm/lib/unpublish.js +83 -0
- data/lib/node_modules/npm/lib/update.js +43 -0
- data/lib/node_modules/npm/lib/utils/completion.sh +54 -0
- data/lib/node_modules/npm/lib/utils/completion/file-completion.js +26 -0
- data/lib/node_modules/npm/lib/utils/completion/installed-deep.js +50 -0
- data/lib/node_modules/npm/lib/utils/completion/installed-shallow.js +79 -0
- data/lib/node_modules/npm/lib/utils/error-handler.js +343 -0
- data/lib/node_modules/npm/lib/utils/fetch.js +93 -0
- data/lib/node_modules/npm/lib/utils/find-prefix.js +57 -0
- data/lib/node_modules/npm/lib/utils/gently-rm.js +61 -0
- data/lib/node_modules/npm/lib/utils/is-git-url.js +13 -0
- data/lib/node_modules/npm/lib/utils/lifecycle.js +360 -0
- data/lib/node_modules/npm/lib/utils/link.js +39 -0
- data/lib/node_modules/npm/lib/utils/tar.js +323 -0
- data/lib/node_modules/npm/lib/version.js +120 -0
- data/lib/node_modules/npm/lib/view.js +246 -0
- data/lib/node_modules/npm/lib/visnup.js +42 -0
- data/lib/node_modules/npm/lib/whoami.js +13 -0
- data/lib/node_modules/npm/lib/xmas.js +56 -0
- data/lib/node_modules/npm/make.bat +3 -0
- data/lib/node_modules/npm/man/man1/npm-README.1 +328 -0
- data/lib/node_modules/npm/man/man1/npm-adduser.1 +63 -0
- data/lib/node_modules/npm/man/man1/npm-bin.1 +40 -0
- data/lib/node_modules/npm/man/man1/npm-bugs.1 +78 -0
- data/lib/node_modules/npm/man/man1/npm-build.1 +43 -0
- data/lib/node_modules/npm/man/man1/npm-bundle.1 +23 -0
- data/lib/node_modules/npm/man/man1/npm-cache.1 +104 -0
- data/lib/node_modules/npm/man/man1/npm-completion.1 +47 -0
- data/lib/node_modules/npm/man/man1/npm-config.1 +113 -0
- data/lib/node_modules/npm/man/man1/npm-dedupe.1 +96 -0
- data/lib/node_modules/npm/man/man1/npm-deprecate.1 +48 -0
- data/lib/node_modules/npm/man/man1/npm-docs.1 +78 -0
- data/lib/node_modules/npm/man/man1/npm-edit.1 +66 -0
- data/lib/node_modules/npm/man/man1/npm-explore.1 +76 -0
- data/lib/node_modules/npm/man/man1/npm-help-search.1 +59 -0
- data/lib/node_modules/npm/man/man1/npm-help.1 +77 -0
- data/lib/node_modules/npm/man/man1/npm-init.1 +43 -0
- data/lib/node_modules/npm/man/man1/npm-install.1 +434 -0
- data/lib/node_modules/npm/man/man1/npm-link.1 +119 -0
- data/lib/node_modules/npm/man/man1/npm-ls.1 +146 -0
- data/lib/node_modules/npm/man/man1/npm-outdated.1 +102 -0
- data/lib/node_modules/npm/man/man1/npm-owner.1 +58 -0
- data/lib/node_modules/npm/man/man1/npm-pack.1 +48 -0
- data/lib/node_modules/npm/man/man1/npm-prefix.1 +40 -0
- data/lib/node_modules/npm/man/man1/npm-prune.1 +42 -0
- data/lib/node_modules/npm/man/man1/npm-publish.1 +53 -0
- data/lib/node_modules/npm/man/man1/npm-rebuild.1 +37 -0
- data/lib/node_modules/npm/man/man1/npm-repo.1 +47 -0
- data/lib/node_modules/npm/man/man1/npm-restart.1 +42 -0
- data/lib/node_modules/npm/man/man1/npm-rm.1 +44 -0
- data/lib/node_modules/npm/man/man1/npm-root.1 +40 -0
- data/lib/node_modules/npm/man/man1/npm-run-script.1 +41 -0
- data/lib/node_modules/npm/man/man1/npm-search.1 +62 -0
- data/lib/node_modules/npm/man/man1/npm-shrinkwrap.1 +275 -0
- data/lib/node_modules/npm/man/man1/npm-star.1 +39 -0
- data/lib/node_modules/npm/man/man1/npm-stars.1 +40 -0
- data/lib/node_modules/npm/man/man1/npm-start.1 +37 -0
- data/lib/node_modules/npm/man/man1/npm-stop.1 +37 -0
- data/lib/node_modules/npm/man/man1/npm-submodule.1 +42 -0
- data/lib/node_modules/npm/man/man1/npm-tag.1 +74 -0
- data/lib/node_modules/npm/man/man1/npm-test.1 +42 -0
- data/lib/node_modules/npm/man/man1/npm-uninstall.1 +42 -0
- data/lib/node_modules/npm/man/man1/npm-unpublish.1 +53 -0
- data/lib/node_modules/npm/man/man1/npm-update.1 +45 -0
- data/lib/node_modules/npm/man/man1/npm-version.1 +75 -0
- data/lib/node_modules/npm/man/man1/npm-view.1 +186 -0
- data/lib/node_modules/npm/man/man1/npm-whoami.1 +34 -0
- data/lib/node_modules/npm/man/man1/npm.1 +230 -0
- data/lib/node_modules/npm/man/man3/npm-bin.3 +21 -0
- data/lib/node_modules/npm/man/man3/npm-bugs.3 +28 -0
- data/lib/node_modules/npm/man/man3/npm-commands.3 +35 -0
- data/lib/node_modules/npm/man/man3/npm-config.3 +69 -0
- data/lib/node_modules/npm/man/man3/npm-deprecate.3 +57 -0
- data/lib/node_modules/npm/man/man3/npm-docs.3 +28 -0
- data/lib/node_modules/npm/man/man3/npm-edit.3 +35 -0
- data/lib/node_modules/npm/man/man3/npm-explore.3 +28 -0
- data/lib/node_modules/npm/man/man3/npm-help-search.3 +51 -0
- data/lib/node_modules/npm/man/man3/npm-init.3 +39 -0
- data/lib/node_modules/npm/man/man3/npm-install.3 +29 -0
- data/lib/node_modules/npm/man/man3/npm-link.3 +53 -0
- data/lib/node_modules/npm/man/man3/npm-load.3 +44 -0
- data/lib/node_modules/npm/man/man3/npm-ls.3 +86 -0
- data/lib/node_modules/npm/man/man3/npm-outdated.3 +21 -0
- data/lib/node_modules/npm/man/man3/npm-owner.3 +52 -0
- data/lib/node_modules/npm/man/man3/npm-pack.3 +28 -0
- data/lib/node_modules/npm/man/man3/npm-prefix.3 +24 -0
- data/lib/node_modules/npm/man/man3/npm-prune.3 +27 -0
- data/lib/node_modules/npm/man/man3/npm-publish.3 +51 -0
- data/lib/node_modules/npm/man/man3/npm-rebuild.3 +22 -0
- data/lib/node_modules/npm/man/man3/npm-repo.3 +28 -0
- data/lib/node_modules/npm/man/man3/npm-restart.3 +37 -0
- data/lib/node_modules/npm/man/man3/npm-root.3 +24 -0
- data/lib/node_modules/npm/man/man3/npm-run-script.3 +48 -0
- data/lib/node_modules/npm/man/man3/npm-search.3 +64 -0
- data/lib/node_modules/npm/man/man3/npm-shrinkwrap.3 +30 -0
- data/lib/node_modules/npm/man/man3/npm-start.3 +21 -0
- data/lib/node_modules/npm/man/man3/npm-stop.3 +21 -0
- data/lib/node_modules/npm/man/man3/npm-submodule.3 +42 -0
- data/lib/node_modules/npm/man/man3/npm-tag.3 +31 -0
- data/lib/node_modules/npm/man/man3/npm-test.3 +25 -0
- data/lib/node_modules/npm/man/man3/npm-uninstall.3 +25 -0
- data/lib/node_modules/npm/man/man3/npm-unpublish.3 +30 -0
- data/lib/node_modules/npm/man/man3/npm-update.3 +18 -0
- data/lib/node_modules/npm/man/man3/npm-version.3 +27 -0
- data/lib/node_modules/npm/man/man3/npm-view.3 +176 -0
- data/lib/node_modules/npm/man/man3/npm-whoami.3 +24 -0
- data/lib/node_modules/npm/man/man3/npm.3 +162 -0
- data/lib/node_modules/npm/man/man5/npm-folders.5 +264 -0
- data/lib/node_modules/npm/man/man5/npm-global.5 +264 -0
- data/lib/node_modules/npm/man/man5/npm-json.5 +807 -0
- data/lib/node_modules/npm/man/man5/npmrc.5 +89 -0
- data/lib/node_modules/npm/man/man5/package.json.5 +807 -0
- data/lib/node_modules/npm/man/man7/npm-coding-style.7 +254 -0
- data/lib/node_modules/npm/man/man7/npm-config.7 +1445 -0
- data/lib/node_modules/npm/man/man7/npm-developers.7 +335 -0
- data/lib/node_modules/npm/man/man7/npm-disputes.7 +146 -0
- data/lib/node_modules/npm/man/man7/npm-faq.7 +479 -0
- data/lib/node_modules/npm/man/man7/npm-index.7 +307 -0
- data/lib/node_modules/npm/man/man7/npm-registry.7 +82 -0
- data/lib/node_modules/npm/man/man7/npm-scripts.7 +354 -0
- data/lib/node_modules/npm/man/man7/removing-npm.7 +107 -0
- data/lib/node_modules/npm/man/man7/semver.7 +172 -0
- data/lib/node_modules/npm/node_modules/abbrev/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/abbrev/README.md +23 -0
- data/lib/node_modules/npm/node_modules/abbrev/lib/abbrev.js +111 -0
- data/lib/node_modules/npm/node_modules/abbrev/package.json +25 -0
- data/lib/node_modules/npm/node_modules/ansi/README.md +91 -0
- data/lib/node_modules/npm/node_modules/ansi/color-spaces.pl +67 -0
- data/lib/node_modules/npm/node_modules/ansi/examples/beep/index.js +16 -0
- data/lib/node_modules/npm/node_modules/ansi/examples/clear/index.js +15 -0
- data/lib/node_modules/npm/node_modules/ansi/examples/cursorPosition.js +32 -0
- data/lib/node_modules/npm/node_modules/ansi/examples/progress/index.js +87 -0
- data/lib/node_modules/npm/node_modules/ansi/examples/starwars.js +46 -0
- data/lib/node_modules/npm/node_modules/ansi/lib/ansi.js +405 -0
- data/lib/node_modules/npm/node_modules/ansi/lib/newlines.js +71 -0
- data/lib/node_modules/npm/node_modules/ansi/package.json +50 -0
- data/lib/node_modules/npm/node_modules/ansicolors/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/ansicolors/README.md +62 -0
- data/lib/node_modules/npm/node_modules/ansicolors/ansicolors.js +65 -0
- data/lib/node_modules/npm/node_modules/ansicolors/package.json +34 -0
- data/lib/node_modules/npm/node_modules/ansistyles/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/ansistyles/README.md +71 -0
- data/lib/node_modules/npm/node_modules/ansistyles/ansistyles.js +38 -0
- data/lib/node_modules/npm/node_modules/ansistyles/package.json +38 -0
- data/lib/node_modules/npm/node_modules/archy/README.markdown +92 -0
- data/lib/node_modules/npm/node_modules/archy/index.js +35 -0
- data/lib/node_modules/npm/node_modules/archy/package.json +52 -0
- data/lib/node_modules/npm/node_modules/block-stream/LICENCE +25 -0
- data/lib/node_modules/npm/node_modules/block-stream/README.md +14 -0
- data/lib/node_modules/npm/node_modules/block-stream/bench/block-stream-pause.js +70 -0
- data/lib/node_modules/npm/node_modules/block-stream/bench/block-stream.js +68 -0
- data/lib/node_modules/npm/node_modules/block-stream/bench/dropper-pause.js +70 -0
- data/lib/node_modules/npm/node_modules/block-stream/bench/dropper.js +68 -0
- data/lib/node_modules/npm/node_modules/block-stream/block-stream.js +209 -0
- data/lib/node_modules/npm/node_modules/block-stream/package.json +35 -0
- data/lib/node_modules/npm/node_modules/child-process-close/README.md +45 -0
- data/lib/node_modules/npm/node_modules/child-process-close/index.js +48 -0
- data/lib/node_modules/npm/node_modules/child-process-close/package.json +37 -0
- data/lib/node_modules/npm/node_modules/chmodr/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/chmodr/README.md +3 -0
- data/lib/node_modules/npm/node_modules/chmodr/chmodr.js +54 -0
- data/lib/node_modules/npm/node_modules/chmodr/package.json +28 -0
- data/lib/node_modules/npm/node_modules/chownr/LICENCE +25 -0
- data/lib/node_modules/npm/node_modules/chownr/README.md +3 -0
- data/lib/node_modules/npm/node_modules/chownr/chownr.js +41 -0
- data/lib/node_modules/npm/node_modules/chownr/package.json +42 -0
- data/lib/node_modules/npm/node_modules/cmd-shim/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/cmd-shim/README.md +42 -0
- data/lib/node_modules/npm/node_modules/cmd-shim/index.js +180 -0
- data/lib/node_modules/npm/node_modules/cmd-shim/package.json +35 -0
- data/lib/node_modules/npm/node_modules/columnify/Readme.md +189 -0
- data/lib/node_modules/npm/node_modules/columnify/index.js +210 -0
- data/lib/node_modules/npm/node_modules/columnify/package.json +42 -0
- data/lib/node_modules/npm/node_modules/columnify/utils.js +76 -0
- data/lib/node_modules/npm/node_modules/editor/LICENSE +18 -0
- data/lib/node_modules/npm/node_modules/editor/README.markdown +54 -0
- data/lib/node_modules/npm/node_modules/editor/example/beep.json +5 -0
- data/lib/node_modules/npm/node_modules/editor/example/edit.js +4 -0
- data/lib/node_modules/npm/node_modules/editor/index.js +26 -0
- data/lib/node_modules/npm/node_modules/editor/package.json +43 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/LICENCE +25 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/README.md +18 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/example/bundle.js +13 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/example/dir-tar.js +19 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/example/dir.js +25 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/example/example.js +12 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/example/ig-tar.js +19 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/example/tar.js +25 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/fstream-npm.js +323 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/README.md +22 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/example/basic.js +13 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js +275 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/package.json +40 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/package.json +27 -0
- data/lib/node_modules/npm/node_modules/fstream/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/fstream/README.md +76 -0
- data/lib/node_modules/npm/node_modules/fstream/examples/filter-pipe.js +131 -0
- data/lib/node_modules/npm/node_modules/fstream/examples/pipe.js +115 -0
- data/lib/node_modules/npm/node_modules/fstream/examples/reader.js +54 -0
- data/lib/node_modules/npm/node_modules/fstream/examples/symlink-write.js +24 -0
- data/lib/node_modules/npm/node_modules/fstream/fstream.js +31 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/abstract.js +85 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/collect.js +67 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/dir-reader.js +251 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js +171 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/file-reader.js +147 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/file-writer.js +100 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/get-type.js +32 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/link-reader.js +54 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/link-writer.js +95 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/proxy-reader.js +93 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/proxy-writer.js +109 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/reader.js +260 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/socket-reader.js +38 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/writer.js +389 -0
- data/lib/node_modules/npm/node_modules/fstream/package.json +43 -0
- data/lib/node_modules/npm/node_modules/github-url-from-git/History.md +10 -0
- data/lib/node_modules/npm/node_modules/github-url-from-git/Makefile +5 -0
- data/lib/node_modules/npm/node_modules/github-url-from-git/Readme.md +41 -0
- data/lib/node_modules/npm/node_modules/github-url-from-git/index.js +12 -0
- data/lib/node_modules/npm/node_modules/github-url-from-git/package.json +31 -0
- data/lib/node_modules/npm/node_modules/github-url-from-git/test.js +40 -0
- data/lib/node_modules/npm/node_modules/github-url-from-username-repo/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/github-url-from-username-repo/README.md +14 -0
- data/lib/node_modules/npm/node_modules/github-url-from-username-repo/index.js +9 -0
- data/lib/node_modules/npm/node_modules/github-url-from-username-repo/package.json +33 -0
- data/lib/node_modules/npm/node_modules/glob/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/glob/README.md +250 -0
- data/lib/node_modules/npm/node_modules/glob/examples/g.js +9 -0
- data/lib/node_modules/npm/node_modules/glob/examples/usr-local.js +9 -0
- data/lib/node_modules/npm/node_modules/glob/glob.js +680 -0
- data/lib/node_modules/npm/node_modules/glob/package.json +39 -0
- data/lib/node_modules/npm/node_modules/graceful-fs/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/graceful-fs/README.md +26 -0
- data/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js +161 -0
- data/lib/node_modules/npm/node_modules/graceful-fs/package.json +48 -0
- data/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js +228 -0
- data/lib/node_modules/npm/node_modules/inherits/LICENSE +16 -0
- data/lib/node_modules/npm/node_modules/inherits/README.md +42 -0
- data/lib/node_modules/npm/node_modules/inherits/inherits.js +1 -0
- data/lib/node_modules/npm/node_modules/inherits/inherits_browser.js +23 -0
- data/lib/node_modules/npm/node_modules/inherits/package.json +32 -0
- data/lib/node_modules/npm/node_modules/inherits/test.js +25 -0
- data/lib/node_modules/npm/node_modules/ini/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/ini/README.md +79 -0
- data/lib/node_modules/npm/node_modules/ini/ini.js +166 -0
- data/lib/node_modules/npm/node_modules/ini/package.json +29 -0
- data/lib/node_modules/npm/node_modules/init-package-json/README.md +43 -0
- data/lib/node_modules/npm/node_modules/init-package-json/default-input.js +181 -0
- data/lib/node_modules/npm/node_modules/init-package-json/example/example-basic.js +8 -0
- data/lib/node_modules/npm/node_modules/init-package-json/example/example-default.js +7 -0
- data/lib/node_modules/npm/node_modules/init-package-json/example/example-npm.js +13 -0
- data/lib/node_modules/npm/node_modules/init-package-json/example/init/basic-init.js +1 -0
- data/lib/node_modules/npm/node_modules/init-package-json/init-package-json.js +129 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/LICENSE +15 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/README.md +133 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/index.js +11 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/README.md +8 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/init-input.js +191 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/init.js +37 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/package.json +10 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/substack-input.js +61 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/package.json +32 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/promzard.js +216 -0
- data/lib/node_modules/npm/node_modules/init-package-json/package.json +48 -0
- data/lib/node_modules/npm/node_modules/lockfile/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/lockfile/README.md +81 -0
- data/lib/node_modules/npm/node_modules/lockfile/lockfile.js +272 -0
- data/lib/node_modules/npm/node_modules/lockfile/package.json +45 -0
- data/lib/node_modules/npm/node_modules/lru-cache/CONTRIBUTORS +14 -0
- data/lib/node_modules/npm/node_modules/lru-cache/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/lru-cache/README.md +97 -0
- data/lib/node_modules/npm/node_modules/lru-cache/lib/lru-cache.js +252 -0
- data/lib/node_modules/npm/node_modules/lru-cache/package.json +33 -0
- data/lib/node_modules/npm/node_modules/minimatch/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/minimatch/README.md +218 -0
- data/lib/node_modules/npm/node_modules/minimatch/minimatch.js +1055 -0
- data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/README.md +53 -0
- data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/bench.js +283 -0
- data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/package.json +42 -0
- data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/sigmund.js +39 -0
- data/lib/node_modules/npm/node_modules/minimatch/package.json +40 -0
- data/lib/node_modules/npm/node_modules/mkdirp/LICENSE +21 -0
- data/lib/node_modules/npm/node_modules/mkdirp/README.markdown +63 -0
- data/lib/node_modules/npm/node_modules/mkdirp/examples/pow.js +6 -0
- data/lib/node_modules/npm/node_modules/mkdirp/index.js +82 -0
- data/lib/node_modules/npm/node_modules/mkdirp/package.json +33 -0
- data/lib/node_modules/npm/node_modules/node-gyp/LICENSE +24 -0
- data/lib/node_modules/npm/node_modules/node-gyp/README.md +163 -0
- data/lib/node_modules/npm/node_modules/node-gyp/addon.gypi +59 -0
- data/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js +133 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/AUTHORS +10 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/DEPS +24 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/OWNERS +1 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/PRESUBMIT.py +115 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/buildbot/buildbot_run.py +148 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/codereview.settings +10 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +12 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp +7 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp.bat +5 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_dummy.c +7 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py +18 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyptest.py +274 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +340 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +208 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1051 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1482 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +58 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +147 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +267 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +407 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +537 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common.py +513 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +72 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +157 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +103 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +49 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1069 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +81 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +308 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +87 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +56 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2172 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3270 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +37 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2150 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +44 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1224 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +23 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py +2809 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +90 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +264 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +870 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +160 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +176 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1324 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +2888 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +69 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylintrc +307 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/samples/samples +81 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/samples/samples.bat +5 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/setup.py +19 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/README +15 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/Xcode/README +5 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.pbfilespec +27 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.xclangspec +226 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/README +12 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/gyp-tests.el +63 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/gyp.el +252 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/run-unit-tests.sh +7 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp +1105 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp.fontified +1107 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/graphviz.py +100 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/pretty_gyp.py +155 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/pretty_sln.py +168 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/pretty_vcproj.py +329 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/build.js +275 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/clean.js +22 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js +344 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/install.js +362 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/list.js +33 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js +225 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/rebuild.js +16 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/remove.js +56 -0
- data/lib/node_modules/npm/node_modules/node-gyp/package.json +55 -0
- data/lib/node_modules/npm/node_modules/nopt/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/nopt/README.md +210 -0
- data/lib/node_modules/npm/node_modules/nopt/bin/nopt.js +51 -0
- data/lib/node_modules/npm/node_modules/nopt/examples/my-program.js +30 -0
- data/lib/node_modules/npm/node_modules/nopt/lib/nopt.js +407 -0
- data/lib/node_modules/npm/node_modules/nopt/package.json +39 -0
- data/lib/node_modules/npm/node_modules/npm-install-checks/LICENSE +234 -0
- data/lib/node_modules/npm/node_modules/npm-install-checks/README.md +25 -0
- data/lib/node_modules/npm/node_modules/npm-install-checks/index.js +146 -0
- data/lib/node_modules/npm/node_modules/npm-install-checks/package.json +43 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/README.md +176 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/index.js +55 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/adduser.js +138 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/bugs.js +9 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/deprecate.js +28 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js +184 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/publish.js +156 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js +270 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/star.js +29 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/stars.js +9 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/tag.js +6 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/unpublish.js +104 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/upload.js +22 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/package.json +43 -0
- data/lib/node_modules/npm/node_modules/npm-user-validate/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/npm-user-validate/README.md +6 -0
- data/lib/node_modules/npm/node_modules/npm-user-validate/npm-user-validate.js +49 -0
- data/lib/node_modules/npm/node_modules/npm-user-validate/package.json +37 -0
- data/lib/node_modules/npm/node_modules/npmconf/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/npmconf/README.md +33 -0
- data/lib/node_modules/npm/node_modules/npmconf/config-defs.js +353 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/LICENCE +22 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/index.js +282 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/README.md +3 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/package.json +33 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/proto-list.js +81 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/package.json +32 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/readme.markdown +228 -0
- data/lib/node_modules/npm/node_modules/npmconf/npmconf.js +338 -0
- data/lib/node_modules/npm/node_modules/npmconf/package.json +50 -0
- data/lib/node_modules/npm/node_modules/npmlog/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/npmlog/README.md +153 -0
- data/lib/node_modules/npm/node_modules/npmlog/example.js +39 -0
- data/lib/node_modules/npm/node_modules/npmlog/log.js +154 -0
- data/lib/node_modules/npm/node_modules/npmlog/package.json +32 -0
- data/lib/node_modules/npm/node_modules/once/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/once/README.md +51 -0
- data/lib/node_modules/npm/node_modules/once/once.js +20 -0
- data/lib/node_modules/npm/node_modules/once/package.json +39 -0
- data/lib/node_modules/npm/node_modules/opener/LICENSE.txt +14 -0
- data/lib/node_modules/npm/node_modules/opener/README.md +44 -0
- data/lib/node_modules/npm/node_modules/opener/opener.js +55 -0
- data/lib/node_modules/npm/node_modules/opener/package.json +34 -0
- data/lib/node_modules/npm/node_modules/osenv/LICENSE +25 -0
- data/lib/node_modules/npm/node_modules/osenv/README.md +63 -0
- data/lib/node_modules/npm/node_modules/osenv/osenv.js +80 -0
- data/lib/node_modules/npm/node_modules/osenv/package.json +38 -0
- data/lib/node_modules/npm/node_modules/path-is-inside/LICENSE.txt +14 -0
- data/lib/node_modules/npm/node_modules/path-is-inside/README.md +35 -0
- data/lib/node_modules/npm/node_modules/path-is-inside/lib/path-is-inside.js +24 -0
- data/lib/node_modules/npm/node_modules/path-is-inside/package.json +39 -0
- data/lib/node_modules/npm/node_modules/read-installed/LICENSE +16 -0
- data/lib/node_modules/npm/node_modules/read-installed/README.md +25 -0
- data/lib/node_modules/npm/node_modules/read-installed/package.json +39 -0
- data/lib/node_modules/npm/node_modules/read-installed/read-installed.js +338 -0
- data/lib/node_modules/npm/node_modules/read-package-json/LICENSE +15 -0
- data/lib/node_modules/npm/node_modules/read-package-json/README.md +166 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/AUTHORS +4 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/LICENSE +30 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/README.md +101 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/core_module_names.json +29 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/extract_description.js +14 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/fixer.js +392 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/normalize.js +36 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/safe_format.js +9 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/typos.json +25 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/warning_messages.json +28 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/package.json +53 -0
- data/lib/node_modules/npm/node_modules/read-package-json/package.json +39 -0
- data/lib/node_modules/npm/node_modules/read-package-json/read-json.js +368 -0
- data/lib/node_modules/npm/node_modules/read/LICENCE +25 -0
- data/lib/node_modules/npm/node_modules/read/README.md +53 -0
- data/lib/node_modules/npm/node_modules/read/example/example.js +13 -0
- data/lib/node_modules/npm/node_modules/read/lib/read.js +113 -0
- data/lib/node_modules/npm/node_modules/read/node_modules/mute-stream/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/read/node_modules/mute-stream/README.md +68 -0
- data/lib/node_modules/npm/node_modules/read/node_modules/mute-stream/mute.js +140 -0
- data/lib/node_modules/npm/node_modules/read/node_modules/mute-stream/package.json +37 -0
- data/lib/node_modules/npm/node_modules/read/package.json +35 -0
- data/lib/node_modules/npm/node_modules/read/rs.js +4 -0
- data/lib/node_modules/npm/node_modules/request/LICENSE +55 -0
- data/lib/node_modules/npm/node_modules/request/README.md +364 -0
- data/lib/node_modules/npm/node_modules/request/index.js +157 -0
- data/lib/node_modules/npm/node_modules/request/lib/copy.js +8 -0
- data/lib/node_modules/npm/node_modules/request/lib/debug.js +7 -0
- data/lib/node_modules/npm/node_modules/request/lib/getSafe.js +34 -0
- data/lib/node_modules/npm/node_modules/request/lib/optional.js +5 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/aws-sign2/LICENSE +55 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/aws-sign2/README.md +4 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/aws-sign2/index.js +202 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/aws-sign2/package.json +28 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/forever-agent/LICENSE +55 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/forever-agent/README.md +4 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/forever-agent/index.js +119 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/forever-agent/package.json +28 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/License +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/Readme.md +163 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/lib/form_data.js +325 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/LICENSE +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/README.md +1414 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/component.json +11 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/lib/async.js +955 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/package.json +43 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/License +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/Makefile +7 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/Readme.md +132 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/lib/combined_stream.js +185 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/License +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/Makefile +7 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/Readme.md +154 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js +99 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/package.json +31 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/package.json +32 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/package.json +46 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/LICENSE +24 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/Makefile +10 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/README.md +627 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/example/usage.js +78 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/images/hawk.png +0 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/images/logo.png +0 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/index.js +1 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/browser.js +485 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/client.js +367 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/crypto.js +111 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/index.js +15 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/server.js +524 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/utils.js +183 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/LICENSE +24 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/Makefile +11 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/README.md +6 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/images/boom.png +0 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/index.js +1 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js +207 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/package.json +47 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/LICENSE +24 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/Makefile +11 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/README.md +6 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/index.js +1 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/lib/index.js +68 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/package.json +48 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/LICENSE +33 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/Makefile +10 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/README.md +436 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png +0 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/index.js +1 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/lib/escape.js +132 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/lib/index.js +585 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/package.json +49 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/LICENSE +24 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/Makefile +11 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/README.md +68 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/examples/offset.js +16 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/examples/time.js +25 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/index.js +1 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/lib/index.js +409 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/package.json +48 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/package.json +53 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/LICENSE +18 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/README.md +75 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/http_signing.md +296 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/index.js +25 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/parser.js +304 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/signer.js +179 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/util.js +249 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/verify.js +42 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/LICENSE +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/README.md +50 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/errors.js +13 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/index.js +27 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/reader.js +267 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/types.js +36 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/writer.js +317 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/index.js +20 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/package.json +43 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/tst/ber/reader.test.js +172 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/tst/ber/writer.test.js +296 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/assert-plus/README.md +126 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/assert-plus/assert.js +196 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/assert-plus/package.json +20 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/CHANGELOG +71 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/LICENSE +24 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/README +82 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/README.old +298 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/ctf.js +245 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/ctio.js +1485 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/ctype.js +944 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/man/man3ctype/ctio.3ctype +241 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/package.json +18 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tools/jsl.conf +129 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tools/jsstyle +839 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/float.json +13 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/int.json +13 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/psinfo.json +104 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/struct.json +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.fail.js +39 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.float.js +14 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.int.js +14 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.psinfo.js +17 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.struct.js +18 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.typedef.js +15 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/typedef.json +14 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/float/tst.rfloat.js +767 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/float/tst.wfloat.js +753 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.64.js +638 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.rint.js +101 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.wbounds.js +53 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.wint.js +92 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.64.js +451 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.roundtrip.js +81 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.ruint.js +95 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.wuint.js +156 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.basicr.js +50 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.basicw.js +44 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.char.js +42 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.endian.js +45 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.oldwrite.js +28 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.readSize.js +128 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.structw.js +28 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.writeStruct.js +31 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/package.json +36 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/README.md +49 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/package.json +33 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/stringify.js +39 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/test.js +128 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/LICENSE +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/README.md +66 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/mime.js +114 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/package.json +36 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/test.js +84 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/types/mime.types +1588 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/types/node.types +77 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/LICENSE.md +2 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/README.md +207 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/README.md +53 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/bench.gnu +174 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/bench.sh +34 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/benchmark-native.c +34 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/benchmark.js +84 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/component.json +18 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/package.json +35 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/uuid.js +245 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/LICENSE +55 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/README.md +4 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/index.js +43 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/package.json +31 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/test.js +49 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/qs/Readme.md +58 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/qs/index.js +366 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/qs/package.json +38 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/LICENSE +78 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/README.md +380 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/generate-pubsuffix.js +230 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/lib/cookie.js +947 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/lib/memstore.js +102 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/lib/pubsuffix.js +69 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/LICENSE-GPL.txt +278 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/LICENSE-MIT.txt +20 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/package.json +73 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/punycode.js +508 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/punycode.min.js +2 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/LICENSE.txt +20 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/README.md +35 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/doc/README.md +69 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/doc/parse.php +35 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/docdown.php +38 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/src/DocDown/Alias.php +226 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/src/DocDown/Entry.php +442 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/src/DocDown/Generator.php +563 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/package.json +46 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/public-suffix.txt +5229 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/test.js +1340 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/LICENSE +55 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/README.md +4 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js +227 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/package.json +28 -0
- data/lib/node_modules/npm/node_modules/request/package.json +57 -0
- data/lib/node_modules/npm/node_modules/request/request.js +1260 -0
- data/lib/node_modules/npm/node_modules/retry/License +21 -0
- data/lib/node_modules/npm/node_modules/retry/Makefile +7 -0
- data/lib/node_modules/npm/node_modules/retry/Readme.md +167 -0
- data/lib/node_modules/npm/node_modules/retry/equation.gif +0 -0
- data/lib/node_modules/npm/node_modules/retry/example/dns.js +31 -0
- data/lib/node_modules/npm/node_modules/retry/index.js +1 -0
- data/lib/node_modules/npm/node_modules/retry/lib/retry.js +50 -0
- data/lib/node_modules/npm/node_modules/retry/lib/retry_operation.js +109 -0
- data/lib/node_modules/npm/node_modules/retry/package.json +29 -0
- data/lib/node_modules/npm/node_modules/rimraf/AUTHORS +6 -0
- data/lib/node_modules/npm/node_modules/rimraf/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/rimraf/README.md +30 -0
- data/lib/node_modules/npm/node_modules/rimraf/bin.js +33 -0
- data/lib/node_modules/npm/node_modules/rimraf/package.json +56 -0
- data/lib/node_modules/npm/node_modules/rimraf/rimraf.js +178 -0
- data/lib/node_modules/npm/node_modules/semver/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/semver/Makefile +24 -0
- data/lib/node_modules/npm/node_modules/semver/README.md +142 -0
- data/lib/node_modules/npm/node_modules/semver/bin/semver +124 -0
- data/lib/node_modules/npm/node_modules/semver/foot.js +6 -0
- data/lib/node_modules/npm/node_modules/semver/head.js +2 -0
- data/lib/node_modules/npm/node_modules/semver/package.json +32 -0
- data/lib/node_modules/npm/node_modules/semver/semver.browser.js +1007 -0
- data/lib/node_modules/npm/node_modules/semver/semver.browser.js.gz +0 -0
- data/lib/node_modules/npm/node_modules/semver/semver.js +1011 -0
- data/lib/node_modules/npm/node_modules/semver/semver.min.js +1 -0
- data/lib/node_modules/npm/node_modules/semver/semver.min.js.gz +0 -0
- data/lib/node_modules/npm/node_modules/sha/LICENSE +46 -0
- data/lib/node_modules/npm/node_modules/sha/README.md +49 -0
- data/lib/node_modules/npm/node_modules/sha/index.js +120 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/README.md +768 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/duplex.js +1 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/float.patch +68 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_duplex.js +69 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_passthrough.js +41 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_readable.js +927 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_transform.js +205 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_writable.js +369 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/package.json +36 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/passthrough.js +1 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/readable.js +6 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/transform.js +1 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/writable.js +1 -0
- data/lib/node_modules/npm/node_modules/sha/package.json +32 -0
- data/lib/node_modules/npm/node_modules/slide/LICENSE +15 -0
- data/lib/node_modules/npm/node_modules/slide/README.md +143 -0
- data/lib/node_modules/npm/node_modules/slide/index.js +1 -0
- data/lib/node_modules/npm/node_modules/slide/lib/async-map-ordered.js +65 -0
- data/lib/node_modules/npm/node_modules/slide/lib/async-map.js +56 -0
- data/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js +16 -0
- data/lib/node_modules/npm/node_modules/slide/lib/chain.js +20 -0
- data/lib/node_modules/npm/node_modules/slide/lib/slide.js +3 -0
- data/lib/node_modules/npm/node_modules/slide/package.json +35 -0
- data/lib/node_modules/npm/node_modules/tar/LICENCE +25 -0
- data/lib/node_modules/npm/node_modules/tar/README.md +46 -0
- data/lib/node_modules/npm/node_modules/tar/examples/extracter.js +11 -0
- data/lib/node_modules/npm/node_modules/tar/examples/reader.js +36 -0
- data/lib/node_modules/npm/node_modules/tar/lib/buffer-entry.js +30 -0
- data/lib/node_modules/npm/node_modules/tar/lib/entry-writer.js +169 -0
- data/lib/node_modules/npm/node_modules/tar/lib/entry.js +213 -0
- data/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js +191 -0
- data/lib/node_modules/npm/node_modules/tar/lib/extended-header.js +140 -0
- data/lib/node_modules/npm/node_modules/tar/lib/extract.js +78 -0
- data/lib/node_modules/npm/node_modules/tar/lib/global-header-writer.js +14 -0
- data/lib/node_modules/npm/node_modules/tar/lib/header.js +385 -0
- data/lib/node_modules/npm/node_modules/tar/lib/pack.js +231 -0
- data/lib/node_modules/npm/node_modules/tar/lib/parse.js +270 -0
- data/lib/node_modules/npm/node_modules/tar/package.json +40 -0
- data/lib/node_modules/npm/node_modules/tar/tar.js +173 -0
- data/lib/node_modules/npm/node_modules/text-table/LICENSE +18 -0
- data/lib/node_modules/npm/node_modules/text-table/example/align.js +8 -0
- data/lib/node_modules/npm/node_modules/text-table/example/center.js +8 -0
- data/lib/node_modules/npm/node_modules/text-table/example/dotalign.js +9 -0
- data/lib/node_modules/npm/node_modules/text-table/example/doubledot.js +11 -0
- data/lib/node_modules/npm/node_modules/text-table/example/table.js +6 -0
- data/lib/node_modules/npm/node_modules/text-table/index.js +86 -0
- data/lib/node_modules/npm/node_modules/text-table/package.json +52 -0
- data/lib/node_modules/npm/node_modules/text-table/readme.markdown +134 -0
- data/lib/node_modules/npm/node_modules/uid-number/LICENCE +25 -0
- data/lib/node_modules/npm/node_modules/uid-number/README.md +17 -0
- data/lib/node_modules/npm/node_modules/uid-number/get-uid-gid.js +24 -0
- data/lib/node_modules/npm/node_modules/uid-number/package.json +35 -0
- data/lib/node_modules/npm/node_modules/uid-number/uid-number.js +54 -0
- data/lib/node_modules/npm/node_modules/which/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/which/README.md +5 -0
- data/lib/node_modules/npm/node_modules/which/bin/which +14 -0
- data/lib/node_modules/npm/node_modules/which/package.json +34 -0
- data/lib/node_modules/npm/node_modules/which/which.js +104 -0
- data/lib/node_modules/npm/package.json +155 -0
- data/lib/node_modules/npm/scripts/clean-old.sh +165 -0
- data/lib/node_modules/npm/scripts/doc-build.sh +84 -0
- data/lib/node_modules/npm/scripts/index-build.js +62 -0
- data/lib/node_modules/npm/scripts/install.sh +313 -0
- data/lib/node_modules/npm/scripts/release.sh +36 -0
- data/lib/node_modules/npm/scripts/relocate.sh +26 -0
- metadata +1052 -36
- checksums.yaml +0 -7
@@ -0,0 +1,407 @@
|
|
1
|
+
# Copyright (c) 2013 Google Inc. All rights reserved.
|
2
|
+
# Use of this source code is governed by a BSD-style license that can be
|
3
|
+
# found in the LICENSE file.
|
4
|
+
|
5
|
+
"""Handle version information related to Visual Stuio."""
|
6
|
+
|
7
|
+
import errno
|
8
|
+
import os
|
9
|
+
import re
|
10
|
+
import subprocess
|
11
|
+
import sys
|
12
|
+
import gyp
|
13
|
+
import glob
|
14
|
+
|
15
|
+
|
16
|
+
class VisualStudioVersion(object):
|
17
|
+
"""Information regarding a version of Visual Studio."""
|
18
|
+
|
19
|
+
def __init__(self, short_name, description,
|
20
|
+
solution_version, project_version, flat_sln, uses_vcxproj,
|
21
|
+
path, sdk_based, default_toolset=None):
|
22
|
+
self.short_name = short_name
|
23
|
+
self.description = description
|
24
|
+
self.solution_version = solution_version
|
25
|
+
self.project_version = project_version
|
26
|
+
self.flat_sln = flat_sln
|
27
|
+
self.uses_vcxproj = uses_vcxproj
|
28
|
+
self.path = path
|
29
|
+
self.sdk_based = sdk_based
|
30
|
+
self.default_toolset = default_toolset
|
31
|
+
|
32
|
+
def ShortName(self):
|
33
|
+
return self.short_name
|
34
|
+
|
35
|
+
def Description(self):
|
36
|
+
"""Get the full description of the version."""
|
37
|
+
return self.description
|
38
|
+
|
39
|
+
def SolutionVersion(self):
|
40
|
+
"""Get the version number of the sln files."""
|
41
|
+
return self.solution_version
|
42
|
+
|
43
|
+
def ProjectVersion(self):
|
44
|
+
"""Get the version number of the vcproj or vcxproj files."""
|
45
|
+
return self.project_version
|
46
|
+
|
47
|
+
def FlatSolution(self):
|
48
|
+
return self.flat_sln
|
49
|
+
|
50
|
+
def UsesVcxproj(self):
|
51
|
+
"""Returns true if this version uses a vcxproj file."""
|
52
|
+
return self.uses_vcxproj
|
53
|
+
|
54
|
+
def ProjectExtension(self):
|
55
|
+
"""Returns the file extension for the project."""
|
56
|
+
return self.uses_vcxproj and '.vcxproj' or '.vcproj'
|
57
|
+
|
58
|
+
def Path(self):
|
59
|
+
"""Returns the path to Visual Studio installation."""
|
60
|
+
return self.path
|
61
|
+
|
62
|
+
def ToolPath(self, tool):
|
63
|
+
"""Returns the path to a given compiler tool. """
|
64
|
+
return os.path.normpath(os.path.join(self.path, "VC/bin", tool))
|
65
|
+
|
66
|
+
def DefaultToolset(self):
|
67
|
+
"""Returns the msbuild toolset version that will be used in the absence
|
68
|
+
of a user override."""
|
69
|
+
return self.default_toolset
|
70
|
+
|
71
|
+
def SetupScript(self, target_arch):
|
72
|
+
"""Returns a command (with arguments) to be used to set up the
|
73
|
+
environment."""
|
74
|
+
# Check if we are running in the SDK command line environment and use
|
75
|
+
# the setup script from the SDK if so. |target_arch| should be either
|
76
|
+
# 'x86' or 'x64'.
|
77
|
+
assert target_arch in ('x86', 'x64')
|
78
|
+
sdk_dir = os.environ.get('WindowsSDKDir')
|
79
|
+
if self.sdk_based and sdk_dir:
|
80
|
+
return [os.path.normpath(os.path.join(sdk_dir, 'Bin/SetEnv.Cmd')),
|
81
|
+
'/' + target_arch]
|
82
|
+
else:
|
83
|
+
# We don't use VC/vcvarsall.bat for x86 because vcvarsall calls
|
84
|
+
# vcvars32, which it can only find if VS??COMNTOOLS is set, which it
|
85
|
+
# isn't always.
|
86
|
+
if target_arch == 'x86':
|
87
|
+
if self.short_name == '2013' and (
|
88
|
+
os.environ.get('PROCESSOR_ARCHITECTURE') == 'AMD64' or
|
89
|
+
os.environ.get('PROCESSOR_ARCHITEW6432') == 'AMD64'):
|
90
|
+
# VS2013 non-Express has a x64-x86 cross that we want to prefer.
|
91
|
+
return [os.path.normpath(
|
92
|
+
os.path.join(self.path, 'VC/vcvarsall.bat')), 'amd64_x86']
|
93
|
+
# Otherwise, the standard x86 compiler.
|
94
|
+
return [os.path.normpath(
|
95
|
+
os.path.join(self.path, 'Common7/Tools/vsvars32.bat'))]
|
96
|
+
else:
|
97
|
+
assert target_arch == 'x64'
|
98
|
+
arg = 'x86_amd64'
|
99
|
+
if (os.environ.get('PROCESSOR_ARCHITECTURE') == 'AMD64' or
|
100
|
+
os.environ.get('PROCESSOR_ARCHITEW6432') == 'AMD64'):
|
101
|
+
# Use the 64-on-64 compiler if we can.
|
102
|
+
arg = 'amd64'
|
103
|
+
return [os.path.normpath(
|
104
|
+
os.path.join(self.path, 'VC/vcvarsall.bat')), arg]
|
105
|
+
|
106
|
+
|
107
|
+
def _RegistryQueryBase(sysdir, key, value):
|
108
|
+
"""Use reg.exe to read a particular key.
|
109
|
+
|
110
|
+
While ideally we might use the win32 module, we would like gyp to be
|
111
|
+
python neutral, so for instance cygwin python lacks this module.
|
112
|
+
|
113
|
+
Arguments:
|
114
|
+
sysdir: The system subdirectory to attempt to launch reg.exe from.
|
115
|
+
key: The registry key to read from.
|
116
|
+
value: The particular value to read.
|
117
|
+
Return:
|
118
|
+
stdout from reg.exe, or None for failure.
|
119
|
+
"""
|
120
|
+
# Skip if not on Windows or Python Win32 setup issue
|
121
|
+
if sys.platform not in ('win32', 'cygwin'):
|
122
|
+
return None
|
123
|
+
# Setup params to pass to and attempt to launch reg.exe
|
124
|
+
cmd = [os.path.join(os.environ.get('WINDIR', ''), sysdir, 'reg.exe'),
|
125
|
+
'query', key]
|
126
|
+
if value:
|
127
|
+
cmd.extend(['/v', value])
|
128
|
+
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
129
|
+
# Obtain the stdout from reg.exe, reading to the end so p.returncode is valid
|
130
|
+
# Note that the error text may be in [1] in some cases
|
131
|
+
text = p.communicate()[0]
|
132
|
+
# Check return code from reg.exe; officially 0==success and 1==error
|
133
|
+
if p.returncode:
|
134
|
+
return None
|
135
|
+
return text
|
136
|
+
|
137
|
+
|
138
|
+
def _RegistryQuery(key, value=None):
|
139
|
+
"""Use reg.exe to read a particular key through _RegistryQueryBase.
|
140
|
+
|
141
|
+
First tries to launch from %WinDir%\Sysnative to avoid WoW64 redirection. If
|
142
|
+
that fails, it falls back to System32. Sysnative is available on Vista and
|
143
|
+
up and available on Windows Server 2003 and XP through KB patch 942589. Note
|
144
|
+
that Sysnative will always fail if using 64-bit python due to it being a
|
145
|
+
virtual directory and System32 will work correctly in the first place.
|
146
|
+
|
147
|
+
KB 942589 - http://support.microsoft.com/kb/942589/en-us.
|
148
|
+
|
149
|
+
Arguments:
|
150
|
+
key: The registry key.
|
151
|
+
value: The particular registry value to read (optional).
|
152
|
+
Return:
|
153
|
+
stdout from reg.exe, or None for failure.
|
154
|
+
"""
|
155
|
+
text = None
|
156
|
+
try:
|
157
|
+
text = _RegistryQueryBase('Sysnative', key, value)
|
158
|
+
except OSError, e:
|
159
|
+
if e.errno == errno.ENOENT:
|
160
|
+
text = _RegistryQueryBase('System32', key, value)
|
161
|
+
else:
|
162
|
+
raise
|
163
|
+
return text
|
164
|
+
|
165
|
+
|
166
|
+
def _RegistryGetValue(key, value):
|
167
|
+
"""Use reg.exe to obtain the value of a registry key.
|
168
|
+
|
169
|
+
Args:
|
170
|
+
key: The registry key.
|
171
|
+
value: The particular registry value to read.
|
172
|
+
Return:
|
173
|
+
contents of the registry key's value, or None on failure.
|
174
|
+
"""
|
175
|
+
text = _RegistryQuery(key, value)
|
176
|
+
if not text:
|
177
|
+
return None
|
178
|
+
# Extract value.
|
179
|
+
match = re.search(r'REG_\w+\s+([^\r]+)\r\n', text)
|
180
|
+
if not match:
|
181
|
+
return None
|
182
|
+
return match.group(1)
|
183
|
+
|
184
|
+
|
185
|
+
def _RegistryKeyExists(key):
|
186
|
+
"""Use reg.exe to see if a key exists.
|
187
|
+
|
188
|
+
Args:
|
189
|
+
key: The registry key to check.
|
190
|
+
Return:
|
191
|
+
True if the key exists
|
192
|
+
"""
|
193
|
+
if not _RegistryQuery(key):
|
194
|
+
return False
|
195
|
+
return True
|
196
|
+
|
197
|
+
|
198
|
+
def _CreateVersion(name, path, sdk_based=False):
|
199
|
+
"""Sets up MSVS project generation.
|
200
|
+
|
201
|
+
Setup is based off the GYP_MSVS_VERSION environment variable or whatever is
|
202
|
+
autodetected if GYP_MSVS_VERSION is not explicitly specified. If a version is
|
203
|
+
passed in that doesn't match a value in versions python will throw a error.
|
204
|
+
"""
|
205
|
+
if path:
|
206
|
+
path = os.path.normpath(path)
|
207
|
+
versions = {
|
208
|
+
'2013': VisualStudioVersion('2013',
|
209
|
+
'Visual Studio 2013',
|
210
|
+
solution_version='13.00',
|
211
|
+
project_version='12.0',
|
212
|
+
flat_sln=False,
|
213
|
+
uses_vcxproj=True,
|
214
|
+
path=path,
|
215
|
+
sdk_based=sdk_based,
|
216
|
+
default_toolset='v120'),
|
217
|
+
'2013e': VisualStudioVersion('2013e',
|
218
|
+
'Visual Studio 2013',
|
219
|
+
solution_version='13.00',
|
220
|
+
project_version='12.0',
|
221
|
+
flat_sln=True,
|
222
|
+
uses_vcxproj=True,
|
223
|
+
path=path,
|
224
|
+
sdk_based=sdk_based,
|
225
|
+
default_toolset='v120'),
|
226
|
+
'2012': VisualStudioVersion('2012',
|
227
|
+
'Visual Studio 2012',
|
228
|
+
solution_version='12.00',
|
229
|
+
project_version='4.0',
|
230
|
+
flat_sln=False,
|
231
|
+
uses_vcxproj=True,
|
232
|
+
path=path,
|
233
|
+
sdk_based=sdk_based,
|
234
|
+
default_toolset='v110'),
|
235
|
+
'2012e': VisualStudioVersion('2012e',
|
236
|
+
'Visual Studio 2012',
|
237
|
+
solution_version='12.00',
|
238
|
+
project_version='4.0',
|
239
|
+
flat_sln=True,
|
240
|
+
uses_vcxproj=True,
|
241
|
+
path=path,
|
242
|
+
sdk_based=sdk_based,
|
243
|
+
default_toolset='v110'),
|
244
|
+
'2010': VisualStudioVersion('2010',
|
245
|
+
'Visual Studio 2010',
|
246
|
+
solution_version='11.00',
|
247
|
+
project_version='4.0',
|
248
|
+
flat_sln=False,
|
249
|
+
uses_vcxproj=True,
|
250
|
+
path=path,
|
251
|
+
sdk_based=sdk_based),
|
252
|
+
'2010e': VisualStudioVersion('2010e',
|
253
|
+
'Visual C++ Express 2010',
|
254
|
+
solution_version='11.00',
|
255
|
+
project_version='4.0',
|
256
|
+
flat_sln=True,
|
257
|
+
uses_vcxproj=True,
|
258
|
+
path=path,
|
259
|
+
sdk_based=sdk_based),
|
260
|
+
'2008': VisualStudioVersion('2008',
|
261
|
+
'Visual Studio 2008',
|
262
|
+
solution_version='10.00',
|
263
|
+
project_version='9.00',
|
264
|
+
flat_sln=False,
|
265
|
+
uses_vcxproj=False,
|
266
|
+
path=path,
|
267
|
+
sdk_based=sdk_based),
|
268
|
+
'2008e': VisualStudioVersion('2008e',
|
269
|
+
'Visual Studio 2008',
|
270
|
+
solution_version='10.00',
|
271
|
+
project_version='9.00',
|
272
|
+
flat_sln=True,
|
273
|
+
uses_vcxproj=False,
|
274
|
+
path=path,
|
275
|
+
sdk_based=sdk_based),
|
276
|
+
'2005': VisualStudioVersion('2005',
|
277
|
+
'Visual Studio 2005',
|
278
|
+
solution_version='9.00',
|
279
|
+
project_version='8.00',
|
280
|
+
flat_sln=False,
|
281
|
+
uses_vcxproj=False,
|
282
|
+
path=path,
|
283
|
+
sdk_based=sdk_based),
|
284
|
+
'2005e': VisualStudioVersion('2005e',
|
285
|
+
'Visual Studio 2005',
|
286
|
+
solution_version='9.00',
|
287
|
+
project_version='8.00',
|
288
|
+
flat_sln=True,
|
289
|
+
uses_vcxproj=False,
|
290
|
+
path=path,
|
291
|
+
sdk_based=sdk_based),
|
292
|
+
}
|
293
|
+
return versions[str(name)]
|
294
|
+
|
295
|
+
|
296
|
+
def _ConvertToCygpath(path):
|
297
|
+
"""Convert to cygwin path if we are using cygwin."""
|
298
|
+
if sys.platform == 'cygwin':
|
299
|
+
p = subprocess.Popen(['cygpath', path], stdout=subprocess.PIPE)
|
300
|
+
path = p.communicate()[0].strip()
|
301
|
+
return path
|
302
|
+
|
303
|
+
|
304
|
+
def _DetectVisualStudioVersions(versions_to_check, force_express):
|
305
|
+
"""Collect the list of installed visual studio versions.
|
306
|
+
|
307
|
+
Returns:
|
308
|
+
A list of visual studio versions installed in descending order of
|
309
|
+
usage preference.
|
310
|
+
Base this on the registry and a quick check if devenv.exe exists.
|
311
|
+
Only versions 8-10 are considered.
|
312
|
+
Possibilities are:
|
313
|
+
2005(e) - Visual Studio 2005 (8)
|
314
|
+
2008(e) - Visual Studio 2008 (9)
|
315
|
+
2010(e) - Visual Studio 2010 (10)
|
316
|
+
2012(e) - Visual Studio 2012 (11)
|
317
|
+
2013(e) - Visual Studio 2013 (11)
|
318
|
+
Where (e) is e for express editions of MSVS and blank otherwise.
|
319
|
+
"""
|
320
|
+
version_to_year = {
|
321
|
+
'8.0': '2005',
|
322
|
+
'9.0': '2008',
|
323
|
+
'10.0': '2010',
|
324
|
+
'11.0': '2012',
|
325
|
+
'12.0': '2013',
|
326
|
+
}
|
327
|
+
versions = []
|
328
|
+
for version in versions_to_check:
|
329
|
+
# Old method of searching for which VS version is installed
|
330
|
+
# We don't use the 2010-encouraged-way because we also want to get the
|
331
|
+
# path to the binaries, which it doesn't offer.
|
332
|
+
keys = [r'HKLM\Software\Microsoft\VisualStudio\%s' % version,
|
333
|
+
r'HKLM\Software\Wow6432Node\Microsoft\VisualStudio\%s' % version,
|
334
|
+
r'HKLM\Software\Microsoft\VCExpress\%s' % version,
|
335
|
+
r'HKLM\Software\Wow6432Node\Microsoft\VCExpress\%s' % version]
|
336
|
+
for index in range(len(keys)):
|
337
|
+
path = _RegistryGetValue(keys[index], 'InstallDir')
|
338
|
+
if not path:
|
339
|
+
continue
|
340
|
+
path = _ConvertToCygpath(path)
|
341
|
+
# Check for full.
|
342
|
+
full_path = os.path.join(path, 'devenv.exe')
|
343
|
+
express_path = os.path.join(path, '*express.exe')
|
344
|
+
if not force_express and os.path.exists(full_path):
|
345
|
+
# Add this one.
|
346
|
+
versions.append(_CreateVersion(version_to_year[version],
|
347
|
+
os.path.join(path, '..', '..')))
|
348
|
+
# Check for express.
|
349
|
+
elif glob.glob(express_path):
|
350
|
+
# Add this one.
|
351
|
+
versions.append(_CreateVersion(version_to_year[version] + 'e',
|
352
|
+
os.path.join(path, '..', '..')))
|
353
|
+
|
354
|
+
# The old method above does not work when only SDK is installed.
|
355
|
+
keys = [r'HKLM\Software\Microsoft\VisualStudio\SxS\VC7',
|
356
|
+
r'HKLM\Software\Wow6432Node\Microsoft\VisualStudio\SxS\VC7']
|
357
|
+
for index in range(len(keys)):
|
358
|
+
path = _RegistryGetValue(keys[index], version)
|
359
|
+
if not path:
|
360
|
+
continue
|
361
|
+
path = _ConvertToCygpath(path)
|
362
|
+
versions.append(_CreateVersion(version_to_year[version] + 'e',
|
363
|
+
os.path.join(path, '..'), sdk_based=True))
|
364
|
+
|
365
|
+
return versions
|
366
|
+
|
367
|
+
|
368
|
+
def SelectVisualStudioVersion(version='auto'):
|
369
|
+
"""Select which version of Visual Studio projects to generate.
|
370
|
+
|
371
|
+
Arguments:
|
372
|
+
version: Hook to allow caller to force a particular version (vs auto).
|
373
|
+
Returns:
|
374
|
+
An object representing a visual studio project format version.
|
375
|
+
"""
|
376
|
+
# In auto mode, check environment variable for override.
|
377
|
+
if version == 'auto':
|
378
|
+
version = os.environ.get('GYP_MSVS_VERSION', 'auto')
|
379
|
+
version_map = {
|
380
|
+
'auto': ('10.0', '12.0', '9.0', '8.0', '11.0'),
|
381
|
+
'2005': ('8.0',),
|
382
|
+
'2005e': ('8.0',),
|
383
|
+
'2008': ('9.0',),
|
384
|
+
'2008e': ('9.0',),
|
385
|
+
'2010': ('10.0',),
|
386
|
+
'2010e': ('10.0',),
|
387
|
+
'2012': ('11.0',),
|
388
|
+
'2012e': ('11.0',),
|
389
|
+
'2013': ('12.0',),
|
390
|
+
'2013e': ('12.0',),
|
391
|
+
}
|
392
|
+
override_path = os.environ.get('GYP_MSVS_OVERRIDE_PATH')
|
393
|
+
if override_path:
|
394
|
+
msvs_version = os.environ.get('GYP_MSVS_VERSION')
|
395
|
+
if not msvs_version:
|
396
|
+
raise ValueError('GYP_MSVS_OVERRIDE_PATH requires GYP_MSVS_VERSION to be '
|
397
|
+
'set to a particular version (e.g. 2010e).')
|
398
|
+
return _CreateVersion(msvs_version, override_path, sdk_based=True)
|
399
|
+
version = str(version)
|
400
|
+
versions = _DetectVisualStudioVersions(version_map[version], 'e' in version)
|
401
|
+
if not versions:
|
402
|
+
if version == 'auto':
|
403
|
+
# Default to 2005 if we couldn't find anything
|
404
|
+
return _CreateVersion('2005', None)
|
405
|
+
else:
|
406
|
+
return _CreateVersion(version, None)
|
407
|
+
return versions[0]
|
@@ -0,0 +1,537 @@
|
|
1
|
+
#!/usr/bin/env python
|
2
|
+
|
3
|
+
# Copyright (c) 2012 Google Inc. All rights reserved.
|
4
|
+
# Use of this source code is governed by a BSD-style license that can be
|
5
|
+
# found in the LICENSE file.
|
6
|
+
|
7
|
+
import copy
|
8
|
+
import gyp.input
|
9
|
+
import optparse
|
10
|
+
import os.path
|
11
|
+
import re
|
12
|
+
import shlex
|
13
|
+
import sys
|
14
|
+
import traceback
|
15
|
+
from gyp.common import GypError
|
16
|
+
|
17
|
+
# Default debug modes for GYP
|
18
|
+
debug = {}
|
19
|
+
|
20
|
+
# List of "official" debug modes, but you can use anything you like.
|
21
|
+
DEBUG_GENERAL = 'general'
|
22
|
+
DEBUG_VARIABLES = 'variables'
|
23
|
+
DEBUG_INCLUDES = 'includes'
|
24
|
+
|
25
|
+
|
26
|
+
def DebugOutput(mode, message, *args):
|
27
|
+
if 'all' in gyp.debug or mode in gyp.debug:
|
28
|
+
ctx = ('unknown', 0, 'unknown')
|
29
|
+
try:
|
30
|
+
f = traceback.extract_stack(limit=2)
|
31
|
+
if f:
|
32
|
+
ctx = f[0][:3]
|
33
|
+
except:
|
34
|
+
pass
|
35
|
+
if args:
|
36
|
+
message %= args
|
37
|
+
print '%s:%s:%d:%s %s' % (mode.upper(), os.path.basename(ctx[0]),
|
38
|
+
ctx[1], ctx[2], message)
|
39
|
+
|
40
|
+
def FindBuildFiles():
|
41
|
+
extension = '.gyp'
|
42
|
+
files = os.listdir(os.getcwd())
|
43
|
+
build_files = []
|
44
|
+
for file in files:
|
45
|
+
if file.endswith(extension):
|
46
|
+
build_files.append(file)
|
47
|
+
return build_files
|
48
|
+
|
49
|
+
|
50
|
+
def Load(build_files, format, default_variables={},
|
51
|
+
includes=[], depth='.', params=None, check=False,
|
52
|
+
circular_check=True):
|
53
|
+
"""
|
54
|
+
Loads one or more specified build files.
|
55
|
+
default_variables and includes will be copied before use.
|
56
|
+
Returns the generator for the specified format and the
|
57
|
+
data returned by loading the specified build files.
|
58
|
+
"""
|
59
|
+
if params is None:
|
60
|
+
params = {}
|
61
|
+
|
62
|
+
flavor = None
|
63
|
+
if '-' in format:
|
64
|
+
format, params['flavor'] = format.split('-', 1)
|
65
|
+
|
66
|
+
default_variables = copy.copy(default_variables)
|
67
|
+
|
68
|
+
# Default variables provided by this program and its modules should be
|
69
|
+
# named WITH_CAPITAL_LETTERS to provide a distinct "best practice" namespace,
|
70
|
+
# avoiding collisions with user and automatic variables.
|
71
|
+
default_variables['GENERATOR'] = format
|
72
|
+
|
73
|
+
# Format can be a custom python file, or by default the name of a module
|
74
|
+
# within gyp.generator.
|
75
|
+
if format.endswith('.py'):
|
76
|
+
generator_name = os.path.splitext(format)[0]
|
77
|
+
path, generator_name = os.path.split(generator_name)
|
78
|
+
|
79
|
+
# Make sure the path to the custom generator is in sys.path
|
80
|
+
# Don't worry about removing it once we are done. Keeping the path
|
81
|
+
# to each generator that is used in sys.path is likely harmless and
|
82
|
+
# arguably a good idea.
|
83
|
+
path = os.path.abspath(path)
|
84
|
+
if path not in sys.path:
|
85
|
+
sys.path.insert(0, path)
|
86
|
+
else:
|
87
|
+
generator_name = 'gyp.generator.' + format
|
88
|
+
|
89
|
+
# These parameters are passed in order (as opposed to by key)
|
90
|
+
# because ActivePython cannot handle key parameters to __import__.
|
91
|
+
generator = __import__(generator_name, globals(), locals(), generator_name)
|
92
|
+
for (key, val) in generator.generator_default_variables.items():
|
93
|
+
default_variables.setdefault(key, val)
|
94
|
+
|
95
|
+
# Give the generator the opportunity to set additional variables based on
|
96
|
+
# the params it will receive in the output phase.
|
97
|
+
if getattr(generator, 'CalculateVariables', None):
|
98
|
+
generator.CalculateVariables(default_variables, params)
|
99
|
+
|
100
|
+
# Give the generator the opportunity to set generator_input_info based on
|
101
|
+
# the params it will receive in the output phase.
|
102
|
+
if getattr(generator, 'CalculateGeneratorInputInfo', None):
|
103
|
+
generator.CalculateGeneratorInputInfo(params)
|
104
|
+
|
105
|
+
# Fetch the generator specific info that gets fed to input, we use getattr
|
106
|
+
# so we can default things and the generators only have to provide what
|
107
|
+
# they need.
|
108
|
+
generator_input_info = {
|
109
|
+
'non_configuration_keys':
|
110
|
+
getattr(generator, 'generator_additional_non_configuration_keys', []),
|
111
|
+
'path_sections':
|
112
|
+
getattr(generator, 'generator_additional_path_sections', []),
|
113
|
+
'extra_sources_for_rules':
|
114
|
+
getattr(generator, 'generator_extra_sources_for_rules', []),
|
115
|
+
'generator_supports_multiple_toolsets':
|
116
|
+
getattr(generator, 'generator_supports_multiple_toolsets', False),
|
117
|
+
'generator_wants_static_library_dependencies_adjusted':
|
118
|
+
getattr(generator,
|
119
|
+
'generator_wants_static_library_dependencies_adjusted', True),
|
120
|
+
'generator_wants_sorted_dependencies':
|
121
|
+
getattr(generator, 'generator_wants_sorted_dependencies', False),
|
122
|
+
'generator_filelist_paths':
|
123
|
+
getattr(generator, 'generator_filelist_paths', None),
|
124
|
+
}
|
125
|
+
|
126
|
+
# Process the input specific to this generator.
|
127
|
+
result = gyp.input.Load(build_files, default_variables, includes[:],
|
128
|
+
depth, generator_input_info, check, circular_check,
|
129
|
+
params['parallel'], params['root_targets'])
|
130
|
+
return [generator] + result
|
131
|
+
|
132
|
+
def NameValueListToDict(name_value_list):
|
133
|
+
"""
|
134
|
+
Takes an array of strings of the form 'NAME=VALUE' and creates a dictionary
|
135
|
+
of the pairs. If a string is simply NAME, then the value in the dictionary
|
136
|
+
is set to True. If VALUE can be converted to an integer, it is.
|
137
|
+
"""
|
138
|
+
result = { }
|
139
|
+
for item in name_value_list:
|
140
|
+
tokens = item.split('=', 1)
|
141
|
+
if len(tokens) == 2:
|
142
|
+
# If we can make it an int, use that, otherwise, use the string.
|
143
|
+
try:
|
144
|
+
token_value = int(tokens[1])
|
145
|
+
except ValueError:
|
146
|
+
token_value = tokens[1]
|
147
|
+
# Set the variable to the supplied value.
|
148
|
+
result[tokens[0]] = token_value
|
149
|
+
else:
|
150
|
+
# No value supplied, treat it as a boolean and set it.
|
151
|
+
result[tokens[0]] = True
|
152
|
+
return result
|
153
|
+
|
154
|
+
def ShlexEnv(env_name):
|
155
|
+
flags = os.environ.get(env_name, [])
|
156
|
+
if flags:
|
157
|
+
flags = shlex.split(flags)
|
158
|
+
return flags
|
159
|
+
|
160
|
+
def FormatOpt(opt, value):
|
161
|
+
if opt.startswith('--'):
|
162
|
+
return '%s=%s' % (opt, value)
|
163
|
+
return opt + value
|
164
|
+
|
165
|
+
def RegenerateAppendFlag(flag, values, predicate, env_name, options):
|
166
|
+
"""Regenerate a list of command line flags, for an option of action='append'.
|
167
|
+
|
168
|
+
The |env_name|, if given, is checked in the environment and used to generate
|
169
|
+
an initial list of options, then the options that were specified on the
|
170
|
+
command line (given in |values|) are appended. This matches the handling of
|
171
|
+
environment variables and command line flags where command line flags override
|
172
|
+
the environment, while not requiring the environment to be set when the flags
|
173
|
+
are used again.
|
174
|
+
"""
|
175
|
+
flags = []
|
176
|
+
if options.use_environment and env_name:
|
177
|
+
for flag_value in ShlexEnv(env_name):
|
178
|
+
value = FormatOpt(flag, predicate(flag_value))
|
179
|
+
if value in flags:
|
180
|
+
flags.remove(value)
|
181
|
+
flags.append(value)
|
182
|
+
if values:
|
183
|
+
for flag_value in values:
|
184
|
+
flags.append(FormatOpt(flag, predicate(flag_value)))
|
185
|
+
return flags
|
186
|
+
|
187
|
+
def RegenerateFlags(options):
|
188
|
+
"""Given a parsed options object, and taking the environment variables into
|
189
|
+
account, returns a list of flags that should regenerate an equivalent options
|
190
|
+
object (even in the absence of the environment variables.)
|
191
|
+
|
192
|
+
Any path options will be normalized relative to depth.
|
193
|
+
|
194
|
+
The format flag is not included, as it is assumed the calling generator will
|
195
|
+
set that as appropriate.
|
196
|
+
"""
|
197
|
+
def FixPath(path):
|
198
|
+
path = gyp.common.FixIfRelativePath(path, options.depth)
|
199
|
+
if not path:
|
200
|
+
return os.path.curdir
|
201
|
+
return path
|
202
|
+
|
203
|
+
def Noop(value):
|
204
|
+
return value
|
205
|
+
|
206
|
+
# We always want to ignore the environment when regenerating, to avoid
|
207
|
+
# duplicate or changed flags in the environment at the time of regeneration.
|
208
|
+
flags = ['--ignore-environment']
|
209
|
+
for name, metadata in options._regeneration_metadata.iteritems():
|
210
|
+
opt = metadata['opt']
|
211
|
+
value = getattr(options, name)
|
212
|
+
value_predicate = metadata['type'] == 'path' and FixPath or Noop
|
213
|
+
action = metadata['action']
|
214
|
+
env_name = metadata['env_name']
|
215
|
+
if action == 'append':
|
216
|
+
flags.extend(RegenerateAppendFlag(opt, value, value_predicate,
|
217
|
+
env_name, options))
|
218
|
+
elif action in ('store', None): # None is a synonym for 'store'.
|
219
|
+
if value:
|
220
|
+
flags.append(FormatOpt(opt, value_predicate(value)))
|
221
|
+
elif options.use_environment and env_name and os.environ.get(env_name):
|
222
|
+
flags.append(FormatOpt(opt, value_predicate(os.environ.get(env_name))))
|
223
|
+
elif action in ('store_true', 'store_false'):
|
224
|
+
if ((action == 'store_true' and value) or
|
225
|
+
(action == 'store_false' and not value)):
|
226
|
+
flags.append(opt)
|
227
|
+
elif options.use_environment and env_name:
|
228
|
+
print >>sys.stderr, ('Warning: environment regeneration unimplemented '
|
229
|
+
'for %s flag %r env_name %r' % (action, opt,
|
230
|
+
env_name))
|
231
|
+
else:
|
232
|
+
print >>sys.stderr, ('Warning: regeneration unimplemented for action %r '
|
233
|
+
'flag %r' % (action, opt))
|
234
|
+
|
235
|
+
return flags
|
236
|
+
|
237
|
+
class RegeneratableOptionParser(optparse.OptionParser):
|
238
|
+
def __init__(self):
|
239
|
+
self.__regeneratable_options = {}
|
240
|
+
optparse.OptionParser.__init__(self)
|
241
|
+
|
242
|
+
def add_option(self, *args, **kw):
|
243
|
+
"""Add an option to the parser.
|
244
|
+
|
245
|
+
This accepts the same arguments as OptionParser.add_option, plus the
|
246
|
+
following:
|
247
|
+
regenerate: can be set to False to prevent this option from being included
|
248
|
+
in regeneration.
|
249
|
+
env_name: name of environment variable that additional values for this
|
250
|
+
option come from.
|
251
|
+
type: adds type='path', to tell the regenerator that the values of
|
252
|
+
this option need to be made relative to options.depth
|
253
|
+
"""
|
254
|
+
env_name = kw.pop('env_name', None)
|
255
|
+
if 'dest' in kw and kw.pop('regenerate', True):
|
256
|
+
dest = kw['dest']
|
257
|
+
|
258
|
+
# The path type is needed for regenerating, for optparse we can just treat
|
259
|
+
# it as a string.
|
260
|
+
type = kw.get('type')
|
261
|
+
if type == 'path':
|
262
|
+
kw['type'] = 'string'
|
263
|
+
|
264
|
+
self.__regeneratable_options[dest] = {
|
265
|
+
'action': kw.get('action'),
|
266
|
+
'type': type,
|
267
|
+
'env_name': env_name,
|
268
|
+
'opt': args[0],
|
269
|
+
}
|
270
|
+
|
271
|
+
optparse.OptionParser.add_option(self, *args, **kw)
|
272
|
+
|
273
|
+
def parse_args(self, *args):
|
274
|
+
values, args = optparse.OptionParser.parse_args(self, *args)
|
275
|
+
values._regeneration_metadata = self.__regeneratable_options
|
276
|
+
return values, args
|
277
|
+
|
278
|
+
def gyp_main(args):
|
279
|
+
my_name = os.path.basename(sys.argv[0])
|
280
|
+
|
281
|
+
parser = RegeneratableOptionParser()
|
282
|
+
usage = 'usage: %s [options ...] [build_file ...]'
|
283
|
+
parser.set_usage(usage.replace('%s', '%prog'))
|
284
|
+
parser.add_option('--build', dest='configs', action='append',
|
285
|
+
help='configuration for build after project generation')
|
286
|
+
parser.add_option('--check', dest='check', action='store_true',
|
287
|
+
help='check format of gyp files')
|
288
|
+
parser.add_option('--config-dir', dest='config_dir', action='store',
|
289
|
+
env_name='GYP_CONFIG_DIR', default=None,
|
290
|
+
help='The location for configuration files like '
|
291
|
+
'include.gypi.')
|
292
|
+
parser.add_option('-d', '--debug', dest='debug', metavar='DEBUGMODE',
|
293
|
+
action='append', default=[], help='turn on a debugging '
|
294
|
+
'mode for debugging GYP. Supported modes are "variables", '
|
295
|
+
'"includes" and "general" or "all" for all of them.')
|
296
|
+
parser.add_option('-D', dest='defines', action='append', metavar='VAR=VAL',
|
297
|
+
env_name='GYP_DEFINES',
|
298
|
+
help='sets variable VAR to value VAL')
|
299
|
+
parser.add_option('--depth', dest='depth', metavar='PATH', type='path',
|
300
|
+
help='set DEPTH gyp variable to a relative path to PATH')
|
301
|
+
parser.add_option('-f', '--format', dest='formats', action='append',
|
302
|
+
env_name='GYP_GENERATORS', regenerate=False,
|
303
|
+
help='output formats to generate')
|
304
|
+
parser.add_option('-G', dest='generator_flags', action='append', default=[],
|
305
|
+
metavar='FLAG=VAL', env_name='GYP_GENERATOR_FLAGS',
|
306
|
+
help='sets generator flag FLAG to VAL')
|
307
|
+
parser.add_option('--generator-output', dest='generator_output',
|
308
|
+
action='store', default=None, metavar='DIR', type='path',
|
309
|
+
env_name='GYP_GENERATOR_OUTPUT',
|
310
|
+
help='puts generated build files under DIR')
|
311
|
+
parser.add_option('--ignore-environment', dest='use_environment',
|
312
|
+
action='store_false', default=True, regenerate=False,
|
313
|
+
help='do not read options from environment variables')
|
314
|
+
parser.add_option('-I', '--include', dest='includes', action='append',
|
315
|
+
metavar='INCLUDE', type='path',
|
316
|
+
help='files to include in all loaded .gyp files')
|
317
|
+
# --no-circular-check disables the check for circular relationships between
|
318
|
+
# .gyp files. These relationships should not exist, but they've only been
|
319
|
+
# observed to be harmful with the Xcode generator. Chromium's .gyp files
|
320
|
+
# currently have some circular relationships on non-Mac platforms, so this
|
321
|
+
# option allows the strict behavior to be used on Macs and the lenient
|
322
|
+
# behavior to be used elsewhere.
|
323
|
+
# TODO(mark): Remove this option when http://crbug.com/35878 is fixed.
|
324
|
+
parser.add_option('--no-circular-check', dest='circular_check',
|
325
|
+
action='store_false', default=True, regenerate=False,
|
326
|
+
help="don't check for circular relationships between files")
|
327
|
+
parser.add_option('--no-parallel', action='store_true', default=False,
|
328
|
+
help='Disable multiprocessing')
|
329
|
+
parser.add_option('-S', '--suffix', dest='suffix', default='',
|
330
|
+
help='suffix to add to generated files')
|
331
|
+
parser.add_option('--toplevel-dir', dest='toplevel_dir', action='store',
|
332
|
+
default=None, metavar='DIR', type='path',
|
333
|
+
help='directory to use as the root of the source tree')
|
334
|
+
parser.add_option('-R', '--root-target', dest='root_targets',
|
335
|
+
action='append', metavar='TARGET',
|
336
|
+
help='include only TARGET and its deep dependencies')
|
337
|
+
|
338
|
+
options, build_files_arg = parser.parse_args(args)
|
339
|
+
build_files = build_files_arg
|
340
|
+
|
341
|
+
# Set up the configuration directory (defaults to ~/.gyp)
|
342
|
+
if not options.config_dir:
|
343
|
+
home = None
|
344
|
+
home_dot_gyp = None
|
345
|
+
if options.use_environment:
|
346
|
+
home_dot_gyp = os.environ.get('GYP_CONFIG_DIR', None)
|
347
|
+
if home_dot_gyp:
|
348
|
+
home_dot_gyp = os.path.expanduser(home_dot_gyp)
|
349
|
+
|
350
|
+
if not home_dot_gyp:
|
351
|
+
home_vars = ['HOME']
|
352
|
+
if sys.platform in ('cygwin', 'win32'):
|
353
|
+
home_vars.append('USERPROFILE')
|
354
|
+
for home_var in home_vars:
|
355
|
+
home = os.getenv(home_var)
|
356
|
+
if home != None:
|
357
|
+
home_dot_gyp = os.path.join(home, '.gyp')
|
358
|
+
if not os.path.exists(home_dot_gyp):
|
359
|
+
home_dot_gyp = None
|
360
|
+
else:
|
361
|
+
break
|
362
|
+
else:
|
363
|
+
home_dot_gyp = os.path.expanduser(options.config_dir)
|
364
|
+
|
365
|
+
if home_dot_gyp and not os.path.exists(home_dot_gyp):
|
366
|
+
home_dot_gyp = None
|
367
|
+
|
368
|
+
if not options.formats:
|
369
|
+
# If no format was given on the command line, then check the env variable.
|
370
|
+
generate_formats = []
|
371
|
+
if options.use_environment:
|
372
|
+
generate_formats = os.environ.get('GYP_GENERATORS', [])
|
373
|
+
if generate_formats:
|
374
|
+
generate_formats = re.split('[\s,]', generate_formats)
|
375
|
+
if generate_formats:
|
376
|
+
options.formats = generate_formats
|
377
|
+
else:
|
378
|
+
# Nothing in the variable, default based on platform.
|
379
|
+
if sys.platform == 'darwin':
|
380
|
+
options.formats = ['xcode']
|
381
|
+
elif sys.platform in ('win32', 'cygwin'):
|
382
|
+
options.formats = ['msvs']
|
383
|
+
else:
|
384
|
+
options.formats = ['make']
|
385
|
+
|
386
|
+
if not options.generator_output and options.use_environment:
|
387
|
+
g_o = os.environ.get('GYP_GENERATOR_OUTPUT')
|
388
|
+
if g_o:
|
389
|
+
options.generator_output = g_o
|
390
|
+
|
391
|
+
options.parallel = not options.no_parallel
|
392
|
+
|
393
|
+
for mode in options.debug:
|
394
|
+
gyp.debug[mode] = 1
|
395
|
+
|
396
|
+
# Do an extra check to avoid work when we're not debugging.
|
397
|
+
if DEBUG_GENERAL in gyp.debug:
|
398
|
+
DebugOutput(DEBUG_GENERAL, 'running with these options:')
|
399
|
+
for option, value in sorted(options.__dict__.items()):
|
400
|
+
if option[0] == '_':
|
401
|
+
continue
|
402
|
+
if isinstance(value, basestring):
|
403
|
+
DebugOutput(DEBUG_GENERAL, " %s: '%s'", option, value)
|
404
|
+
else:
|
405
|
+
DebugOutput(DEBUG_GENERAL, " %s: %s", option, value)
|
406
|
+
|
407
|
+
if not build_files:
|
408
|
+
build_files = FindBuildFiles()
|
409
|
+
if not build_files:
|
410
|
+
raise GypError((usage + '\n\n%s: error: no build_file') %
|
411
|
+
(my_name, my_name))
|
412
|
+
|
413
|
+
# TODO(mark): Chromium-specific hack!
|
414
|
+
# For Chromium, the gyp "depth" variable should always be a relative path
|
415
|
+
# to Chromium's top-level "src" directory. If no depth variable was set
|
416
|
+
# on the command line, try to find a "src" directory by looking at the
|
417
|
+
# absolute path to each build file's directory. The first "src" component
|
418
|
+
# found will be treated as though it were the path used for --depth.
|
419
|
+
if not options.depth:
|
420
|
+
for build_file in build_files:
|
421
|
+
build_file_dir = os.path.abspath(os.path.dirname(build_file))
|
422
|
+
build_file_dir_components = build_file_dir.split(os.path.sep)
|
423
|
+
components_len = len(build_file_dir_components)
|
424
|
+
for index in xrange(components_len - 1, -1, -1):
|
425
|
+
if build_file_dir_components[index] == 'src':
|
426
|
+
options.depth = os.path.sep.join(build_file_dir_components)
|
427
|
+
break
|
428
|
+
del build_file_dir_components[index]
|
429
|
+
|
430
|
+
# If the inner loop found something, break without advancing to another
|
431
|
+
# build file.
|
432
|
+
if options.depth:
|
433
|
+
break
|
434
|
+
|
435
|
+
if not options.depth:
|
436
|
+
raise GypError('Could not automatically locate src directory. This is'
|
437
|
+
'a temporary Chromium feature that will be removed. Use'
|
438
|
+
'--depth as a workaround.')
|
439
|
+
|
440
|
+
# If toplevel-dir is not set, we assume that depth is the root of our source
|
441
|
+
# tree.
|
442
|
+
if not options.toplevel_dir:
|
443
|
+
options.toplevel_dir = options.depth
|
444
|
+
|
445
|
+
# -D on the command line sets variable defaults - D isn't just for define,
|
446
|
+
# it's for default. Perhaps there should be a way to force (-F?) a
|
447
|
+
# variable's value so that it can't be overridden by anything else.
|
448
|
+
cmdline_default_variables = {}
|
449
|
+
defines = []
|
450
|
+
if options.use_environment:
|
451
|
+
defines += ShlexEnv('GYP_DEFINES')
|
452
|
+
if options.defines:
|
453
|
+
defines += options.defines
|
454
|
+
cmdline_default_variables = NameValueListToDict(defines)
|
455
|
+
if DEBUG_GENERAL in gyp.debug:
|
456
|
+
DebugOutput(DEBUG_GENERAL,
|
457
|
+
"cmdline_default_variables: %s", cmdline_default_variables)
|
458
|
+
|
459
|
+
# Set up includes.
|
460
|
+
includes = []
|
461
|
+
|
462
|
+
# If ~/.gyp/include.gypi exists, it'll be forcibly included into every
|
463
|
+
# .gyp file that's loaded, before anything else is included.
|
464
|
+
if home_dot_gyp != None:
|
465
|
+
default_include = os.path.join(home_dot_gyp, 'include.gypi')
|
466
|
+
if os.path.exists(default_include):
|
467
|
+
print 'Using overrides found in ' + default_include
|
468
|
+
includes.append(default_include)
|
469
|
+
|
470
|
+
# Command-line --include files come after the default include.
|
471
|
+
if options.includes:
|
472
|
+
includes.extend(options.includes)
|
473
|
+
|
474
|
+
# Generator flags should be prefixed with the target generator since they
|
475
|
+
# are global across all generator runs.
|
476
|
+
gen_flags = []
|
477
|
+
if options.use_environment:
|
478
|
+
gen_flags += ShlexEnv('GYP_GENERATOR_FLAGS')
|
479
|
+
if options.generator_flags:
|
480
|
+
gen_flags += options.generator_flags
|
481
|
+
generator_flags = NameValueListToDict(gen_flags)
|
482
|
+
if DEBUG_GENERAL in gyp.debug.keys():
|
483
|
+
DebugOutput(DEBUG_GENERAL, "generator_flags: %s", generator_flags)
|
484
|
+
|
485
|
+
# Generate all requested formats (use a set in case we got one format request
|
486
|
+
# twice)
|
487
|
+
for format in set(options.formats):
|
488
|
+
params = {'options': options,
|
489
|
+
'build_files': build_files,
|
490
|
+
'generator_flags': generator_flags,
|
491
|
+
'cwd': os.getcwd(),
|
492
|
+
'build_files_arg': build_files_arg,
|
493
|
+
'gyp_binary': sys.argv[0],
|
494
|
+
'home_dot_gyp': home_dot_gyp,
|
495
|
+
'parallel': options.parallel,
|
496
|
+
'root_targets': options.root_targets}
|
497
|
+
|
498
|
+
# Start with the default variables from the command line.
|
499
|
+
[generator, flat_list, targets, data] = Load(build_files, format,
|
500
|
+
cmdline_default_variables,
|
501
|
+
includes, options.depth,
|
502
|
+
params, options.check,
|
503
|
+
options.circular_check)
|
504
|
+
|
505
|
+
# TODO(mark): Pass |data| for now because the generator needs a list of
|
506
|
+
# build files that came in. In the future, maybe it should just accept
|
507
|
+
# a list, and not the whole data dict.
|
508
|
+
# NOTE: flat_list is the flattened dependency graph specifying the order
|
509
|
+
# that targets may be built. Build systems that operate serially or that
|
510
|
+
# need to have dependencies defined before dependents reference them should
|
511
|
+
# generate targets in the order specified in flat_list.
|
512
|
+
generator.GenerateOutput(flat_list, targets, data, params)
|
513
|
+
|
514
|
+
if options.configs:
|
515
|
+
valid_configs = targets[flat_list[0]]['configurations'].keys()
|
516
|
+
for conf in options.configs:
|
517
|
+
if conf not in valid_configs:
|
518
|
+
raise GypError('Invalid config specified via --build: %s' % conf)
|
519
|
+
generator.PerformBuild(data, options.configs, params)
|
520
|
+
|
521
|
+
# Done
|
522
|
+
return 0
|
523
|
+
|
524
|
+
|
525
|
+
def main(args):
|
526
|
+
try:
|
527
|
+
return gyp_main(args)
|
528
|
+
except GypError, e:
|
529
|
+
sys.stderr.write("gyp: %s\n" % e)
|
530
|
+
return 1
|
531
|
+
|
532
|
+
# NOTE: setuptools generated console_scripts calls function with no arguments
|
533
|
+
def script_main():
|
534
|
+
return main(sys.argv[1:])
|
535
|
+
|
536
|
+
if __name__ == '__main__':
|
537
|
+
sys.exit(script_main())
|