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.
Files changed (1029) hide show
  1. data/README.md +25 -17
  2. data/app/assets/javascripts/embeditor/adapter.js.coffee +21 -2
  3. data/app/assets/javascripts/embeditor/adapters/embedly.js.coffee +4 -40
  4. data/app/assets/javascripts/embeditor/adapters/oembed.js.coffee +37 -2
  5. data/app/assets/javascripts/embeditor/embeditor.js.coffee +16 -4
  6. data/lib/embeditor-rails/version.rb +1 -1
  7. data/lib/node_modules/npm/AUTHORS +158 -0
  8. data/lib/node_modules/npm/CONTRIBUTING.md +9 -0
  9. data/lib/node_modules/npm/LICENSE +235 -0
  10. data/lib/node_modules/npm/Makefile +216 -0
  11. data/lib/node_modules/npm/README.md +241 -0
  12. data/lib/node_modules/npm/bin/node-gyp-bin/node-gyp +2 -0
  13. data/lib/node_modules/npm/bin/node-gyp-bin/node-gyp.cmd +1 -0
  14. data/lib/node_modules/npm/bin/npm +13 -0
  15. data/lib/node_modules/npm/bin/npm-cli.js +87 -0
  16. data/lib/node_modules/npm/bin/npm.cmd +6 -0
  17. data/lib/node_modules/npm/bin/read-package-json.js +22 -0
  18. data/lib/node_modules/npm/cli.js +2 -0
  19. data/lib/node_modules/npm/configure +33 -0
  20. data/lib/node_modules/npm/doc/api/npm-bin.md +13 -0
  21. data/lib/node_modules/npm/doc/api/npm-bugs.md +19 -0
  22. data/lib/node_modules/npm/doc/api/npm-commands.md +22 -0
  23. data/lib/node_modules/npm/doc/api/npm-config.md +45 -0
  24. data/lib/node_modules/npm/doc/api/npm-deprecate.md +34 -0
  25. data/lib/node_modules/npm/doc/api/npm-docs.md +19 -0
  26. data/lib/node_modules/npm/doc/api/npm-edit.md +24 -0
  27. data/lib/node_modules/npm/doc/api/npm-explore.md +18 -0
  28. data/lib/node_modules/npm/doc/api/npm-help-search.md +30 -0
  29. data/lib/node_modules/npm/doc/api/npm-init.md +29 -0
  30. data/lib/node_modules/npm/doc/api/npm-install.md +19 -0
  31. data/lib/node_modules/npm/doc/api/npm-link.md +33 -0
  32. data/lib/node_modules/npm/doc/api/npm-load.md +26 -0
  33. data/lib/node_modules/npm/doc/api/npm-ls.md +56 -0
  34. data/lib/node_modules/npm/doc/api/npm-outdated.md +13 -0
  35. data/lib/node_modules/npm/doc/api/npm-owner.md +31 -0
  36. data/lib/node_modules/npm/doc/api/npm-pack.md +19 -0
  37. data/lib/node_modules/npm/doc/api/npm-prefix.md +15 -0
  38. data/lib/node_modules/npm/doc/api/npm-prune.md +17 -0
  39. data/lib/node_modules/npm/doc/api/npm-publish.md +30 -0
  40. data/lib/node_modules/npm/doc/api/npm-rebuild.md +16 -0
  41. data/lib/node_modules/npm/doc/api/npm-repo.md +19 -0
  42. data/lib/node_modules/npm/doc/api/npm-restart.md +22 -0
  43. data/lib/node_modules/npm/doc/api/npm-root.md +15 -0
  44. data/lib/node_modules/npm/doc/api/npm-run-script.md +27 -0
  45. data/lib/node_modules/npm/doc/api/npm-search.md +35 -0
  46. data/lib/node_modules/npm/doc/api/npm-shrinkwrap.md +20 -0
  47. data/lib/node_modules/npm/doc/api/npm-start.md +13 -0
  48. data/lib/node_modules/npm/doc/api/npm-stop.md +13 -0
  49. data/lib/node_modules/npm/doc/api/npm-submodule.md +28 -0
  50. data/lib/node_modules/npm/doc/api/npm-tag.md +23 -0
  51. data/lib/node_modules/npm/doc/api/npm-test.md +16 -0
  52. data/lib/node_modules/npm/doc/api/npm-uninstall.md +16 -0
  53. data/lib/node_modules/npm/doc/api/npm-unpublish.md +20 -0
  54. data/lib/node_modules/npm/doc/api/npm-update.md +11 -0
  55. data/lib/node_modules/npm/doc/api/npm-version.md +18 -0
  56. data/lib/node_modules/npm/doc/api/npm-view.md +93 -0
  57. data/lib/node_modules/npm/doc/api/npm-whoami.md +15 -0
  58. data/lib/node_modules/npm/doc/api/npm.md +116 -0
  59. data/lib/node_modules/npm/doc/cli/npm-adduser.md +38 -0
  60. data/lib/node_modules/npm/doc/cli/npm-bin.md +19 -0
  61. data/lib/node_modules/npm/doc/cli/npm-bugs.md +42 -0
  62. data/lib/node_modules/npm/doc/cli/npm-build.md +22 -0
  63. data/lib/node_modules/npm/doc/cli/npm-bundle.md +14 -0
  64. data/lib/node_modules/npm/doc/cli/npm-cache.md +72 -0
  65. data/lib/node_modules/npm/doc/cli/npm-completion.md +29 -0
  66. data/lib/node_modules/npm/doc/cli/npm-config.md +71 -0
  67. data/lib/node_modules/npm/doc/cli/npm-dedupe.md +58 -0
  68. data/lib/node_modules/npm/doc/cli/npm-deprecate.md +26 -0
  69. data/lib/node_modules/npm/doc/cli/npm-docs.md +44 -0
  70. data/lib/node_modules/npm/doc/cli/npm-edit.md +37 -0
  71. data/lib/node_modules/npm/doc/cli/npm-explore.md +40 -0
  72. data/lib/node_modules/npm/doc/cli/npm-help-search.md +35 -0
  73. data/lib/node_modules/npm/doc/cli/npm-help.md +40 -0
  74. data/lib/node_modules/npm/doc/cli/npm-init.md +25 -0
  75. data/lib/node_modules/npm/doc/cli/npm-install.md +252 -0
  76. data/lib/node_modules/npm/doc/cli/npm-link.md +63 -0
  77. data/lib/node_modules/npm/doc/cli/npm-ls.md +80 -0
  78. data/lib/node_modules/npm/doc/cli/npm-outdated.md +58 -0
  79. data/lib/node_modules/npm/doc/cli/npm-owner.md +33 -0
  80. data/lib/node_modules/npm/doc/cli/npm-pack.md +27 -0
  81. data/lib/node_modules/npm/doc/cli/npm-prefix.md +19 -0
  82. data/lib/node_modules/npm/doc/cli/npm-prune.md +25 -0
  83. data/lib/node_modules/npm/doc/cli/npm-publish.md +30 -0
  84. data/lib/node_modules/npm/doc/cli/npm-rebuild.md +21 -0
  85. data/lib/node_modules/npm/doc/cli/npm-repo.md +28 -0
  86. data/lib/node_modules/npm/doc/cli/npm-restart.md +22 -0
  87. data/lib/node_modules/npm/doc/cli/npm-rm.md +23 -0
  88. data/lib/node_modules/npm/doc/cli/npm-root.md +19 -0
  89. data/lib/node_modules/npm/doc/cli/npm-run-script.md +21 -0
  90. data/lib/node_modules/npm/doc/cli/npm-search.md +36 -0
  91. data/lib/node_modules/npm/doc/cli/npm-shrinkwrap.md +185 -0
  92. data/lib/node_modules/npm/doc/cli/npm-star.md +22 -0
  93. data/lib/node_modules/npm/doc/cli/npm-stars.md +22 -0
  94. data/lib/node_modules/npm/doc/cli/npm-start.md +18 -0
  95. data/lib/node_modules/npm/doc/cli/npm-stop.md +18 -0
  96. data/lib/node_modules/npm/doc/cli/npm-submodule.md +28 -0
  97. data/lib/node_modules/npm/doc/cli/npm-tag.md +34 -0
  98. data/lib/node_modules/npm/doc/cli/npm-test.md +22 -0
  99. data/lib/node_modules/npm/doc/cli/npm-uninstall.md +21 -0
  100. data/lib/node_modules/npm/doc/cli/npm-unpublish.md +32 -0
  101. data/lib/node_modules/npm/doc/cli/npm-update.md +24 -0
  102. data/lib/node_modules/npm/doc/cli/npm-version.md +45 -0
  103. data/lib/node_modules/npm/doc/cli/npm-view.md +90 -0
  104. data/lib/node_modules/npm/doc/cli/npm-whoami.md +17 -0
  105. data/lib/node_modules/npm/doc/cli/npm.md +153 -0
  106. data/lib/node_modules/npm/doc/files/npm-folders.md +211 -0
  107. data/lib/node_modules/npm/doc/files/npmrc.md +59 -0
  108. data/lib/node_modules/npm/doc/files/package.json.md +576 -0
  109. data/lib/node_modules/npm/doc/misc/npm-coding-style.md +181 -0
  110. data/lib/node_modules/npm/doc/misc/npm-config.md +820 -0
  111. data/lib/node_modules/npm/doc/misc/npm-developers.md +207 -0
  112. data/lib/node_modules/npm/doc/misc/npm-disputes.md +99 -0
  113. data/lib/node_modules/npm/doc/misc/npm-faq.md +364 -0
  114. data/lib/node_modules/npm/doc/misc/npm-index.md +411 -0
  115. data/lib/node_modules/npm/doc/misc/npm-registry.md +69 -0
  116. data/lib/node_modules/npm/doc/misc/npm-scripts.md +245 -0
  117. data/lib/node_modules/npm/doc/misc/removing-npm.md +54 -0
  118. data/lib/node_modules/npm/doc/misc/semver.md +111 -0
  119. data/lib/node_modules/npm/html/doc/README.html +276 -0
  120. data/lib/node_modules/npm/html/doc/api/npm-bin.html +53 -0
  121. data/lib/node_modules/npm/html/doc/api/npm-bugs.html +59 -0
  122. data/lib/node_modules/npm/html/doc/api/npm-commands.html +62 -0
  123. data/lib/node_modules/npm/html/doc/api/npm-config.html +67 -0
  124. data/lib/node_modules/npm/html/doc/api/npm-deprecate.html +66 -0
  125. data/lib/node_modules/npm/html/doc/api/npm-docs.html +59 -0
  126. data/lib/node_modules/npm/html/doc/api/npm-edit.html +64 -0
  127. data/lib/node_modules/npm/html/doc/api/npm-explore.html +58 -0
  128. data/lib/node_modules/npm/html/doc/api/npm-help-search.html +66 -0
  129. data/lib/node_modules/npm/html/doc/api/npm-init.html +69 -0
  130. data/lib/node_modules/npm/html/doc/api/npm-install.html +59 -0
  131. data/lib/node_modules/npm/html/doc/api/npm-link.html +73 -0
  132. data/lib/node_modules/npm/html/doc/api/npm-load.html +66 -0
  133. data/lib/node_modules/npm/html/doc/api/npm-ls.html +93 -0
  134. data/lib/node_modules/npm/html/doc/api/npm-outdated.html +53 -0
  135. data/lib/node_modules/npm/html/doc/api/npm-owner.html +68 -0
  136. data/lib/node_modules/npm/html/doc/api/npm-pack.html +59 -0
  137. data/lib/node_modules/npm/html/doc/api/npm-prefix.html +55 -0
  138. data/lib/node_modules/npm/html/doc/api/npm-prune.html +57 -0
  139. data/lib/node_modules/npm/html/doc/api/npm-publish.html +66 -0
  140. data/lib/node_modules/npm/html/doc/api/npm-rebuild.html +56 -0
  141. data/lib/node_modules/npm/html/doc/api/npm-repo.html +59 -0
  142. data/lib/node_modules/npm/html/doc/api/npm-restart.html +61 -0
  143. data/lib/node_modules/npm/html/doc/api/npm-root.html +55 -0
  144. data/lib/node_modules/npm/html/doc/api/npm-run-script.html +63 -0
  145. data/lib/node_modules/npm/html/doc/api/npm-search.html +66 -0
  146. data/lib/node_modules/npm/html/doc/api/npm-shrinkwrap.html +60 -0
  147. data/lib/node_modules/npm/html/doc/api/npm-start.html +53 -0
  148. data/lib/node_modules/npm/html/doc/api/npm-stop.html +53 -0
  149. data/lib/node_modules/npm/html/doc/api/npm-submodule.html +67 -0
  150. data/lib/node_modules/npm/html/doc/api/npm-tag.html +63 -0
  151. data/lib/node_modules/npm/html/doc/api/npm-test.html +56 -0
  152. data/lib/node_modules/npm/html/doc/api/npm-uninstall.html +56 -0
  153. data/lib/node_modules/npm/html/doc/api/npm-unpublish.html +60 -0
  154. data/lib/node_modules/npm/html/doc/api/npm-update.html +52 -0
  155. data/lib/node_modules/npm/html/doc/api/npm-version.html +58 -0
  156. data/lib/node_modules/npm/html/doc/api/npm-view.html +133 -0
  157. data/lib/node_modules/npm/html/doc/api/npm-whoami.html +55 -0
  158. data/lib/node_modules/npm/html/doc/api/npm.html +126 -0
  159. data/lib/node_modules/npm/html/doc/cli/npm-adduser.html +73 -0
  160. data/lib/node_modules/npm/html/doc/cli/npm-bin.html +54 -0
  161. data/lib/node_modules/npm/html/doc/cli/npm-bugs.html +72 -0
  162. data/lib/node_modules/npm/html/doc/cli/npm-build.html +59 -0
  163. data/lib/node_modules/npm/html/doc/cli/npm-bundle.html +54 -0
  164. data/lib/node_modules/npm/html/doc/cli/npm-cache.html +100 -0
  165. data/lib/node_modules/npm/html/doc/cli/npm-completion.html +67 -0
  166. data/lib/node_modules/npm/html/doc/cli/npm-config.html +107 -0
  167. data/lib/node_modules/npm/html/doc/cli/npm-dedupe.html +96 -0
  168. data/lib/node_modules/npm/html/doc/cli/npm-deprecate.html +65 -0
  169. data/lib/node_modules/npm/html/doc/cli/npm-docs.html +75 -0
  170. data/lib/node_modules/npm/html/doc/cli/npm-edit.html +71 -0
  171. data/lib/node_modules/npm/html/doc/cli/npm-explore.html +74 -0
  172. data/lib/node_modules/npm/html/doc/cli/npm-help-search.html +72 -0
  173. data/lib/node_modules/npm/html/doc/cli/npm-help.html +70 -0
  174. data/lib/node_modules/npm/html/doc/cli/npm-init.html +63 -0
  175. data/lib/node_modules/npm/html/doc/cli/npm-install.html +183 -0
  176. data/lib/node_modules/npm/html/doc/cli/npm-link.html +96 -0
  177. data/lib/node_modules/npm/html/doc/cli/npm-ls.html +108 -0
  178. data/lib/node_modules/npm/html/doc/cli/npm-outdated.html +92 -0
  179. data/lib/node_modules/npm/html/doc/cli/npm-owner.html +68 -0
  180. data/lib/node_modules/npm/html/doc/cli/npm-pack.html +63 -0
  181. data/lib/node_modules/npm/html/doc/cli/npm-prefix.html +54 -0
  182. data/lib/node_modules/npm/html/doc/cli/npm-prune.html +63 -0
  183. data/lib/node_modules/npm/html/doc/cli/npm-publish.html +63 -0
  184. data/lib/node_modules/npm/html/doc/cli/npm-rebuild.html +60 -0
  185. data/lib/node_modules/npm/html/doc/cli/npm-repo.html +66 -0
  186. data/lib/node_modules/npm/html/doc/cli/npm-restart.html +58 -0
  187. data/lib/node_modules/npm/html/doc/cli/npm-rm.html +58 -0
  188. data/lib/node_modules/npm/html/doc/cli/npm-root.html +54 -0
  189. data/lib/node_modules/npm/html/doc/cli/npm-run-script.html +57 -0
  190. data/lib/node_modules/npm/html/doc/cli/npm-search.html +71 -0
  191. data/lib/node_modules/npm/html/doc/cli/npm-shrinkwrap.html +217 -0
  192. data/lib/node_modules/npm/html/doc/cli/npm-star.html +60 -0
  193. data/lib/node_modules/npm/html/doc/cli/npm-stars.html +59 -0
  194. data/lib/node_modules/npm/html/doc/cli/npm-start.html +54 -0
  195. data/lib/node_modules/npm/html/doc/cli/npm-stop.html +54 -0
  196. data/lib/node_modules/npm/html/doc/cli/npm-submodule.html +67 -0
  197. data/lib/node_modules/npm/html/doc/cli/npm-tag.html +68 -0
  198. data/lib/node_modules/npm/html/doc/cli/npm-test.html +58 -0
  199. data/lib/node_modules/npm/html/doc/cli/npm-uninstall.html +56 -0
  200. data/lib/node_modules/npm/html/doc/cli/npm-unpublish.html +68 -0
  201. data/lib/node_modules/npm/html/doc/cli/npm-update.html +60 -0
  202. data/lib/node_modules/npm/html/doc/cli/npm-version.html +83 -0
  203. data/lib/node_modules/npm/html/doc/cli/npm-view.html +125 -0
  204. data/lib/node_modules/npm/html/doc/cli/npm-whoami.html +54 -0
  205. data/lib/node_modules/npm/html/doc/cli/npm.html +165 -0
  206. data/lib/node_modules/npm/html/doc/files/npm-folders.html +239 -0
  207. data/lib/node_modules/npm/html/doc/files/npm-global.html +239 -0
  208. data/lib/node_modules/npm/html/doc/files/npm-json.html +580 -0
  209. data/lib/node_modules/npm/html/doc/files/npmrc.html +93 -0
  210. data/lib/node_modules/npm/html/doc/files/package.json.html +580 -0
  211. data/lib/node_modules/npm/html/doc/index.html +450 -0
  212. data/lib/node_modules/npm/html/doc/misc/npm-coding-style.html +216 -0
  213. data/lib/node_modules/npm/html/doc/misc/npm-config.html +744 -0
  214. data/lib/node_modules/npm/html/doc/misc/npm-developers.html +208 -0
  215. data/lib/node_modules/npm/html/doc/misc/npm-disputes.html +126 -0
  216. data/lib/node_modules/npm/html/doc/misc/npm-faq.html +382 -0
  217. data/lib/node_modules/npm/html/doc/misc/npm-index.html +450 -0
  218. data/lib/node_modules/npm/html/doc/misc/npm-registry.html +105 -0
  219. data/lib/node_modules/npm/html/doc/misc/npm-scripts.html +257 -0
  220. data/lib/node_modules/npm/html/doc/misc/removing-npm.html +92 -0
  221. data/lib/node_modules/npm/html/doc/misc/semver.html +128 -0
  222. data/lib/node_modules/npm/html/docfoot-script.html +31 -0
  223. data/lib/node_modules/npm/html/docfoot.html +2 -0
  224. data/lib/node_modules/npm/html/dochead.html +8 -0
  225. data/lib/node_modules/npm/html/favicon.ico +0 -0
  226. data/lib/node_modules/npm/html/index.html +95 -0
  227. data/lib/node_modules/npm/html/static/style.css +329 -0
  228. data/lib/node_modules/npm/lib/adduser.js +138 -0
  229. data/lib/node_modules/npm/lib/bin.js +18 -0
  230. data/lib/node_modules/npm/lib/bugs.js +61 -0
  231. data/lib/node_modules/npm/lib/build.js +228 -0
  232. data/lib/node_modules/npm/lib/cache.js +1318 -0
  233. data/lib/node_modules/npm/lib/completion.js +253 -0
  234. data/lib/node_modules/npm/lib/config.js +285 -0
  235. data/lib/node_modules/npm/lib/dedupe.js +357 -0
  236. data/lib/node_modules/npm/lib/deprecate.js +47 -0
  237. data/lib/node_modules/npm/lib/docs.js +62 -0
  238. data/lib/node_modules/npm/lib/edit.js +32 -0
  239. data/lib/node_modules/npm/lib/explore.js +36 -0
  240. data/lib/node_modules/npm/lib/faq.js +8 -0
  241. data/lib/node_modules/npm/lib/get.js +12 -0
  242. data/lib/node_modules/npm/lib/help-search.js +218 -0
  243. data/lib/node_modules/npm/lib/help.js +231 -0
  244. data/lib/node_modules/npm/lib/init.js +36 -0
  245. data/lib/node_modules/npm/lib/install.js +979 -0
  246. data/lib/node_modules/npm/lib/link.js +173 -0
  247. data/lib/node_modules/npm/lib/ls.js +357 -0
  248. data/lib/node_modules/npm/lib/npm.js +528 -0
  249. data/lib/node_modules/npm/lib/outdated.js +303 -0
  250. data/lib/node_modules/npm/lib/owner.js +205 -0
  251. data/lib/node_modules/npm/lib/pack.js +65 -0
  252. data/lib/node_modules/npm/lib/prefix.js +11 -0
  253. data/lib/node_modules/npm/lib/prune.js +53 -0
  254. data/lib/node_modules/npm/lib/publish.js +118 -0
  255. data/lib/node_modules/npm/lib/rebuild.js +75 -0
  256. data/lib/node_modules/npm/lib/repo.js +54 -0
  257. data/lib/node_modules/npm/lib/restart.js +1 -0
  258. data/lib/node_modules/npm/lib/root.js +11 -0
  259. data/lib/node_modules/npm/lib/run-script.js +102 -0
  260. data/lib/node_modules/npm/lib/search.js +265 -0
  261. data/lib/node_modules/npm/lib/set.js +13 -0
  262. data/lib/node_modules/npm/lib/shrinkwrap.js +86 -0
  263. data/lib/node_modules/npm/lib/star.js +33 -0
  264. data/lib/node_modules/npm/lib/stars.js +27 -0
  265. data/lib/node_modules/npm/lib/start.js +1 -0
  266. data/lib/node_modules/npm/lib/stop.js +1 -0
  267. data/lib/node_modules/npm/lib/submodule.js +119 -0
  268. data/lib/node_modules/npm/lib/substack.js +20 -0
  269. data/lib/node_modules/npm/lib/tag.js +18 -0
  270. data/lib/node_modules/npm/lib/test.js +14 -0
  271. data/lib/node_modules/npm/lib/unbuild.js +112 -0
  272. data/lib/node_modules/npm/lib/uninstall.js +127 -0
  273. data/lib/node_modules/npm/lib/unpublish.js +83 -0
  274. data/lib/node_modules/npm/lib/update.js +43 -0
  275. data/lib/node_modules/npm/lib/utils/completion.sh +54 -0
  276. data/lib/node_modules/npm/lib/utils/completion/file-completion.js +26 -0
  277. data/lib/node_modules/npm/lib/utils/completion/installed-deep.js +50 -0
  278. data/lib/node_modules/npm/lib/utils/completion/installed-shallow.js +79 -0
  279. data/lib/node_modules/npm/lib/utils/error-handler.js +343 -0
  280. data/lib/node_modules/npm/lib/utils/fetch.js +93 -0
  281. data/lib/node_modules/npm/lib/utils/find-prefix.js +57 -0
  282. data/lib/node_modules/npm/lib/utils/gently-rm.js +61 -0
  283. data/lib/node_modules/npm/lib/utils/is-git-url.js +13 -0
  284. data/lib/node_modules/npm/lib/utils/lifecycle.js +360 -0
  285. data/lib/node_modules/npm/lib/utils/link.js +39 -0
  286. data/lib/node_modules/npm/lib/utils/tar.js +323 -0
  287. data/lib/node_modules/npm/lib/version.js +120 -0
  288. data/lib/node_modules/npm/lib/view.js +246 -0
  289. data/lib/node_modules/npm/lib/visnup.js +42 -0
  290. data/lib/node_modules/npm/lib/whoami.js +13 -0
  291. data/lib/node_modules/npm/lib/xmas.js +56 -0
  292. data/lib/node_modules/npm/make.bat +3 -0
  293. data/lib/node_modules/npm/man/man1/npm-README.1 +328 -0
  294. data/lib/node_modules/npm/man/man1/npm-adduser.1 +63 -0
  295. data/lib/node_modules/npm/man/man1/npm-bin.1 +40 -0
  296. data/lib/node_modules/npm/man/man1/npm-bugs.1 +78 -0
  297. data/lib/node_modules/npm/man/man1/npm-build.1 +43 -0
  298. data/lib/node_modules/npm/man/man1/npm-bundle.1 +23 -0
  299. data/lib/node_modules/npm/man/man1/npm-cache.1 +104 -0
  300. data/lib/node_modules/npm/man/man1/npm-completion.1 +47 -0
  301. data/lib/node_modules/npm/man/man1/npm-config.1 +113 -0
  302. data/lib/node_modules/npm/man/man1/npm-dedupe.1 +96 -0
  303. data/lib/node_modules/npm/man/man1/npm-deprecate.1 +48 -0
  304. data/lib/node_modules/npm/man/man1/npm-docs.1 +78 -0
  305. data/lib/node_modules/npm/man/man1/npm-edit.1 +66 -0
  306. data/lib/node_modules/npm/man/man1/npm-explore.1 +76 -0
  307. data/lib/node_modules/npm/man/man1/npm-help-search.1 +59 -0
  308. data/lib/node_modules/npm/man/man1/npm-help.1 +77 -0
  309. data/lib/node_modules/npm/man/man1/npm-init.1 +43 -0
  310. data/lib/node_modules/npm/man/man1/npm-install.1 +434 -0
  311. data/lib/node_modules/npm/man/man1/npm-link.1 +119 -0
  312. data/lib/node_modules/npm/man/man1/npm-ls.1 +146 -0
  313. data/lib/node_modules/npm/man/man1/npm-outdated.1 +102 -0
  314. data/lib/node_modules/npm/man/man1/npm-owner.1 +58 -0
  315. data/lib/node_modules/npm/man/man1/npm-pack.1 +48 -0
  316. data/lib/node_modules/npm/man/man1/npm-prefix.1 +40 -0
  317. data/lib/node_modules/npm/man/man1/npm-prune.1 +42 -0
  318. data/lib/node_modules/npm/man/man1/npm-publish.1 +53 -0
  319. data/lib/node_modules/npm/man/man1/npm-rebuild.1 +37 -0
  320. data/lib/node_modules/npm/man/man1/npm-repo.1 +47 -0
  321. data/lib/node_modules/npm/man/man1/npm-restart.1 +42 -0
  322. data/lib/node_modules/npm/man/man1/npm-rm.1 +44 -0
  323. data/lib/node_modules/npm/man/man1/npm-root.1 +40 -0
  324. data/lib/node_modules/npm/man/man1/npm-run-script.1 +41 -0
  325. data/lib/node_modules/npm/man/man1/npm-search.1 +62 -0
  326. data/lib/node_modules/npm/man/man1/npm-shrinkwrap.1 +275 -0
  327. data/lib/node_modules/npm/man/man1/npm-star.1 +39 -0
  328. data/lib/node_modules/npm/man/man1/npm-stars.1 +40 -0
  329. data/lib/node_modules/npm/man/man1/npm-start.1 +37 -0
  330. data/lib/node_modules/npm/man/man1/npm-stop.1 +37 -0
  331. data/lib/node_modules/npm/man/man1/npm-submodule.1 +42 -0
  332. data/lib/node_modules/npm/man/man1/npm-tag.1 +74 -0
  333. data/lib/node_modules/npm/man/man1/npm-test.1 +42 -0
  334. data/lib/node_modules/npm/man/man1/npm-uninstall.1 +42 -0
  335. data/lib/node_modules/npm/man/man1/npm-unpublish.1 +53 -0
  336. data/lib/node_modules/npm/man/man1/npm-update.1 +45 -0
  337. data/lib/node_modules/npm/man/man1/npm-version.1 +75 -0
  338. data/lib/node_modules/npm/man/man1/npm-view.1 +186 -0
  339. data/lib/node_modules/npm/man/man1/npm-whoami.1 +34 -0
  340. data/lib/node_modules/npm/man/man1/npm.1 +230 -0
  341. data/lib/node_modules/npm/man/man3/npm-bin.3 +21 -0
  342. data/lib/node_modules/npm/man/man3/npm-bugs.3 +28 -0
  343. data/lib/node_modules/npm/man/man3/npm-commands.3 +35 -0
  344. data/lib/node_modules/npm/man/man3/npm-config.3 +69 -0
  345. data/lib/node_modules/npm/man/man3/npm-deprecate.3 +57 -0
  346. data/lib/node_modules/npm/man/man3/npm-docs.3 +28 -0
  347. data/lib/node_modules/npm/man/man3/npm-edit.3 +35 -0
  348. data/lib/node_modules/npm/man/man3/npm-explore.3 +28 -0
  349. data/lib/node_modules/npm/man/man3/npm-help-search.3 +51 -0
  350. data/lib/node_modules/npm/man/man3/npm-init.3 +39 -0
  351. data/lib/node_modules/npm/man/man3/npm-install.3 +29 -0
  352. data/lib/node_modules/npm/man/man3/npm-link.3 +53 -0
  353. data/lib/node_modules/npm/man/man3/npm-load.3 +44 -0
  354. data/lib/node_modules/npm/man/man3/npm-ls.3 +86 -0
  355. data/lib/node_modules/npm/man/man3/npm-outdated.3 +21 -0
  356. data/lib/node_modules/npm/man/man3/npm-owner.3 +52 -0
  357. data/lib/node_modules/npm/man/man3/npm-pack.3 +28 -0
  358. data/lib/node_modules/npm/man/man3/npm-prefix.3 +24 -0
  359. data/lib/node_modules/npm/man/man3/npm-prune.3 +27 -0
  360. data/lib/node_modules/npm/man/man3/npm-publish.3 +51 -0
  361. data/lib/node_modules/npm/man/man3/npm-rebuild.3 +22 -0
  362. data/lib/node_modules/npm/man/man3/npm-repo.3 +28 -0
  363. data/lib/node_modules/npm/man/man3/npm-restart.3 +37 -0
  364. data/lib/node_modules/npm/man/man3/npm-root.3 +24 -0
  365. data/lib/node_modules/npm/man/man3/npm-run-script.3 +48 -0
  366. data/lib/node_modules/npm/man/man3/npm-search.3 +64 -0
  367. data/lib/node_modules/npm/man/man3/npm-shrinkwrap.3 +30 -0
  368. data/lib/node_modules/npm/man/man3/npm-start.3 +21 -0
  369. data/lib/node_modules/npm/man/man3/npm-stop.3 +21 -0
  370. data/lib/node_modules/npm/man/man3/npm-submodule.3 +42 -0
  371. data/lib/node_modules/npm/man/man3/npm-tag.3 +31 -0
  372. data/lib/node_modules/npm/man/man3/npm-test.3 +25 -0
  373. data/lib/node_modules/npm/man/man3/npm-uninstall.3 +25 -0
  374. data/lib/node_modules/npm/man/man3/npm-unpublish.3 +30 -0
  375. data/lib/node_modules/npm/man/man3/npm-update.3 +18 -0
  376. data/lib/node_modules/npm/man/man3/npm-version.3 +27 -0
  377. data/lib/node_modules/npm/man/man3/npm-view.3 +176 -0
  378. data/lib/node_modules/npm/man/man3/npm-whoami.3 +24 -0
  379. data/lib/node_modules/npm/man/man3/npm.3 +162 -0
  380. data/lib/node_modules/npm/man/man5/npm-folders.5 +264 -0
  381. data/lib/node_modules/npm/man/man5/npm-global.5 +264 -0
  382. data/lib/node_modules/npm/man/man5/npm-json.5 +807 -0
  383. data/lib/node_modules/npm/man/man5/npmrc.5 +89 -0
  384. data/lib/node_modules/npm/man/man5/package.json.5 +807 -0
  385. data/lib/node_modules/npm/man/man7/npm-coding-style.7 +254 -0
  386. data/lib/node_modules/npm/man/man7/npm-config.7 +1445 -0
  387. data/lib/node_modules/npm/man/man7/npm-developers.7 +335 -0
  388. data/lib/node_modules/npm/man/man7/npm-disputes.7 +146 -0
  389. data/lib/node_modules/npm/man/man7/npm-faq.7 +479 -0
  390. data/lib/node_modules/npm/man/man7/npm-index.7 +307 -0
  391. data/lib/node_modules/npm/man/man7/npm-registry.7 +82 -0
  392. data/lib/node_modules/npm/man/man7/npm-scripts.7 +354 -0
  393. data/lib/node_modules/npm/man/man7/removing-npm.7 +107 -0
  394. data/lib/node_modules/npm/man/man7/semver.7 +172 -0
  395. data/lib/node_modules/npm/node_modules/abbrev/LICENSE +23 -0
  396. data/lib/node_modules/npm/node_modules/abbrev/README.md +23 -0
  397. data/lib/node_modules/npm/node_modules/abbrev/lib/abbrev.js +111 -0
  398. data/lib/node_modules/npm/node_modules/abbrev/package.json +25 -0
  399. data/lib/node_modules/npm/node_modules/ansi/README.md +91 -0
  400. data/lib/node_modules/npm/node_modules/ansi/color-spaces.pl +67 -0
  401. data/lib/node_modules/npm/node_modules/ansi/examples/beep/index.js +16 -0
  402. data/lib/node_modules/npm/node_modules/ansi/examples/clear/index.js +15 -0
  403. data/lib/node_modules/npm/node_modules/ansi/examples/cursorPosition.js +32 -0
  404. data/lib/node_modules/npm/node_modules/ansi/examples/progress/index.js +87 -0
  405. data/lib/node_modules/npm/node_modules/ansi/examples/starwars.js +46 -0
  406. data/lib/node_modules/npm/node_modules/ansi/lib/ansi.js +405 -0
  407. data/lib/node_modules/npm/node_modules/ansi/lib/newlines.js +71 -0
  408. data/lib/node_modules/npm/node_modules/ansi/package.json +50 -0
  409. data/lib/node_modules/npm/node_modules/ansicolors/LICENSE +23 -0
  410. data/lib/node_modules/npm/node_modules/ansicolors/README.md +62 -0
  411. data/lib/node_modules/npm/node_modules/ansicolors/ansicolors.js +65 -0
  412. data/lib/node_modules/npm/node_modules/ansicolors/package.json +34 -0
  413. data/lib/node_modules/npm/node_modules/ansistyles/LICENSE +23 -0
  414. data/lib/node_modules/npm/node_modules/ansistyles/README.md +71 -0
  415. data/lib/node_modules/npm/node_modules/ansistyles/ansistyles.js +38 -0
  416. data/lib/node_modules/npm/node_modules/ansistyles/package.json +38 -0
  417. data/lib/node_modules/npm/node_modules/archy/README.markdown +92 -0
  418. data/lib/node_modules/npm/node_modules/archy/index.js +35 -0
  419. data/lib/node_modules/npm/node_modules/archy/package.json +52 -0
  420. data/lib/node_modules/npm/node_modules/block-stream/LICENCE +25 -0
  421. data/lib/node_modules/npm/node_modules/block-stream/README.md +14 -0
  422. data/lib/node_modules/npm/node_modules/block-stream/bench/block-stream-pause.js +70 -0
  423. data/lib/node_modules/npm/node_modules/block-stream/bench/block-stream.js +68 -0
  424. data/lib/node_modules/npm/node_modules/block-stream/bench/dropper-pause.js +70 -0
  425. data/lib/node_modules/npm/node_modules/block-stream/bench/dropper.js +68 -0
  426. data/lib/node_modules/npm/node_modules/block-stream/block-stream.js +209 -0
  427. data/lib/node_modules/npm/node_modules/block-stream/package.json +35 -0
  428. data/lib/node_modules/npm/node_modules/child-process-close/README.md +45 -0
  429. data/lib/node_modules/npm/node_modules/child-process-close/index.js +48 -0
  430. data/lib/node_modules/npm/node_modules/child-process-close/package.json +37 -0
  431. data/lib/node_modules/npm/node_modules/chmodr/LICENSE +27 -0
  432. data/lib/node_modules/npm/node_modules/chmodr/README.md +3 -0
  433. data/lib/node_modules/npm/node_modules/chmodr/chmodr.js +54 -0
  434. data/lib/node_modules/npm/node_modules/chmodr/package.json +28 -0
  435. data/lib/node_modules/npm/node_modules/chownr/LICENCE +25 -0
  436. data/lib/node_modules/npm/node_modules/chownr/README.md +3 -0
  437. data/lib/node_modules/npm/node_modules/chownr/chownr.js +41 -0
  438. data/lib/node_modules/npm/node_modules/chownr/package.json +42 -0
  439. data/lib/node_modules/npm/node_modules/cmd-shim/LICENSE +27 -0
  440. data/lib/node_modules/npm/node_modules/cmd-shim/README.md +42 -0
  441. data/lib/node_modules/npm/node_modules/cmd-shim/index.js +180 -0
  442. data/lib/node_modules/npm/node_modules/cmd-shim/package.json +35 -0
  443. data/lib/node_modules/npm/node_modules/columnify/Readme.md +189 -0
  444. data/lib/node_modules/npm/node_modules/columnify/index.js +210 -0
  445. data/lib/node_modules/npm/node_modules/columnify/package.json +42 -0
  446. data/lib/node_modules/npm/node_modules/columnify/utils.js +76 -0
  447. data/lib/node_modules/npm/node_modules/editor/LICENSE +18 -0
  448. data/lib/node_modules/npm/node_modules/editor/README.markdown +54 -0
  449. data/lib/node_modules/npm/node_modules/editor/example/beep.json +5 -0
  450. data/lib/node_modules/npm/node_modules/editor/example/edit.js +4 -0
  451. data/lib/node_modules/npm/node_modules/editor/index.js +26 -0
  452. data/lib/node_modules/npm/node_modules/editor/package.json +43 -0
  453. data/lib/node_modules/npm/node_modules/fstream-npm/LICENCE +25 -0
  454. data/lib/node_modules/npm/node_modules/fstream-npm/README.md +18 -0
  455. data/lib/node_modules/npm/node_modules/fstream-npm/example/bundle.js +13 -0
  456. data/lib/node_modules/npm/node_modules/fstream-npm/example/dir-tar.js +19 -0
  457. data/lib/node_modules/npm/node_modules/fstream-npm/example/dir.js +25 -0
  458. data/lib/node_modules/npm/node_modules/fstream-npm/example/example.js +12 -0
  459. data/lib/node_modules/npm/node_modules/fstream-npm/example/ig-tar.js +19 -0
  460. data/lib/node_modules/npm/node_modules/fstream-npm/example/tar.js +25 -0
  461. data/lib/node_modules/npm/node_modules/fstream-npm/fstream-npm.js +323 -0
  462. data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/LICENSE +27 -0
  463. data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/README.md +22 -0
  464. data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/example/basic.js +13 -0
  465. data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js +275 -0
  466. data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/package.json +40 -0
  467. data/lib/node_modules/npm/node_modules/fstream-npm/package.json +27 -0
  468. data/lib/node_modules/npm/node_modules/fstream/LICENSE +27 -0
  469. data/lib/node_modules/npm/node_modules/fstream/README.md +76 -0
  470. data/lib/node_modules/npm/node_modules/fstream/examples/filter-pipe.js +131 -0
  471. data/lib/node_modules/npm/node_modules/fstream/examples/pipe.js +115 -0
  472. data/lib/node_modules/npm/node_modules/fstream/examples/reader.js +54 -0
  473. data/lib/node_modules/npm/node_modules/fstream/examples/symlink-write.js +24 -0
  474. data/lib/node_modules/npm/node_modules/fstream/fstream.js +31 -0
  475. data/lib/node_modules/npm/node_modules/fstream/lib/abstract.js +85 -0
  476. data/lib/node_modules/npm/node_modules/fstream/lib/collect.js +67 -0
  477. data/lib/node_modules/npm/node_modules/fstream/lib/dir-reader.js +251 -0
  478. data/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js +171 -0
  479. data/lib/node_modules/npm/node_modules/fstream/lib/file-reader.js +147 -0
  480. data/lib/node_modules/npm/node_modules/fstream/lib/file-writer.js +100 -0
  481. data/lib/node_modules/npm/node_modules/fstream/lib/get-type.js +32 -0
  482. data/lib/node_modules/npm/node_modules/fstream/lib/link-reader.js +54 -0
  483. data/lib/node_modules/npm/node_modules/fstream/lib/link-writer.js +95 -0
  484. data/lib/node_modules/npm/node_modules/fstream/lib/proxy-reader.js +93 -0
  485. data/lib/node_modules/npm/node_modules/fstream/lib/proxy-writer.js +109 -0
  486. data/lib/node_modules/npm/node_modules/fstream/lib/reader.js +260 -0
  487. data/lib/node_modules/npm/node_modules/fstream/lib/socket-reader.js +38 -0
  488. data/lib/node_modules/npm/node_modules/fstream/lib/writer.js +389 -0
  489. data/lib/node_modules/npm/node_modules/fstream/package.json +43 -0
  490. data/lib/node_modules/npm/node_modules/github-url-from-git/History.md +10 -0
  491. data/lib/node_modules/npm/node_modules/github-url-from-git/Makefile +5 -0
  492. data/lib/node_modules/npm/node_modules/github-url-from-git/Readme.md +41 -0
  493. data/lib/node_modules/npm/node_modules/github-url-from-git/index.js +12 -0
  494. data/lib/node_modules/npm/node_modules/github-url-from-git/package.json +31 -0
  495. data/lib/node_modules/npm/node_modules/github-url-from-git/test.js +40 -0
  496. data/lib/node_modules/npm/node_modules/github-url-from-username-repo/LICENSE +27 -0
  497. data/lib/node_modules/npm/node_modules/github-url-from-username-repo/README.md +14 -0
  498. data/lib/node_modules/npm/node_modules/github-url-from-username-repo/index.js +9 -0
  499. data/lib/node_modules/npm/node_modules/github-url-from-username-repo/package.json +33 -0
  500. data/lib/node_modules/npm/node_modules/glob/LICENSE +27 -0
  501. data/lib/node_modules/npm/node_modules/glob/README.md +250 -0
  502. data/lib/node_modules/npm/node_modules/glob/examples/g.js +9 -0
  503. data/lib/node_modules/npm/node_modules/glob/examples/usr-local.js +9 -0
  504. data/lib/node_modules/npm/node_modules/glob/glob.js +680 -0
  505. data/lib/node_modules/npm/node_modules/glob/package.json +39 -0
  506. data/lib/node_modules/npm/node_modules/graceful-fs/LICENSE +27 -0
  507. data/lib/node_modules/npm/node_modules/graceful-fs/README.md +26 -0
  508. data/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js +161 -0
  509. data/lib/node_modules/npm/node_modules/graceful-fs/package.json +48 -0
  510. data/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js +228 -0
  511. data/lib/node_modules/npm/node_modules/inherits/LICENSE +16 -0
  512. data/lib/node_modules/npm/node_modules/inherits/README.md +42 -0
  513. data/lib/node_modules/npm/node_modules/inherits/inherits.js +1 -0
  514. data/lib/node_modules/npm/node_modules/inherits/inherits_browser.js +23 -0
  515. data/lib/node_modules/npm/node_modules/inherits/package.json +32 -0
  516. data/lib/node_modules/npm/node_modules/inherits/test.js +25 -0
  517. data/lib/node_modules/npm/node_modules/ini/LICENSE +23 -0
  518. data/lib/node_modules/npm/node_modules/ini/README.md +79 -0
  519. data/lib/node_modules/npm/node_modules/ini/ini.js +166 -0
  520. data/lib/node_modules/npm/node_modules/ini/package.json +29 -0
  521. data/lib/node_modules/npm/node_modules/init-package-json/README.md +43 -0
  522. data/lib/node_modules/npm/node_modules/init-package-json/default-input.js +181 -0
  523. data/lib/node_modules/npm/node_modules/init-package-json/example/example-basic.js +8 -0
  524. data/lib/node_modules/npm/node_modules/init-package-json/example/example-default.js +7 -0
  525. data/lib/node_modules/npm/node_modules/init-package-json/example/example-npm.js +13 -0
  526. data/lib/node_modules/npm/node_modules/init-package-json/example/init/basic-init.js +1 -0
  527. data/lib/node_modules/npm/node_modules/init-package-json/init-package-json.js +129 -0
  528. data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/LICENSE +15 -0
  529. data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/README.md +133 -0
  530. data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/index.js +11 -0
  531. data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/README.md +8 -0
  532. data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/init-input.js +191 -0
  533. data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/init.js +37 -0
  534. data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/package.json +10 -0
  535. data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/substack-input.js +61 -0
  536. data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/package.json +32 -0
  537. data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/promzard.js +216 -0
  538. data/lib/node_modules/npm/node_modules/init-package-json/package.json +48 -0
  539. data/lib/node_modules/npm/node_modules/lockfile/LICENSE +27 -0
  540. data/lib/node_modules/npm/node_modules/lockfile/README.md +81 -0
  541. data/lib/node_modules/npm/node_modules/lockfile/lockfile.js +272 -0
  542. data/lib/node_modules/npm/node_modules/lockfile/package.json +45 -0
  543. data/lib/node_modules/npm/node_modules/lru-cache/CONTRIBUTORS +14 -0
  544. data/lib/node_modules/npm/node_modules/lru-cache/LICENSE +23 -0
  545. data/lib/node_modules/npm/node_modules/lru-cache/README.md +97 -0
  546. data/lib/node_modules/npm/node_modules/lru-cache/lib/lru-cache.js +252 -0
  547. data/lib/node_modules/npm/node_modules/lru-cache/package.json +33 -0
  548. data/lib/node_modules/npm/node_modules/minimatch/LICENSE +23 -0
  549. data/lib/node_modules/npm/node_modules/minimatch/README.md +218 -0
  550. data/lib/node_modules/npm/node_modules/minimatch/minimatch.js +1055 -0
  551. data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/LICENSE +27 -0
  552. data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/README.md +53 -0
  553. data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/bench.js +283 -0
  554. data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/package.json +42 -0
  555. data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/sigmund.js +39 -0
  556. data/lib/node_modules/npm/node_modules/minimatch/package.json +40 -0
  557. data/lib/node_modules/npm/node_modules/mkdirp/LICENSE +21 -0
  558. data/lib/node_modules/npm/node_modules/mkdirp/README.markdown +63 -0
  559. data/lib/node_modules/npm/node_modules/mkdirp/examples/pow.js +6 -0
  560. data/lib/node_modules/npm/node_modules/mkdirp/index.js +82 -0
  561. data/lib/node_modules/npm/node_modules/mkdirp/package.json +33 -0
  562. data/lib/node_modules/npm/node_modules/node-gyp/LICENSE +24 -0
  563. data/lib/node_modules/npm/node_modules/node-gyp/README.md +163 -0
  564. data/lib/node_modules/npm/node_modules/node-gyp/addon.gypi +59 -0
  565. data/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js +133 -0
  566. data/lib/node_modules/npm/node_modules/node-gyp/gyp/AUTHORS +10 -0
  567. data/lib/node_modules/npm/node_modules/node-gyp/gyp/DEPS +24 -0
  568. data/lib/node_modules/npm/node_modules/node-gyp/gyp/LICENSE +27 -0
  569. data/lib/node_modules/npm/node_modules/node-gyp/gyp/OWNERS +1 -0
  570. data/lib/node_modules/npm/node_modules/node-gyp/gyp/PRESUBMIT.py +115 -0
  571. data/lib/node_modules/npm/node_modules/node-gyp/gyp/buildbot/buildbot_run.py +148 -0
  572. data/lib/node_modules/npm/node_modules/node-gyp/gyp/codereview.settings +10 -0
  573. data/lib/node_modules/npm/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +12 -0
  574. data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp +7 -0
  575. data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp.bat +5 -0
  576. data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_dummy.c +7 -0
  577. data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py +18 -0
  578. data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyptest.py +274 -0
  579. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +340 -0
  580. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +208 -0
  581. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1051 -0
  582. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1482 -0
  583. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +58 -0
  584. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +147 -0
  585. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +267 -0
  586. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +407 -0
  587. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +537 -0
  588. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common.py +513 -0
  589. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +72 -0
  590. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +157 -0
  591. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +103 -0
  592. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +49 -0
  593. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
  594. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1069 -0
  595. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +81 -0
  596. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +308 -0
  597. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +87 -0
  598. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +56 -0
  599. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2172 -0
  600. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3270 -0
  601. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +37 -0
  602. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2150 -0
  603. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +44 -0
  604. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1224 -0
  605. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +23 -0
  606. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py +2809 -0
  607. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +90 -0
  608. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +264 -0
  609. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +870 -0
  610. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +160 -0
  611. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +176 -0
  612. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1324 -0
  613. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +2888 -0
  614. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +69 -0
  615. data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylintrc +307 -0
  616. data/lib/node_modules/npm/node_modules/node-gyp/gyp/samples/samples +81 -0
  617. data/lib/node_modules/npm/node_modules/node-gyp/gyp/samples/samples.bat +5 -0
  618. data/lib/node_modules/npm/node_modules/node-gyp/gyp/setup.py +19 -0
  619. data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/README +15 -0
  620. data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/Xcode/README +5 -0
  621. data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.pbfilespec +27 -0
  622. data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.xclangspec +226 -0
  623. data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/README +12 -0
  624. data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/gyp-tests.el +63 -0
  625. data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/gyp.el +252 -0
  626. data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/run-unit-tests.sh +7 -0
  627. data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp +1105 -0
  628. data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp.fontified +1107 -0
  629. data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/graphviz.py +100 -0
  630. data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/pretty_gyp.py +155 -0
  631. data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/pretty_sln.py +168 -0
  632. data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/pretty_vcproj.py +329 -0
  633. data/lib/node_modules/npm/node_modules/node-gyp/lib/build.js +275 -0
  634. data/lib/node_modules/npm/node_modules/node-gyp/lib/clean.js +22 -0
  635. data/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js +344 -0
  636. data/lib/node_modules/npm/node_modules/node-gyp/lib/install.js +362 -0
  637. data/lib/node_modules/npm/node_modules/node-gyp/lib/list.js +33 -0
  638. data/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js +225 -0
  639. data/lib/node_modules/npm/node_modules/node-gyp/lib/rebuild.js +16 -0
  640. data/lib/node_modules/npm/node_modules/node-gyp/lib/remove.js +56 -0
  641. data/lib/node_modules/npm/node_modules/node-gyp/package.json +55 -0
  642. data/lib/node_modules/npm/node_modules/nopt/LICENSE +23 -0
  643. data/lib/node_modules/npm/node_modules/nopt/README.md +210 -0
  644. data/lib/node_modules/npm/node_modules/nopt/bin/nopt.js +51 -0
  645. data/lib/node_modules/npm/node_modules/nopt/examples/my-program.js +30 -0
  646. data/lib/node_modules/npm/node_modules/nopt/lib/nopt.js +407 -0
  647. data/lib/node_modules/npm/node_modules/nopt/package.json +39 -0
  648. data/lib/node_modules/npm/node_modules/npm-install-checks/LICENSE +234 -0
  649. data/lib/node_modules/npm/node_modules/npm-install-checks/README.md +25 -0
  650. data/lib/node_modules/npm/node_modules/npm-install-checks/index.js +146 -0
  651. data/lib/node_modules/npm/node_modules/npm-install-checks/package.json +43 -0
  652. data/lib/node_modules/npm/node_modules/npm-registry-client/LICENSE +27 -0
  653. data/lib/node_modules/npm/node_modules/npm-registry-client/README.md +176 -0
  654. data/lib/node_modules/npm/node_modules/npm-registry-client/index.js +55 -0
  655. data/lib/node_modules/npm/node_modules/npm-registry-client/lib/adduser.js +138 -0
  656. data/lib/node_modules/npm/node_modules/npm-registry-client/lib/bugs.js +9 -0
  657. data/lib/node_modules/npm/node_modules/npm-registry-client/lib/deprecate.js +28 -0
  658. data/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js +184 -0
  659. data/lib/node_modules/npm/node_modules/npm-registry-client/lib/publish.js +156 -0
  660. data/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js +270 -0
  661. data/lib/node_modules/npm/node_modules/npm-registry-client/lib/star.js +29 -0
  662. data/lib/node_modules/npm/node_modules/npm-registry-client/lib/stars.js +9 -0
  663. data/lib/node_modules/npm/node_modules/npm-registry-client/lib/tag.js +6 -0
  664. data/lib/node_modules/npm/node_modules/npm-registry-client/lib/unpublish.js +104 -0
  665. data/lib/node_modules/npm/node_modules/npm-registry-client/lib/upload.js +22 -0
  666. data/lib/node_modules/npm/node_modules/npm-registry-client/package.json +43 -0
  667. data/lib/node_modules/npm/node_modules/npm-user-validate/LICENSE +27 -0
  668. data/lib/node_modules/npm/node_modules/npm-user-validate/README.md +6 -0
  669. data/lib/node_modules/npm/node_modules/npm-user-validate/npm-user-validate.js +49 -0
  670. data/lib/node_modules/npm/node_modules/npm-user-validate/package.json +37 -0
  671. data/lib/node_modules/npm/node_modules/npmconf/LICENSE +27 -0
  672. data/lib/node_modules/npm/node_modules/npmconf/README.md +33 -0
  673. data/lib/node_modules/npm/node_modules/npmconf/config-defs.js +353 -0
  674. data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/LICENCE +22 -0
  675. data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/index.js +282 -0
  676. data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/LICENSE +23 -0
  677. data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/README.md +3 -0
  678. data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/package.json +33 -0
  679. data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/proto-list.js +81 -0
  680. data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/package.json +32 -0
  681. data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/readme.markdown +228 -0
  682. data/lib/node_modules/npm/node_modules/npmconf/npmconf.js +338 -0
  683. data/lib/node_modules/npm/node_modules/npmconf/package.json +50 -0
  684. data/lib/node_modules/npm/node_modules/npmlog/LICENSE +27 -0
  685. data/lib/node_modules/npm/node_modules/npmlog/README.md +153 -0
  686. data/lib/node_modules/npm/node_modules/npmlog/example.js +39 -0
  687. data/lib/node_modules/npm/node_modules/npmlog/log.js +154 -0
  688. data/lib/node_modules/npm/node_modules/npmlog/package.json +32 -0
  689. data/lib/node_modules/npm/node_modules/once/LICENSE +27 -0
  690. data/lib/node_modules/npm/node_modules/once/README.md +51 -0
  691. data/lib/node_modules/npm/node_modules/once/once.js +20 -0
  692. data/lib/node_modules/npm/node_modules/once/package.json +39 -0
  693. data/lib/node_modules/npm/node_modules/opener/LICENSE.txt +14 -0
  694. data/lib/node_modules/npm/node_modules/opener/README.md +44 -0
  695. data/lib/node_modules/npm/node_modules/opener/opener.js +55 -0
  696. data/lib/node_modules/npm/node_modules/opener/package.json +34 -0
  697. data/lib/node_modules/npm/node_modules/osenv/LICENSE +25 -0
  698. data/lib/node_modules/npm/node_modules/osenv/README.md +63 -0
  699. data/lib/node_modules/npm/node_modules/osenv/osenv.js +80 -0
  700. data/lib/node_modules/npm/node_modules/osenv/package.json +38 -0
  701. data/lib/node_modules/npm/node_modules/path-is-inside/LICENSE.txt +14 -0
  702. data/lib/node_modules/npm/node_modules/path-is-inside/README.md +35 -0
  703. data/lib/node_modules/npm/node_modules/path-is-inside/lib/path-is-inside.js +24 -0
  704. data/lib/node_modules/npm/node_modules/path-is-inside/package.json +39 -0
  705. data/lib/node_modules/npm/node_modules/read-installed/LICENSE +16 -0
  706. data/lib/node_modules/npm/node_modules/read-installed/README.md +25 -0
  707. data/lib/node_modules/npm/node_modules/read-installed/package.json +39 -0
  708. data/lib/node_modules/npm/node_modules/read-installed/read-installed.js +338 -0
  709. data/lib/node_modules/npm/node_modules/read-package-json/LICENSE +15 -0
  710. data/lib/node_modules/npm/node_modules/read-package-json/README.md +166 -0
  711. data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/AUTHORS +4 -0
  712. data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/LICENSE +30 -0
  713. data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/README.md +101 -0
  714. data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/core_module_names.json +29 -0
  715. data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/extract_description.js +14 -0
  716. data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/fixer.js +392 -0
  717. data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/normalize.js +36 -0
  718. data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/safe_format.js +9 -0
  719. data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/typos.json +25 -0
  720. data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/warning_messages.json +28 -0
  721. data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/package.json +53 -0
  722. data/lib/node_modules/npm/node_modules/read-package-json/package.json +39 -0
  723. data/lib/node_modules/npm/node_modules/read-package-json/read-json.js +368 -0
  724. data/lib/node_modules/npm/node_modules/read/LICENCE +25 -0
  725. data/lib/node_modules/npm/node_modules/read/README.md +53 -0
  726. data/lib/node_modules/npm/node_modules/read/example/example.js +13 -0
  727. data/lib/node_modules/npm/node_modules/read/lib/read.js +113 -0
  728. data/lib/node_modules/npm/node_modules/read/node_modules/mute-stream/LICENSE +27 -0
  729. data/lib/node_modules/npm/node_modules/read/node_modules/mute-stream/README.md +68 -0
  730. data/lib/node_modules/npm/node_modules/read/node_modules/mute-stream/mute.js +140 -0
  731. data/lib/node_modules/npm/node_modules/read/node_modules/mute-stream/package.json +37 -0
  732. data/lib/node_modules/npm/node_modules/read/package.json +35 -0
  733. data/lib/node_modules/npm/node_modules/read/rs.js +4 -0
  734. data/lib/node_modules/npm/node_modules/request/LICENSE +55 -0
  735. data/lib/node_modules/npm/node_modules/request/README.md +364 -0
  736. data/lib/node_modules/npm/node_modules/request/index.js +157 -0
  737. data/lib/node_modules/npm/node_modules/request/lib/copy.js +8 -0
  738. data/lib/node_modules/npm/node_modules/request/lib/debug.js +7 -0
  739. data/lib/node_modules/npm/node_modules/request/lib/getSafe.js +34 -0
  740. data/lib/node_modules/npm/node_modules/request/lib/optional.js +5 -0
  741. data/lib/node_modules/npm/node_modules/request/node_modules/aws-sign2/LICENSE +55 -0
  742. data/lib/node_modules/npm/node_modules/request/node_modules/aws-sign2/README.md +4 -0
  743. data/lib/node_modules/npm/node_modules/request/node_modules/aws-sign2/index.js +202 -0
  744. data/lib/node_modules/npm/node_modules/request/node_modules/aws-sign2/package.json +28 -0
  745. data/lib/node_modules/npm/node_modules/request/node_modules/forever-agent/LICENSE +55 -0
  746. data/lib/node_modules/npm/node_modules/request/node_modules/forever-agent/README.md +4 -0
  747. data/lib/node_modules/npm/node_modules/request/node_modules/forever-agent/index.js +119 -0
  748. data/lib/node_modules/npm/node_modules/request/node_modules/forever-agent/package.json +28 -0
  749. data/lib/node_modules/npm/node_modules/request/node_modules/form-data/License +19 -0
  750. data/lib/node_modules/npm/node_modules/request/node_modules/form-data/Readme.md +163 -0
  751. data/lib/node_modules/npm/node_modules/request/node_modules/form-data/lib/form_data.js +325 -0
  752. data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/LICENSE +19 -0
  753. data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/README.md +1414 -0
  754. data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/component.json +11 -0
  755. data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/lib/async.js +955 -0
  756. data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/package.json +43 -0
  757. data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/License +19 -0
  758. data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/Makefile +7 -0
  759. data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/Readme.md +132 -0
  760. data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/lib/combined_stream.js +185 -0
  761. data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/License +19 -0
  762. data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/Makefile +7 -0
  763. data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/Readme.md +154 -0
  764. 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
  765. data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/package.json +31 -0
  766. data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/package.json +32 -0
  767. data/lib/node_modules/npm/node_modules/request/node_modules/form-data/package.json +46 -0
  768. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/LICENSE +24 -0
  769. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/Makefile +10 -0
  770. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/README.md +627 -0
  771. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/example/usage.js +78 -0
  772. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/images/hawk.png +0 -0
  773. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/images/logo.png +0 -0
  774. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/index.js +1 -0
  775. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/browser.js +485 -0
  776. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/client.js +367 -0
  777. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/crypto.js +111 -0
  778. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/index.js +15 -0
  779. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/server.js +524 -0
  780. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/utils.js +183 -0
  781. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/LICENSE +24 -0
  782. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/Makefile +11 -0
  783. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/README.md +6 -0
  784. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/images/boom.png +0 -0
  785. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/index.js +1 -0
  786. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js +207 -0
  787. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/package.json +47 -0
  788. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/LICENSE +24 -0
  789. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/Makefile +11 -0
  790. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/README.md +6 -0
  791. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/index.js +1 -0
  792. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/lib/index.js +68 -0
  793. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/package.json +48 -0
  794. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/LICENSE +33 -0
  795. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/Makefile +10 -0
  796. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/README.md +436 -0
  797. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png +0 -0
  798. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/index.js +1 -0
  799. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/lib/escape.js +132 -0
  800. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/lib/index.js +585 -0
  801. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/package.json +49 -0
  802. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/LICENSE +24 -0
  803. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/Makefile +11 -0
  804. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/README.md +68 -0
  805. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/examples/offset.js +16 -0
  806. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/examples/time.js +25 -0
  807. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/index.js +1 -0
  808. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/lib/index.js +409 -0
  809. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/package.json +48 -0
  810. data/lib/node_modules/npm/node_modules/request/node_modules/hawk/package.json +53 -0
  811. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/LICENSE +18 -0
  812. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/README.md +75 -0
  813. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/http_signing.md +296 -0
  814. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/index.js +25 -0
  815. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/parser.js +304 -0
  816. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/signer.js +179 -0
  817. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/util.js +249 -0
  818. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/verify.js +42 -0
  819. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/LICENSE +19 -0
  820. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/README.md +50 -0
  821. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/errors.js +13 -0
  822. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/index.js +27 -0
  823. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/reader.js +267 -0
  824. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/types.js +36 -0
  825. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/writer.js +317 -0
  826. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/index.js +20 -0
  827. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/package.json +43 -0
  828. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/tst/ber/reader.test.js +172 -0
  829. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/tst/ber/writer.test.js +296 -0
  830. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/assert-plus/README.md +126 -0
  831. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/assert-plus/assert.js +196 -0
  832. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/assert-plus/package.json +20 -0
  833. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/CHANGELOG +71 -0
  834. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/LICENSE +24 -0
  835. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/README +82 -0
  836. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/README.old +298 -0
  837. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/ctf.js +245 -0
  838. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/ctio.js +1485 -0
  839. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/ctype.js +944 -0
  840. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/man/man3ctype/ctio.3ctype +241 -0
  841. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/package.json +18 -0
  842. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tools/jsl.conf +129 -0
  843. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tools/jsstyle +839 -0
  844. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/float.json +13 -0
  845. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/int.json +13 -0
  846. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/psinfo.json +104 -0
  847. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/struct.json +19 -0
  848. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.fail.js +39 -0
  849. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.float.js +14 -0
  850. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.int.js +14 -0
  851. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.psinfo.js +17 -0
  852. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.struct.js +18 -0
  853. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.typedef.js +15 -0
  854. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/typedef.json +14 -0
  855. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/float/tst.rfloat.js +767 -0
  856. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/float/tst.wfloat.js +753 -0
  857. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.64.js +638 -0
  858. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.rint.js +101 -0
  859. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.wbounds.js +53 -0
  860. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.wint.js +92 -0
  861. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.64.js +451 -0
  862. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.roundtrip.js +81 -0
  863. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.ruint.js +95 -0
  864. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.wuint.js +156 -0
  865. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.basicr.js +50 -0
  866. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.basicw.js +44 -0
  867. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.char.js +42 -0
  868. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.endian.js +45 -0
  869. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.oldwrite.js +28 -0
  870. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.readSize.js +128 -0
  871. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.structw.js +28 -0
  872. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.writeStruct.js +31 -0
  873. data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/package.json +36 -0
  874. data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/LICENSE +27 -0
  875. data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/README.md +49 -0
  876. data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/package.json +33 -0
  877. data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/stringify.js +39 -0
  878. data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/test.js +128 -0
  879. data/lib/node_modules/npm/node_modules/request/node_modules/mime/LICENSE +19 -0
  880. data/lib/node_modules/npm/node_modules/request/node_modules/mime/README.md +66 -0
  881. data/lib/node_modules/npm/node_modules/request/node_modules/mime/mime.js +114 -0
  882. data/lib/node_modules/npm/node_modules/request/node_modules/mime/package.json +36 -0
  883. data/lib/node_modules/npm/node_modules/request/node_modules/mime/test.js +84 -0
  884. data/lib/node_modules/npm/node_modules/request/node_modules/mime/types/mime.types +1588 -0
  885. data/lib/node_modules/npm/node_modules/request/node_modules/mime/types/node.types +77 -0
  886. data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/LICENSE.md +2 -0
  887. data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/README.md +207 -0
  888. data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/README.md +53 -0
  889. data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/bench.gnu +174 -0
  890. data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/bench.sh +34 -0
  891. data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/benchmark-native.c +34 -0
  892. data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/benchmark.js +84 -0
  893. data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/component.json +18 -0
  894. data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/package.json +35 -0
  895. data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/uuid.js +245 -0
  896. data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/LICENSE +55 -0
  897. data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/README.md +4 -0
  898. data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/index.js +43 -0
  899. data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/package.json +31 -0
  900. data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/test.js +49 -0
  901. data/lib/node_modules/npm/node_modules/request/node_modules/qs/Readme.md +58 -0
  902. data/lib/node_modules/npm/node_modules/request/node_modules/qs/index.js +366 -0
  903. data/lib/node_modules/npm/node_modules/request/node_modules/qs/package.json +38 -0
  904. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/LICENSE +78 -0
  905. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/README.md +380 -0
  906. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/generate-pubsuffix.js +230 -0
  907. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/lib/cookie.js +947 -0
  908. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/lib/memstore.js +102 -0
  909. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/lib/pubsuffix.js +69 -0
  910. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/LICENSE-GPL.txt +278 -0
  911. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/LICENSE-MIT.txt +20 -0
  912. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/package.json +73 -0
  913. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/punycode.js +508 -0
  914. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/punycode.min.js +2 -0
  915. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/LICENSE.txt +20 -0
  916. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/README.md +35 -0
  917. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/doc/README.md +69 -0
  918. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/doc/parse.php +35 -0
  919. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/docdown.php +38 -0
  920. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/src/DocDown/Alias.php +226 -0
  921. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/src/DocDown/Entry.php +442 -0
  922. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/src/DocDown/Generator.php +563 -0
  923. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/package.json +46 -0
  924. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/public-suffix.txt +5229 -0
  925. data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/test.js +1340 -0
  926. data/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/LICENSE +55 -0
  927. data/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/README.md +4 -0
  928. data/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js +227 -0
  929. data/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/package.json +28 -0
  930. data/lib/node_modules/npm/node_modules/request/package.json +57 -0
  931. data/lib/node_modules/npm/node_modules/request/request.js +1260 -0
  932. data/lib/node_modules/npm/node_modules/retry/License +21 -0
  933. data/lib/node_modules/npm/node_modules/retry/Makefile +7 -0
  934. data/lib/node_modules/npm/node_modules/retry/Readme.md +167 -0
  935. data/lib/node_modules/npm/node_modules/retry/equation.gif +0 -0
  936. data/lib/node_modules/npm/node_modules/retry/example/dns.js +31 -0
  937. data/lib/node_modules/npm/node_modules/retry/index.js +1 -0
  938. data/lib/node_modules/npm/node_modules/retry/lib/retry.js +50 -0
  939. data/lib/node_modules/npm/node_modules/retry/lib/retry_operation.js +109 -0
  940. data/lib/node_modules/npm/node_modules/retry/package.json +29 -0
  941. data/lib/node_modules/npm/node_modules/rimraf/AUTHORS +6 -0
  942. data/lib/node_modules/npm/node_modules/rimraf/LICENSE +23 -0
  943. data/lib/node_modules/npm/node_modules/rimraf/README.md +30 -0
  944. data/lib/node_modules/npm/node_modules/rimraf/bin.js +33 -0
  945. data/lib/node_modules/npm/node_modules/rimraf/package.json +56 -0
  946. data/lib/node_modules/npm/node_modules/rimraf/rimraf.js +178 -0
  947. data/lib/node_modules/npm/node_modules/semver/LICENSE +27 -0
  948. data/lib/node_modules/npm/node_modules/semver/Makefile +24 -0
  949. data/lib/node_modules/npm/node_modules/semver/README.md +142 -0
  950. data/lib/node_modules/npm/node_modules/semver/bin/semver +124 -0
  951. data/lib/node_modules/npm/node_modules/semver/foot.js +6 -0
  952. data/lib/node_modules/npm/node_modules/semver/head.js +2 -0
  953. data/lib/node_modules/npm/node_modules/semver/package.json +32 -0
  954. data/lib/node_modules/npm/node_modules/semver/semver.browser.js +1007 -0
  955. data/lib/node_modules/npm/node_modules/semver/semver.browser.js.gz +0 -0
  956. data/lib/node_modules/npm/node_modules/semver/semver.js +1011 -0
  957. data/lib/node_modules/npm/node_modules/semver/semver.min.js +1 -0
  958. data/lib/node_modules/npm/node_modules/semver/semver.min.js.gz +0 -0
  959. data/lib/node_modules/npm/node_modules/sha/LICENSE +46 -0
  960. data/lib/node_modules/npm/node_modules/sha/README.md +49 -0
  961. data/lib/node_modules/npm/node_modules/sha/index.js +120 -0
  962. data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/LICENSE +27 -0
  963. data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/README.md +768 -0
  964. data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/duplex.js +1 -0
  965. data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/float.patch +68 -0
  966. data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_duplex.js +69 -0
  967. data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_passthrough.js +41 -0
  968. data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_readable.js +927 -0
  969. data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_transform.js +205 -0
  970. data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_writable.js +369 -0
  971. data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/package.json +36 -0
  972. data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/passthrough.js +1 -0
  973. data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/readable.js +6 -0
  974. data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/transform.js +1 -0
  975. data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/writable.js +1 -0
  976. data/lib/node_modules/npm/node_modules/sha/package.json +32 -0
  977. data/lib/node_modules/npm/node_modules/slide/LICENSE +15 -0
  978. data/lib/node_modules/npm/node_modules/slide/README.md +143 -0
  979. data/lib/node_modules/npm/node_modules/slide/index.js +1 -0
  980. data/lib/node_modules/npm/node_modules/slide/lib/async-map-ordered.js +65 -0
  981. data/lib/node_modules/npm/node_modules/slide/lib/async-map.js +56 -0
  982. data/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js +16 -0
  983. data/lib/node_modules/npm/node_modules/slide/lib/chain.js +20 -0
  984. data/lib/node_modules/npm/node_modules/slide/lib/slide.js +3 -0
  985. data/lib/node_modules/npm/node_modules/slide/package.json +35 -0
  986. data/lib/node_modules/npm/node_modules/tar/LICENCE +25 -0
  987. data/lib/node_modules/npm/node_modules/tar/README.md +46 -0
  988. data/lib/node_modules/npm/node_modules/tar/examples/extracter.js +11 -0
  989. data/lib/node_modules/npm/node_modules/tar/examples/reader.js +36 -0
  990. data/lib/node_modules/npm/node_modules/tar/lib/buffer-entry.js +30 -0
  991. data/lib/node_modules/npm/node_modules/tar/lib/entry-writer.js +169 -0
  992. data/lib/node_modules/npm/node_modules/tar/lib/entry.js +213 -0
  993. data/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js +191 -0
  994. data/lib/node_modules/npm/node_modules/tar/lib/extended-header.js +140 -0
  995. data/lib/node_modules/npm/node_modules/tar/lib/extract.js +78 -0
  996. data/lib/node_modules/npm/node_modules/tar/lib/global-header-writer.js +14 -0
  997. data/lib/node_modules/npm/node_modules/tar/lib/header.js +385 -0
  998. data/lib/node_modules/npm/node_modules/tar/lib/pack.js +231 -0
  999. data/lib/node_modules/npm/node_modules/tar/lib/parse.js +270 -0
  1000. data/lib/node_modules/npm/node_modules/tar/package.json +40 -0
  1001. data/lib/node_modules/npm/node_modules/tar/tar.js +173 -0
  1002. data/lib/node_modules/npm/node_modules/text-table/LICENSE +18 -0
  1003. data/lib/node_modules/npm/node_modules/text-table/example/align.js +8 -0
  1004. data/lib/node_modules/npm/node_modules/text-table/example/center.js +8 -0
  1005. data/lib/node_modules/npm/node_modules/text-table/example/dotalign.js +9 -0
  1006. data/lib/node_modules/npm/node_modules/text-table/example/doubledot.js +11 -0
  1007. data/lib/node_modules/npm/node_modules/text-table/example/table.js +6 -0
  1008. data/lib/node_modules/npm/node_modules/text-table/index.js +86 -0
  1009. data/lib/node_modules/npm/node_modules/text-table/package.json +52 -0
  1010. data/lib/node_modules/npm/node_modules/text-table/readme.markdown +134 -0
  1011. data/lib/node_modules/npm/node_modules/uid-number/LICENCE +25 -0
  1012. data/lib/node_modules/npm/node_modules/uid-number/README.md +17 -0
  1013. data/lib/node_modules/npm/node_modules/uid-number/get-uid-gid.js +24 -0
  1014. data/lib/node_modules/npm/node_modules/uid-number/package.json +35 -0
  1015. data/lib/node_modules/npm/node_modules/uid-number/uid-number.js +54 -0
  1016. data/lib/node_modules/npm/node_modules/which/LICENSE +23 -0
  1017. data/lib/node_modules/npm/node_modules/which/README.md +5 -0
  1018. data/lib/node_modules/npm/node_modules/which/bin/which +14 -0
  1019. data/lib/node_modules/npm/node_modules/which/package.json +34 -0
  1020. data/lib/node_modules/npm/node_modules/which/which.js +104 -0
  1021. data/lib/node_modules/npm/package.json +155 -0
  1022. data/lib/node_modules/npm/scripts/clean-old.sh +165 -0
  1023. data/lib/node_modules/npm/scripts/doc-build.sh +84 -0
  1024. data/lib/node_modules/npm/scripts/index-build.js +62 -0
  1025. data/lib/node_modules/npm/scripts/install.sh +313 -0
  1026. data/lib/node_modules/npm/scripts/release.sh +36 -0
  1027. data/lib/node_modules/npm/scripts/relocate.sh +26 -0
  1028. metadata +1052 -36
  1029. checksums.yaml +0 -7
@@ -0,0 +1,72 @@
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
+ """Unit tests for the common.py file."""
8
+
9
+ import gyp.common
10
+ import unittest
11
+ import sys
12
+
13
+
14
+ class TestTopologicallySorted(unittest.TestCase):
15
+ def test_Valid(self):
16
+ """Test that sorting works on a valid graph with one possible order."""
17
+ graph = {
18
+ 'a': ['b', 'c'],
19
+ 'b': [],
20
+ 'c': ['d'],
21
+ 'd': ['b'],
22
+ }
23
+ def GetEdge(node):
24
+ return tuple(graph[node])
25
+ self.assertEqual(
26
+ gyp.common.TopologicallySorted(graph.keys(), GetEdge),
27
+ ['a', 'c', 'd', 'b'])
28
+
29
+ def test_Cycle(self):
30
+ """Test that an exception is thrown on a cyclic graph."""
31
+ graph = {
32
+ 'a': ['b'],
33
+ 'b': ['c'],
34
+ 'c': ['d'],
35
+ 'd': ['a'],
36
+ }
37
+ def GetEdge(node):
38
+ return tuple(graph[node])
39
+ self.assertRaises(
40
+ gyp.common.CycleError, gyp.common.TopologicallySorted,
41
+ graph.keys(), GetEdge)
42
+
43
+
44
+ class TestGetFlavor(unittest.TestCase):
45
+ """Test that gyp.common.GetFlavor works as intended"""
46
+ original_platform = ''
47
+
48
+ def setUp(self):
49
+ self.original_platform = sys.platform
50
+
51
+ def tearDown(self):
52
+ sys.platform = self.original_platform
53
+
54
+ def assertFlavor(self, expected, argument, param):
55
+ sys.platform = argument
56
+ self.assertEqual(expected, gyp.common.GetFlavor(param))
57
+
58
+ def test_platform_default(self):
59
+ self.assertFlavor('freebsd', 'freebsd9' , {})
60
+ self.assertFlavor('freebsd', 'freebsd10', {})
61
+ self.assertFlavor('openbsd', 'openbsd5' , {})
62
+ self.assertFlavor('solaris', 'sunos5' , {});
63
+ self.assertFlavor('solaris', 'sunos' , {});
64
+ self.assertFlavor('linux' , 'linux2' , {});
65
+ self.assertFlavor('linux' , 'linux3' , {});
66
+
67
+ def test_param(self):
68
+ self.assertFlavor('foobar', 'linux2' , {'flavor': 'foobar'})
69
+
70
+
71
+ if __name__ == '__main__':
72
+ unittest.main()
@@ -0,0 +1,157 @@
1
+ # Copyright (c) 2011 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
+ import re
6
+ import os
7
+
8
+
9
+ def XmlToString(content, encoding='utf-8', pretty=False):
10
+ """ Writes the XML content to disk, touching the file only if it has changed.
11
+
12
+ Visual Studio files have a lot of pre-defined structures. This function makes
13
+ it easy to represent these structures as Python data structures, instead of
14
+ having to create a lot of function calls.
15
+
16
+ Each XML element of the content is represented as a list composed of:
17
+ 1. The name of the element, a string,
18
+ 2. The attributes of the element, a dictionary (optional), and
19
+ 3+. The content of the element, if any. Strings are simple text nodes and
20
+ lists are child elements.
21
+
22
+ Example 1:
23
+ <test/>
24
+ becomes
25
+ ['test']
26
+
27
+ Example 2:
28
+ <myelement a='value1' b='value2'>
29
+ <childtype>This is</childtype>
30
+ <childtype>it!</childtype>
31
+ </myelement>
32
+
33
+ becomes
34
+ ['myelement', {'a':'value1', 'b':'value2'},
35
+ ['childtype', 'This is'],
36
+ ['childtype', 'it!'],
37
+ ]
38
+
39
+ Args:
40
+ content: The structured content to be converted.
41
+ encoding: The encoding to report on the first XML line.
42
+ pretty: True if we want pretty printing with indents and new lines.
43
+
44
+ Returns:
45
+ The XML content as a string.
46
+ """
47
+ # We create a huge list of all the elements of the file.
48
+ xml_parts = ['<?xml version="1.0" encoding="%s"?>' % encoding]
49
+ if pretty:
50
+ xml_parts.append('\n')
51
+ _ConstructContentList(xml_parts, content, pretty)
52
+
53
+ # Convert it to a string
54
+ return ''.join(xml_parts)
55
+
56
+
57
+ def _ConstructContentList(xml_parts, specification, pretty, level=0):
58
+ """ Appends the XML parts corresponding to the specification.
59
+
60
+ Args:
61
+ xml_parts: A list of XML parts to be appended to.
62
+ specification: The specification of the element. See EasyXml docs.
63
+ pretty: True if we want pretty printing with indents and new lines.
64
+ level: Indentation level.
65
+ """
66
+ # The first item in a specification is the name of the element.
67
+ if pretty:
68
+ indentation = ' ' * level
69
+ new_line = '\n'
70
+ else:
71
+ indentation = ''
72
+ new_line = ''
73
+ name = specification[0]
74
+ if not isinstance(name, str):
75
+ raise Exception('The first item of an EasyXml specification should be '
76
+ 'a string. Specification was ' + str(specification))
77
+ xml_parts.append(indentation + '<' + name)
78
+
79
+ # Optionally in second position is a dictionary of the attributes.
80
+ rest = specification[1:]
81
+ if rest and isinstance(rest[0], dict):
82
+ for at, val in sorted(rest[0].iteritems()):
83
+ xml_parts.append(' %s="%s"' % (at, _XmlEscape(val, attr=True)))
84
+ rest = rest[1:]
85
+ if rest:
86
+ xml_parts.append('>')
87
+ all_strings = reduce(lambda x, y: x and isinstance(y, str), rest, True)
88
+ multi_line = not all_strings
89
+ if multi_line and new_line:
90
+ xml_parts.append(new_line)
91
+ for child_spec in rest:
92
+ # If it's a string, append a text node.
93
+ # Otherwise recurse over that child definition
94
+ if isinstance(child_spec, str):
95
+ xml_parts.append(_XmlEscape(child_spec))
96
+ else:
97
+ _ConstructContentList(xml_parts, child_spec, pretty, level + 1)
98
+ if multi_line and indentation:
99
+ xml_parts.append(indentation)
100
+ xml_parts.append('</%s>%s' % (name, new_line))
101
+ else:
102
+ xml_parts.append('/>%s' % new_line)
103
+
104
+
105
+ def WriteXmlIfChanged(content, path, encoding='utf-8', pretty=False,
106
+ win32=False):
107
+ """ Writes the XML content to disk, touching the file only if it has changed.
108
+
109
+ Args:
110
+ content: The structured content to be written.
111
+ path: Location of the file.
112
+ encoding: The encoding to report on the first line of the XML file.
113
+ pretty: True if we want pretty printing with indents and new lines.
114
+ """
115
+ xml_string = XmlToString(content, encoding, pretty)
116
+ if win32 and os.linesep != '\r\n':
117
+ xml_string = xml_string.replace('\n', '\r\n')
118
+
119
+ # Get the old content
120
+ try:
121
+ f = open(path, 'r')
122
+ existing = f.read()
123
+ f.close()
124
+ except:
125
+ existing = None
126
+
127
+ # It has changed, write it
128
+ if existing != xml_string:
129
+ f = open(path, 'w')
130
+ f.write(xml_string)
131
+ f.close()
132
+
133
+
134
+ _xml_escape_map = {
135
+ '"': '&quot;',
136
+ "'": '&apos;',
137
+ '<': '&lt;',
138
+ '>': '&gt;',
139
+ '&': '&amp;',
140
+ '\n': '&#xA;',
141
+ '\r': '&#xD;',
142
+ }
143
+
144
+
145
+ _xml_escape_re = re.compile(
146
+ "(%s)" % "|".join(map(re.escape, _xml_escape_map.keys())))
147
+
148
+
149
+ def _XmlEscape(value, attr=False):
150
+ """ Escape a string for inclusion in XML."""
151
+ def replace(match):
152
+ m = match.string[match.start() : match.end()]
153
+ # don't replace single quotes in attrs
154
+ if attr and m == "'":
155
+ return m
156
+ return _xml_escape_map[m]
157
+ return _xml_escape_re.sub(replace, value)
@@ -0,0 +1,103 @@
1
+ #!/usr/bin/env python
2
+
3
+ # Copyright (c) 2011 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
+ """ Unit tests for the easy_xml.py file. """
8
+
9
+ import gyp.easy_xml as easy_xml
10
+ import unittest
11
+ import StringIO
12
+
13
+
14
+ class TestSequenceFunctions(unittest.TestCase):
15
+
16
+ def setUp(self):
17
+ self.stderr = StringIO.StringIO()
18
+
19
+ def test_EasyXml_simple(self):
20
+ self.assertEqual(
21
+ easy_xml.XmlToString(['test']),
22
+ '<?xml version="1.0" encoding="utf-8"?><test/>')
23
+
24
+ self.assertEqual(
25
+ easy_xml.XmlToString(['test'], encoding='Windows-1252'),
26
+ '<?xml version="1.0" encoding="Windows-1252"?><test/>')
27
+
28
+ def test_EasyXml_simple_with_attributes(self):
29
+ self.assertEqual(
30
+ easy_xml.XmlToString(['test2', {'a': 'value1', 'b': 'value2'}]),
31
+ '<?xml version="1.0" encoding="utf-8"?><test2 a="value1" b="value2"/>')
32
+
33
+ def test_EasyXml_escaping(self):
34
+ original = '<test>\'"\r&\nfoo'
35
+ converted = '&lt;test&gt;\'&quot;&#xD;&amp;&#xA;foo'
36
+ converted_apos = converted.replace("'", '&apos;')
37
+ self.assertEqual(
38
+ easy_xml.XmlToString(['test3', {'a': original}, original]),
39
+ '<?xml version="1.0" encoding="utf-8"?><test3 a="%s">%s</test3>' %
40
+ (converted, converted_apos))
41
+
42
+ def test_EasyXml_pretty(self):
43
+ self.assertEqual(
44
+ easy_xml.XmlToString(
45
+ ['test3',
46
+ ['GrandParent',
47
+ ['Parent1',
48
+ ['Child']
49
+ ],
50
+ ['Parent2']
51
+ ]
52
+ ],
53
+ pretty=True),
54
+ '<?xml version="1.0" encoding="utf-8"?>\n'
55
+ '<test3>\n'
56
+ ' <GrandParent>\n'
57
+ ' <Parent1>\n'
58
+ ' <Child/>\n'
59
+ ' </Parent1>\n'
60
+ ' <Parent2/>\n'
61
+ ' </GrandParent>\n'
62
+ '</test3>\n')
63
+
64
+
65
+ def test_EasyXml_complex(self):
66
+ # We want to create:
67
+ target = (
68
+ '<?xml version="1.0" encoding="utf-8"?>'
69
+ '<Project>'
70
+ '<PropertyGroup Label="Globals">'
71
+ '<ProjectGuid>{D2250C20-3A94-4FB9-AF73-11BC5B73884B}</ProjectGuid>'
72
+ '<Keyword>Win32Proj</Keyword>'
73
+ '<RootNamespace>automated_ui_tests</RootNamespace>'
74
+ '</PropertyGroup>'
75
+ '<Import Project="$(VCTargetsPath)\\Microsoft.Cpp.props"/>'
76
+ '<PropertyGroup '
77
+ 'Condition="\'$(Configuration)|$(Platform)\'=='
78
+ '\'Debug|Win32\'" Label="Configuration">'
79
+ '<ConfigurationType>Application</ConfigurationType>'
80
+ '<CharacterSet>Unicode</CharacterSet>'
81
+ '</PropertyGroup>'
82
+ '</Project>')
83
+
84
+ xml = easy_xml.XmlToString(
85
+ ['Project',
86
+ ['PropertyGroup', {'Label': 'Globals'},
87
+ ['ProjectGuid', '{D2250C20-3A94-4FB9-AF73-11BC5B73884B}'],
88
+ ['Keyword', 'Win32Proj'],
89
+ ['RootNamespace', 'automated_ui_tests']
90
+ ],
91
+ ['Import', {'Project': '$(VCTargetsPath)\\Microsoft.Cpp.props'}],
92
+ ['PropertyGroup',
93
+ {'Condition': "'$(Configuration)|$(Platform)'=='Debug|Win32'",
94
+ 'Label': 'Configuration'},
95
+ ['ConfigurationType', 'Application'],
96
+ ['CharacterSet', 'Unicode']
97
+ ]
98
+ ])
99
+ self.assertEqual(xml, target)
100
+
101
+
102
+ if __name__ == '__main__':
103
+ unittest.main()
@@ -0,0 +1,49 @@
1
+ #!/usr/bin/env python
2
+ # Copyright (c) 2011 Google Inc. All rights reserved.
3
+ # Use of this source code is governed by a BSD-style license that can be
4
+ # found in the LICENSE file.
5
+
6
+ """These functions are executed via gyp-flock-tool when using the Makefile
7
+ generator. Used on systems that don't have a built-in flock."""
8
+
9
+ import fcntl
10
+ import os
11
+ import struct
12
+ import subprocess
13
+ import sys
14
+
15
+
16
+ def main(args):
17
+ executor = FlockTool()
18
+ executor.Dispatch(args)
19
+
20
+
21
+ class FlockTool(object):
22
+ """This class emulates the 'flock' command."""
23
+ def Dispatch(self, args):
24
+ """Dispatches a string command to a method."""
25
+ if len(args) < 1:
26
+ raise Exception("Not enough arguments")
27
+
28
+ method = "Exec%s" % self._CommandifyName(args[0])
29
+ getattr(self, method)(*args[1:])
30
+
31
+ def _CommandifyName(self, name_string):
32
+ """Transforms a tool name like copy-info-plist to CopyInfoPlist"""
33
+ return name_string.title().replace('-', '')
34
+
35
+ def ExecFlock(self, lockfile, *cmd_list):
36
+ """Emulates the most basic behavior of Linux's flock(1)."""
37
+ # Rely on exception handling to report errors.
38
+ # Note that the stock python on SunOS has a bug
39
+ # where fcntl.flock(fd, LOCK_EX) always fails
40
+ # with EBADF, that's why we use this F_SETLK
41
+ # hack instead.
42
+ fd = os.open(lockfile, os.O_WRONLY|os.O_NOCTTY|os.O_CREAT, 0666)
43
+ op = struct.pack('hhllhhl', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
44
+ fcntl.fcntl(fd, fcntl.F_SETLK, op)
45
+ return subprocess.call(cmd_list)
46
+
47
+
48
+ if __name__ == '__main__':
49
+ sys.exit(main(sys.argv[1:]))
@@ -0,0 +1,1069 @@
1
+ # Copyright (c) 2012 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
+ # Notes:
6
+ #
7
+ # This generates makefiles suitable for inclusion into the Android build system
8
+ # via an Android.mk file. It is based on make.py, the standard makefile
9
+ # generator.
10
+ #
11
+ # The code below generates a separate .mk file for each target, but
12
+ # all are sourced by the top-level GypAndroid.mk. This means that all
13
+ # variables in .mk-files clobber one another, and furthermore that any
14
+ # variables set potentially clash with other Android build system variables.
15
+ # Try to avoid setting global variables where possible.
16
+
17
+ import gyp
18
+ import gyp.common
19
+ import gyp.generator.make as make # Reuse global functions from make backend.
20
+ import os
21
+ import re
22
+ import subprocess
23
+
24
+ generator_default_variables = {
25
+ 'OS': 'android',
26
+ 'EXECUTABLE_PREFIX': '',
27
+ 'EXECUTABLE_SUFFIX': '',
28
+ 'STATIC_LIB_PREFIX': 'lib',
29
+ 'SHARED_LIB_PREFIX': 'lib',
30
+ 'STATIC_LIB_SUFFIX': '.a',
31
+ 'SHARED_LIB_SUFFIX': '.so',
32
+ 'INTERMEDIATE_DIR': '$(gyp_intermediate_dir)',
33
+ 'SHARED_INTERMEDIATE_DIR': '$(gyp_shared_intermediate_dir)',
34
+ 'PRODUCT_DIR': '$(gyp_shared_intermediate_dir)',
35
+ 'SHARED_LIB_DIR': '$(builddir)/lib.$(TOOLSET)',
36
+ 'LIB_DIR': '$(obj).$(TOOLSET)',
37
+ 'RULE_INPUT_ROOT': '%(INPUT_ROOT)s', # This gets expanded by Python.
38
+ 'RULE_INPUT_DIRNAME': '%(INPUT_DIRNAME)s', # This gets expanded by Python.
39
+ 'RULE_INPUT_PATH': '$(RULE_SOURCES)',
40
+ 'RULE_INPUT_EXT': '$(suffix $<)',
41
+ 'RULE_INPUT_NAME': '$(notdir $<)',
42
+ 'CONFIGURATION_NAME': '$(GYP_CONFIGURATION)',
43
+ }
44
+
45
+ # Make supports multiple toolsets
46
+ generator_supports_multiple_toolsets = True
47
+
48
+
49
+ # Generator-specific gyp specs.
50
+ generator_additional_non_configuration_keys = [
51
+ # Boolean to declare that this target does not want its name mangled.
52
+ 'android_unmangled_name',
53
+ ]
54
+ generator_additional_path_sections = []
55
+ generator_extra_sources_for_rules = []
56
+
57
+
58
+ SHARED_FOOTER = """\
59
+ # "gyp_all_modules" is a concatenation of the "gyp_all_modules" targets from
60
+ # all the included sub-makefiles. This is just here to clarify.
61
+ gyp_all_modules:
62
+ """
63
+
64
+ header = """\
65
+ # This file is generated by gyp; do not edit.
66
+
67
+ """
68
+
69
+ android_standard_include_paths = set([
70
+ # JNI_H_INCLUDE in build/core/binary.mk
71
+ 'dalvik/libnativehelper/include/nativehelper',
72
+ # from SRC_HEADERS in build/core/config.mk
73
+ 'system/core/include',
74
+ 'hardware/libhardware/include',
75
+ 'hardware/libhardware_legacy/include',
76
+ 'hardware/ril/include',
77
+ 'dalvik/libnativehelper/include',
78
+ 'frameworks/native/include',
79
+ 'frameworks/native/opengl/include',
80
+ 'frameworks/base/include',
81
+ 'frameworks/base/opengl/include',
82
+ 'frameworks/base/native/include',
83
+ 'external/skia/include',
84
+ # TARGET_C_INCLUDES in build/core/combo/TARGET_linux-arm.mk
85
+ 'bionic/libc/arch-arm/include',
86
+ 'bionic/libc/include',
87
+ 'bionic/libstdc++/include',
88
+ 'bionic/libc/kernel/common',
89
+ 'bionic/libc/kernel/arch-arm',
90
+ 'bionic/libm/include',
91
+ 'bionic/libm/include/arm',
92
+ 'bionic/libthread_db/include',
93
+ ])
94
+
95
+
96
+ # Map gyp target types to Android module classes.
97
+ MODULE_CLASSES = {
98
+ 'static_library': 'STATIC_LIBRARIES',
99
+ 'shared_library': 'SHARED_LIBRARIES',
100
+ 'executable': 'EXECUTABLES',
101
+ }
102
+
103
+
104
+ def IsCPPExtension(ext):
105
+ return make.COMPILABLE_EXTENSIONS.get(ext) == 'cxx'
106
+
107
+
108
+ def Sourceify(path):
109
+ """Convert a path to its source directory form. The Android backend does not
110
+ support options.generator_output, so this function is a noop."""
111
+ return path
112
+
113
+
114
+ # Map from qualified target to path to output.
115
+ # For Android, the target of these maps is a tuple ('static', 'modulename'),
116
+ # ('dynamic', 'modulename'), or ('path', 'some/path') instead of a string,
117
+ # since we link by module.
118
+ target_outputs = {}
119
+ # Map from qualified target to any linkable output. A subset
120
+ # of target_outputs. E.g. when mybinary depends on liba, we want to
121
+ # include liba in the linker line; when otherbinary depends on
122
+ # mybinary, we just want to build mybinary first.
123
+ target_link_deps = {}
124
+
125
+
126
+ class AndroidMkWriter(object):
127
+ """AndroidMkWriter packages up the writing of one target-specific Android.mk.
128
+
129
+ Its only real entry point is Write(), and is mostly used for namespacing.
130
+ """
131
+
132
+ def __init__(self, android_top_dir):
133
+ self.android_top_dir = android_top_dir
134
+
135
+ def Write(self, qualified_target, relative_target, base_path, output_filename,
136
+ spec, configs, part_of_all):
137
+ """The main entry point: writes a .mk file for a single target.
138
+
139
+ Arguments:
140
+ qualified_target: target we're generating
141
+ relative_target: qualified target name relative to the root
142
+ base_path: path relative to source root we're building in, used to resolve
143
+ target-relative paths
144
+ output_filename: output .mk file name to write
145
+ spec, configs: gyp info
146
+ part_of_all: flag indicating this target is part of 'all'
147
+ """
148
+ make.ensure_directory_exists(output_filename)
149
+
150
+ self.fp = open(output_filename, 'w')
151
+
152
+ self.fp.write(header)
153
+
154
+ self.qualified_target = qualified_target
155
+ self.relative_target = relative_target
156
+ self.path = base_path
157
+ self.target = spec['target_name']
158
+ self.type = spec['type']
159
+ self.toolset = spec['toolset']
160
+
161
+ deps, link_deps = self.ComputeDeps(spec)
162
+
163
+ # Some of the generation below can add extra output, sources, or
164
+ # link dependencies. All of the out params of the functions that
165
+ # follow use names like extra_foo.
166
+ extra_outputs = []
167
+ extra_sources = []
168
+
169
+ self.android_class = MODULE_CLASSES.get(self.type, 'GYP')
170
+ self.android_module = self.ComputeAndroidModule(spec)
171
+ (self.android_stem, self.android_suffix) = self.ComputeOutputParts(spec)
172
+ self.output = self.output_binary = self.ComputeOutput(spec)
173
+
174
+ # Standard header.
175
+ self.WriteLn('include $(CLEAR_VARS)\n')
176
+
177
+ # Module class and name.
178
+ self.WriteLn('LOCAL_MODULE_CLASS := ' + self.android_class)
179
+ self.WriteLn('LOCAL_MODULE := ' + self.android_module)
180
+ # Only emit LOCAL_MODULE_STEM if it's different to LOCAL_MODULE.
181
+ # The library module classes fail if the stem is set. ComputeOutputParts
182
+ # makes sure that stem == modulename in these cases.
183
+ if self.android_stem != self.android_module:
184
+ self.WriteLn('LOCAL_MODULE_STEM := ' + self.android_stem)
185
+ self.WriteLn('LOCAL_MODULE_SUFFIX := ' + self.android_suffix)
186
+ self.WriteLn('LOCAL_MODULE_TAGS := optional')
187
+ if self.toolset == 'host':
188
+ self.WriteLn('LOCAL_IS_HOST_MODULE := true')
189
+
190
+ # Grab output directories; needed for Actions and Rules.
191
+ self.WriteLn('gyp_intermediate_dir := $(call local-intermediates-dir)')
192
+ self.WriteLn('gyp_shared_intermediate_dir := '
193
+ '$(call intermediates-dir-for,GYP,shared)')
194
+ self.WriteLn()
195
+
196
+ # List files this target depends on so that actions/rules/copies/sources
197
+ # can depend on the list.
198
+ # TODO: doesn't pull in things through transitive link deps; needed?
199
+ target_dependencies = [x[1] for x in deps if x[0] == 'path']
200
+ self.WriteLn('# Make sure our deps are built first.')
201
+ self.WriteList(target_dependencies, 'GYP_TARGET_DEPENDENCIES',
202
+ local_pathify=True)
203
+
204
+ # Actions must come first, since they can generate more OBJs for use below.
205
+ if 'actions' in spec:
206
+ self.WriteActions(spec['actions'], extra_sources, extra_outputs)
207
+
208
+ # Rules must be early like actions.
209
+ if 'rules' in spec:
210
+ self.WriteRules(spec['rules'], extra_sources, extra_outputs)
211
+
212
+ if 'copies' in spec:
213
+ self.WriteCopies(spec['copies'], extra_outputs)
214
+
215
+ # GYP generated outputs.
216
+ self.WriteList(extra_outputs, 'GYP_GENERATED_OUTPUTS', local_pathify=True)
217
+
218
+ # Set LOCAL_ADDITIONAL_DEPENDENCIES so that Android's build rules depend
219
+ # on both our dependency targets and our generated files.
220
+ self.WriteLn('# Make sure our deps and generated files are built first.')
221
+ self.WriteLn('LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) '
222
+ '$(GYP_GENERATED_OUTPUTS)')
223
+ self.WriteLn()
224
+
225
+ # Sources.
226
+ if spec.get('sources', []) or extra_sources:
227
+ self.WriteSources(spec, configs, extra_sources)
228
+
229
+ self.WriteTarget(spec, configs, deps, link_deps, part_of_all)
230
+
231
+ # Update global list of target outputs, used in dependency tracking.
232
+ target_outputs[qualified_target] = ('path', self.output_binary)
233
+
234
+ # Update global list of link dependencies.
235
+ if self.type == 'static_library':
236
+ target_link_deps[qualified_target] = ('static', self.android_module)
237
+ elif self.type == 'shared_library':
238
+ target_link_deps[qualified_target] = ('shared', self.android_module)
239
+
240
+ self.fp.close()
241
+ return self.android_module
242
+
243
+
244
+ def WriteActions(self, actions, extra_sources, extra_outputs):
245
+ """Write Makefile code for any 'actions' from the gyp input.
246
+
247
+ extra_sources: a list that will be filled in with newly generated source
248
+ files, if any
249
+ extra_outputs: a list that will be filled in with any outputs of these
250
+ actions (used to make other pieces dependent on these
251
+ actions)
252
+ """
253
+ for action in actions:
254
+ name = make.StringToMakefileVariable('%s_%s' % (self.relative_target,
255
+ action['action_name']))
256
+ self.WriteLn('### Rules for action "%s":' % action['action_name'])
257
+ inputs = action['inputs']
258
+ outputs = action['outputs']
259
+
260
+ # Build up a list of outputs.
261
+ # Collect the output dirs we'll need.
262
+ dirs = set()
263
+ for out in outputs:
264
+ if not out.startswith('$'):
265
+ print ('WARNING: Action for target "%s" writes output to local path '
266
+ '"%s".' % (self.target, out))
267
+ dir = os.path.split(out)[0]
268
+ if dir:
269
+ dirs.add(dir)
270
+ if int(action.get('process_outputs_as_sources', False)):
271
+ extra_sources += outputs
272
+
273
+ # Prepare the actual command.
274
+ command = gyp.common.EncodePOSIXShellList(action['action'])
275
+ if 'message' in action:
276
+ quiet_cmd = 'Gyp action: %s ($@)' % action['message']
277
+ else:
278
+ quiet_cmd = 'Gyp action: %s ($@)' % name
279
+ if len(dirs) > 0:
280
+ command = 'mkdir -p %s' % ' '.join(dirs) + '; ' + command
281
+
282
+ cd_action = 'cd $(gyp_local_path)/%s; ' % self.path
283
+ command = cd_action + command
284
+
285
+ # The makefile rules are all relative to the top dir, but the gyp actions
286
+ # are defined relative to their containing dir. This replaces the gyp_*
287
+ # variables for the action rule with an absolute version so that the
288
+ # output goes in the right place.
289
+ # Only write the gyp_* rules for the "primary" output (:1);
290
+ # it's superfluous for the "extra outputs", and this avoids accidentally
291
+ # writing duplicate dummy rules for those outputs.
292
+ main_output = make.QuoteSpaces(self.LocalPathify(outputs[0]))
293
+ self.WriteLn('%s: gyp_local_path := $(LOCAL_PATH)' % main_output)
294
+ self.WriteLn('%s: gyp_intermediate_dir := '
295
+ '$(abspath $(gyp_intermediate_dir))' % main_output)
296
+ self.WriteLn('%s: gyp_shared_intermediate_dir := '
297
+ '$(abspath $(gyp_shared_intermediate_dir))' % main_output)
298
+
299
+ # Android's envsetup.sh adds a number of directories to the path including
300
+ # the built host binary directory. This causes actions/rules invoked by
301
+ # gyp to sometimes use these instead of system versions, e.g. bison.
302
+ # The built host binaries may not be suitable, and can cause errors.
303
+ # So, we remove them from the PATH using the ANDROID_BUILD_PATHS variable
304
+ # set by envsetup.
305
+ self.WriteLn('%s: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))'
306
+ % main_output)
307
+
308
+ for input in inputs:
309
+ assert ' ' not in input, (
310
+ "Spaces in action input filenames not supported (%s)" % input)
311
+ for output in outputs:
312
+ assert ' ' not in output, (
313
+ "Spaces in action output filenames not supported (%s)" % output)
314
+
315
+ self.WriteLn('%s: %s $(GYP_TARGET_DEPENDENCIES)' %
316
+ (main_output, ' '.join(map(self.LocalPathify, inputs))))
317
+ self.WriteLn('\t@echo "%s"' % quiet_cmd)
318
+ self.WriteLn('\t$(hide)%s\n' % command)
319
+ for output in outputs[1:]:
320
+ # Make each output depend on the main output, with an empty command
321
+ # to force make to notice that the mtime has changed.
322
+ self.WriteLn('%s: %s ;' % (self.LocalPathify(output), main_output))
323
+
324
+ extra_outputs += outputs
325
+ self.WriteLn()
326
+
327
+ self.WriteLn()
328
+
329
+
330
+ def WriteRules(self, rules, extra_sources, extra_outputs):
331
+ """Write Makefile code for any 'rules' from the gyp input.
332
+
333
+ extra_sources: a list that will be filled in with newly generated source
334
+ files, if any
335
+ extra_outputs: a list that will be filled in with any outputs of these
336
+ rules (used to make other pieces dependent on these rules)
337
+ """
338
+ if len(rules) == 0:
339
+ return
340
+ rule_trigger = '%s_rule_trigger' % self.android_module
341
+
342
+ did_write_rule = False
343
+ for rule in rules:
344
+ if len(rule.get('rule_sources', [])) == 0:
345
+ continue
346
+ did_write_rule = True
347
+ name = make.StringToMakefileVariable('%s_%s' % (self.relative_target,
348
+ rule['rule_name']))
349
+ self.WriteLn('\n### Generated for rule "%s":' % name)
350
+ self.WriteLn('# "%s":' % rule)
351
+
352
+ inputs = rule.get('inputs')
353
+ for rule_source in rule.get('rule_sources', []):
354
+ (rule_source_dirname, rule_source_basename) = os.path.split(rule_source)
355
+ (rule_source_root, rule_source_ext) = \
356
+ os.path.splitext(rule_source_basename)
357
+
358
+ outputs = [self.ExpandInputRoot(out, rule_source_root,
359
+ rule_source_dirname)
360
+ for out in rule['outputs']]
361
+
362
+ dirs = set()
363
+ for out in outputs:
364
+ if not out.startswith('$'):
365
+ print ('WARNING: Rule for target %s writes output to local path %s'
366
+ % (self.target, out))
367
+ dir = os.path.dirname(out)
368
+ if dir:
369
+ dirs.add(dir)
370
+ extra_outputs += outputs
371
+ if int(rule.get('process_outputs_as_sources', False)):
372
+ extra_sources.extend(outputs)
373
+
374
+ components = []
375
+ for component in rule['action']:
376
+ component = self.ExpandInputRoot(component, rule_source_root,
377
+ rule_source_dirname)
378
+ if '$(RULE_SOURCES)' in component:
379
+ component = component.replace('$(RULE_SOURCES)',
380
+ rule_source)
381
+ components.append(component)
382
+
383
+ command = gyp.common.EncodePOSIXShellList(components)
384
+ cd_action = 'cd $(gyp_local_path)/%s; ' % self.path
385
+ command = cd_action + command
386
+ if dirs:
387
+ command = 'mkdir -p %s' % ' '.join(dirs) + '; ' + command
388
+
389
+ # We set up a rule to build the first output, and then set up
390
+ # a rule for each additional output to depend on the first.
391
+ outputs = map(self.LocalPathify, outputs)
392
+ main_output = outputs[0]
393
+ self.WriteLn('%s: gyp_local_path := $(LOCAL_PATH)' % main_output)
394
+ self.WriteLn('%s: gyp_intermediate_dir := '
395
+ '$(abspath $(gyp_intermediate_dir))' % main_output)
396
+ self.WriteLn('%s: gyp_shared_intermediate_dir := '
397
+ '$(abspath $(gyp_shared_intermediate_dir))' % main_output)
398
+
399
+ # See explanation in WriteActions.
400
+ self.WriteLn('%s: export PATH := '
401
+ '$(subst $(ANDROID_BUILD_PATHS),,$(PATH))' % main_output)
402
+
403
+ main_output_deps = self.LocalPathify(rule_source)
404
+ if inputs:
405
+ main_output_deps += ' '
406
+ main_output_deps += ' '.join([self.LocalPathify(f) for f in inputs])
407
+
408
+ self.WriteLn('%s: %s $(GYP_TARGET_DEPENDENCIES)' %
409
+ (main_output, main_output_deps))
410
+ self.WriteLn('\t%s\n' % command)
411
+ for output in outputs[1:]:
412
+ # Make each output depend on the main output, with an empty command
413
+ # to force make to notice that the mtime has changed.
414
+ self.WriteLn('%s: %s ;' % (output, main_output))
415
+ self.WriteLn('.PHONY: %s' % (rule_trigger))
416
+ self.WriteLn('%s: %s' % (rule_trigger, main_output))
417
+ self.WriteLn('')
418
+ if did_write_rule:
419
+ extra_sources.append(rule_trigger) # Force all rules to run.
420
+ self.WriteLn('### Finished generating for all rules')
421
+ self.WriteLn('')
422
+
423
+
424
+ def WriteCopies(self, copies, extra_outputs):
425
+ """Write Makefile code for any 'copies' from the gyp input.
426
+
427
+ extra_outputs: a list that will be filled in with any outputs of this action
428
+ (used to make other pieces dependent on this action)
429
+ """
430
+ self.WriteLn('### Generated for copy rule.')
431
+
432
+ variable = make.StringToMakefileVariable(self.relative_target + '_copies')
433
+ outputs = []
434
+ for copy in copies:
435
+ for path in copy['files']:
436
+ # The Android build system does not allow generation of files into the
437
+ # source tree. The destination should start with a variable, which will
438
+ # typically be $(gyp_intermediate_dir) or
439
+ # $(gyp_shared_intermediate_dir). Note that we can't use an assertion
440
+ # because some of the gyp tests depend on this.
441
+ if not copy['destination'].startswith('$'):
442
+ print ('WARNING: Copy rule for target %s writes output to '
443
+ 'local path %s' % (self.target, copy['destination']))
444
+
445
+ # LocalPathify() calls normpath, stripping trailing slashes.
446
+ path = Sourceify(self.LocalPathify(path))
447
+ filename = os.path.split(path)[1]
448
+ output = Sourceify(self.LocalPathify(os.path.join(copy['destination'],
449
+ filename)))
450
+
451
+ self.WriteLn('%s: %s $(GYP_TARGET_DEPENDENCIES) | $(ACP)' %
452
+ (output, path))
453
+ self.WriteLn('\t@echo Copying: $@')
454
+ self.WriteLn('\t$(hide) mkdir -p $(dir $@)')
455
+ self.WriteLn('\t$(hide) $(ACP) -r $< $@')
456
+ self.WriteLn()
457
+ outputs.append(output)
458
+ self.WriteLn('%s = %s' % (variable,
459
+ ' '.join(map(make.QuoteSpaces, outputs))))
460
+ extra_outputs.append('$(%s)' % variable)
461
+ self.WriteLn()
462
+
463
+
464
+ def WriteSourceFlags(self, spec, configs):
465
+ """Write out the flags and include paths used to compile source files for
466
+ the current target.
467
+
468
+ Args:
469
+ spec, configs: input from gyp.
470
+ """
471
+ for configname, config in sorted(configs.iteritems()):
472
+ extracted_includes = []
473
+
474
+ self.WriteLn('\n# Flags passed to both C and C++ files.')
475
+ cflags, includes_from_cflags = self.ExtractIncludesFromCFlags(
476
+ config.get('cflags', []) + config.get('cflags_c', []))
477
+ extracted_includes.extend(includes_from_cflags)
478
+ self.WriteList(cflags, 'MY_CFLAGS_%s' % configname)
479
+
480
+ self.WriteList(config.get('defines'), 'MY_DEFS_%s' % configname,
481
+ prefix='-D', quoter=make.EscapeCppDefine)
482
+
483
+ self.WriteLn('\n# Include paths placed before CFLAGS/CPPFLAGS')
484
+ includes = list(config.get('include_dirs', []))
485
+ includes.extend(extracted_includes)
486
+ includes = map(Sourceify, map(self.LocalPathify, includes))
487
+ includes = self.NormalizeIncludePaths(includes)
488
+ self.WriteList(includes, 'LOCAL_C_INCLUDES_%s' % configname)
489
+
490
+ self.WriteLn('\n# Flags passed to only C++ (and not C) files.')
491
+ self.WriteList(config.get('cflags_cc'), 'LOCAL_CPPFLAGS_%s' % configname)
492
+
493
+ self.WriteLn('\nLOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) '
494
+ '$(MY_DEFS_$(GYP_CONFIGURATION))')
495
+ # Undefine ANDROID for host modules
496
+ # TODO: the source code should not use macro ANDROID to tell if it's host
497
+ # or target module.
498
+ if self.toolset == 'host':
499
+ self.WriteLn('# Undefine ANDROID for host modules')
500
+ self.WriteLn('LOCAL_CFLAGS += -UANDROID')
501
+ self.WriteLn('LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) '
502
+ '$(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))')
503
+ self.WriteLn('LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))')
504
+
505
+
506
+ def WriteSources(self, spec, configs, extra_sources):
507
+ """Write Makefile code for any 'sources' from the gyp input.
508
+ These are source files necessary to build the current target.
509
+ We need to handle shared_intermediate directory source files as
510
+ a special case by copying them to the intermediate directory and
511
+ treating them as a genereated sources. Otherwise the Android build
512
+ rules won't pick them up.
513
+
514
+ Args:
515
+ spec, configs: input from gyp.
516
+ extra_sources: Sources generated from Actions or Rules.
517
+ """
518
+ sources = filter(make.Compilable, spec.get('sources', []))
519
+ generated_not_sources = [x for x in extra_sources if not make.Compilable(x)]
520
+ extra_sources = filter(make.Compilable, extra_sources)
521
+
522
+ # Determine and output the C++ extension used by these sources.
523
+ # We simply find the first C++ file and use that extension.
524
+ all_sources = sources + extra_sources
525
+ local_cpp_extension = '.cpp'
526
+ for source in all_sources:
527
+ (root, ext) = os.path.splitext(source)
528
+ if IsCPPExtension(ext):
529
+ local_cpp_extension = ext
530
+ break
531
+ if local_cpp_extension != '.cpp':
532
+ self.WriteLn('LOCAL_CPP_EXTENSION := %s' % local_cpp_extension)
533
+
534
+ # We need to move any non-generated sources that are coming from the
535
+ # shared intermediate directory out of LOCAL_SRC_FILES and put them
536
+ # into LOCAL_GENERATED_SOURCES. We also need to move over any C++ files
537
+ # that don't match our local_cpp_extension, since Android will only
538
+ # generate Makefile rules for a single LOCAL_CPP_EXTENSION.
539
+ local_files = []
540
+ for source in sources:
541
+ (root, ext) = os.path.splitext(source)
542
+ if '$(gyp_shared_intermediate_dir)' in source:
543
+ extra_sources.append(source)
544
+ elif '$(gyp_intermediate_dir)' in source:
545
+ extra_sources.append(source)
546
+ elif IsCPPExtension(ext) and ext != local_cpp_extension:
547
+ extra_sources.append(source)
548
+ else:
549
+ local_files.append(os.path.normpath(os.path.join(self.path, source)))
550
+
551
+ # For any generated source, if it is coming from the shared intermediate
552
+ # directory then we add a Make rule to copy them to the local intermediate
553
+ # directory first. This is because the Android LOCAL_GENERATED_SOURCES
554
+ # must be in the local module intermediate directory for the compile rules
555
+ # to work properly. If the file has the wrong C++ extension, then we add
556
+ # a rule to copy that to intermediates and use the new version.
557
+ final_generated_sources = []
558
+ # If a source file gets copied, we still need to add the orginal source
559
+ # directory as header search path, for GCC searches headers in the
560
+ # directory that contains the source file by default.
561
+ origin_src_dirs = []
562
+ for source in extra_sources:
563
+ local_file = source
564
+ if not '$(gyp_intermediate_dir)/' in local_file:
565
+ basename = os.path.basename(local_file)
566
+ local_file = '$(gyp_intermediate_dir)/' + basename
567
+ (root, ext) = os.path.splitext(local_file)
568
+ if IsCPPExtension(ext) and ext != local_cpp_extension:
569
+ local_file = root + local_cpp_extension
570
+ if local_file != source:
571
+ self.WriteLn('%s: %s' % (local_file, self.LocalPathify(source)))
572
+ self.WriteLn('\tmkdir -p $(@D); cp $< $@')
573
+ origin_src_dirs.append(os.path.dirname(source))
574
+ final_generated_sources.append(local_file)
575
+
576
+ # We add back in all of the non-compilable stuff to make sure that the
577
+ # make rules have dependencies on them.
578
+ final_generated_sources.extend(generated_not_sources)
579
+ self.WriteList(final_generated_sources, 'LOCAL_GENERATED_SOURCES')
580
+
581
+ origin_src_dirs = gyp.common.uniquer(origin_src_dirs)
582
+ origin_src_dirs = map(Sourceify, map(self.LocalPathify, origin_src_dirs))
583
+ self.WriteList(origin_src_dirs, 'GYP_COPIED_SOURCE_ORIGIN_DIRS')
584
+
585
+ self.WriteList(local_files, 'LOCAL_SRC_FILES')
586
+
587
+ # Write out the flags used to compile the source; this must be done last
588
+ # so that GYP_COPIED_SOURCE_ORIGIN_DIRS can be used as an include path.
589
+ self.WriteSourceFlags(spec, configs)
590
+
591
+
592
+ def ComputeAndroidModule(self, spec):
593
+ """Return the Android module name used for a gyp spec.
594
+
595
+ We use the complete qualified target name to avoid collisions between
596
+ duplicate targets in different directories. We also add a suffix to
597
+ distinguish gyp-generated module names.
598
+ """
599
+
600
+ if int(spec.get('android_unmangled_name', 0)):
601
+ assert self.type != 'shared_library' or self.target.startswith('lib')
602
+ return self.target
603
+
604
+ if self.type == 'shared_library':
605
+ # For reasons of convention, the Android build system requires that all
606
+ # shared library modules are named 'libfoo' when generating -l flags.
607
+ prefix = 'lib_'
608
+ else:
609
+ prefix = ''
610
+
611
+ if spec['toolset'] == 'host':
612
+ suffix = '_host_gyp'
613
+ else:
614
+ suffix = '_gyp'
615
+
616
+ if self.path:
617
+ name = '%s%s_%s%s' % (prefix, self.path, self.target, suffix)
618
+ else:
619
+ name = '%s%s%s' % (prefix, self.target, suffix)
620
+
621
+ return make.StringToMakefileVariable(name)
622
+
623
+
624
+ def ComputeOutputParts(self, spec):
625
+ """Return the 'output basename' of a gyp spec, split into filename + ext.
626
+
627
+ Android libraries must be named the same thing as their module name,
628
+ otherwise the linker can't find them, so product_name and so on must be
629
+ ignored if we are building a library, and the "lib" prepending is
630
+ not done for Android.
631
+ """
632
+ assert self.type != 'loadable_module' # TODO: not supported?
633
+
634
+ target = spec['target_name']
635
+ target_prefix = ''
636
+ target_ext = ''
637
+ if self.type == 'static_library':
638
+ target = self.ComputeAndroidModule(spec)
639
+ target_ext = '.a'
640
+ elif self.type == 'shared_library':
641
+ target = self.ComputeAndroidModule(spec)
642
+ target_ext = '.so'
643
+ elif self.type == 'none':
644
+ target_ext = '.stamp'
645
+ elif self.type != 'executable':
646
+ print ("ERROR: What output file should be generated?",
647
+ "type", self.type, "target", target)
648
+
649
+ if self.type != 'static_library' and self.type != 'shared_library':
650
+ target_prefix = spec.get('product_prefix', target_prefix)
651
+ target = spec.get('product_name', target)
652
+ product_ext = spec.get('product_extension')
653
+ if product_ext:
654
+ target_ext = '.' + product_ext
655
+
656
+ target_stem = target_prefix + target
657
+ return (target_stem, target_ext)
658
+
659
+
660
+ def ComputeOutputBasename(self, spec):
661
+ """Return the 'output basename' of a gyp spec.
662
+
663
+ E.g., the loadable module 'foobar' in directory 'baz' will produce
664
+ 'libfoobar.so'
665
+ """
666
+ return ''.join(self.ComputeOutputParts(spec))
667
+
668
+
669
+ def ComputeOutput(self, spec):
670
+ """Return the 'output' (full output path) of a gyp spec.
671
+
672
+ E.g., the loadable module 'foobar' in directory 'baz' will produce
673
+ '$(obj)/baz/libfoobar.so'
674
+ """
675
+ if self.type == 'executable' and self.toolset == 'host':
676
+ # We install host executables into shared_intermediate_dir so they can be
677
+ # run by gyp rules that refer to PRODUCT_DIR.
678
+ path = '$(gyp_shared_intermediate_dir)'
679
+ elif self.type == 'shared_library':
680
+ if self.toolset == 'host':
681
+ path = '$(HOST_OUT_INTERMEDIATE_LIBRARIES)'
682
+ else:
683
+ path = '$(TARGET_OUT_INTERMEDIATE_LIBRARIES)'
684
+ else:
685
+ # Other targets just get built into their intermediate dir.
686
+ if self.toolset == 'host':
687
+ path = '$(call intermediates-dir-for,%s,%s,true)' % (self.android_class,
688
+ self.android_module)
689
+ else:
690
+ path = '$(call intermediates-dir-for,%s,%s)' % (self.android_class,
691
+ self.android_module)
692
+
693
+ assert spec.get('product_dir') is None # TODO: not supported?
694
+ return os.path.join(path, self.ComputeOutputBasename(spec))
695
+
696
+ def NormalizeIncludePaths(self, include_paths):
697
+ """ Normalize include_paths.
698
+ Convert absolute paths to relative to the Android top directory;
699
+ filter out include paths that are already brought in by the Android build
700
+ system.
701
+
702
+ Args:
703
+ include_paths: A list of unprocessed include paths.
704
+ Returns:
705
+ A list of normalized include paths.
706
+ """
707
+ normalized = []
708
+ for path in include_paths:
709
+ if path[0] == '/':
710
+ path = gyp.common.RelativePath(path, self.android_top_dir)
711
+
712
+ # Filter out the Android standard search path.
713
+ if path not in android_standard_include_paths:
714
+ normalized.append(path)
715
+ return normalized
716
+
717
+ def ExtractIncludesFromCFlags(self, cflags):
718
+ """Extract includes "-I..." out from cflags
719
+
720
+ Args:
721
+ cflags: A list of compiler flags, which may be mixed with "-I.."
722
+ Returns:
723
+ A tuple of lists: (clean_clfags, include_paths). "-I.." is trimmed.
724
+ """
725
+ clean_cflags = []
726
+ include_paths = []
727
+ for flag in cflags:
728
+ if flag.startswith('-I'):
729
+ include_paths.append(flag[2:])
730
+ else:
731
+ clean_cflags.append(flag)
732
+
733
+ return (clean_cflags, include_paths)
734
+
735
+ def ComputeAndroidLibraryModuleNames(self, libraries):
736
+ """Compute the Android module names from libraries, ie spec.get('libraries')
737
+
738
+ Args:
739
+ libraries: the value of spec.get('libraries')
740
+ Returns:
741
+ A tuple (static_lib_modules, dynamic_lib_modules)
742
+ """
743
+ static_lib_modules = []
744
+ dynamic_lib_modules = []
745
+ for libs in libraries:
746
+ # Libs can have multiple words.
747
+ for lib in libs.split():
748
+ # Filter the system libraries, which are added by default by the Android
749
+ # build system.
750
+ if (lib == '-lc' or lib == '-lstdc++' or lib == '-lm' or
751
+ lib.endswith('libgcc.a')):
752
+ continue
753
+ match = re.search(r'([^/]+)\.a$', lib)
754
+ if match:
755
+ static_lib_modules.append(match.group(1))
756
+ continue
757
+ match = re.search(r'([^/]+)\.so$', lib)
758
+ if match:
759
+ dynamic_lib_modules.append(match.group(1))
760
+ continue
761
+ # "-lstlport" -> libstlport
762
+ if lib.startswith('-l'):
763
+ if lib.endswith('_static'):
764
+ static_lib_modules.append('lib' + lib[2:])
765
+ else:
766
+ dynamic_lib_modules.append('lib' + lib[2:])
767
+ return (static_lib_modules, dynamic_lib_modules)
768
+
769
+
770
+ def ComputeDeps(self, spec):
771
+ """Compute the dependencies of a gyp spec.
772
+
773
+ Returns a tuple (deps, link_deps), where each is a list of
774
+ filenames that will need to be put in front of make for either
775
+ building (deps) or linking (link_deps).
776
+ """
777
+ deps = []
778
+ link_deps = []
779
+ if 'dependencies' in spec:
780
+ deps.extend([target_outputs[dep] for dep in spec['dependencies']
781
+ if target_outputs[dep]])
782
+ for dep in spec['dependencies']:
783
+ if dep in target_link_deps:
784
+ link_deps.append(target_link_deps[dep])
785
+ deps.extend(link_deps)
786
+ return (gyp.common.uniquer(deps), gyp.common.uniquer(link_deps))
787
+
788
+
789
+ def WriteTargetFlags(self, spec, configs, link_deps):
790
+ """Write Makefile code to specify the link flags and library dependencies.
791
+
792
+ spec, configs: input from gyp.
793
+ link_deps: link dependency list; see ComputeDeps()
794
+ """
795
+ for configname, config in sorted(configs.iteritems()):
796
+ ldflags = list(config.get('ldflags', []))
797
+ self.WriteLn('')
798
+ self.WriteList(ldflags, 'LOCAL_LDFLAGS_%s' % configname)
799
+ self.WriteLn('\nLOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))')
800
+
801
+ # Libraries (i.e. -lfoo)
802
+ libraries = gyp.common.uniquer(spec.get('libraries', []))
803
+ static_libs, dynamic_libs = self.ComputeAndroidLibraryModuleNames(
804
+ libraries)
805
+
806
+ # Link dependencies (i.e. libfoo.a, libfoo.so)
807
+ static_link_deps = [x[1] for x in link_deps if x[0] == 'static']
808
+ shared_link_deps = [x[1] for x in link_deps if x[0] == 'shared']
809
+ self.WriteLn('')
810
+ self.WriteList(static_libs + static_link_deps,
811
+ 'LOCAL_STATIC_LIBRARIES')
812
+ self.WriteLn('# Enable grouping to fix circular references')
813
+ self.WriteLn('LOCAL_GROUP_STATIC_LIBRARIES := true')
814
+ self.WriteLn('')
815
+ self.WriteList(dynamic_libs + shared_link_deps,
816
+ 'LOCAL_SHARED_LIBRARIES')
817
+
818
+
819
+ def WriteTarget(self, spec, configs, deps, link_deps, part_of_all):
820
+ """Write Makefile code to produce the final target of the gyp spec.
821
+
822
+ spec, configs: input from gyp.
823
+ deps, link_deps: dependency lists; see ComputeDeps()
824
+ part_of_all: flag indicating this target is part of 'all'
825
+ """
826
+ self.WriteLn('### Rules for final target.')
827
+
828
+ if self.type != 'none':
829
+ self.WriteTargetFlags(spec, configs, link_deps)
830
+
831
+ # Add to the set of targets which represent the gyp 'all' target. We use the
832
+ # name 'gyp_all_modules' as the Android build system doesn't allow the use
833
+ # of the Make target 'all' and because 'all_modules' is the equivalent of
834
+ # the Make target 'all' on Android.
835
+ if part_of_all:
836
+ self.WriteLn('# Add target alias to "gyp_all_modules" target.')
837
+ self.WriteLn('.PHONY: gyp_all_modules')
838
+ self.WriteLn('gyp_all_modules: %s' % self.android_module)
839
+ self.WriteLn('')
840
+
841
+ # Add an alias from the gyp target name to the Android module name. This
842
+ # simplifies manual builds of the target, and is required by the test
843
+ # framework.
844
+ if self.target != self.android_module:
845
+ self.WriteLn('# Alias gyp target name.')
846
+ self.WriteLn('.PHONY: %s' % self.target)
847
+ self.WriteLn('%s: %s' % (self.target, self.android_module))
848
+ self.WriteLn('')
849
+
850
+ # Add the command to trigger build of the target type depending
851
+ # on the toolset. Ex: BUILD_STATIC_LIBRARY vs. BUILD_HOST_STATIC_LIBRARY
852
+ # NOTE: This has to come last!
853
+ modifier = ''
854
+ if self.toolset == 'host':
855
+ modifier = 'HOST_'
856
+ if self.type == 'static_library':
857
+ self.WriteLn('include $(BUILD_%sSTATIC_LIBRARY)' % modifier)
858
+ elif self.type == 'shared_library':
859
+ self.WriteLn('LOCAL_PRELINK_MODULE := false')
860
+ self.WriteLn('include $(BUILD_%sSHARED_LIBRARY)' % modifier)
861
+ elif self.type == 'executable':
862
+ if self.toolset == 'host':
863
+ self.WriteLn('LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir)')
864
+ else:
865
+ # Don't install target executables for now, as it results in them being
866
+ # included in ROM. This can be revisited if there's a reason to install
867
+ # them later.
868
+ self.WriteLn('LOCAL_UNINSTALLABLE_MODULE := true')
869
+ self.WriteLn('include $(BUILD_%sEXECUTABLE)' % modifier)
870
+ else:
871
+ self.WriteLn('LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp')
872
+ self.WriteLn('LOCAL_UNINSTALLABLE_MODULE := true')
873
+ self.WriteLn()
874
+ self.WriteLn('include $(BUILD_SYSTEM)/base_rules.mk')
875
+ self.WriteLn()
876
+ self.WriteLn('$(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES)')
877
+ self.WriteLn('\t$(hide) echo "Gyp timestamp: $@"')
878
+ self.WriteLn('\t$(hide) mkdir -p $(dir $@)')
879
+ self.WriteLn('\t$(hide) touch $@')
880
+
881
+
882
+ def WriteList(self, value_list, variable=None, prefix='',
883
+ quoter=make.QuoteIfNecessary, local_pathify=False):
884
+ """Write a variable definition that is a list of values.
885
+
886
+ E.g. WriteList(['a','b'], 'foo', prefix='blah') writes out
887
+ foo = blaha blahb
888
+ but in a pretty-printed style.
889
+ """
890
+ values = ''
891
+ if value_list:
892
+ value_list = [quoter(prefix + l) for l in value_list]
893
+ if local_pathify:
894
+ value_list = [self.LocalPathify(l) for l in value_list]
895
+ values = ' \\\n\t' + ' \\\n\t'.join(value_list)
896
+ self.fp.write('%s :=%s\n\n' % (variable, values))
897
+
898
+
899
+ def WriteLn(self, text=''):
900
+ self.fp.write(text + '\n')
901
+
902
+
903
+ def LocalPathify(self, path):
904
+ """Convert a subdirectory-relative path into a normalized path which starts
905
+ with the make variable $(LOCAL_PATH) (i.e. the top of the project tree).
906
+ Absolute paths, or paths that contain variables, are just normalized."""
907
+ if '$(' in path or os.path.isabs(path):
908
+ # path is not a file in the project tree in this case, but calling
909
+ # normpath is still important for trimming trailing slashes.
910
+ return os.path.normpath(path)
911
+ local_path = os.path.join('$(LOCAL_PATH)', self.path, path)
912
+ local_path = os.path.normpath(local_path)
913
+ # Check that normalizing the path didn't ../ itself out of $(LOCAL_PATH)
914
+ # - i.e. that the resulting path is still inside the project tree. The
915
+ # path may legitimately have ended up containing just $(LOCAL_PATH), though,
916
+ # so we don't look for a slash.
917
+ assert local_path.startswith('$(LOCAL_PATH)'), (
918
+ 'Path %s attempts to escape from gyp path %s !)' % (path, self.path))
919
+ return local_path
920
+
921
+
922
+ def ExpandInputRoot(self, template, expansion, dirname):
923
+ if '%(INPUT_ROOT)s' not in template and '%(INPUT_DIRNAME)s' not in template:
924
+ return template
925
+ path = template % {
926
+ 'INPUT_ROOT': expansion,
927
+ 'INPUT_DIRNAME': dirname,
928
+ }
929
+ return path
930
+
931
+
932
+ def PerformBuild(data, configurations, params):
933
+ # The android backend only supports the default configuration.
934
+ options = params['options']
935
+ makefile = os.path.abspath(os.path.join(options.toplevel_dir,
936
+ 'GypAndroid.mk'))
937
+ env = dict(os.environ)
938
+ env['ONE_SHOT_MAKEFILE'] = makefile
939
+ arguments = ['make', '-C', os.environ['ANDROID_BUILD_TOP'], 'gyp_all_modules']
940
+ print 'Building: %s' % arguments
941
+ subprocess.check_call(arguments, env=env)
942
+
943
+
944
+ def GenerateOutput(target_list, target_dicts, data, params):
945
+ options = params['options']
946
+ generator_flags = params.get('generator_flags', {})
947
+ builddir_name = generator_flags.get('output_dir', 'out')
948
+ limit_to_target_all = generator_flags.get('limit_to_target_all', False)
949
+ android_top_dir = os.environ.get('ANDROID_BUILD_TOP')
950
+ assert android_top_dir, '$ANDROID_BUILD_TOP not set; you need to run lunch.'
951
+
952
+ def CalculateMakefilePath(build_file, base_name):
953
+ """Determine where to write a Makefile for a given gyp file."""
954
+ # Paths in gyp files are relative to the .gyp file, but we want
955
+ # paths relative to the source root for the master makefile. Grab
956
+ # the path of the .gyp file as the base to relativize against.
957
+ # E.g. "foo/bar" when we're constructing targets for "foo/bar/baz.gyp".
958
+ base_path = gyp.common.RelativePath(os.path.dirname(build_file),
959
+ options.depth)
960
+ # We write the file in the base_path directory.
961
+ output_file = os.path.join(options.depth, base_path, base_name)
962
+ assert not options.generator_output, (
963
+ 'The Android backend does not support options.generator_output.')
964
+ base_path = gyp.common.RelativePath(os.path.dirname(build_file),
965
+ options.toplevel_dir)
966
+ return base_path, output_file
967
+
968
+ # TODO: search for the first non-'Default' target. This can go
969
+ # away when we add verification that all targets have the
970
+ # necessary configurations.
971
+ default_configuration = None
972
+ toolsets = set([target_dicts[target]['toolset'] for target in target_list])
973
+ for target in target_list:
974
+ spec = target_dicts[target]
975
+ if spec['default_configuration'] != 'Default':
976
+ default_configuration = spec['default_configuration']
977
+ break
978
+ if not default_configuration:
979
+ default_configuration = 'Default'
980
+
981
+ srcdir = '.'
982
+ makefile_name = 'GypAndroid' + options.suffix + '.mk'
983
+ makefile_path = os.path.join(options.toplevel_dir, makefile_name)
984
+ assert not options.generator_output, (
985
+ 'The Android backend does not support options.generator_output.')
986
+ make.ensure_directory_exists(makefile_path)
987
+ root_makefile = open(makefile_path, 'w')
988
+
989
+ root_makefile.write(header)
990
+
991
+ # We set LOCAL_PATH just once, here, to the top of the project tree. This
992
+ # allows all the other paths we use to be relative to the Android.mk file,
993
+ # as the Android build system expects.
994
+ root_makefile.write('\nLOCAL_PATH := $(call my-dir)\n')
995
+
996
+ # Find the list of targets that derive from the gyp file(s) being built.
997
+ needed_targets = set()
998
+ for build_file in params['build_files']:
999
+ for target in gyp.common.AllTargets(target_list, target_dicts, build_file):
1000
+ needed_targets.add(target)
1001
+
1002
+ build_files = set()
1003
+ include_list = set()
1004
+ android_modules = {}
1005
+ for qualified_target in target_list:
1006
+ build_file, target, toolset = gyp.common.ParseQualifiedTarget(
1007
+ qualified_target)
1008
+ relative_build_file = gyp.common.RelativePath(build_file,
1009
+ options.toplevel_dir)
1010
+ build_files.add(relative_build_file)
1011
+ included_files = data[build_file]['included_files']
1012
+ for included_file in included_files:
1013
+ # The included_files entries are relative to the dir of the build file
1014
+ # that included them, so we have to undo that and then make them relative
1015
+ # to the root dir.
1016
+ relative_include_file = gyp.common.RelativePath(
1017
+ gyp.common.UnrelativePath(included_file, build_file),
1018
+ options.toplevel_dir)
1019
+ abs_include_file = os.path.abspath(relative_include_file)
1020
+ # If the include file is from the ~/.gyp dir, we should use absolute path
1021
+ # so that relocating the src dir doesn't break the path.
1022
+ if (params['home_dot_gyp'] and
1023
+ abs_include_file.startswith(params['home_dot_gyp'])):
1024
+ build_files.add(abs_include_file)
1025
+ else:
1026
+ build_files.add(relative_include_file)
1027
+
1028
+ base_path, output_file = CalculateMakefilePath(build_file,
1029
+ target + '.' + toolset + options.suffix + '.mk')
1030
+
1031
+ spec = target_dicts[qualified_target]
1032
+ configs = spec['configurations']
1033
+
1034
+ part_of_all = (qualified_target in needed_targets and
1035
+ not int(spec.get('suppress_wildcard', False)))
1036
+ if limit_to_target_all and not part_of_all:
1037
+ continue
1038
+
1039
+ relative_target = gyp.common.QualifiedTarget(relative_build_file, target,
1040
+ toolset)
1041
+ writer = AndroidMkWriter(android_top_dir)
1042
+ android_module = writer.Write(qualified_target, relative_target, base_path,
1043
+ output_file, spec, configs,
1044
+ part_of_all=part_of_all)
1045
+ if android_module in android_modules:
1046
+ print ('ERROR: Android module names must be unique. The following '
1047
+ 'targets both generate Android module name %s.\n %s\n %s' %
1048
+ (android_module, android_modules[android_module],
1049
+ qualified_target))
1050
+ return
1051
+ android_modules[android_module] = qualified_target
1052
+
1053
+ # Our root_makefile lives at the source root. Compute the relative path
1054
+ # from there to the output_file for including.
1055
+ mkfile_rel_path = gyp.common.RelativePath(output_file,
1056
+ os.path.dirname(makefile_path))
1057
+ include_list.add(mkfile_rel_path)
1058
+
1059
+ root_makefile.write('GYP_CONFIGURATION ?= %s\n' % default_configuration)
1060
+
1061
+ # Write out the sorted list of includes.
1062
+ root_makefile.write('\n')
1063
+ for include_file in sorted(include_list):
1064
+ root_makefile.write('include $(LOCAL_PATH)/' + include_file + '\n')
1065
+ root_makefile.write('\n')
1066
+
1067
+ root_makefile.write(SHARED_FOOTER)
1068
+
1069
+ root_makefile.close()