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,44 @@
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 ninja.py file. """
8
+
9
+ import gyp.generator.ninja as ninja
10
+ import unittest
11
+ import StringIO
12
+ import sys
13
+ import TestCommon
14
+
15
+
16
+ class TestPrefixesAndSuffixes(unittest.TestCase):
17
+ def test_BinaryNamesWindows(self):
18
+ writer = ninja.NinjaWriter('foo', 'wee', '.', '.', 'build.ninja', '.',
19
+ 'build.ninja', 'win')
20
+ spec = { 'target_name': 'wee' }
21
+ self.assertTrue(writer.ComputeOutputFileName(spec, 'executable').
22
+ endswith('.exe'))
23
+ self.assertTrue(writer.ComputeOutputFileName(spec, 'shared_library').
24
+ endswith('.dll'))
25
+ self.assertTrue(writer.ComputeOutputFileName(spec, 'static_library').
26
+ endswith('.lib'))
27
+
28
+ def test_BinaryNamesLinux(self):
29
+ writer = ninja.NinjaWriter('foo', 'wee', '.', '.', 'build.ninja', '.',
30
+ 'build.ninja', 'linux')
31
+ spec = { 'target_name': 'wee' }
32
+ self.assertTrue('.' not in writer.ComputeOutputFileName(spec,
33
+ 'executable'))
34
+ self.assertTrue(writer.ComputeOutputFileName(spec, 'shared_library').
35
+ startswith('lib'))
36
+ self.assertTrue(writer.ComputeOutputFileName(spec, 'static_library').
37
+ startswith('lib'))
38
+ self.assertTrue(writer.ComputeOutputFileName(spec, 'shared_library').
39
+ endswith('.so'))
40
+ self.assertTrue(writer.ComputeOutputFileName(spec, 'static_library').
41
+ endswith('.a'))
42
+
43
+ if __name__ == '__main__':
44
+ unittest.main()
@@ -0,0 +1,1224 @@
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
+ import filecmp
6
+ import gyp.common
7
+ import gyp.xcodeproj_file
8
+ import errno
9
+ import os
10
+ import sys
11
+ import posixpath
12
+ import re
13
+ import shutil
14
+ import subprocess
15
+ import tempfile
16
+
17
+
18
+ # Project files generated by this module will use _intermediate_var as a
19
+ # custom Xcode setting whose value is a DerivedSources-like directory that's
20
+ # project-specific and configuration-specific. The normal choice,
21
+ # DERIVED_FILE_DIR, is target-specific, which is thought to be too restrictive
22
+ # as it is likely that multiple targets within a single project file will want
23
+ # to access the same set of generated files. The other option,
24
+ # PROJECT_DERIVED_FILE_DIR, is unsuitable because while it is project-specific,
25
+ # it is not configuration-specific. INTERMEDIATE_DIR is defined as
26
+ # $(PROJECT_DERIVED_FILE_DIR)/$(CONFIGURATION).
27
+ _intermediate_var = 'INTERMEDIATE_DIR'
28
+
29
+ # SHARED_INTERMEDIATE_DIR is the same, except that it is shared among all
30
+ # targets that share the same BUILT_PRODUCTS_DIR.
31
+ _shared_intermediate_var = 'SHARED_INTERMEDIATE_DIR'
32
+
33
+ _library_search_paths_var = 'LIBRARY_SEARCH_PATHS'
34
+
35
+ generator_default_variables = {
36
+ 'EXECUTABLE_PREFIX': '',
37
+ 'EXECUTABLE_SUFFIX': '',
38
+ 'STATIC_LIB_PREFIX': 'lib',
39
+ 'SHARED_LIB_PREFIX': 'lib',
40
+ 'STATIC_LIB_SUFFIX': '.a',
41
+ 'SHARED_LIB_SUFFIX': '.dylib',
42
+ # INTERMEDIATE_DIR is a place for targets to build up intermediate products.
43
+ # It is specific to each build environment. It is only guaranteed to exist
44
+ # and be constant within the context of a project, corresponding to a single
45
+ # input file. Some build environments may allow their intermediate directory
46
+ # to be shared on a wider scale, but this is not guaranteed.
47
+ 'INTERMEDIATE_DIR': '$(%s)' % _intermediate_var,
48
+ 'OS': 'mac',
49
+ 'PRODUCT_DIR': '$(BUILT_PRODUCTS_DIR)',
50
+ 'LIB_DIR': '$(BUILT_PRODUCTS_DIR)',
51
+ 'RULE_INPUT_ROOT': '$(INPUT_FILE_BASE)',
52
+ 'RULE_INPUT_EXT': '$(INPUT_FILE_SUFFIX)',
53
+ 'RULE_INPUT_NAME': '$(INPUT_FILE_NAME)',
54
+ 'RULE_INPUT_PATH': '$(INPUT_FILE_PATH)',
55
+ 'RULE_INPUT_DIRNAME': '$(INPUT_FILE_DIRNAME)',
56
+ 'SHARED_INTERMEDIATE_DIR': '$(%s)' % _shared_intermediate_var,
57
+ 'CONFIGURATION_NAME': '$(CONFIGURATION)',
58
+ }
59
+
60
+ # The Xcode-specific sections that hold paths.
61
+ generator_additional_path_sections = [
62
+ 'mac_bundle_resources',
63
+ 'mac_framework_headers',
64
+ 'mac_framework_private_headers',
65
+ # 'mac_framework_dirs', input already handles _dirs endings.
66
+ ]
67
+
68
+ # The Xcode-specific keys that exist on targets and aren't moved down to
69
+ # configurations.
70
+ generator_additional_non_configuration_keys = [
71
+ 'mac_bundle',
72
+ 'mac_bundle_resources',
73
+ 'mac_framework_headers',
74
+ 'mac_framework_private_headers',
75
+ 'mac_xctest_bundle',
76
+ 'xcode_create_dependents_test_runner',
77
+ ]
78
+
79
+ # We want to let any rules apply to files that are resources also.
80
+ generator_extra_sources_for_rules = [
81
+ 'mac_bundle_resources',
82
+ 'mac_framework_headers',
83
+ 'mac_framework_private_headers',
84
+ ]
85
+
86
+ # Xcode's standard set of library directories, which don't need to be duplicated
87
+ # in LIBRARY_SEARCH_PATHS. This list is not exhaustive, but that's okay.
88
+ xcode_standard_library_dirs = frozenset([
89
+ '$(SDKROOT)/usr/lib',
90
+ '$(SDKROOT)/usr/local/lib',
91
+ ])
92
+
93
+ def CreateXCConfigurationList(configuration_names):
94
+ xccl = gyp.xcodeproj_file.XCConfigurationList({'buildConfigurations': []})
95
+ if len(configuration_names) == 0:
96
+ configuration_names = ['Default']
97
+ for configuration_name in configuration_names:
98
+ xcbc = gyp.xcodeproj_file.XCBuildConfiguration({
99
+ 'name': configuration_name})
100
+ xccl.AppendProperty('buildConfigurations', xcbc)
101
+ xccl.SetProperty('defaultConfigurationName', configuration_names[0])
102
+ return xccl
103
+
104
+
105
+ class XcodeProject(object):
106
+ def __init__(self, gyp_path, path, build_file_dict):
107
+ self.gyp_path = gyp_path
108
+ self.path = path
109
+ self.project = gyp.xcodeproj_file.PBXProject(path=path)
110
+ projectDirPath = gyp.common.RelativePath(
111
+ os.path.dirname(os.path.abspath(self.gyp_path)),
112
+ os.path.dirname(path) or '.')
113
+ self.project.SetProperty('projectDirPath', projectDirPath)
114
+ self.project_file = \
115
+ gyp.xcodeproj_file.XCProjectFile({'rootObject': self.project})
116
+ self.build_file_dict = build_file_dict
117
+
118
+ # TODO(mark): add destructor that cleans up self.path if created_dir is
119
+ # True and things didn't complete successfully. Or do something even
120
+ # better with "try"?
121
+ self.created_dir = False
122
+ try:
123
+ os.makedirs(self.path)
124
+ self.created_dir = True
125
+ except OSError, e:
126
+ if e.errno != errno.EEXIST:
127
+ raise
128
+
129
+ def Finalize1(self, xcode_targets, serialize_all_tests):
130
+ # Collect a list of all of the build configuration names used by the
131
+ # various targets in the file. It is very heavily advised to keep each
132
+ # target in an entire project (even across multiple project files) using
133
+ # the same set of configuration names.
134
+ configurations = []
135
+ for xct in self.project.GetProperty('targets'):
136
+ xccl = xct.GetProperty('buildConfigurationList')
137
+ xcbcs = xccl.GetProperty('buildConfigurations')
138
+ for xcbc in xcbcs:
139
+ name = xcbc.GetProperty('name')
140
+ if name not in configurations:
141
+ configurations.append(name)
142
+
143
+ # Replace the XCConfigurationList attached to the PBXProject object with
144
+ # a new one specifying all of the configuration names used by the various
145
+ # targets.
146
+ try:
147
+ xccl = CreateXCConfigurationList(configurations)
148
+ self.project.SetProperty('buildConfigurationList', xccl)
149
+ except:
150
+ sys.stderr.write("Problem with gyp file %s\n" % self.gyp_path)
151
+ raise
152
+
153
+ # The need for this setting is explained above where _intermediate_var is
154
+ # defined. The comments below about wanting to avoid project-wide build
155
+ # settings apply here too, but this needs to be set on a project-wide basis
156
+ # so that files relative to the _intermediate_var setting can be displayed
157
+ # properly in the Xcode UI.
158
+ #
159
+ # Note that for configuration-relative files such as anything relative to
160
+ # _intermediate_var, for the purposes of UI tree view display, Xcode will
161
+ # only resolve the configuration name once, when the project file is
162
+ # opened. If the active build configuration is changed, the project file
163
+ # must be closed and reopened if it is desired for the tree view to update.
164
+ # This is filed as Apple radar 6588391.
165
+ xccl.SetBuildSetting(_intermediate_var,
166
+ '$(PROJECT_DERIVED_FILE_DIR)/$(CONFIGURATION)')
167
+ xccl.SetBuildSetting(_shared_intermediate_var,
168
+ '$(SYMROOT)/DerivedSources/$(CONFIGURATION)')
169
+
170
+ # Set user-specified project-wide build settings and config files. This
171
+ # is intended to be used very sparingly. Really, almost everything should
172
+ # go into target-specific build settings sections. The project-wide
173
+ # settings are only intended to be used in cases where Xcode attempts to
174
+ # resolve variable references in a project context as opposed to a target
175
+ # context, such as when resolving sourceTree references while building up
176
+ # the tree tree view for UI display.
177
+ # Any values set globally are applied to all configurations, then any
178
+ # per-configuration values are applied.
179
+ for xck, xcv in self.build_file_dict.get('xcode_settings', {}).iteritems():
180
+ xccl.SetBuildSetting(xck, xcv)
181
+ if 'xcode_config_file' in self.build_file_dict:
182
+ config_ref = self.project.AddOrGetFileInRootGroup(
183
+ self.build_file_dict['xcode_config_file'])
184
+ xccl.SetBaseConfiguration(config_ref)
185
+ build_file_configurations = self.build_file_dict.get('configurations', {})
186
+ if build_file_configurations:
187
+ for config_name in configurations:
188
+ build_file_configuration_named = \
189
+ build_file_configurations.get(config_name, {})
190
+ if build_file_configuration_named:
191
+ xcc = xccl.ConfigurationNamed(config_name)
192
+ for xck, xcv in build_file_configuration_named.get('xcode_settings',
193
+ {}).iteritems():
194
+ xcc.SetBuildSetting(xck, xcv)
195
+ if 'xcode_config_file' in build_file_configuration_named:
196
+ config_ref = self.project.AddOrGetFileInRootGroup(
197
+ build_file_configurations[config_name]['xcode_config_file'])
198
+ xcc.SetBaseConfiguration(config_ref)
199
+
200
+ # Sort the targets based on how they appeared in the input.
201
+ # TODO(mark): Like a lot of other things here, this assumes internal
202
+ # knowledge of PBXProject - in this case, of its "targets" property.
203
+
204
+ # ordinary_targets are ordinary targets that are already in the project
205
+ # file. run_test_targets are the targets that run unittests and should be
206
+ # used for the Run All Tests target. support_targets are the action/rule
207
+ # targets used by GYP file targets, just kept for the assert check.
208
+ ordinary_targets = []
209
+ run_test_targets = []
210
+ support_targets = []
211
+
212
+ # targets is full list of targets in the project.
213
+ targets = []
214
+
215
+ # does the it define it's own "all"?
216
+ has_custom_all = False
217
+
218
+ # targets_for_all is the list of ordinary_targets that should be listed
219
+ # in this project's "All" target. It includes each non_runtest_target
220
+ # that does not have suppress_wildcard set.
221
+ targets_for_all = []
222
+
223
+ for target in self.build_file_dict['targets']:
224
+ target_name = target['target_name']
225
+ toolset = target['toolset']
226
+ qualified_target = gyp.common.QualifiedTarget(self.gyp_path, target_name,
227
+ toolset)
228
+ xcode_target = xcode_targets[qualified_target]
229
+ # Make sure that the target being added to the sorted list is already in
230
+ # the unsorted list.
231
+ assert xcode_target in self.project._properties['targets']
232
+ targets.append(xcode_target)
233
+ ordinary_targets.append(xcode_target)
234
+ if xcode_target.support_target:
235
+ support_targets.append(xcode_target.support_target)
236
+ targets.append(xcode_target.support_target)
237
+
238
+ if not int(target.get('suppress_wildcard', False)):
239
+ targets_for_all.append(xcode_target)
240
+
241
+ if target_name.lower() == 'all':
242
+ has_custom_all = True;
243
+
244
+ # If this target has a 'run_as' attribute, add its target to the
245
+ # targets, and add it to the test targets.
246
+ if target.get('run_as'):
247
+ # Make a target to run something. It should have one
248
+ # dependency, the parent xcode target.
249
+ xccl = CreateXCConfigurationList(configurations)
250
+ run_target = gyp.xcodeproj_file.PBXAggregateTarget({
251
+ 'name': 'Run ' + target_name,
252
+ 'productName': xcode_target.GetProperty('productName'),
253
+ 'buildConfigurationList': xccl,
254
+ },
255
+ parent=self.project)
256
+ run_target.AddDependency(xcode_target)
257
+
258
+ command = target['run_as']
259
+ script = ''
260
+ if command.get('working_directory'):
261
+ script = script + 'cd "%s"\n' % \
262
+ gyp.xcodeproj_file.ConvertVariablesToShellSyntax(
263
+ command.get('working_directory'))
264
+
265
+ if command.get('environment'):
266
+ script = script + "\n".join(
267
+ ['export %s="%s"' %
268
+ (key, gyp.xcodeproj_file.ConvertVariablesToShellSyntax(val))
269
+ for (key, val) in command.get('environment').iteritems()]) + "\n"
270
+
271
+ # Some test end up using sockets, files on disk, etc. and can get
272
+ # confused if more then one test runs at a time. The generator
273
+ # flag 'xcode_serialize_all_test_runs' controls the forcing of all
274
+ # tests serially. It defaults to True. To get serial runs this
275
+ # little bit of python does the same as the linux flock utility to
276
+ # make sure only one runs at a time.
277
+ command_prefix = ''
278
+ if serialize_all_tests:
279
+ command_prefix = \
280
+ """python -c "import fcntl, subprocess, sys
281
+ file = open('$TMPDIR/GYP_serialize_test_runs', 'a')
282
+ fcntl.flock(file.fileno(), fcntl.LOCK_EX)
283
+ sys.exit(subprocess.call(sys.argv[1:]))" """
284
+
285
+ # If we were unable to exec for some reason, we want to exit
286
+ # with an error, and fixup variable references to be shell
287
+ # syntax instead of xcode syntax.
288
+ script = script + 'exec ' + command_prefix + '%s\nexit 1\n' % \
289
+ gyp.xcodeproj_file.ConvertVariablesToShellSyntax(
290
+ gyp.common.EncodePOSIXShellList(command.get('action')))
291
+
292
+ ssbp = gyp.xcodeproj_file.PBXShellScriptBuildPhase({
293
+ 'shellScript': script,
294
+ 'showEnvVarsInLog': 0,
295
+ })
296
+ run_target.AppendProperty('buildPhases', ssbp)
297
+
298
+ # Add the run target to the project file.
299
+ targets.append(run_target)
300
+ run_test_targets.append(run_target)
301
+ xcode_target.test_runner = run_target
302
+
303
+
304
+ # Make sure that the list of targets being replaced is the same length as
305
+ # the one replacing it, but allow for the added test runner targets.
306
+ assert len(self.project._properties['targets']) == \
307
+ len(ordinary_targets) + len(support_targets)
308
+
309
+ self.project._properties['targets'] = targets
310
+
311
+ # Get rid of unnecessary levels of depth in groups like the Source group.
312
+ self.project.RootGroupsTakeOverOnlyChildren(True)
313
+
314
+ # Sort the groups nicely. Do this after sorting the targets, because the
315
+ # Products group is sorted based on the order of the targets.
316
+ self.project.SortGroups()
317
+
318
+ # Create an "All" target if there's more than one target in this project
319
+ # file and the project didn't define its own "All" target. Put a generated
320
+ # "All" target first so that people opening up the project for the first
321
+ # time will build everything by default.
322
+ if len(targets_for_all) > 1 and not has_custom_all:
323
+ xccl = CreateXCConfigurationList(configurations)
324
+ all_target = gyp.xcodeproj_file.PBXAggregateTarget(
325
+ {
326
+ 'buildConfigurationList': xccl,
327
+ 'name': 'All',
328
+ },
329
+ parent=self.project)
330
+
331
+ for target in targets_for_all:
332
+ all_target.AddDependency(target)
333
+
334
+ # TODO(mark): This is evil because it relies on internal knowledge of
335
+ # PBXProject._properties. It's important to get the "All" target first,
336
+ # though.
337
+ self.project._properties['targets'].insert(0, all_target)
338
+
339
+ # The same, but for run_test_targets.
340
+ if len(run_test_targets) > 1:
341
+ xccl = CreateXCConfigurationList(configurations)
342
+ run_all_tests_target = gyp.xcodeproj_file.PBXAggregateTarget(
343
+ {
344
+ 'buildConfigurationList': xccl,
345
+ 'name': 'Run All Tests',
346
+ },
347
+ parent=self.project)
348
+ for run_test_target in run_test_targets:
349
+ run_all_tests_target.AddDependency(run_test_target)
350
+
351
+ # Insert after the "All" target, which must exist if there is more than
352
+ # one run_test_target.
353
+ self.project._properties['targets'].insert(1, run_all_tests_target)
354
+
355
+ def Finalize2(self, xcode_targets, xcode_target_to_target_dict):
356
+ # Finalize2 needs to happen in a separate step because the process of
357
+ # updating references to other projects depends on the ordering of targets
358
+ # within remote project files. Finalize1 is responsible for sorting duty,
359
+ # and once all project files are sorted, Finalize2 can come in and update
360
+ # these references.
361
+
362
+ # To support making a "test runner" target that will run all the tests
363
+ # that are direct dependents of any given target, we look for
364
+ # xcode_create_dependents_test_runner being set on an Aggregate target,
365
+ # and generate a second target that will run the tests runners found under
366
+ # the marked target.
367
+ for bf_tgt in self.build_file_dict['targets']:
368
+ if int(bf_tgt.get('xcode_create_dependents_test_runner', 0)):
369
+ tgt_name = bf_tgt['target_name']
370
+ toolset = bf_tgt['toolset']
371
+ qualified_target = gyp.common.QualifiedTarget(self.gyp_path,
372
+ tgt_name, toolset)
373
+ xcode_target = xcode_targets[qualified_target]
374
+ if isinstance(xcode_target, gyp.xcodeproj_file.PBXAggregateTarget):
375
+ # Collect all the run test targets.
376
+ all_run_tests = []
377
+ pbxtds = xcode_target.GetProperty('dependencies')
378
+ for pbxtd in pbxtds:
379
+ pbxcip = pbxtd.GetProperty('targetProxy')
380
+ dependency_xct = pbxcip.GetProperty('remoteGlobalIDString')
381
+ if hasattr(dependency_xct, 'test_runner'):
382
+ all_run_tests.append(dependency_xct.test_runner)
383
+
384
+ # Directly depend on all the runners as they depend on the target
385
+ # that builds them.
386
+ if len(all_run_tests) > 0:
387
+ run_all_target = gyp.xcodeproj_file.PBXAggregateTarget({
388
+ 'name': 'Run %s Tests' % tgt_name,
389
+ 'productName': tgt_name,
390
+ },
391
+ parent=self.project)
392
+ for run_test_target in all_run_tests:
393
+ run_all_target.AddDependency(run_test_target)
394
+
395
+ # Insert the test runner after the related target.
396
+ idx = self.project._properties['targets'].index(xcode_target)
397
+ self.project._properties['targets'].insert(idx + 1, run_all_target)
398
+
399
+ # Update all references to other projects, to make sure that the lists of
400
+ # remote products are complete. Otherwise, Xcode will fill them in when
401
+ # it opens the project file, which will result in unnecessary diffs.
402
+ # TODO(mark): This is evil because it relies on internal knowledge of
403
+ # PBXProject._other_pbxprojects.
404
+ for other_pbxproject in self.project._other_pbxprojects.keys():
405
+ self.project.AddOrGetProjectReference(other_pbxproject)
406
+
407
+ self.project.SortRemoteProductReferences()
408
+
409
+ # Give everything an ID.
410
+ self.project_file.ComputeIDs()
411
+
412
+ # Make sure that no two objects in the project file have the same ID. If
413
+ # multiple objects wind up with the same ID, upon loading the file, Xcode
414
+ # will only recognize one object (the last one in the file?) and the
415
+ # results are unpredictable.
416
+ self.project_file.EnsureNoIDCollisions()
417
+
418
+ def Write(self):
419
+ # Write the project file to a temporary location first. Xcode watches for
420
+ # changes to the project file and presents a UI sheet offering to reload
421
+ # the project when it does change. However, in some cases, especially when
422
+ # multiple projects are open or when Xcode is busy, things don't work so
423
+ # seamlessly. Sometimes, Xcode is able to detect that a project file has
424
+ # changed but can't unload it because something else is referencing it.
425
+ # To mitigate this problem, and to avoid even having Xcode present the UI
426
+ # sheet when an open project is rewritten for inconsequential changes, the
427
+ # project file is written to a temporary file in the xcodeproj directory
428
+ # first. The new temporary file is then compared to the existing project
429
+ # file, if any. If they differ, the new file replaces the old; otherwise,
430
+ # the new project file is simply deleted. Xcode properly detects a file
431
+ # being renamed over an open project file as a change and so it remains
432
+ # able to present the "project file changed" sheet under this system.
433
+ # Writing to a temporary file first also avoids the possible problem of
434
+ # Xcode rereading an incomplete project file.
435
+ (output_fd, new_pbxproj_path) = \
436
+ tempfile.mkstemp(suffix='.tmp', prefix='project.pbxproj.gyp.',
437
+ dir=self.path)
438
+
439
+ try:
440
+ output_file = os.fdopen(output_fd, 'wb')
441
+
442
+ self.project_file.Print(output_file)
443
+ output_file.close()
444
+
445
+ pbxproj_path = os.path.join(self.path, 'project.pbxproj')
446
+
447
+ same = False
448
+ try:
449
+ same = filecmp.cmp(pbxproj_path, new_pbxproj_path, False)
450
+ except OSError, e:
451
+ if e.errno != errno.ENOENT:
452
+ raise
453
+
454
+ if same:
455
+ # The new file is identical to the old one, just get rid of the new
456
+ # one.
457
+ os.unlink(new_pbxproj_path)
458
+ else:
459
+ # The new file is different from the old one, or there is no old one.
460
+ # Rename the new file to the permanent name.
461
+ #
462
+ # tempfile.mkstemp uses an overly restrictive mode, resulting in a
463
+ # file that can only be read by the owner, regardless of the umask.
464
+ # There's no reason to not respect the umask here, which means that
465
+ # an extra hoop is required to fetch it and reset the new file's mode.
466
+ #
467
+ # No way to get the umask without setting a new one? Set a safe one
468
+ # and then set it back to the old value.
469
+ umask = os.umask(077)
470
+ os.umask(umask)
471
+
472
+ os.chmod(new_pbxproj_path, 0666 & ~umask)
473
+ os.rename(new_pbxproj_path, pbxproj_path)
474
+
475
+ except Exception:
476
+ # Don't leave turds behind. In fact, if this code was responsible for
477
+ # creating the xcodeproj directory, get rid of that too.
478
+ os.unlink(new_pbxproj_path)
479
+ if self.created_dir:
480
+ shutil.rmtree(self.path, True)
481
+ raise
482
+
483
+
484
+ def AddSourceToTarget(source, type, pbxp, xct):
485
+ # TODO(mark): Perhaps source_extensions and library_extensions can be made a
486
+ # little bit fancier.
487
+ source_extensions = ['c', 'cc', 'cpp', 'cxx', 'm', 'mm', 's']
488
+
489
+ # .o is conceptually more of a "source" than a "library," but Xcode thinks
490
+ # of "sources" as things to compile and "libraries" (or "frameworks") as
491
+ # things to link with. Adding an object file to an Xcode target's frameworks
492
+ # phase works properly.
493
+ library_extensions = ['a', 'dylib', 'framework', 'o']
494
+
495
+ basename = posixpath.basename(source)
496
+ (root, ext) = posixpath.splitext(basename)
497
+ if ext:
498
+ ext = ext[1:].lower()
499
+
500
+ if ext in source_extensions and type != 'none':
501
+ xct.SourcesPhase().AddFile(source)
502
+ elif ext in library_extensions and type != 'none':
503
+ xct.FrameworksPhase().AddFile(source)
504
+ else:
505
+ # Files that aren't added to a sources or frameworks build phase can still
506
+ # go into the project file, just not as part of a build phase.
507
+ pbxp.AddOrGetFileInRootGroup(source)
508
+
509
+
510
+ def AddResourceToTarget(resource, pbxp, xct):
511
+ # TODO(mark): Combine with AddSourceToTarget above? Or just inline this call
512
+ # where it's used.
513
+ xct.ResourcesPhase().AddFile(resource)
514
+
515
+
516
+ def AddHeaderToTarget(header, pbxp, xct, is_public):
517
+ # TODO(mark): Combine with AddSourceToTarget above? Or just inline this call
518
+ # where it's used.
519
+ settings = '{ATTRIBUTES = (%s, ); }' % ('Private', 'Public')[is_public]
520
+ xct.HeadersPhase().AddFile(header, settings)
521
+
522
+
523
+ _xcode_variable_re = re.compile('(\$\((.*?)\))')
524
+ def ExpandXcodeVariables(string, expansions):
525
+ """Expands Xcode-style $(VARIABLES) in string per the expansions dict.
526
+
527
+ In some rare cases, it is appropriate to expand Xcode variables when a
528
+ project file is generated. For any substring $(VAR) in string, if VAR is a
529
+ key in the expansions dict, $(VAR) will be replaced with expansions[VAR].
530
+ Any $(VAR) substring in string for which VAR is not a key in the expansions
531
+ dict will remain in the returned string.
532
+ """
533
+
534
+ matches = _xcode_variable_re.findall(string)
535
+ if matches == None:
536
+ return string
537
+
538
+ matches.reverse()
539
+ for match in matches:
540
+ (to_replace, variable) = match
541
+ if not variable in expansions:
542
+ continue
543
+
544
+ replacement = expansions[variable]
545
+ string = re.sub(re.escape(to_replace), replacement, string)
546
+
547
+ return string
548
+
549
+
550
+ _xcode_define_re = re.compile(r'([\\\"\' ])')
551
+ def EscapeXcodeDefine(s):
552
+ """We must escape the defines that we give to XCode so that it knows not to
553
+ split on spaces and to respect backslash and quote literals. However, we
554
+ must not quote the define, or Xcode will incorrectly intepret variables
555
+ especially $(inherited)."""
556
+ return re.sub(_xcode_define_re, r'\\\1', s)
557
+
558
+
559
+ def PerformBuild(data, configurations, params):
560
+ options = params['options']
561
+
562
+ for build_file, build_file_dict in data.iteritems():
563
+ (build_file_root, build_file_ext) = os.path.splitext(build_file)
564
+ if build_file_ext != '.gyp':
565
+ continue
566
+ xcodeproj_path = build_file_root + options.suffix + '.xcodeproj'
567
+ if options.generator_output:
568
+ xcodeproj_path = os.path.join(options.generator_output, xcodeproj_path)
569
+
570
+ for config in configurations:
571
+ arguments = ['xcodebuild', '-project', xcodeproj_path]
572
+ arguments += ['-configuration', config]
573
+ print "Building [%s]: %s" % (config, arguments)
574
+ subprocess.check_call(arguments)
575
+
576
+
577
+ def GenerateOutput(target_list, target_dicts, data, params):
578
+ options = params['options']
579
+ generator_flags = params.get('generator_flags', {})
580
+ parallel_builds = generator_flags.get('xcode_parallel_builds', True)
581
+ serialize_all_tests = \
582
+ generator_flags.get('xcode_serialize_all_test_runs', True)
583
+ project_version = generator_flags.get('xcode_project_version', None)
584
+ skip_excluded_files = \
585
+ not generator_flags.get('xcode_list_excluded_files', True)
586
+ xcode_projects = {}
587
+ for build_file, build_file_dict in data.iteritems():
588
+ (build_file_root, build_file_ext) = os.path.splitext(build_file)
589
+ if build_file_ext != '.gyp':
590
+ continue
591
+ xcodeproj_path = build_file_root + options.suffix + '.xcodeproj'
592
+ if options.generator_output:
593
+ xcodeproj_path = os.path.join(options.generator_output, xcodeproj_path)
594
+ xcp = XcodeProject(build_file, xcodeproj_path, build_file_dict)
595
+ xcode_projects[build_file] = xcp
596
+ pbxp = xcp.project
597
+
598
+ if parallel_builds:
599
+ pbxp.SetProperty('attributes',
600
+ {'BuildIndependentTargetsInParallel': 'YES'})
601
+ if project_version:
602
+ xcp.project_file.SetXcodeVersion(project_version)
603
+
604
+ # Add gyp/gypi files to project
605
+ if not generator_flags.get('standalone'):
606
+ main_group = pbxp.GetProperty('mainGroup')
607
+ build_group = gyp.xcodeproj_file.PBXGroup({'name': 'Build'})
608
+ main_group.AppendChild(build_group)
609
+ for included_file in build_file_dict['included_files']:
610
+ build_group.AddOrGetFileByPath(included_file, False)
611
+
612
+ xcode_targets = {}
613
+ xcode_target_to_target_dict = {}
614
+ for qualified_target in target_list:
615
+ [build_file, target_name, toolset] = \
616
+ gyp.common.ParseQualifiedTarget(qualified_target)
617
+
618
+ spec = target_dicts[qualified_target]
619
+ if spec['toolset'] != 'target':
620
+ raise Exception(
621
+ 'Multiple toolsets not supported in xcode build (target %s)' %
622
+ qualified_target)
623
+ configuration_names = [spec['default_configuration']]
624
+ for configuration_name in sorted(spec['configurations'].keys()):
625
+ if configuration_name not in configuration_names:
626
+ configuration_names.append(configuration_name)
627
+ xcp = xcode_projects[build_file]
628
+ pbxp = xcp.project
629
+
630
+ # Set up the configurations for the target according to the list of names
631
+ # supplied.
632
+ xccl = CreateXCConfigurationList(configuration_names)
633
+
634
+ # Create an XCTarget subclass object for the target. The type with
635
+ # "+bundle" appended will be used if the target has "mac_bundle" set.
636
+ # loadable_modules not in a mac_bundle are mapped to
637
+ # com.googlecode.gyp.xcode.bundle, a pseudo-type that xcode.py interprets
638
+ # to create a single-file mh_bundle.
639
+ _types = {
640
+ 'executable': 'com.apple.product-type.tool',
641
+ 'loadable_module': 'com.googlecode.gyp.xcode.bundle',
642
+ 'shared_library': 'com.apple.product-type.library.dynamic',
643
+ 'static_library': 'com.apple.product-type.library.static',
644
+ 'executable+bundle': 'com.apple.product-type.application',
645
+ 'loadable_module+bundle': 'com.apple.product-type.bundle',
646
+ 'loadable_module+xctest': 'com.apple.product-type.bundle.unit-test',
647
+ 'shared_library+bundle': 'com.apple.product-type.framework',
648
+ }
649
+
650
+ target_properties = {
651
+ 'buildConfigurationList': xccl,
652
+ 'name': target_name,
653
+ }
654
+
655
+ type = spec['type']
656
+ is_xctest = int(spec.get('mac_xctest_bundle', 0))
657
+ is_bundle = int(spec.get('mac_bundle', 0)) or is_xctest
658
+ if type != 'none':
659
+ type_bundle_key = type
660
+ if is_xctest:
661
+ type_bundle_key += '+xctest'
662
+ assert type == 'loadable_module', (
663
+ 'mac_xctest_bundle targets must have type loadable_module '
664
+ '(target %s)' % target_name)
665
+ elif is_bundle:
666
+ type_bundle_key += '+bundle'
667
+
668
+ xctarget_type = gyp.xcodeproj_file.PBXNativeTarget
669
+ try:
670
+ target_properties['productType'] = _types[type_bundle_key]
671
+ except KeyError, e:
672
+ gyp.common.ExceptionAppend(e, "-- unknown product type while "
673
+ "writing target %s" % target_name)
674
+ raise
675
+ else:
676
+ xctarget_type = gyp.xcodeproj_file.PBXAggregateTarget
677
+ assert not is_bundle, (
678
+ 'mac_bundle targets cannot have type none (target "%s")' %
679
+ target_name)
680
+ assert not is_xctest, (
681
+ 'mac_xctest_bundle targets cannot have type none (target "%s")' %
682
+ target_name)
683
+
684
+ target_product_name = spec.get('product_name')
685
+ if target_product_name is not None:
686
+ target_properties['productName'] = target_product_name
687
+
688
+ xct = xctarget_type(target_properties, parent=pbxp,
689
+ force_outdir=spec.get('product_dir'),
690
+ force_prefix=spec.get('product_prefix'),
691
+ force_extension=spec.get('product_extension'))
692
+ pbxp.AppendProperty('targets', xct)
693
+ xcode_targets[qualified_target] = xct
694
+ xcode_target_to_target_dict[xct] = spec
695
+
696
+ spec_actions = spec.get('actions', [])
697
+ spec_rules = spec.get('rules', [])
698
+
699
+ # Xcode has some "issues" with checking dependencies for the "Compile
700
+ # sources" step with any source files/headers generated by actions/rules.
701
+ # To work around this, if a target is building anything directly (not
702
+ # type "none"), then a second target is used to run the GYP actions/rules
703
+ # and is made a dependency of this target. This way the work is done
704
+ # before the dependency checks for what should be recompiled.
705
+ support_xct = None
706
+ if type != 'none' and (spec_actions or spec_rules):
707
+ support_xccl = CreateXCConfigurationList(configuration_names);
708
+ support_target_properties = {
709
+ 'buildConfigurationList': support_xccl,
710
+ 'name': target_name + ' Support',
711
+ }
712
+ if target_product_name:
713
+ support_target_properties['productName'] = \
714
+ target_product_name + ' Support'
715
+ support_xct = \
716
+ gyp.xcodeproj_file.PBXAggregateTarget(support_target_properties,
717
+ parent=pbxp)
718
+ pbxp.AppendProperty('targets', support_xct)
719
+ xct.AddDependency(support_xct)
720
+ # Hang the support target off the main target so it can be tested/found
721
+ # by the generator during Finalize.
722
+ xct.support_target = support_xct
723
+
724
+ prebuild_index = 0
725
+
726
+ # Add custom shell script phases for "actions" sections.
727
+ for action in spec_actions:
728
+ # There's no need to write anything into the script to ensure that the
729
+ # output directories already exist, because Xcode will look at the
730
+ # declared outputs and automatically ensure that they exist for us.
731
+
732
+ # Do we have a message to print when this action runs?
733
+ message = action.get('message')
734
+ if message:
735
+ message = 'echo note: ' + gyp.common.EncodePOSIXShellArgument(message)
736
+ else:
737
+ message = ''
738
+
739
+ # Turn the list into a string that can be passed to a shell.
740
+ action_string = gyp.common.EncodePOSIXShellList(action['action'])
741
+
742
+ # Convert Xcode-type variable references to sh-compatible environment
743
+ # variable references.
744
+ message_sh = gyp.xcodeproj_file.ConvertVariablesToShellSyntax(message)
745
+ action_string_sh = gyp.xcodeproj_file.ConvertVariablesToShellSyntax(
746
+ action_string)
747
+
748
+ script = ''
749
+ # Include the optional message
750
+ if message_sh:
751
+ script += message_sh + '\n'
752
+ # Be sure the script runs in exec, and that if exec fails, the script
753
+ # exits signalling an error.
754
+ script += 'exec ' + action_string_sh + '\nexit 1\n'
755
+ ssbp = gyp.xcodeproj_file.PBXShellScriptBuildPhase({
756
+ 'inputPaths': action['inputs'],
757
+ 'name': 'Action "' + action['action_name'] + '"',
758
+ 'outputPaths': action['outputs'],
759
+ 'shellScript': script,
760
+ 'showEnvVarsInLog': 0,
761
+ })
762
+
763
+ if support_xct:
764
+ support_xct.AppendProperty('buildPhases', ssbp)
765
+ else:
766
+ # TODO(mark): this assumes too much knowledge of the internals of
767
+ # xcodeproj_file; some of these smarts should move into xcodeproj_file
768
+ # itself.
769
+ xct._properties['buildPhases'].insert(prebuild_index, ssbp)
770
+ prebuild_index = prebuild_index + 1
771
+
772
+ # TODO(mark): Should verify that at most one of these is specified.
773
+ if int(action.get('process_outputs_as_sources', False)):
774
+ for output in action['outputs']:
775
+ AddSourceToTarget(output, type, pbxp, xct)
776
+
777
+ if int(action.get('process_outputs_as_mac_bundle_resources', False)):
778
+ for output in action['outputs']:
779
+ AddResourceToTarget(output, pbxp, xct)
780
+
781
+ # tgt_mac_bundle_resources holds the list of bundle resources so
782
+ # the rule processing can check against it.
783
+ if is_bundle:
784
+ tgt_mac_bundle_resources = spec.get('mac_bundle_resources', [])
785
+ else:
786
+ tgt_mac_bundle_resources = []
787
+
788
+ # Add custom shell script phases driving "make" for "rules" sections.
789
+ #
790
+ # Xcode's built-in rule support is almost powerful enough to use directly,
791
+ # but there are a few significant deficiencies that render them unusable.
792
+ # There are workarounds for some of its inadequacies, but in aggregate,
793
+ # the workarounds added complexity to the generator, and some workarounds
794
+ # actually require input files to be crafted more carefully than I'd like.
795
+ # Consequently, until Xcode rules are made more capable, "rules" input
796
+ # sections will be handled in Xcode output by shell script build phases
797
+ # performed prior to the compilation phase.
798
+ #
799
+ # The following problems with Xcode rules were found. The numbers are
800
+ # Apple radar IDs. I hope that these shortcomings are addressed, I really
801
+ # liked having the rules handled directly in Xcode during the period that
802
+ # I was prototyping this.
803
+ #
804
+ # 6588600 Xcode compiles custom script rule outputs too soon, compilation
805
+ # fails. This occurs when rule outputs from distinct inputs are
806
+ # interdependent. The only workaround is to put rules and their
807
+ # inputs in a separate target from the one that compiles the rule
808
+ # outputs. This requires input file cooperation and it means that
809
+ # process_outputs_as_sources is unusable.
810
+ # 6584932 Need to declare that custom rule outputs should be excluded from
811
+ # compilation. A possible workaround is to lie to Xcode about a
812
+ # rule's output, giving it a dummy file it doesn't know how to
813
+ # compile. The rule action script would need to touch the dummy.
814
+ # 6584839 I need a way to declare additional inputs to a custom rule.
815
+ # A possible workaround is a shell script phase prior to
816
+ # compilation that touches a rule's primary input files if any
817
+ # would-be additional inputs are newer than the output. Modifying
818
+ # the source tree - even just modification times - feels dirty.
819
+ # 6564240 Xcode "custom script" build rules always dump all environment
820
+ # variables. This is a low-prioroty problem and is not a
821
+ # show-stopper.
822
+ rules_by_ext = {}
823
+ for rule in spec_rules:
824
+ rules_by_ext[rule['extension']] = rule
825
+
826
+ # First, some definitions:
827
+ #
828
+ # A "rule source" is a file that was listed in a target's "sources"
829
+ # list and will have a rule applied to it on the basis of matching the
830
+ # rule's "extensions" attribute. Rule sources are direct inputs to
831
+ # rules.
832
+ #
833
+ # Rule definitions may specify additional inputs in their "inputs"
834
+ # attribute. These additional inputs are used for dependency tracking
835
+ # purposes.
836
+ #
837
+ # A "concrete output" is a rule output with input-dependent variables
838
+ # resolved. For example, given a rule with:
839
+ # 'extension': 'ext', 'outputs': ['$(INPUT_FILE_BASE).cc'],
840
+ # if the target's "sources" list contained "one.ext" and "two.ext",
841
+ # the "concrete output" for rule input "two.ext" would be "two.cc". If
842
+ # a rule specifies multiple outputs, each input file that the rule is
843
+ # applied to will have the same number of concrete outputs.
844
+ #
845
+ # If any concrete outputs are outdated or missing relative to their
846
+ # corresponding rule_source or to any specified additional input, the
847
+ # rule action must be performed to generate the concrete outputs.
848
+
849
+ # concrete_outputs_by_rule_source will have an item at the same index
850
+ # as the rule['rule_sources'] that it corresponds to. Each item is a
851
+ # list of all of the concrete outputs for the rule_source.
852
+ concrete_outputs_by_rule_source = []
853
+
854
+ # concrete_outputs_all is a flat list of all concrete outputs that this
855
+ # rule is able to produce, given the known set of input files
856
+ # (rule_sources) that apply to it.
857
+ concrete_outputs_all = []
858
+
859
+ # messages & actions are keyed by the same indices as rule['rule_sources']
860
+ # and concrete_outputs_by_rule_source. They contain the message and
861
+ # action to perform after resolving input-dependent variables. The
862
+ # message is optional, in which case None is stored for each rule source.
863
+ messages = []
864
+ actions = []
865
+
866
+ for rule_source in rule.get('rule_sources', []):
867
+ rule_source_dirname, rule_source_basename = \
868
+ posixpath.split(rule_source)
869
+ (rule_source_root, rule_source_ext) = \
870
+ posixpath.splitext(rule_source_basename)
871
+
872
+ # These are the same variable names that Xcode uses for its own native
873
+ # rule support. Because Xcode's rule engine is not being used, they
874
+ # need to be expanded as they are written to the makefile.
875
+ rule_input_dict = {
876
+ 'INPUT_FILE_BASE': rule_source_root,
877
+ 'INPUT_FILE_SUFFIX': rule_source_ext,
878
+ 'INPUT_FILE_NAME': rule_source_basename,
879
+ 'INPUT_FILE_PATH': rule_source,
880
+ 'INPUT_FILE_DIRNAME': rule_source_dirname,
881
+ }
882
+
883
+ concrete_outputs_for_this_rule_source = []
884
+ for output in rule.get('outputs', []):
885
+ # Fortunately, Xcode and make both use $(VAR) format for their
886
+ # variables, so the expansion is the only transformation necessary.
887
+ # Any remaning $(VAR)-type variables in the string can be given
888
+ # directly to make, which will pick up the correct settings from
889
+ # what Xcode puts into the environment.
890
+ concrete_output = ExpandXcodeVariables(output, rule_input_dict)
891
+ concrete_outputs_for_this_rule_source.append(concrete_output)
892
+
893
+ # Add all concrete outputs to the project.
894
+ pbxp.AddOrGetFileInRootGroup(concrete_output)
895
+
896
+ concrete_outputs_by_rule_source.append( \
897
+ concrete_outputs_for_this_rule_source)
898
+ concrete_outputs_all.extend(concrete_outputs_for_this_rule_source)
899
+
900
+ # TODO(mark): Should verify that at most one of these is specified.
901
+ if int(rule.get('process_outputs_as_sources', False)):
902
+ for output in concrete_outputs_for_this_rule_source:
903
+ AddSourceToTarget(output, type, pbxp, xct)
904
+
905
+ # If the file came from the mac_bundle_resources list or if the rule
906
+ # is marked to process outputs as bundle resource, do so.
907
+ was_mac_bundle_resource = rule_source in tgt_mac_bundle_resources
908
+ if was_mac_bundle_resource or \
909
+ int(rule.get('process_outputs_as_mac_bundle_resources', False)):
910
+ for output in concrete_outputs_for_this_rule_source:
911
+ AddResourceToTarget(output, pbxp, xct)
912
+
913
+ # Do we have a message to print when this rule runs?
914
+ message = rule.get('message')
915
+ if message:
916
+ message = gyp.common.EncodePOSIXShellArgument(message)
917
+ message = ExpandXcodeVariables(message, rule_input_dict)
918
+ messages.append(message)
919
+
920
+ # Turn the list into a string that can be passed to a shell.
921
+ action_string = gyp.common.EncodePOSIXShellList(rule['action'])
922
+
923
+ action = ExpandXcodeVariables(action_string, rule_input_dict)
924
+ actions.append(action)
925
+
926
+ if len(concrete_outputs_all) > 0:
927
+ # TODO(mark): There's a possibilty for collision here. Consider
928
+ # target "t" rule "A_r" and target "t_A" rule "r".
929
+ makefile_name = '%s.make' % re.sub(
930
+ '[^a-zA-Z0-9_]', '_' , '%s_%s' % (target_name, rule['rule_name']))
931
+ makefile_path = os.path.join(xcode_projects[build_file].path,
932
+ makefile_name)
933
+ # TODO(mark): try/close? Write to a temporary file and swap it only
934
+ # if it's got changes?
935
+ makefile = open(makefile_path, 'wb')
936
+
937
+ # make will build the first target in the makefile by default. By
938
+ # convention, it's called "all". List all (or at least one)
939
+ # concrete output for each rule source as a prerequisite of the "all"
940
+ # target.
941
+ makefile.write('all: \\\n')
942
+ for concrete_output_index in \
943
+ xrange(0, len(concrete_outputs_by_rule_source)):
944
+ # Only list the first (index [0]) concrete output of each input
945
+ # in the "all" target. Otherwise, a parallel make (-j > 1) would
946
+ # attempt to process each input multiple times simultaneously.
947
+ # Otherwise, "all" could just contain the entire list of
948
+ # concrete_outputs_all.
949
+ concrete_output = \
950
+ concrete_outputs_by_rule_source[concrete_output_index][0]
951
+ if concrete_output_index == len(concrete_outputs_by_rule_source) - 1:
952
+ eol = ''
953
+ else:
954
+ eol = ' \\'
955
+ makefile.write(' %s%s\n' % (concrete_output, eol))
956
+
957
+ for (rule_source, concrete_outputs, message, action) in \
958
+ zip(rule['rule_sources'], concrete_outputs_by_rule_source,
959
+ messages, actions):
960
+ makefile.write('\n')
961
+
962
+ # Add a rule that declares it can build each concrete output of a
963
+ # rule source. Collect the names of the directories that are
964
+ # required.
965
+ concrete_output_dirs = []
966
+ for concrete_output_index in xrange(0, len(concrete_outputs)):
967
+ concrete_output = concrete_outputs[concrete_output_index]
968
+ if concrete_output_index == 0:
969
+ bol = ''
970
+ else:
971
+ bol = ' '
972
+ makefile.write('%s%s \\\n' % (bol, concrete_output))
973
+
974
+ concrete_output_dir = posixpath.dirname(concrete_output)
975
+ if (concrete_output_dir and
976
+ concrete_output_dir not in concrete_output_dirs):
977
+ concrete_output_dirs.append(concrete_output_dir)
978
+
979
+ makefile.write(' : \\\n')
980
+
981
+ # The prerequisites for this rule are the rule source itself and
982
+ # the set of additional rule inputs, if any.
983
+ prerequisites = [rule_source]
984
+ prerequisites.extend(rule.get('inputs', []))
985
+ for prerequisite_index in xrange(0, len(prerequisites)):
986
+ prerequisite = prerequisites[prerequisite_index]
987
+ if prerequisite_index == len(prerequisites) - 1:
988
+ eol = ''
989
+ else:
990
+ eol = ' \\'
991
+ makefile.write(' %s%s\n' % (prerequisite, eol))
992
+
993
+ # Make sure that output directories exist before executing the rule
994
+ # action.
995
+ if len(concrete_output_dirs) > 0:
996
+ makefile.write('\t@mkdir -p "%s"\n' %
997
+ '" "'.join(concrete_output_dirs))
998
+
999
+ # The rule message and action have already had the necessary variable
1000
+ # substitutions performed.
1001
+ if message:
1002
+ # Mark it with note: so Xcode picks it up in build output.
1003
+ makefile.write('\t@echo note: %s\n' % message)
1004
+ makefile.write('\t%s\n' % action)
1005
+
1006
+ makefile.close()
1007
+
1008
+ # It might be nice to ensure that needed output directories exist
1009
+ # here rather than in each target in the Makefile, but that wouldn't
1010
+ # work if there ever was a concrete output that had an input-dependent
1011
+ # variable anywhere other than in the leaf position.
1012
+
1013
+ # Don't declare any inputPaths or outputPaths. If they're present,
1014
+ # Xcode will provide a slight optimization by only running the script
1015
+ # phase if any output is missing or outdated relative to any input.
1016
+ # Unfortunately, it will also assume that all outputs are touched by
1017
+ # the script, and if the outputs serve as files in a compilation
1018
+ # phase, they will be unconditionally rebuilt. Since make might not
1019
+ # rebuild everything that could be declared here as an output, this
1020
+ # extra compilation activity is unnecessary. With inputPaths and
1021
+ # outputPaths not supplied, make will always be called, but it knows
1022
+ # enough to not do anything when everything is up-to-date.
1023
+
1024
+ # To help speed things up, pass -j COUNT to make so it does some work
1025
+ # in parallel. Don't use ncpus because Xcode will build ncpus targets
1026
+ # in parallel and if each target happens to have a rules step, there
1027
+ # would be ncpus^2 things going. With a machine that has 2 quad-core
1028
+ # Xeons, a build can quickly run out of processes based on
1029
+ # scheduling/other tasks, and randomly failing builds are no good.
1030
+ script = \
1031
+ """JOB_COUNT="$(/usr/sbin/sysctl -n hw.ncpu)"
1032
+ if [ "${JOB_COUNT}" -gt 4 ]; then
1033
+ JOB_COUNT=4
1034
+ fi
1035
+ exec xcrun make -f "${PROJECT_FILE_PATH}/%s" -j "${JOB_COUNT}"
1036
+ exit 1
1037
+ """ % makefile_name
1038
+ ssbp = gyp.xcodeproj_file.PBXShellScriptBuildPhase({
1039
+ 'name': 'Rule "' + rule['rule_name'] + '"',
1040
+ 'shellScript': script,
1041
+ 'showEnvVarsInLog': 0,
1042
+ })
1043
+
1044
+ if support_xct:
1045
+ support_xct.AppendProperty('buildPhases', ssbp)
1046
+ else:
1047
+ # TODO(mark): this assumes too much knowledge of the internals of
1048
+ # xcodeproj_file; some of these smarts should move into xcodeproj_file
1049
+ # itself.
1050
+ xct._properties['buildPhases'].insert(prebuild_index, ssbp)
1051
+ prebuild_index = prebuild_index + 1
1052
+
1053
+ # Extra rule inputs also go into the project file. Concrete outputs were
1054
+ # already added when they were computed.
1055
+ groups = ['inputs', 'inputs_excluded']
1056
+ if skip_excluded_files:
1057
+ groups = [x for x in groups if not x.endswith('_excluded')]
1058
+ for group in groups:
1059
+ for item in rule.get(group, []):
1060
+ pbxp.AddOrGetFileInRootGroup(item)
1061
+
1062
+ # Add "sources".
1063
+ for source in spec.get('sources', []):
1064
+ (source_root, source_extension) = posixpath.splitext(source)
1065
+ if source_extension[1:] not in rules_by_ext:
1066
+ # AddSourceToTarget will add the file to a root group if it's not
1067
+ # already there.
1068
+ AddSourceToTarget(source, type, pbxp, xct)
1069
+ else:
1070
+ pbxp.AddOrGetFileInRootGroup(source)
1071
+
1072
+ # Add "mac_bundle_resources" and "mac_framework_private_headers" if
1073
+ # it's a bundle of any type.
1074
+ if is_bundle:
1075
+ for resource in tgt_mac_bundle_resources:
1076
+ (resource_root, resource_extension) = posixpath.splitext(resource)
1077
+ if resource_extension[1:] not in rules_by_ext:
1078
+ AddResourceToTarget(resource, pbxp, xct)
1079
+ else:
1080
+ pbxp.AddOrGetFileInRootGroup(resource)
1081
+
1082
+ for header in spec.get('mac_framework_private_headers', []):
1083
+ AddHeaderToTarget(header, pbxp, xct, False)
1084
+
1085
+ # Add "mac_framework_headers". These can be valid for both frameworks
1086
+ # and static libraries.
1087
+ if is_bundle or type == 'static_library':
1088
+ for header in spec.get('mac_framework_headers', []):
1089
+ AddHeaderToTarget(header, pbxp, xct, True)
1090
+
1091
+ # Add "copies".
1092
+ pbxcp_dict = {}
1093
+ for copy_group in spec.get('copies', []):
1094
+ dest = copy_group['destination']
1095
+ if dest[0] not in ('/', '$'):
1096
+ # Relative paths are relative to $(SRCROOT).
1097
+ dest = '$(SRCROOT)/' + dest
1098
+
1099
+ # Coalesce multiple "copies" sections in the same target with the same
1100
+ # "destination" property into the same PBXCopyFilesBuildPhase, otherwise
1101
+ # they'll wind up with ID collisions.
1102
+ pbxcp = pbxcp_dict.get(dest, None)
1103
+ if pbxcp is None:
1104
+ pbxcp = gyp.xcodeproj_file.PBXCopyFilesBuildPhase({
1105
+ 'name': 'Copy to ' + copy_group['destination']
1106
+ },
1107
+ parent=xct)
1108
+ pbxcp.SetDestination(dest)
1109
+
1110
+ # TODO(mark): The usual comment about this knowing too much about
1111
+ # gyp.xcodeproj_file internals applies.
1112
+ xct._properties['buildPhases'].insert(prebuild_index, pbxcp)
1113
+
1114
+ pbxcp_dict[dest] = pbxcp
1115
+
1116
+ for file in copy_group['files']:
1117
+ pbxcp.AddFile(file)
1118
+
1119
+ # Excluded files can also go into the project file.
1120
+ if not skip_excluded_files:
1121
+ for key in ['sources', 'mac_bundle_resources', 'mac_framework_headers',
1122
+ 'mac_framework_private_headers']:
1123
+ excluded_key = key + '_excluded'
1124
+ for item in spec.get(excluded_key, []):
1125
+ pbxp.AddOrGetFileInRootGroup(item)
1126
+
1127
+ # So can "inputs" and "outputs" sections of "actions" groups.
1128
+ groups = ['inputs', 'inputs_excluded', 'outputs', 'outputs_excluded']
1129
+ if skip_excluded_files:
1130
+ groups = [x for x in groups if not x.endswith('_excluded')]
1131
+ for action in spec.get('actions', []):
1132
+ for group in groups:
1133
+ for item in action.get(group, []):
1134
+ # Exclude anything in BUILT_PRODUCTS_DIR. They're products, not
1135
+ # sources.
1136
+ if not item.startswith('$(BUILT_PRODUCTS_DIR)/'):
1137
+ pbxp.AddOrGetFileInRootGroup(item)
1138
+
1139
+ for postbuild in spec.get('postbuilds', []):
1140
+ action_string_sh = gyp.common.EncodePOSIXShellList(postbuild['action'])
1141
+ script = 'exec ' + action_string_sh + '\nexit 1\n'
1142
+
1143
+ # Make the postbuild step depend on the output of ld or ar from this
1144
+ # target. Apparently putting the script step after the link step isn't
1145
+ # sufficient to ensure proper ordering in all cases. With an input
1146
+ # declared but no outputs, the script step should run every time, as
1147
+ # desired.
1148
+ ssbp = gyp.xcodeproj_file.PBXShellScriptBuildPhase({
1149
+ 'inputPaths': ['$(BUILT_PRODUCTS_DIR)/$(EXECUTABLE_PATH)'],
1150
+ 'name': 'Postbuild "' + postbuild['postbuild_name'] + '"',
1151
+ 'shellScript': script,
1152
+ 'showEnvVarsInLog': 0,
1153
+ })
1154
+ xct.AppendProperty('buildPhases', ssbp)
1155
+
1156
+ # Add dependencies before libraries, because adding a dependency may imply
1157
+ # adding a library. It's preferable to keep dependencies listed first
1158
+ # during a link phase so that they can override symbols that would
1159
+ # otherwise be provided by libraries, which will usually include system
1160
+ # libraries. On some systems, ld is finicky and even requires the
1161
+ # libraries to be ordered in such a way that unresolved symbols in
1162
+ # earlier-listed libraries may only be resolved by later-listed libraries.
1163
+ # The Mac linker doesn't work that way, but other platforms do, and so
1164
+ # their linker invocations need to be constructed in this way. There's
1165
+ # no compelling reason for Xcode's linker invocations to differ.
1166
+
1167
+ if 'dependencies' in spec:
1168
+ for dependency in spec['dependencies']:
1169
+ xct.AddDependency(xcode_targets[dependency])
1170
+ # The support project also gets the dependencies (in case they are
1171
+ # needed for the actions/rules to work).
1172
+ if support_xct:
1173
+ support_xct.AddDependency(xcode_targets[dependency])
1174
+
1175
+ if 'libraries' in spec:
1176
+ for library in spec['libraries']:
1177
+ xct.FrameworksPhase().AddFile(library)
1178
+ # Add the library's directory to LIBRARY_SEARCH_PATHS if necessary.
1179
+ # I wish Xcode handled this automatically.
1180
+ library_dir = posixpath.dirname(library)
1181
+ if library_dir not in xcode_standard_library_dirs and (
1182
+ not xct.HasBuildSetting(_library_search_paths_var) or
1183
+ library_dir not in xct.GetBuildSetting(_library_search_paths_var)):
1184
+ xct.AppendBuildSetting(_library_search_paths_var, library_dir)
1185
+
1186
+ for configuration_name in configuration_names:
1187
+ configuration = spec['configurations'][configuration_name]
1188
+ xcbc = xct.ConfigurationNamed(configuration_name)
1189
+ for include_dir in configuration.get('mac_framework_dirs', []):
1190
+ xcbc.AppendBuildSetting('FRAMEWORK_SEARCH_PATHS', include_dir)
1191
+ for include_dir in configuration.get('include_dirs', []):
1192
+ xcbc.AppendBuildSetting('HEADER_SEARCH_PATHS', include_dir)
1193
+ for library_dir in configuration.get('library_dirs', []):
1194
+ if library_dir not in xcode_standard_library_dirs and (
1195
+ not xcbc.HasBuildSetting(_library_search_paths_var) or
1196
+ library_dir not in xcbc.GetBuildSetting(_library_search_paths_var)):
1197
+ xcbc.AppendBuildSetting(_library_search_paths_var, library_dir)
1198
+
1199
+ if 'defines' in configuration:
1200
+ for define in configuration['defines']:
1201
+ set_define = EscapeXcodeDefine(define)
1202
+ xcbc.AppendBuildSetting('GCC_PREPROCESSOR_DEFINITIONS', set_define)
1203
+ if 'xcode_settings' in configuration:
1204
+ for xck, xcv in configuration['xcode_settings'].iteritems():
1205
+ xcbc.SetBuildSetting(xck, xcv)
1206
+ if 'xcode_config_file' in configuration:
1207
+ config_ref = pbxp.AddOrGetFileInRootGroup(
1208
+ configuration['xcode_config_file'])
1209
+ xcbc.SetBaseConfiguration(config_ref)
1210
+
1211
+ build_files = []
1212
+ for build_file, build_file_dict in data.iteritems():
1213
+ if build_file.endswith('.gyp'):
1214
+ build_files.append(build_file)
1215
+
1216
+ for build_file in build_files:
1217
+ xcode_projects[build_file].Finalize1(xcode_targets, serialize_all_tests)
1218
+
1219
+ for build_file in build_files:
1220
+ xcode_projects[build_file].Finalize2(xcode_targets,
1221
+ xcode_target_to_target_dict)
1222
+
1223
+ for build_file in build_files:
1224
+ xcode_projects[build_file].Write()