rubygems-update 2.6.4 → 2.6.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rubygems-update might be problematic. Click here for more details.

Files changed (288) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +18 -24
  3. data/CODE_OF_CONDUCT.md +2 -2
  4. data/CONTRIBUTING.rdoc +1 -1
  5. data/History.txt +30 -1
  6. data/Manifest.txt +233 -3
  7. data/Rakefile +30 -1
  8. data/appveyor.yml +0 -2
  9. data/bundler/CHANGELOG.md +2407 -0
  10. data/bundler/CODE_OF_CONDUCT.md +42 -0
  11. data/bundler/CONTRIBUTING.md +36 -0
  12. data/bundler/DEVELOPMENT.md +148 -0
  13. data/bundler/ISSUES.md +100 -0
  14. data/bundler/LICENSE.md +23 -0
  15. data/bundler/README.md +40 -0
  16. data/bundler/exe/bundle +35 -0
  17. data/bundler/exe/bundle_ruby +61 -0
  18. data/bundler/exe/bundler +22 -0
  19. data/bundler/lib/bundler.rb +455 -0
  20. data/bundler/lib/bundler/capistrano.rb +17 -0
  21. data/bundler/lib/bundler/cli.rb +497 -0
  22. data/bundler/lib/bundler/cli/binstubs.rb +40 -0
  23. data/bundler/lib/bundler/cli/cache.rb +35 -0
  24. data/bundler/lib/bundler/cli/check.rb +40 -0
  25. data/bundler/lib/bundler/cli/clean.rb +26 -0
  26. data/bundler/lib/bundler/cli/common.rb +56 -0
  27. data/bundler/lib/bundler/cli/config.rb +100 -0
  28. data/bundler/lib/bundler/cli/console.rb +39 -0
  29. data/bundler/lib/bundler/cli/exec.rb +82 -0
  30. data/bundler/lib/bundler/cli/gem.rb +214 -0
  31. data/bundler/lib/bundler/cli/init.rb +33 -0
  32. data/bundler/lib/bundler/cli/inject.rb +33 -0
  33. data/bundler/lib/bundler/cli/install.rb +225 -0
  34. data/bundler/lib/bundler/cli/lock.rb +48 -0
  35. data/bundler/lib/bundler/cli/open.rb +25 -0
  36. data/bundler/lib/bundler/cli/outdated.rb +151 -0
  37. data/bundler/lib/bundler/cli/package.rb +46 -0
  38. data/bundler/lib/bundler/cli/platform.rb +45 -0
  39. data/bundler/lib/bundler/cli/plugin.rb +23 -0
  40. data/bundler/lib/bundler/cli/show.rb +75 -0
  41. data/bundler/lib/bundler/cli/update.rb +72 -0
  42. data/bundler/lib/bundler/cli/viz.rb +27 -0
  43. data/bundler/lib/bundler/constants.rb +6 -0
  44. data/bundler/lib/bundler/current_ruby.rb +84 -0
  45. data/bundler/lib/bundler/definition.rb +744 -0
  46. data/bundler/lib/bundler/dep_proxy.rb +46 -0
  47. data/bundler/lib/bundler/dependency.rb +127 -0
  48. data/bundler/lib/bundler/deployment.rb +63 -0
  49. data/bundler/lib/bundler/deprecate.rb +16 -0
  50. data/bundler/lib/bundler/dsl.rb +512 -0
  51. data/bundler/lib/bundler/endpoint_specification.rb +129 -0
  52. data/bundler/lib/bundler/env.rb +83 -0
  53. data/bundler/lib/bundler/environment.rb +42 -0
  54. data/bundler/lib/bundler/environment_preserver.rb +38 -0
  55. data/bundler/lib/bundler/errors.rb +124 -0
  56. data/bundler/lib/bundler/fetcher.rb +304 -0
  57. data/bundler/lib/bundler/fetcher/base.rb +41 -0
  58. data/bundler/lib/bundler/fetcher/compact_index.rb +103 -0
  59. data/bundler/lib/bundler/fetcher/dependency.rb +92 -0
  60. data/bundler/lib/bundler/fetcher/downloader.rb +66 -0
  61. data/bundler/lib/bundler/fetcher/index.rb +51 -0
  62. data/bundler/lib/bundler/friendly_errors.rb +103 -0
  63. data/bundler/lib/bundler/gem_helper.rb +188 -0
  64. data/bundler/lib/bundler/gem_helpers.rb +32 -0
  65. data/bundler/lib/bundler/gem_remote_fetcher.rb +42 -0
  66. data/bundler/lib/bundler/gem_tasks.rb +6 -0
  67. data/bundler/lib/bundler/graph.rb +172 -0
  68. data/bundler/lib/bundler/index.rb +191 -0
  69. data/bundler/lib/bundler/injector.rb +63 -0
  70. data/bundler/lib/bundler/inline.rb +74 -0
  71. data/bundler/lib/bundler/installer.rb +217 -0
  72. data/bundler/lib/bundler/installer/gem_installer.rb +77 -0
  73. data/bundler/lib/bundler/installer/parallel_installer.rb +126 -0
  74. data/bundler/lib/bundler/installer/standalone.rb +52 -0
  75. data/bundler/lib/bundler/lazy_specification.rb +85 -0
  76. data/bundler/lib/bundler/lockfile_parser.rb +233 -0
  77. data/bundler/lib/bundler/match_platform.rb +14 -0
  78. data/bundler/lib/bundler/mirror.rb +218 -0
  79. data/bundler/lib/bundler/plugin.rb +156 -0
  80. data/bundler/lib/bundler/plugin/api.rb +56 -0
  81. data/bundler/lib/bundler/plugin/dsl.rb +29 -0
  82. data/bundler/lib/bundler/plugin/index.rb +88 -0
  83. data/bundler/lib/bundler/plugin/installer.rb +99 -0
  84. data/bundler/lib/bundler/plugin/installer/git.rb +38 -0
  85. data/bundler/lib/bundler/plugin/installer/rubygems.rb +27 -0
  86. data/bundler/lib/bundler/plugin/source_list.rb +24 -0
  87. data/bundler/lib/bundler/postit_trampoline.rb +57 -0
  88. data/bundler/lib/bundler/psyched_yaml.rb +27 -0
  89. data/bundler/lib/bundler/remote_specification.rb +85 -0
  90. data/bundler/lib/bundler/resolver.rb +368 -0
  91. data/bundler/lib/bundler/retry.rb +61 -0
  92. data/bundler/lib/bundler/ruby_dsl.rb +17 -0
  93. data/bundler/lib/bundler/ruby_version.rb +140 -0
  94. data/bundler/lib/bundler/rubygems_ext.rb +178 -0
  95. data/bundler/lib/bundler/rubygems_gem_installer.rb +10 -0
  96. data/bundler/lib/bundler/rubygems_integration.rb +710 -0
  97. data/bundler/lib/bundler/runtime.rb +282 -0
  98. data/bundler/lib/bundler/settings.rb +259 -0
  99. data/bundler/lib/bundler/setup.rb +28 -0
  100. data/bundler/lib/bundler/shared_helpers.rb +212 -0
  101. data/bundler/lib/bundler/similarity_detector.rb +62 -0
  102. data/bundler/lib/bundler/source.rb +37 -0
  103. data/bundler/lib/bundler/source/gemspec.rb +13 -0
  104. data/bundler/lib/bundler/source/git.rb +297 -0
  105. data/bundler/lib/bundler/source/git/git_proxy.rb +218 -0
  106. data/bundler/lib/bundler/source/path.rb +245 -0
  107. data/bundler/lib/bundler/source/path/installer.rb +44 -0
  108. data/bundler/lib/bundler/source/rubygems.rb +450 -0
  109. data/bundler/lib/bundler/source/rubygems/remote.rb +59 -0
  110. data/bundler/lib/bundler/source_list.rb +106 -0
  111. data/bundler/lib/bundler/spec_set.rb +157 -0
  112. data/bundler/lib/bundler/ssl_certs/.document +1 -0
  113. data/bundler/lib/bundler/ssl_certs/certificate_manager.rb +65 -0
  114. data/bundler/lib/bundler/ssl_certs/index.rubygems.org/GlobalSignRootCA.pem +21 -0
  115. data/bundler/lib/bundler/ssl_certs/rubygems.global.ssl.fastly.net/DigiCertHighAssuranceEVRootCA.pem +23 -0
  116. data/{lib/rubygems/ssl_certs/rubygems.org/AddTrustExternalCARoot-2048.pem → bundler/lib/bundler/ssl_certs/rubygems.org/AddTrustExternalCARoot.pem} +0 -0
  117. data/bundler/lib/bundler/stub_specification.rb +24 -0
  118. data/bundler/lib/bundler/templates/Executable +17 -0
  119. data/bundler/lib/bundler/templates/Executable.standalone +12 -0
  120. data/bundler/lib/bundler/templates/Gemfile +5 -0
  121. data/bundler/lib/bundler/templates/newgem/.travis.yml.tt +5 -0
  122. data/bundler/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +74 -0
  123. data/bundler/lib/bundler/templates/newgem/Gemfile.tt +4 -0
  124. data/bundler/lib/bundler/templates/newgem/LICENSE.txt.tt +21 -0
  125. data/bundler/lib/bundler/templates/newgem/README.md.tt +41 -0
  126. data/bundler/lib/bundler/templates/newgem/Rakefile.tt +29 -0
  127. data/bundler/lib/bundler/templates/newgem/bin/console.tt +14 -0
  128. data/bundler/lib/bundler/templates/newgem/bin/setup.tt +8 -0
  129. data/bundler/lib/bundler/templates/newgem/exe/newgem.tt +3 -0
  130. data/bundler/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt +3 -0
  131. data/bundler/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt +9 -0
  132. data/bundler/lib/bundler/templates/newgem/ext/newgem/newgem.h.tt +6 -0
  133. data/bundler/lib/bundler/templates/newgem/gitignore.tt +16 -0
  134. data/bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt +12 -0
  135. data/bundler/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +7 -0
  136. data/bundler/lib/bundler/templates/newgem/newgem.gemspec.tt +46 -0
  137. data/bundler/lib/bundler/templates/newgem/rspec.tt +2 -0
  138. data/bundler/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +11 -0
  139. data/bundler/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +2 -0
  140. data/bundler/lib/bundler/templates/newgem/test/newgem_test.rb.tt +11 -0
  141. data/bundler/lib/bundler/templates/newgem/test/test_helper.rb.tt +4 -0
  142. data/bundler/lib/bundler/ui.rb +8 -0
  143. data/bundler/lib/bundler/ui/rg_proxy.rb +18 -0
  144. data/bundler/lib/bundler/ui/shell.rb +114 -0
  145. data/bundler/lib/bundler/ui/silent.rb +48 -0
  146. data/bundler/lib/bundler/uri_credentials_filter.rb +36 -0
  147. data/bundler/lib/bundler/vendor/compact_index_client/lib/compact_index_client.rb +79 -0
  148. data/bundler/lib/bundler/vendor/compact_index_client/lib/compact_index_client/cache.rb +98 -0
  149. data/bundler/lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb +80 -0
  150. data/bundler/lib/bundler/vendor/compact_index_client/lib/compact_index_client/version.rb +4 -0
  151. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo.rb +10 -0
  152. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +50 -0
  153. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +80 -0
  154. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +203 -0
  155. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +35 -0
  156. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +58 -0
  157. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +61 -0
  158. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +53 -0
  159. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +114 -0
  160. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +45 -0
  161. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +35 -0
  162. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +123 -0
  163. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +75 -0
  164. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +5 -0
  165. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +100 -0
  166. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +65 -0
  167. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +460 -0
  168. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +45 -0
  169. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +54 -0
  170. data/bundler/lib/bundler/vendor/net/http/faster.rb +26 -0
  171. data/bundler/lib/bundler/vendor/net/http/persistent.rb +1230 -0
  172. data/bundler/lib/bundler/vendor/net/http/persistent/ssl_reuse.rb +128 -0
  173. data/bundler/lib/bundler/vendor/postit/lib/postit.rb +15 -0
  174. data/bundler/lib/bundler/vendor/postit/lib/postit/environment.rb +44 -0
  175. data/bundler/lib/bundler/vendor/postit/lib/postit/installer.rb +28 -0
  176. data/bundler/lib/bundler/vendor/postit/lib/postit/parser.rb +21 -0
  177. data/bundler/lib/bundler/vendor/postit/lib/postit/setup.rb +12 -0
  178. data/bundler/lib/bundler/vendor/postit/lib/postit/version.rb +3 -0
  179. data/bundler/lib/bundler/vendor/thor/lib/thor.rb +484 -0
  180. data/bundler/lib/bundler/vendor/thor/lib/thor/actions.rb +319 -0
  181. data/bundler/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +103 -0
  182. data/bundler/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +59 -0
  183. data/bundler/lib/bundler/vendor/thor/lib/thor/actions/directory.rb +118 -0
  184. data/bundler/lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +135 -0
  185. data/bundler/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +316 -0
  186. data/bundler/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +107 -0
  187. data/bundler/lib/bundler/vendor/thor/lib/thor/base.rb +656 -0
  188. data/bundler/lib/bundler/vendor/thor/lib/thor/command.rb +133 -0
  189. data/bundler/lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +77 -0
  190. data/bundler/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb +10 -0
  191. data/bundler/lib/bundler/vendor/thor/lib/thor/core_ext/ordered_hash.rb +98 -0
  192. data/bundler/lib/bundler/vendor/thor/lib/thor/error.rb +32 -0
  193. data/bundler/lib/bundler/vendor/thor/lib/thor/group.rb +281 -0
  194. data/bundler/lib/bundler/vendor/thor/lib/thor/invocation.rb +178 -0
  195. data/bundler/lib/bundler/vendor/thor/lib/thor/line_editor.rb +17 -0
  196. data/bundler/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +35 -0
  197. data/bundler/lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb +88 -0
  198. data/bundler/lib/bundler/vendor/thor/lib/thor/parser.rb +4 -0
  199. data/bundler/lib/bundler/vendor/thor/lib/thor/parser/argument.rb +73 -0
  200. data/bundler/lib/bundler/vendor/thor/lib/thor/parser/arguments.rb +175 -0
  201. data/bundler/lib/bundler/vendor/thor/lib/thor/parser/option.rb +125 -0
  202. data/bundler/lib/bundler/vendor/thor/lib/thor/parser/options.rb +218 -0
  203. data/bundler/lib/bundler/vendor/thor/lib/thor/rake_compat.rb +71 -0
  204. data/bundler/lib/bundler/vendor/thor/lib/thor/runner.rb +322 -0
  205. data/bundler/lib/bundler/vendor/thor/lib/thor/shell.rb +81 -0
  206. data/bundler/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +421 -0
  207. data/bundler/lib/bundler/vendor/thor/lib/thor/shell/color.rb +149 -0
  208. data/bundler/lib/bundler/vendor/thor/lib/thor/shell/html.rb +126 -0
  209. data/bundler/lib/bundler/vendor/thor/lib/thor/util.rb +267 -0
  210. data/bundler/lib/bundler/vendor/thor/lib/thor/version.rb +3 -0
  211. data/bundler/lib/bundler/vendored_molinillo.rb +3 -0
  212. data/bundler/lib/bundler/vendored_persistent.rb +12 -0
  213. data/bundler/lib/bundler/vendored_thor.rb +4 -0
  214. data/bundler/lib/bundler/version.rb +11 -0
  215. data/bundler/lib/bundler/vlad.rb +12 -0
  216. data/bundler/lib/bundler/worker.rb +82 -0
  217. data/bundler/lib/bundler/yaml_serializer.rb +67 -0
  218. data/bundler/man/bundle-config.ronn +193 -0
  219. data/bundler/man/bundle-exec.ronn +136 -0
  220. data/bundler/man/bundle-gem.ronn +77 -0
  221. data/bundler/man/bundle-install.ronn +404 -0
  222. data/bundler/man/bundle-lock.ronn +47 -0
  223. data/bundler/man/bundle-package.ronn +67 -0
  224. data/bundler/man/bundle-platform.ronn +42 -0
  225. data/bundler/man/bundle-update.ronn +194 -0
  226. data/bundler/man/bundle.ronn +98 -0
  227. data/bundler/man/gemfile.5.ronn +499 -0
  228. data/bundler/man/index.txt +8 -0
  229. data/lib/rubygems.rb +42 -2
  230. data/lib/rubygems/config_file.rb +1 -1
  231. data/lib/rubygems/defaults.rb +18 -0
  232. data/lib/rubygems/installer.rb +1 -0
  233. data/lib/rubygems/package.rb +3 -1
  234. data/lib/rubygems/package/tar_writer.rb +10 -16
  235. data/lib/rubygems/remote_fetcher.rb +1 -15
  236. data/lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb +50 -0
  237. data/lib/rubygems/resolver/molinillo/lib/molinillo/delegates/specification_provider.rb +80 -0
  238. data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph.rb +57 -145
  239. data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb +35 -0
  240. data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +58 -0
  241. data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +61 -0
  242. data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +53 -0
  243. data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/log.rb +114 -0
  244. data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/set_payload.rb +45 -0
  245. data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/tag.rb +35 -0
  246. data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/vertex.rb +123 -0
  247. data/lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb +1 -1
  248. data/lib/rubygems/resolver/molinillo/lib/molinillo/gem_metadata.rb +1 -1
  249. data/lib/rubygems/resolver/molinillo/lib/molinillo/resolution.rb +55 -54
  250. data/lib/rubygems/resolver/molinillo/lib/molinillo/state.rb +4 -2
  251. data/lib/rubygems/security/signer.rb +2 -0
  252. data/lib/rubygems/specification.rb +4 -4
  253. data/lib/rubygems/ssl_certs/index.rubygems.org/GlobalSignRootCA.pem +21 -0
  254. data/lib/rubygems/ssl_certs/rubygems.org/AddTrustExternalCARoot.pem +25 -0
  255. data/test/rubygems/alternate_cert.pem +10 -9
  256. data/test/rubygems/alternate_cert_32.pem +10 -9
  257. data/test/rubygems/child_cert.pem +11 -9
  258. data/test/rubygems/child_cert_32.pem +11 -9
  259. data/test/rubygems/encrypted_private_key.pem +26 -26
  260. data/test/rubygems/expired_cert.pem +9 -8
  261. data/test/rubygems/future_cert.pem +9 -8
  262. data/test/rubygems/future_cert_32.pem +9 -8
  263. data/test/rubygems/grandchild_cert.pem +11 -9
  264. data/test/rubygems/grandchild_cert_32.pem +11 -9
  265. data/test/rubygems/invalid_issuer_cert.pem +11 -9
  266. data/test/rubygems/invalid_issuer_cert_32.pem +11 -9
  267. data/test/rubygems/invalid_signer_cert.pem +10 -9
  268. data/test/rubygems/invalid_signer_cert_32.pem +10 -9
  269. data/test/rubygems/invalidchild_cert.pem +11 -9
  270. data/test/rubygems/invalidchild_cert_32.pem +11 -9
  271. data/test/rubygems/public_cert.pem +11 -9
  272. data/test/rubygems/public_cert_32.pem +10 -9
  273. data/test/rubygems/test_bundled_ca.rb +1 -1
  274. data/test/rubygems/test_gem.rb +7 -0
  275. data/test/rubygems/test_gem_installer.rb +119 -0
  276. data/test/rubygems/test_gem_package.rb +9 -3
  277. data/test/rubygems/test_gem_package_tar_writer.rb +24 -0
  278. data/test/rubygems/test_gem_remote_fetcher.rb +0 -12
  279. data/test/rubygems/test_gem_security_signer.rb +8 -0
  280. data/test/rubygems/test_gem_specification.rb +1 -1
  281. data/test/rubygems/wrong_key_cert.pem +10 -9
  282. data/test/rubygems/wrong_key_cert_32.pem +10 -9
  283. data/util/ci +73 -0
  284. data/util/create_certs.rb +64 -49
  285. data/util/update_bundled_ca_certificates.rb +23 -2
  286. metadata +257 -19
  287. data/lib/gauntlet_rubygems.rb +0 -51
  288. data/lib/rubygems/ssl_certs/index.rubygems.org/GlobalSignRoot.pem +0 -18
@@ -0,0 +1,3 @@
1
+ class Bundler::Thor
2
+ VERSION = "0.19.1"
3
+ end
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+ module Bundler; end
3
+ require "bundler/vendor/molinillo/lib/molinillo"
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+ # We forcibly require OpenSSL, because net/http/persistent will only autoload
3
+ # it. On some Rubies, autoload fails but explicit require succeeds.
4
+ begin
5
+ require "openssl"
6
+ rescue LoadError
7
+ # some Ruby builds don't have OpenSSL
8
+ end
9
+
10
+ vendor = File.expand_path("../vendor", __FILE__)
11
+ $:.unshift(vendor) unless $:.include?(vendor)
12
+ require "net/http/persistent"
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+ module Bundler; end
3
+ require "bundler/vendor/thor/lib/thor"
4
+ require "bundler/vendor/thor/lib/thor/actions"
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Ruby 1.9.3 and old RubyGems don't play nice with frozen version strings
4
+ # rubocop:disable MutableConstant
5
+
6
+ module Bundler
7
+ # We're doing this because we might write tests that deal
8
+ # with other versions of bundler and we are unsure how to
9
+ # handle this better.
10
+ VERSION = "1.13.0.pre.1" unless defined?(::Bundler::VERSION)
11
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+ # Vlad task for Bundler.
3
+ #
4
+ # Add "require 'bundler/vlad'" in your Vlad deploy.rb, and
5
+ # include the vlad:bundle:install task in your vlad:deploy task.
6
+ require "bundler/deployment"
7
+
8
+ include Rake::DSL if defined? Rake::DSL
9
+
10
+ namespace :vlad do
11
+ Bundler::Deployment.define_task(Rake::RemoteTask, :remote_task, :roles => :app)
12
+ end
@@ -0,0 +1,82 @@
1
+ # frozen_string_literal: true
2
+ require "thread"
3
+
4
+ module Bundler
5
+ class Worker
6
+ POISON = Object.new
7
+
8
+ class WrappedException < StandardError
9
+ attr_reader :exception
10
+ def initialize(exn)
11
+ @exception = exn
12
+ end
13
+ end
14
+
15
+ # @return [String] the name of the worker
16
+ attr_reader :name
17
+
18
+ # Creates a worker pool of specified size
19
+ #
20
+ # @param size [Integer] Size of pool
21
+ # @param name [String] name the name of the worker
22
+ # @param func [Proc] job to run in inside the worker pool
23
+ def initialize(size, name, func)
24
+ @name = name
25
+ @request_queue = Queue.new
26
+ @response_queue = Queue.new
27
+ @func = func
28
+ @threads = Array.new(size) do |i|
29
+ Thread.start { process_queue(i) }.tap do |thread|
30
+ thread.name = "#{name} Worker ##{i}" if thread.respond_to?(:name=)
31
+ end
32
+ end
33
+ trap("INT") { abort_threads }
34
+ end
35
+
36
+ # Enqueue a request to be executed in the worker pool
37
+ #
38
+ # @param obj [String] mostly it is name of spec that should be downloaded
39
+ def enq(obj)
40
+ @request_queue.enq obj
41
+ end
42
+
43
+ # Retrieves results of job function being executed in worker pool
44
+ def deq
45
+ result = @response_queue.deq
46
+ raise result.exception if result.is_a?(WrappedException)
47
+ result
48
+ end
49
+
50
+ def stop
51
+ stop_threads
52
+ end
53
+
54
+ private
55
+
56
+ def process_queue(i)
57
+ loop do
58
+ obj = @request_queue.deq
59
+ break if obj.equal? POISON
60
+ @response_queue.enq apply_func(obj, i)
61
+ end
62
+ end
63
+
64
+ def apply_func(obj, i)
65
+ @func.call(obj, i)
66
+ rescue Exception => e
67
+ WrappedException.new(e)
68
+ end
69
+
70
+ # Stop the worker threads by sending a poison object down the request queue
71
+ # so as worker threads after retrieving it, shut themselves down
72
+ def stop_threads
73
+ @threads.each { @request_queue.enq POISON }
74
+ @threads.each(&:join)
75
+ end
76
+
77
+ def abort_threads
78
+ @threads.each(&:exit)
79
+ exit 1
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,67 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bundler
4
+ # A stub yaml serializer that can handle only hashes and strings (as of now).
5
+ module YAMLSerializer
6
+ module_function
7
+
8
+ def dump(hash)
9
+ yaml = String.new("---")
10
+ yaml << dump_hash(hash)
11
+ end
12
+
13
+ def dump_hash(hash)
14
+ yaml = String.new("\n")
15
+ hash.each do |k, v|
16
+ yaml << k << ":"
17
+ if v.is_a?(Hash)
18
+ yaml << dump_hash(v).gsub(/^(?!$)/, " ") # indent all non-empty lines
19
+ else
20
+ yaml << " " << v.to_s.gsub(/\s+/, " ").inspect << "\n"
21
+ end
22
+ end
23
+ yaml
24
+ end
25
+
26
+ SCAN_REGEX = /
27
+ ^
28
+ ([ ]*) # indentations
29
+ (.*) # key
30
+ (?::(?=\s)) # : (without the lookahead the #key includes this when : is present in value)
31
+ [ ]?
32
+ (?: !\s)? # optional exclamation mark found with ruby 1.9.3
33
+ (['"]?) # optional opening quote
34
+ (.*) # value
35
+ \3 # matching closing quote
36
+ $
37
+ /xo
38
+
39
+ def load(str)
40
+ res = {}
41
+ stack = [res]
42
+ str.scan(SCAN_REGEX).each do |(indent, key, _, val)|
43
+ key = convert_to_backward_compatible_key(key)
44
+ depth = indent.scan(/ /).length
45
+ if val.empty?
46
+ new_hash = {}
47
+ stack[depth][key] = new_hash
48
+ stack[depth + 1] = new_hash
49
+ else
50
+ stack[depth][key] = val
51
+ end
52
+ end
53
+ res
54
+ end
55
+
56
+ # for settings' keys
57
+ def convert_to_backward_compatible_key(key)
58
+ key = "#{key}/" if key =~ /https?:/i && key !~ %r{/\Z}
59
+ key = key.gsub(".", "__") if key.include?(".")
60
+ key
61
+ end
62
+
63
+ class << self
64
+ private :dump_hash, :convert_to_backward_compatible_key
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,193 @@
1
+ bundle-config(1) -- Set bundler configuration options
2
+ =====================================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `bundle config` [<name> [<value>]]
7
+
8
+ ## DESCRIPTION
9
+
10
+ This command allows you to interact with bundler's configuration system.
11
+ Bundler retrieves its configuration from the local application (`app/.bundle/config`),
12
+ environment variables, and the user's home directory (`~/.bundle/config`),
13
+ in that order of priority.
14
+
15
+ Executing `bundle config` with no parameters will print a list of all
16
+ bundler configuration for the current bundle, and where that configuration
17
+ was set.
18
+
19
+ Executing `bundle config <name>` will print the value of that configuration
20
+ setting, and where it was set.
21
+
22
+ Executing `bundle config <name> <value>` will set that configuration to the
23
+ value specified for all bundles executed as the current user. The configuration
24
+ will be stored in `~/.bundle/config`. If <name> already is set, <name> will be
25
+ overridden and user will be warned.
26
+
27
+ Executing `bundle config --global <name> <value>` works the same as above.
28
+
29
+ Executing `bundle config --local <name> <value>` will set that configuration to
30
+ the local application. The configuration will be stored in `app/.bundle/config`.
31
+
32
+ Executing `bundle config --delete <name>` will delete the configuration in both
33
+ local and global sources. Not compatible with --global or --local flag.
34
+
35
+ Executing bundle with the `BUNDLE_IGNORE_CONFIG` environment variable set will
36
+ cause it to ignore all configuration.
37
+
38
+ Executing `bundle config disable_multisource true` upgrades the warning about
39
+ the Gemfile containing multiple primary sources to an error. Executing `bundle
40
+ config --delete disable_multisource` downgrades this error to a warning.
41
+
42
+ ## BUILD OPTIONS
43
+
44
+ You can use `bundle config` to give bundler the flags to pass to the gem
45
+ installer every time bundler tries to install a particular gem.
46
+
47
+ A very common example, the `mysql` gem, requires Snow Leopard users to
48
+ pass configuration flags to `gem install` to specify where to find the
49
+ `mysql_config` executable.
50
+
51
+ gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
52
+
53
+ Since the specific location of that executable can change from machine
54
+ to machine, you can specify these flags on a per-machine basis.
55
+
56
+ bundle config build.mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config
57
+
58
+ After running this command, every time bundler needs to install the
59
+ `mysql` gem, it will pass along the flags you specified.
60
+
61
+ ## CONFIGURATION KEYS
62
+
63
+ Configuration keys in bundler have two forms: the canonical form and the
64
+ environment variable form.
65
+
66
+ For instance, passing the `--without` flag to [bundle install(1)][bundle-install]
67
+ prevents Bundler from installing certain groups specified in the Gemfile(5). Bundler
68
+ persists this value in `app/.bundle/config` so that calls to `Bundler.setup`
69
+ do not try to find gems from the `Gemfile` that you didn't install. Additionally,
70
+ subsequent calls to [bundle install(1)][bundle-install] remember this setting and skip those
71
+ groups.
72
+
73
+ The canonical form of this configuration is `"without"`. To convert the canonical
74
+ form to the environment variable form, capitalize it, and prepend `BUNDLE_`. The
75
+ environment variable form of `"without"` is `BUNDLE_WITHOUT`.
76
+
77
+ Any periods in the configuration keys must be replaced with two underscores when
78
+ setting it via environment variables. The configuration key `local.rack` becomes
79
+ the environment variable `BUNDLE_LOCAL__RACK`.
80
+
81
+ ## LIST OF AVAILABLE KEYS
82
+
83
+ The following is a list of all configuration keys and their purpose. You can
84
+ learn more about their operation in [bundle install(1)][bundle-install].
85
+
86
+ * `path` (`BUNDLE_PATH`):
87
+ The location on disk where all gems in your bundle will be located regardless
88
+ of `$GEM_HOME` or `$GEM_PATH` values. Bundle gems not found in this location
89
+ will be installed by `bundle install`. Defaults to `Gem.dir`. When --deployment is
90
+ used, defaults to vendor/bundle.
91
+ * `frozen` (`BUNDLE_FROZEN`):
92
+ Disallow changes to the `Gemfile`. Defaults to `true` when `--deployment`
93
+ is used.
94
+ * `without` (`BUNDLE_WITHOUT`):
95
+ A `:`-separated list of groups whose gems bundler should not install
96
+ * `bin` (`BUNDLE_BIN`):
97
+ Install executables from gems in the bundle to the specified directory.
98
+ Defaults to `false`.
99
+ * `gemfile` (`BUNDLE_GEMFILE`):
100
+ The name of the file that bundler should use as the `Gemfile`. This location
101
+ of this file also sets the root of the project, which is used to resolve
102
+ relative paths in the `Gemfile`, among other things. By default, bundler
103
+ will search up from the current working directory until it finds a
104
+ `Gemfile`.
105
+ * `ssl_ca_cert` (`BUNDLE_SSL_CA_CERT`):
106
+ Path to a designated CA certificate file or folder containing multiple
107
+ certificates for trusted CAs in PEM format.
108
+ * `ssl_client_cert` (`BUNDLE_SSL_CLIENT_CERT`):
109
+ Path to a designated file containing a X.509 client certificate
110
+ and key in PEM format.
111
+ * `cache_path` (`BUNDLE_CACHE_PATH`): The directory that bundler will place
112
+ cached gems in when running <code>bundle package</code>, and that bundler
113
+ will look in when installing gems.
114
+ * `disable_multisource` (`BUNDLE_DISABLE_MULTISOURCE`): When set, Gemfiles
115
+ containing multiple sources will produce errors instead of warnings. Use
116
+ `bundle config --delete disable_multisource` to unset.
117
+ * `ignore_messages` (`BUNDLE_IGNORE_MESSAGES`): When set, no post install
118
+ messages will be printed. To silence a single gem, use dot notation like
119
+ `ignore_messages.httparty true`.
120
+ * `retry` (`BUNDLE_RETRY`):
121
+ The number of times to retry failed network requests. Defaults to `3`.
122
+ * `redirect` (`BUNDLE_REDIRECT`):
123
+ The number of redirects allowed for network requests. Defaults to `5`.
124
+ * `timeout` (`BUNDLE_TIMEOUT`):
125
+ The seconds allowed before timing out for network requests. Defaults to `10`.
126
+
127
+ In general, you should set these settings per-application by using the applicable
128
+ flag to the [bundle install(1)][bundle-install] or [bundle package(1)][bundle-package] command.
129
+
130
+ You can set them globally either via environment variables or `bundle config`,
131
+ whichever is preferable for your setup. If you use both, environment variables
132
+ will take preference over global settings.
133
+
134
+ ## LOCAL GIT REPOS
135
+
136
+ Bundler also allows you to work against a git repository locally
137
+ instead of using the remote version. This can be achieved by setting
138
+ up a local override:
139
+
140
+ bundle config local.GEM_NAME /path/to/local/git/repository
141
+
142
+ For example, in order to use a local Rack repository, a developer could call:
143
+
144
+ bundle config local.rack ~/Work/git/rack
145
+
146
+ Now instead of checking out the remote git repository, the local
147
+ override will be used. Similar to a path source, every time the local
148
+ git repository change, changes will be automatically picked up by
149
+ Bundler. This means a commit in the local git repo will update the
150
+ revision in the `Gemfile.lock` to the local git repo revision. This
151
+ requires the same attention as git submodules. Before pushing to
152
+ the remote, you need to ensure the local override was pushed, otherwise
153
+ you may point to a commit that only exists in your local machine.
154
+
155
+ Bundler does many checks to ensure a developer won't work with
156
+ invalid references. Particularly, we force a developer to specify
157
+ a branch in the `Gemfile` in order to use this feature. If the branch
158
+ specified in the `Gemfile` and the current branch in the local git
159
+ repository do not match, Bundler will abort. This ensures that
160
+ a developer is always working against the correct branches, and prevents
161
+ accidental locking to a different branch.
162
+
163
+ Finally, Bundler also ensures that the current revision in the
164
+ `Gemfile.lock` exists in the local git repository. By doing this, Bundler
165
+ forces you to fetch the latest changes in the remotes.
166
+
167
+ ## MIRRORS OF GEM SOURCES
168
+
169
+ Bundler supports overriding gem sources with mirrors. This allows you to
170
+ configure rubygems.org as the gem source in your Gemfile while still using your
171
+ mirror to fetch gems.
172
+
173
+ bundle config mirror.SOURCE_URL MIRROR_URL
174
+
175
+ For example, to use a mirror of rubygems.org hosted at
176
+
177
+ bundle config mirror.http://rubygems.org http://rubygems-mirror.org
178
+
179
+ ## CREDENTIALS FOR GEM SOURCES
180
+
181
+ Bundler allows you to configure credentials for any gem source, which allows
182
+ you to avoid putting secrets into your Gemfile.
183
+
184
+ bundle config SOURCE_HOSTNAME USERNAME:PASSWORD
185
+
186
+ For example, to save the credentials of user `claudette` for the gem source at
187
+ `gems.longerous.com`, you would run:
188
+
189
+ bundle config gems.longerous.com claudette:s00pers3krit
190
+
191
+ Or you can set the credentials as an environment variable like this:
192
+
193
+ export BUNDLE_GEMS__LONGEROUS__COM="claudette:s00pers3krit"
@@ -0,0 +1,136 @@
1
+ bundle-exec(1) -- Execute a command in the context of the bundle
2
+ ================================================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `bundle exec` [--keep-file-descriptors] <command>
7
+
8
+ ## DESCRIPTION
9
+
10
+ This command executes the command, making all gems specified in the
11
+ `Gemfile(5)` available to `require` in Ruby programs.
12
+
13
+ Essentially, if you would normally have run something like
14
+ `rspec spec/my_spec.rb`, and you want to use the gems specified
15
+ in the `Gemfile(5)` and installed via [bundle install(1)][bundle-install], you
16
+ should run `bundle exec rspec spec/my_spec.rb`.
17
+
18
+ Note that `bundle exec` does not require that an executable is
19
+ available on your shell's `$PATH`.
20
+
21
+ ## OPTIONS
22
+
23
+ * `--keep-file-descriptors`:
24
+ Exec in Ruby 2.0 began discarding non-standard file descriptors. When this
25
+ flag is passed, exec will revert to the 1.9 behaviour of passing all file
26
+ descriptors to the new process.
27
+
28
+ ## BUNDLE INSTALL --BINSTUBS
29
+
30
+ If you use the `--binstubs` flag in [bundle install(1)][bundle-install], Bundler will
31
+ automatically create a directory (which defaults to `app_root/bin`)
32
+ containing all of the executables available from gems in the bundle.
33
+
34
+ After using `--binstubs`, `bin/rspec spec/my_spec.rb` is identical
35
+ to `bundle exec rspec spec/my_spec.rb`.
36
+
37
+ ## ENVIRONMENT MODIFICATIONS
38
+
39
+ `bundle exec` makes a number of changes to the shell environment,
40
+ then executes the command you specify in full.
41
+
42
+ * make sure that it's still possible to shell out to `bundle`
43
+ from inside a command invoked by `bundle exec` (using
44
+ `$BUNDLE_BIN_PATH`)
45
+ * put the directory containing executables (like `rails`, `rspec`,
46
+ `rackup`) for your bundle on `$PATH`
47
+ * make sure that if bundler is invoked in the subshell, it uses
48
+ the same `Gemfile` (by setting `BUNDLE_GEMFILE`)
49
+ * add `-rbundler/setup` to `$RUBYOPT`, which makes sure that
50
+ Ruby programs invoked in the subshell can see the gems in
51
+ the bundle
52
+
53
+ It also modifies Rubygems:
54
+
55
+ * disallow loading additional gems not in the bundle
56
+ * modify the `gem` method to be a no-op if a gem matching
57
+ the requirements is in the bundle, and to raise a
58
+ `Gem::LoadError` if it's not
59
+ * Define `Gem.refresh` to be a no-op, since the source
60
+ index is always frozen when using bundler, and to
61
+ prevent gems from the system leaking into the environment
62
+ * Override `Gem.bin_path` to use the gems in the bundle,
63
+ making system executables work
64
+ * Add all gems in the bundle into Gem.loaded_specs
65
+
66
+ ### Shelling out
67
+
68
+ Any Ruby code that opens a subshell (like `system`, backticks, or `%x{}`) will
69
+ automatically use the current Bundler environment. If you need to shell out to
70
+ a Ruby command that is not part of your current bundle, use the
71
+ `with_clean_env` method with a block. Any subshells created inside the block
72
+ will be given the environment present before Bundler was activated. For
73
+ example, Homebrew commands run Ruby, but don't work inside a bundle:
74
+
75
+ Bundler.with_clean_env do
76
+ `brew install wget`
77
+ end
78
+
79
+ Using `with_clean_env` is also necessary if you are shelling out to a different
80
+ bundle. Any Bundler commands run in a subshell will inherit the current
81
+ Gemfile, so commands that need to run in the context of a different bundle also
82
+ need to use `with_clean_env`.
83
+
84
+ Bundler.with_clean_env do
85
+ Dir.chdir "/other/bundler/project" do
86
+ `bundle exec ./script`
87
+ end
88
+ end
89
+
90
+ Bundler provides convenience helpers that wrap `system` and `exec`, and they
91
+ can be used like this:
92
+
93
+ Bundler.clean_system('brew install wget')
94
+ Bundler.clean_exec('brew install wget')
95
+
96
+
97
+ ## RUBYGEMS PLUGINS
98
+
99
+ At present, the Rubygems plugin system requires all files
100
+ named `rubygems_plugin.rb` on the load path of _any_ installed
101
+ gem when any Ruby code requires `rubygems.rb`. This includes
102
+ executables installed into the system, like `rails`, `rackup`,
103
+ and `rspec`.
104
+
105
+ Since Rubygems plugins can contain arbitrary Ruby code, they
106
+ commonly end up activating themselves or their dependencies.
107
+
108
+ For instance, the `gemcutter 0.5` gem depended on `json_pure`.
109
+ If you had that version of gemcutter installed (even if
110
+ you _also_ had a newer version without this problem), Rubygems
111
+ would activate `gemcutter 0.5` and `json_pure <latest>`.
112
+
113
+ If your Gemfile(5) also contained `json_pure` (or a gem
114
+ with a dependency on `json_pure`), the latest version on
115
+ your system might conflict with the version in your
116
+ Gemfile(5), or the snapshot version in your `Gemfile.lock`.
117
+
118
+ If this happens, bundler will say:
119
+
120
+ You have already activated json_pure 1.4.6 but your Gemfile
121
+ requires json_pure 1.4.3. Consider using bundle exec.
122
+
123
+ In this situation, you almost certainly want to remove the
124
+ underlying gem with the problematic gem plugin. In general,
125
+ the authors of these plugins (in this case, the `gemcutter`
126
+ gem) have released newer versions that are more careful in
127
+ their plugins.
128
+
129
+ You can find a list of all the gems containing gem plugins
130
+ by running
131
+
132
+ ruby -rubygems -e "puts Gem.find_files('rubygems_plugin.rb')"
133
+
134
+ At the very least, you should remove all but the newest
135
+ version of each gem plugin, and also remove all gem plugins
136
+ that you aren't using (`gem uninstall gem_name`).