bundler 1.13.6 → 1.17.3

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

Potentially problematic release.


This version of bundler might be problematic. Click here for more details.

Files changed (323) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +554 -9
  3. data/README.md +28 -5
  4. data/bundler.gemspec +40 -11
  5. data/exe/bundle +4 -8
  6. data/exe/bundle_ruby +4 -3
  7. data/lib/bundler.rb +162 -68
  8. data/lib/bundler/build_metadata.rb +53 -0
  9. data/lib/bundler/capistrano.rb +5 -0
  10. data/lib/bundler/cli.rb +360 -118
  11. data/lib/bundler/cli/add.rb +35 -0
  12. data/lib/bundler/cli/binstubs.rb +18 -10
  13. data/lib/bundler/cli/cache.rb +6 -5
  14. data/lib/bundler/cli/check.rb +4 -6
  15. data/lib/bundler/cli/clean.rb +6 -7
  16. data/lib/bundler/cli/common.rb +47 -1
  17. data/lib/bundler/cli/config.rb +26 -7
  18. data/lib/bundler/cli/console.rb +2 -1
  19. data/lib/bundler/cli/doctor.rb +63 -18
  20. data/lib/bundler/cli/exec.rb +12 -5
  21. data/lib/bundler/cli/gem.rb +59 -21
  22. data/lib/bundler/cli/info.rb +50 -0
  23. data/lib/bundler/cli/init.rb +21 -7
  24. data/lib/bundler/cli/inject.rb +13 -4
  25. data/lib/bundler/cli/install.rb +72 -101
  26. data/lib/bundler/cli/issue.rb +40 -0
  27. data/lib/bundler/cli/list.rb +58 -0
  28. data/lib/bundler/cli/lock.rb +9 -6
  29. data/lib/bundler/cli/open.rb +4 -3
  30. data/lib/bundler/cli/outdated.rb +175 -60
  31. data/lib/bundler/cli/package.rb +9 -6
  32. data/lib/bundler/cli/platform.rb +2 -1
  33. data/lib/bundler/cli/plugin.rb +1 -0
  34. data/lib/bundler/cli/pristine.rb +47 -0
  35. data/lib/bundler/cli/remove.rb +18 -0
  36. data/lib/bundler/cli/show.rb +2 -2
  37. data/lib/bundler/cli/update.rb +44 -34
  38. data/lib/bundler/cli/viz.rb +5 -1
  39. data/lib/bundler/compact_index_client.rb +109 -0
  40. data/lib/bundler/compact_index_client/cache.rb +118 -0
  41. data/lib/bundler/compact_index_client/updater.rb +116 -0
  42. data/lib/bundler/compatibility_guard.rb +14 -0
  43. data/lib/bundler/constants.rb +1 -0
  44. data/lib/bundler/current_ruby.rb +17 -8
  45. data/lib/bundler/definition.rb +353 -182
  46. data/lib/bundler/dep_proxy.rb +3 -1
  47. data/lib/bundler/dependency.rb +22 -10
  48. data/lib/bundler/deployment.rb +1 -1
  49. data/lib/bundler/deprecate.rb +15 -3
  50. data/lib/bundler/dsl.rb +122 -64
  51. data/lib/bundler/endpoint_specification.rb +13 -3
  52. data/lib/bundler/env.rb +110 -38
  53. data/lib/bundler/environment_preserver.rb +27 -6
  54. data/lib/bundler/errors.rb +24 -0
  55. data/lib/bundler/feature_flag.rb +74 -0
  56. data/lib/bundler/fetcher.rb +18 -11
  57. data/lib/bundler/fetcher/base.rb +1 -0
  58. data/lib/bundler/fetcher/compact_index.rb +7 -5
  59. data/lib/bundler/fetcher/dependency.rb +3 -2
  60. data/lib/bundler/fetcher/downloader.rb +25 -7
  61. data/lib/bundler/fetcher/index.rb +3 -2
  62. data/lib/bundler/friendly_errors.rb +33 -7
  63. data/lib/bundler/gem_helper.rb +25 -11
  64. data/lib/bundler/gem_helpers.rb +70 -1
  65. data/lib/bundler/gem_remote_fetcher.rb +1 -0
  66. data/lib/bundler/gem_tasks.rb +1 -0
  67. data/lib/bundler/gem_version_promoter.rb +17 -2
  68. data/lib/bundler/gemdeps.rb +29 -0
  69. data/lib/bundler/graph.rb +1 -0
  70. data/lib/bundler/index.rb +28 -15
  71. data/lib/bundler/injector.rb +216 -33
  72. data/lib/bundler/inline.rb +12 -12
  73. data/lib/bundler/installer.rb +139 -53
  74. data/lib/bundler/installer/gem_installer.rb +15 -5
  75. data/lib/bundler/installer/parallel_installer.rb +113 -28
  76. data/lib/bundler/installer/standalone.rb +1 -0
  77. data/lib/bundler/lazy_specification.rb +31 -3
  78. data/lib/bundler/lockfile_generator.rb +95 -0
  79. data/lib/bundler/lockfile_parser.rb +50 -37
  80. data/lib/bundler/match_platform.rb +13 -3
  81. data/lib/bundler/mirror.rb +10 -5
  82. data/lib/bundler/plugin.rb +22 -8
  83. data/lib/bundler/plugin/api.rb +2 -1
  84. data/lib/bundler/plugin/api/source.rb +17 -4
  85. data/lib/bundler/plugin/events.rb +61 -0
  86. data/lib/bundler/plugin/index.rb +9 -2
  87. data/lib/bundler/plugin/installer.rb +7 -6
  88. data/lib/bundler/plugin/source_list.rb +7 -8
  89. data/lib/bundler/process_lock.rb +24 -0
  90. data/lib/bundler/psyched_yaml.rb +10 -0
  91. data/lib/bundler/remote_specification.rb +30 -1
  92. data/lib/bundler/resolver.rb +187 -194
  93. data/lib/bundler/resolver/spec_group.rb +106 -0
  94. data/lib/bundler/retry.rb +5 -1
  95. data/lib/bundler/ruby_dsl.rb +1 -0
  96. data/lib/bundler/ruby_version.rb +12 -2
  97. data/lib/bundler/rubygems_ext.rb +23 -8
  98. data/lib/bundler/rubygems_gem_installer.rb +90 -0
  99. data/lib/bundler/rubygems_integration.rb +193 -70
  100. data/lib/bundler/runtime.rb +39 -22
  101. data/lib/bundler/settings.rb +245 -85
  102. data/lib/bundler/settings/validator.rb +102 -0
  103. data/lib/bundler/setup.rb +4 -7
  104. data/lib/bundler/shared_helpers.rb +183 -40
  105. data/lib/bundler/similarity_detector.rb +1 -0
  106. data/lib/bundler/source.rb +58 -1
  107. data/lib/bundler/source/gemspec.rb +1 -0
  108. data/lib/bundler/source/git.rb +52 -23
  109. data/lib/bundler/source/git/git_proxy.rb +30 -14
  110. data/lib/bundler/source/metadata.rb +62 -0
  111. data/lib/bundler/source/path.rb +42 -16
  112. data/lib/bundler/source/path/installer.rb +4 -2
  113. data/lib/bundler/source/rubygems.rb +171 -82
  114. data/lib/bundler/source/rubygems/remote.rb +12 -2
  115. data/lib/bundler/source_list.rb +75 -15
  116. data/lib/bundler/spec_set.rb +67 -32
  117. data/lib/bundler/ssl_certs/certificate_manager.rb +2 -1
  118. data/lib/bundler/stub_specification.rb +86 -2
  119. data/lib/bundler/templates/.document +1 -0
  120. data/lib/bundler/templates/Executable +13 -1
  121. data/lib/bundler/templates/Executable.bundler +105 -0
  122. data/lib/bundler/templates/Executable.standalone +5 -5
  123. data/lib/bundler/templates/Gemfile +3 -0
  124. data/lib/bundler/templates/gems.rb +8 -0
  125. data/lib/bundler/templates/newgem/Gemfile.tt +4 -2
  126. data/lib/bundler/templates/newgem/LICENSE.txt.tt +1 -1
  127. data/lib/bundler/templates/newgem/README.md.tt +14 -8
  128. data/lib/bundler/templates/newgem/Rakefile.tt +5 -5
  129. data/lib/bundler/templates/newgem/bin/console.tt +1 -1
  130. data/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt +4 -4
  131. data/lib/bundler/templates/newgem/ext/newgem/newgem.h.tt +3 -3
  132. data/lib/bundler/templates/newgem/gitignore.tt +5 -1
  133. data/lib/bundler/templates/newgem/lib/newgem.rb.tt +7 -6
  134. data/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +4 -4
  135. data/lib/bundler/templates/newgem/newgem.gemspec.tt +21 -12
  136. data/lib/bundler/templates/newgem/rspec.tt +1 -0
  137. data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +1 -3
  138. data/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +13 -1
  139. data/lib/bundler/templates/newgem/test/newgem_test.rb.tt +1 -1
  140. data/lib/bundler/templates/newgem/test/test_helper.rb.tt +3 -3
  141. data/lib/bundler/templates/newgem/{.travis.yml.tt → travis.yml.tt} +2 -0
  142. data/lib/bundler/ui.rb +1 -0
  143. data/lib/bundler/ui/rg_proxy.rb +1 -0
  144. data/lib/bundler/ui/shell.rb +30 -10
  145. data/lib/bundler/ui/silent.rb +21 -1
  146. data/lib/bundler/uri_credentials_filter.rb +1 -0
  147. data/lib/bundler/vendor/fileutils/lib/fileutils.rb +1638 -0
  148. data/lib/bundler/vendor/molinillo/lib/molinillo.rb +2 -0
  149. data/lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb +26 -0
  150. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +7 -0
  151. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +1 -0
  152. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +26 -6
  153. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +2 -1
  154. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +12 -4
  155. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +3 -2
  156. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +63 -0
  157. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +11 -3
  158. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +13 -1
  159. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +3 -2
  160. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +3 -2
  161. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +18 -5
  162. data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +75 -7
  163. data/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +2 -1
  164. data/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +1 -0
  165. data/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +3 -1
  166. data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +499 -128
  167. data/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +1 -0
  168. data/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +8 -4
  169. data/lib/bundler/vendor/{net → net-http-persistent/lib/net}/http/faster.rb +1 -0
  170. data/lib/bundler/vendor/{net → net-http-persistent/lib/net}/http/persistent.rb +27 -24
  171. data/lib/bundler/vendor/{net → net-http-persistent/lib/net}/http/persistent/ssl_reuse.rb +2 -1
  172. data/lib/bundler/vendor/thor/lib/thor.rb +46 -21
  173. data/lib/bundler/vendor/thor/lib/thor/actions.rb +24 -22
  174. data/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +2 -1
  175. data/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +2 -1
  176. data/lib/bundler/vendor/thor/lib/thor/actions/directory.rb +2 -2
  177. data/lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +16 -8
  178. data/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +66 -18
  179. data/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +17 -15
  180. data/lib/bundler/vendor/thor/lib/thor/base.rb +55 -32
  181. data/lib/bundler/vendor/thor/lib/thor/command.rb +13 -11
  182. data/lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +21 -1
  183. data/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb +7 -5
  184. data/lib/bundler/vendor/thor/lib/thor/core_ext/ordered_hash.rb +94 -63
  185. data/lib/bundler/vendor/thor/lib/thor/error.rb +3 -3
  186. data/lib/bundler/vendor/thor/lib/thor/group.rb +13 -13
  187. data/lib/bundler/vendor/thor/lib/thor/invocation.rb +4 -5
  188. data/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +2 -0
  189. data/lib/bundler/vendor/thor/lib/thor/parser/argument.rb +4 -7
  190. data/lib/bundler/vendor/thor/lib/thor/parser/arguments.rb +16 -16
  191. data/lib/bundler/vendor/thor/lib/thor/parser/option.rb +42 -21
  192. data/lib/bundler/vendor/thor/lib/thor/parser/options.rb +13 -10
  193. data/lib/bundler/vendor/thor/lib/thor/runner.rb +31 -29
  194. data/lib/bundler/vendor/thor/lib/thor/shell.rb +1 -1
  195. data/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +49 -33
  196. data/lib/bundler/vendor/thor/lib/thor/shell/color.rb +1 -1
  197. data/lib/bundler/vendor/thor/lib/thor/shell/html.rb +4 -4
  198. data/lib/bundler/vendor/thor/lib/thor/util.rb +8 -7
  199. data/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
  200. data/lib/bundler/vendored_fileutils.rb +9 -0
  201. data/lib/bundler/vendored_molinillo.rb +1 -0
  202. data/lib/bundler/vendored_persistent.rb +43 -3
  203. data/lib/bundler/vendored_thor.rb +6 -2
  204. data/lib/bundler/version.rb +19 -2
  205. data/lib/bundler/version_ranges.rb +76 -0
  206. data/lib/bundler/vlad.rb +5 -0
  207. data/lib/bundler/worker.rb +30 -6
  208. data/lib/bundler/yaml_serializer.rb +4 -4
  209. data/man/bundle-add.1 +58 -0
  210. data/man/bundle-add.1.txt +52 -0
  211. data/man/bundle-add.ronn +40 -0
  212. data/{lib/bundler/man/bundle-binstubs → man/bundle-binstubs.1} +11 -1
  213. data/man/bundle-binstubs.1.txt +48 -0
  214. data/man/bundle-binstubs.ronn +15 -1
  215. data/man/bundle-check.1 +31 -0
  216. data/man/bundle-check.1.txt +33 -0
  217. data/man/bundle-check.ronn +26 -0
  218. data/man/bundle-clean.1 +24 -0
  219. data/man/bundle-clean.1.txt +26 -0
  220. data/man/bundle-clean.ronn +18 -0
  221. data/man/bundle-config.1 +497 -0
  222. data/man/bundle-config.1.txt +529 -0
  223. data/man/bundle-config.ronn +233 -61
  224. data/man/bundle-doctor.1 +44 -0
  225. data/man/bundle-doctor.1.txt +44 -0
  226. data/man/bundle-doctor.ronn +33 -0
  227. data/{lib/bundler/man/bundle-exec → man/bundle-exec.1} +6 -3
  228. data/man/bundle-exec.1.txt +178 -0
  229. data/man/bundle-exec.ronn +10 -3
  230. data/{lib/bundler/man/bundle-gem → man/bundle-gem.1} +4 -4
  231. data/man/bundle-gem.1.txt +91 -0
  232. data/man/bundle-gem.ronn +3 -2
  233. data/man/bundle-info.1 +20 -0
  234. data/man/bundle-info.1.txt +21 -0
  235. data/man/bundle-info.ronn +17 -0
  236. data/man/bundle-init.1 +25 -0
  237. data/man/bundle-init.1.txt +34 -0
  238. data/man/bundle-init.ronn +29 -0
  239. data/man/bundle-inject.1 +33 -0
  240. data/man/bundle-inject.1.txt +32 -0
  241. data/man/bundle-inject.ronn +22 -0
  242. data/{lib/bundler/man/bundle-install → man/bundle-install.1} +32 -29
  243. data/man/bundle-install.1.txt +396 -0
  244. data/man/bundle-install.ronn +45 -36
  245. data/man/bundle-list.1 +50 -0
  246. data/man/bundle-list.1.txt +43 -0
  247. data/man/bundle-list.ronn +33 -0
  248. data/{lib/bundler/man/bundle-lock → man/bundle-lock.1} +43 -2
  249. data/man/bundle-lock.1.txt +93 -0
  250. data/man/bundle-lock.ronn +47 -0
  251. data/man/bundle-open.1 +32 -0
  252. data/man/bundle-open.1.txt +29 -0
  253. data/man/bundle-open.ronn +19 -0
  254. data/man/bundle-outdated.1 +155 -0
  255. data/man/bundle-outdated.1.txt +131 -0
  256. data/man/bundle-outdated.ronn +111 -0
  257. data/{lib/bundler/man/bundle-package → man/bundle-package.1} +6 -3
  258. data/man/bundle-package.1.txt +79 -0
  259. data/man/bundle-package.ronn +7 -2
  260. data/{lib/bundler/man/bundle-platform → man/bundle-platform.1} +1 -1
  261. data/man/bundle-platform.1.txt +57 -0
  262. data/man/bundle-pristine.1 +34 -0
  263. data/man/bundle-pristine.1.txt +44 -0
  264. data/man/bundle-pristine.ronn +34 -0
  265. data/man/bundle-remove.1 +31 -0
  266. data/man/bundle-remove.1.txt +34 -0
  267. data/man/bundle-remove.ronn +23 -0
  268. data/man/bundle-show.1 +23 -0
  269. data/man/bundle-show.1.txt +27 -0
  270. data/man/bundle-show.ronn +21 -0
  271. data/man/bundle-update.1 +394 -0
  272. data/man/bundle-update.1.txt +391 -0
  273. data/man/bundle-update.ronn +172 -16
  274. data/man/bundle-viz.1 +39 -0
  275. data/man/bundle-viz.1.txt +39 -0
  276. data/man/bundle-viz.ronn +30 -0
  277. data/{lib/bundler/man/bundle → man/bundle.1} +44 -28
  278. data/man/bundle.1.txt +116 -0
  279. data/man/bundle.ronn +39 -27
  280. data/{lib/bundler/man → man}/gemfile.5 +67 -84
  281. data/man/gemfile.5.ronn +77 -55
  282. data/man/gemfile.5.txt +653 -0
  283. data/man/index.txt +25 -8
  284. metadata +118 -58
  285. data/.codeclimate.yml +0 -25
  286. data/.gitignore +0 -16
  287. data/.rspec +0 -3
  288. data/.rubocop.yml +0 -128
  289. data/.rubocop_todo.yml +0 -248
  290. data/.travis.yml +0 -108
  291. data/CODE_OF_CONDUCT.md +0 -42
  292. data/CONTRIBUTING.md +0 -36
  293. data/DEVELOPMENT.md +0 -148
  294. data/ISSUES.md +0 -100
  295. data/Rakefile +0 -333
  296. data/bin/rake +0 -19
  297. data/bin/rspec +0 -15
  298. data/bin/rubocop +0 -17
  299. data/bin/with_rubygems +0 -39
  300. data/lib/bundler/man/bundle-binstubs.txt +0 -33
  301. data/lib/bundler/man/bundle-config +0 -254
  302. data/lib/bundler/man/bundle-config.txt +0 -282
  303. data/lib/bundler/man/bundle-exec.txt +0 -171
  304. data/lib/bundler/man/bundle-gem.txt +0 -90
  305. data/lib/bundler/man/bundle-install.txt +0 -385
  306. data/lib/bundler/man/bundle-lock.txt +0 -52
  307. data/lib/bundler/man/bundle-package.txt +0 -74
  308. data/lib/bundler/man/bundle-platform.txt +0 -57
  309. data/lib/bundler/man/bundle-update +0 -221
  310. data/lib/bundler/man/bundle-update.txt +0 -227
  311. data/lib/bundler/man/bundle.txt +0 -104
  312. data/lib/bundler/man/gemfile.5.txt +0 -636
  313. data/lib/bundler/postit_trampoline.rb +0 -68
  314. data/lib/bundler/vendor/compact_index_client/lib/compact_index_client.rb +0 -79
  315. data/lib/bundler/vendor/compact_index_client/lib/compact_index_client/cache.rb +0 -112
  316. data/lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb +0 -80
  317. data/lib/bundler/vendor/compact_index_client/lib/compact_index_client/version.rb +0 -4
  318. data/lib/bundler/vendor/postit/lib/postit.rb +0 -15
  319. data/lib/bundler/vendor/postit/lib/postit/environment.rb +0 -44
  320. data/lib/bundler/vendor/postit/lib/postit/installer.rb +0 -28
  321. data/lib/bundler/vendor/postit/lib/postit/parser.rb +0 -21
  322. data/lib/bundler/vendor/postit/lib/postit/setup.rb +0 -12
  323. data/lib/bundler/vendor/postit/lib/postit/version.rb +0 -3
data/bin/rspec DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- load File.expand_path("../with_rubygems", __FILE__) if ENV["RGV"]
5
-
6
- require "rubygems"
7
-
8
- bundler_spec = Gem::Specification.load(File.expand_path("../../bundler.gemspec", __FILE__))
9
- bundler_spec.dependencies.each do |dep|
10
- gem dep.name, dep.requirement
11
- end
12
-
13
- Gem.finish_resolve if Gem.respond_to?(:finish_resolve)
14
-
15
- load Gem.bin_path("rspec-core", "rspec")
data/bin/rubocop DELETED
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- load File.expand_path("../with_rubygems", __FILE__) if ENV["RGV"]
5
-
6
- require "rubygems"
7
-
8
- bundler_spec = Gem::Specification.load(File.expand_path("../../bundler.gemspec", __FILE__))
9
- bundler_spec.dependencies.each do |dep|
10
- gem dep.name, dep.requirement
11
- end
12
-
13
- gem "rubocop", "= 0.41.2"
14
-
15
- Gem.finish_resolve if Gem.respond_to?(:finish_resolve)
16
-
17
- load Gem.bin_path("rubocop", "rubocop")
data/bin/with_rubygems DELETED
@@ -1,39 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "pathname"
5
-
6
- def run(*cmd)
7
- return if system(*cmd)
8
- raise "Running `#{cmd.join(" ")}` failed"
9
- end
10
-
11
- version = ENV.delete("RGV")
12
- rubygems_path = Pathname.new(__FILE__).join("../../tmp/rubygems").expand_path
13
- unless rubygems_path.directory?
14
- rubygems_path.parent.mkpath unless rubygems_path.directory?
15
- run("git", "clone", "https://github.com/rubygems/rubygems.git", rubygems_path.to_s)
16
- end
17
- Dir.chdir(rubygems_path) do
18
- version = "v#{version}" if version =~ /\A\d/
19
- run("git", "checkout", version, "--quiet")
20
- end if version
21
-
22
- rubygems_lib = rubygems_path + "lib"
23
- ENV["RUBYOPT"] = %(-I#{rubygems_lib} #{ENV["RUBYOPT"]})
24
-
25
- if $0 != __FILE__
26
- ARGV.unshift($0)
27
- elsif cmd = ARGV.first
28
- possible_dirs = [
29
- Pathname.new(__FILE__) + "..",
30
- Pathname.new(__FILE__) + "../../exe",
31
- rubygems_path + "bin",
32
- ]
33
- cmd = possible_dirs.map do |dir|
34
- dir.join(cmd).expand_path
35
- end.find(&:file?)
36
- ARGV[0] = cmd.to_s if cmd
37
- end
38
-
39
- exec(*ARGV)
@@ -1,33 +0,0 @@
1
- BUNDLE-BINSTUBS(1) BUNDLE-BINSTUBS(1)
2
-
3
-
4
-
5
- 1mNAME0m
6
- 1mbundle-binstubs 22m- Install the binstubs of the listed gems
7
-
8
- 1mSYNOPSIS0m
9
- 1mbundle binstubs 4m22mGEM_NAME24m [--force] [--path PATH] [--standalone]
10
-
11
- 1mDESCRIPTION0m
12
- This command generates binstubs for executables in 1mGEM_NAME22m. Binstubs
13
- are put into 1mbin22m, or the 1m--path 22mdirectory if one has been set. Calling
14
- binstubs with [GEM [GEM]] will create binstubs for all given gems.
15
-
16
- 1mOPTIONS0m
17
- 1m--force0m
18
- Overwrite existing binstubs if they exist.
19
-
20
- 1m--path 22mThe location to install the specified binstubs to. This defaults
21
- to 1mbin22m.
22
-
23
- 1m--standalone0m
24
- Makes binstubs that can work without depending on Rubygems or
25
- Bundler at runtime.
26
-
27
- 1mBUNDLE INSTALL --BINSTUBS0m
28
- To create binstubs for all the gems in the bundle you can use the
29
- 1m--binstubs 22mflag in bundle install(1) 4mbundle-install.1.html24m.
30
-
31
-
32
-
33
- October 2016 BUNDLE-BINSTUBS(1)
@@ -1,254 +0,0 @@
1
- .\" generated with Ronn/v0.7.3
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
- .
4
- .TH "BUNDLE\-CONFIG" "1" "October 2016" "" ""
5
- .
6
- .SH "NAME"
7
- \fBbundle\-config\fR \- Set bundler configuration options
8
- .
9
- .SH "SYNOPSIS"
10
- \fBbundle config\fR [\fIname\fR [\fIvalue\fR]]
11
- .
12
- .SH "DESCRIPTION"
13
- This command allows you to interact with bundler\'s configuration system\. Bundler retrieves its configuration from the local application (\fBapp/\.bundle/config\fR), environment variables, and the user\'s home directory (\fB~/\.bundle/config\fR), in that order of priority\.
14
- .
15
- .P
16
- Executing \fBbundle config\fR with no parameters will print a list of all bundler configuration for the current bundle, and where that configuration was set\.
17
- .
18
- .P
19
- Executing \fBbundle config <name>\fR will print the value of that configuration setting, and where it was set\.
20
- .
21
- .P
22
- Executing \fBbundle config <name> <value>\fR will set that configuration to the value specified for all bundles executed as the current user\. The configuration will be stored in \fB~/\.bundle/config\fR\. If \fIname\fR already is set, \fIname\fR will be overridden and user will be warned\.
23
- .
24
- .P
25
- Executing \fBbundle config \-\-global <name> <value>\fR works the same as above\.
26
- .
27
- .P
28
- Executing \fBbundle config \-\-local <name> <value>\fR will set that configuration to the local application\. The configuration will be stored in \fBapp/\.bundle/config\fR\.
29
- .
30
- .P
31
- Executing \fBbundle config \-\-delete <name>\fR will delete the configuration in both local and global sources\. Not compatible with \-\-global or \-\-local flag\.
32
- .
33
- .P
34
- Executing bundle with the \fBBUNDLE_IGNORE_CONFIG\fR environment variable set will cause it to ignore all configuration\.
35
- .
36
- .P
37
- Executing \fBbundle config disable_multisource true\fR upgrades the warning about the Gemfile containing multiple primary sources to an error\. Executing \fBbundle config \-\-delete disable_multisource\fR downgrades this error to a warning\.
38
- .
39
- .SH "REMEMBERING OPTIONS"
40
- Flags passed to \fBbundle install\fR or the Bundler runtime, such as \fB\-\-path foo\fR or \fB\-\-without production\fR, are not remembered between commands\. If these options must be remembered,they must be set using \fBbundle config\fR (e\.g\., \fBbundle config path foo\fR)\.
41
- .
42
- .P
43
- The options that can be configured are:
44
- .
45
- .TP
46
- \fBbinstubs\fR
47
- Creates a directory (defaults to \fB~/bin\fR) and place any executables from the gem there\. These executables run in Bundler\'s context\. If used, you might add this directory to your environment\'s \fBPATH\fR variable\. For instance, if the \fBrails\fR gem comes with a \fBrails\fR executable, this flag will create a \fBbin/rails\fR executable that ensures that all referred dependencies will be resolved using the bundled gems\.
48
- .
49
- .TP
50
- \fBdeployment\fR
51
- In deployment mode, Bundler will \'roll\-out\' the bundle for \fBproduction\fR use\. Please check carefully if you want to have this option enabled in \fBdevelopment\fR or \fBtest\fR environments\.
52
- .
53
- .TP
54
- \fBpath\fR
55
- The location to install the specified gems to\. This defaults to Rubygems\' setting\. Bundler shares this location with Rubygems, \fBgem install \.\.\.\fR will have gem installed there, too\. Therefore, gems installed without a \fB\-\-path \.\.\.\fR setting will show up by calling \fBgem list\fR\. Accodingly, gems installed to other locations will not get listed\.
56
- .
57
- .TP
58
- \fBwithout\fR
59
- A space\-separated list of groups referencing gems to skip during installation\.
60
- .
61
- .SH "BUILD OPTIONS"
62
- You can use \fBbundle config\fR to give bundler the flags to pass to the gem installer every time bundler tries to install a particular gem\.
63
- .
64
- .P
65
- A very common example, the \fBmysql\fR gem, requires Snow Leopard users to pass configuration flags to \fBgem install\fR to specify where to find the \fBmysql_config\fR executable\.
66
- .
67
- .IP "" 4
68
- .
69
- .nf
70
-
71
- gem install mysql \-\- \-\-with\-mysql\-config=/usr/local/mysql/bin/mysql_config
72
- .
73
- .fi
74
- .
75
- .IP "" 0
76
- .
77
- .P
78
- Since the specific location of that executable can change from machine to machine, you can specify these flags on a per\-machine basis\.
79
- .
80
- .IP "" 4
81
- .
82
- .nf
83
-
84
- bundle config build\.mysql \-\-with\-mysql\-config=/usr/local/mysql/bin/mysql_config
85
- .
86
- .fi
87
- .
88
- .IP "" 0
89
- .
90
- .P
91
- After running this command, every time bundler needs to install the \fBmysql\fR gem, it will pass along the flags you specified\.
92
- .
93
- .SH "CONFIGURATION KEYS"
94
- Configuration keys in bundler have two forms: the canonical form and the environment variable form\.
95
- .
96
- .P
97
- For instance, passing the \fB\-\-without\fR flag to bundle install(1) \fIbundle\-install\.1\.html\fR prevents Bundler from installing certain groups specified in the Gemfile(5)\. Bundler persists this value in \fBapp/\.bundle/config\fR so that calls to \fBBundler\.setup\fR do not try to find gems from the \fBGemfile\fR that you didn\'t install\. Additionally, subsequent calls to bundle install(1) \fIbundle\-install\.1\.html\fR remember this setting and skip those groups\.
98
- .
99
- .P
100
- The canonical form of this configuration is \fB"without"\fR\. To convert the canonical form to the environment variable form, capitalize it, and prepend \fBBUNDLE_\fR\. The environment variable form of \fB"without"\fR is \fBBUNDLE_WITHOUT\fR\.
101
- .
102
- .P
103
- Any periods in the configuration keys must be replaced with two underscores when setting it via environment variables\. The configuration key \fBlocal\.rack\fR becomes the environment variable \fBBUNDLE_LOCAL__RACK\fR\.
104
- .
105
- .SH "LIST OF AVAILABLE KEYS"
106
- The following is a list of all configuration keys and their purpose\. You can learn more about their operation in bundle install(1) \fIbundle\-install\.1\.html\fR\.
107
- .
108
- .IP "\(bu" 4
109
- \fBpath\fR (\fBBUNDLE_PATH\fR): The location on disk where all gems in your bundle will be located regardless of \fB$GEM_HOME\fR or \fB$GEM_PATH\fR values\. Bundle gems not found in this location will be installed by \fBbundle install\fR\. Defaults to \fBGem\.dir\fR\. When \-\-deployment is used, defaults to vendor/bundle\.
110
- .
111
- .IP "\(bu" 4
112
- \fBfrozen\fR (\fBBUNDLE_FROZEN\fR): Disallow changes to the \fBGemfile\fR\. Defaults to \fBtrue\fR when \fB\-\-deployment\fR is used\.
113
- .
114
- .IP "\(bu" 4
115
- \fBwithout\fR (\fBBUNDLE_WITHOUT\fR): A \fB:\fR\-separated list of groups whose gems bundler should not install
116
- .
117
- .IP "\(bu" 4
118
- \fBbin\fR (\fBBUNDLE_BIN\fR): Install executables from gems in the bundle to the specified directory\. Defaults to \fBfalse\fR\.
119
- .
120
- .IP "\(bu" 4
121
- \fBgemfile\fR (\fBBUNDLE_GEMFILE\fR): The name of the file that bundler should use as the \fBGemfile\fR\. This location of this file also sets the root of the project, which is used to resolve relative paths in the \fBGemfile\fR, among other things\. By default, bundler will search up from the current working directory until it finds a \fBGemfile\fR\.
122
- .
123
- .IP "\(bu" 4
124
- \fBssl_ca_cert\fR (\fBBUNDLE_SSL_CA_CERT\fR): Path to a designated CA certificate file or folder containing multiple certificates for trusted CAs in PEM format\.
125
- .
126
- .IP "\(bu" 4
127
- \fBssl_client_cert\fR (\fBBUNDLE_SSL_CLIENT_CERT\fR): Path to a designated file containing a X\.509 client certificate and key in PEM format\.
128
- .
129
- .IP "\(bu" 4
130
- \fBcache_path\fR (\fBBUNDLE_CACHE_PATH\fR): The directory that bundler will place cached gems in when running \fBbundle package\fR, and that bundler will look in when installing gems\.
131
- .
132
- .IP "\(bu" 4
133
- \fBdisable_multisource\fR (\fBBUNDLE_DISABLE_MULTISOURCE\fR): When set, Gemfiles containing multiple sources will produce errors instead of warnings\. Use \fBbundle config \-\-delete disable_multisource\fR to unset\.
134
- .
135
- .IP "\(bu" 4
136
- \fBignore_messages\fR (\fBBUNDLE_IGNORE_MESSAGES\fR): When set, no post install messages will be printed\. To silence a single gem, use dot notation like \fBignore_messages\.httparty true\fR\.
137
- .
138
- .IP "\(bu" 4
139
- \fBretry\fR (\fBBUNDLE_RETRY\fR): The number of times to retry failed network requests\. Defaults to \fB3\fR\.
140
- .
141
- .IP "\(bu" 4
142
- \fBredirect\fR (\fBBUNDLE_REDIRECT\fR): The number of redirects allowed for network requests\. Defaults to \fB5\fR\.
143
- .
144
- .IP "\(bu" 4
145
- \fBtimeout\fR (\fBBUNDLE_TIMEOUT\fR): The seconds allowed before timing out for network requests\. Defaults to \fB10\fR\.
146
- .
147
- .IP "" 0
148
- .
149
- .P
150
- In general, you should set these settings per\-application by using the applicable flag to the bundle install(1) \fIbundle\-install\.1\.html\fR or bundle package(1) \fIbundle\-package\.1\.html\fR command\.
151
- .
152
- .P
153
- You can set them globally either via environment variables or \fBbundle config\fR, whichever is preferable for your setup\. If you use both, environment variables will take preference over global settings\.
154
- .
155
- .SH "LOCAL GIT REPOS"
156
- Bundler also allows you to work against a git repository locally instead of using the remote version\. This can be achieved by setting up a local override:
157
- .
158
- .IP "" 4
159
- .
160
- .nf
161
-
162
- bundle config local\.GEM_NAME /path/to/local/git/repository
163
- .
164
- .fi
165
- .
166
- .IP "" 0
167
- .
168
- .P
169
- For example, in order to use a local Rack repository, a developer could call:
170
- .
171
- .IP "" 4
172
- .
173
- .nf
174
-
175
- bundle config local\.rack ~/Work/git/rack
176
- .
177
- .fi
178
- .
179
- .IP "" 0
180
- .
181
- .P
182
- Now instead of checking out the remote git repository, the local override will be used\. Similar to a path source, every time the local git repository change, changes will be automatically picked up by Bundler\. This means a commit in the local git repo will update the revision in the \fBGemfile\.lock\fR to the local git repo revision\. This requires the same attention as git submodules\. Before pushing to the remote, you need to ensure the local override was pushed, otherwise you may point to a commit that only exists in your local machine\.
183
- .
184
- .P
185
- Bundler does many checks to ensure a developer won\'t work with invalid references\. Particularly, we force a developer to specify a branch in the \fBGemfile\fR in order to use this feature\. If the branch specified in the \fBGemfile\fR and the current branch in the local git repository do not match, Bundler will abort\. This ensures that a developer is always working against the correct branches, and prevents accidental locking to a different branch\.
186
- .
187
- .P
188
- Finally, Bundler also ensures that the current revision in the \fBGemfile\.lock\fR exists in the local git repository\. By doing this, Bundler forces you to fetch the latest changes in the remotes\.
189
- .
190
- .SH "MIRRORS OF GEM SOURCES"
191
- Bundler supports overriding gem sources with mirrors\. This allows you to configure rubygems\.org as the gem source in your Gemfile while still using your mirror to fetch gems\.
192
- .
193
- .IP "" 4
194
- .
195
- .nf
196
-
197
- bundle config mirror\.SOURCE_URL MIRROR_URL
198
- .
199
- .fi
200
- .
201
- .IP "" 0
202
- .
203
- .P
204
- For example, to use a mirror of rubygems\.org hosted at
205
- .
206
- .IP "" 4
207
- .
208
- .nf
209
-
210
- bundle config mirror\.http://rubygems\.org http://rubygems\-mirror\.org
211
- .
212
- .fi
213
- .
214
- .IP "" 0
215
- .
216
- .SH "CREDENTIALS FOR GEM SOURCES"
217
- Bundler allows you to configure credentials for any gem source, which allows you to avoid putting secrets into your Gemfile\.
218
- .
219
- .IP "" 4
220
- .
221
- .nf
222
-
223
- bundle config SOURCE_HOSTNAME USERNAME:PASSWORD
224
- .
225
- .fi
226
- .
227
- .IP "" 0
228
- .
229
- .P
230
- For example, to save the credentials of user \fBclaudette\fR for the gem source at \fBgems\.longerous\.com\fR, you would run:
231
- .
232
- .IP "" 4
233
- .
234
- .nf
235
-
236
- bundle config gems\.longerous\.com claudette:s00pers3krit
237
- .
238
- .fi
239
- .
240
- .IP "" 0
241
- .
242
- .P
243
- Or you can set the credentials as an environment variable like this:
244
- .
245
- .IP "" 4
246
- .
247
- .nf
248
-
249
- export BUNDLE_GEMS__LONGEROUS__COM="claudette:s00pers3krit"
250
- .
251
- .fi
252
- .
253
- .IP "" 0
254
-
@@ -1,282 +0,0 @@
1
- BUNDLE-CONFIG(1) BUNDLE-CONFIG(1)
2
-
3
-
4
-
5
- 1mNAME0m
6
- 1mbundle-config 22m- Set bundler configuration options
7
-
8
- 1mSYNOPSIS0m
9
- 1mbundle config 22m[4mname24m [4mvalue24m]]
10
-
11
- 1mDESCRIPTION0m
12
- This command allows you to interact with bundler's configuration sys-
13
- tem. Bundler retrieves its configuration from the local application
14
- (1mapp/.bundle/config22m), environment variables, and the user's home direc-
15
- tory (1m~/.bundle/config22m), in that order of priority.
16
-
17
- Executing 1mbundle config 22mwith no parameters will print a list of all
18
- bundler configuration for the current bundle, and where that configura-
19
- tion was set.
20
-
21
- Executing 1mbundle config <name> 22mwill print the value of that configura-
22
- tion setting, and where it was set.
23
-
24
- Executing 1mbundle config <name> <value> 22mwill set that configuration to
25
- the value specified for all bundles executed as the current user. The
26
- configuration will be stored in 1m~/.bundle/config22m. If 4mname24m already is
27
- set, 4mname24m will be overridden and user will be warned.
28
-
29
- Executing 1mbundle config --global <name> <value> 22mworks the same as
30
- above.
31
-
32
- Executing 1mbundle config --local <name> <value> 22mwill set that configura-
33
- tion to the local application. The configuration will be stored in
34
- 1mapp/.bundle/config22m.
35
-
36
- Executing 1mbundle config --delete <name> 22mwill delete the configuration
37
- in both local and global sources. Not compatible with --global or
38
- --local flag.
39
-
40
- Executing bundle with the 1mBUNDLE_IGNORE_CONFIG 22menvironment variable set
41
- will cause it to ignore all configuration.
42
-
43
- Executing 1mbundle config disable_multisource true 22mupgrades the warning
44
- about the Gemfile containing multiple primary sources to an error. Exe-
45
- cuting 1mbundle config --delete disable_multisource 22mdowngrades this error
46
- to a warning.
47
-
48
- 1mREMEMBERING OPTIONS0m
49
- Flags passed to 1mbundle install 22mor the Bundler runtime, such as 1m--path0m
50
- 1mfoo 22mor 1m--without production22m, are not remembered between commands. If
51
- these options must be remembered,they must be set using 1mbundle config0m
52
- (e.g., 1mbundle config path foo22m).
53
-
54
- The options that can be configured are:
55
-
56
- 1mbinstubs0m
57
- Creates a directory (defaults to 1m~/bin22m) and place any executa-
58
- bles from the gem there. These executables run in Bundler's con-
59
- text. If used, you might add this directory to your environ-
60
- ment's 1mPATH 22mvariable. For instance, if the 1mrails 22mgem comes with
61
- a 1mrails 22mexecutable, this flag will create a 1mbin/rails 22mexecutable
62
- that ensures that all referred dependencies will be resolved
63
- using the bundled gems.
64
-
65
- 1mdeployment0m
66
- In deployment mode, Bundler will 'roll-out' the bundle for 1mpro-0m
67
- 1mduction 22muse. Please check carefully if you want to have this
68
- option enabled in 1mdevelopment 22mor 1mtest 22menvironments.
69
-
70
- 1mpath 22mThe location to install the specified gems to. This defaults to
71
- Rubygems' setting. Bundler shares this location with Rubygems,
72
- 1mgem install ... 22mwill have gem installed there, too. Therefore,
73
- gems installed without a 1m--path ... 22msetting will show up by
74
- calling 1mgem list22m. Accodingly, gems installed to other locations
75
- will not get listed.
76
-
77
- 1mwithout0m
78
- A space-separated list of groups referencing gems to skip during
79
- installation.
80
-
81
- 1mBUILD OPTIONS0m
82
- You can use 1mbundle config 22mto give bundler the flags to pass to the gem
83
- installer every time bundler tries to install a particular gem.
84
-
85
- A very common example, the 1mmysql 22mgem, requires Snow Leopard users to
86
- pass configuration flags to 1mgem install 22mto specify where to find the
87
- 1mmysql_config 22mexecutable.
88
-
89
-
90
-
91
- gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
92
-
93
-
94
-
95
- Since the specific location of that executable can change from machine
96
- to machine, you can specify these flags on a per-machine basis.
97
-
98
-
99
-
100
- bundle config build.mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config
101
-
102
-
103
-
104
- After running this command, every time bundler needs to install the
105
- 1mmysql 22mgem, it will pass along the flags you specified.
106
-
107
- 1mCONFIGURATION KEYS0m
108
- Configuration keys in bundler have two forms: the canonical form and
109
- the environment variable form.
110
-
111
- For instance, passing the 1m--without 22mflag to bundle install(1) 4mbun-0m
112
- 4mdle-install.1.html24m prevents Bundler from installing certain groups
113
- specified in the Gemfile(5). Bundler persists this value in 1mapp/.bun-0m
114
- 1mdle/config 22mso that calls to 1mBundler.setup 22mdo not try to find gems from
115
- the 1mGemfile 22mthat you didn't install. Additionally, subsequent calls to
116
- bundle install(1) 4mbundle-install.1.html24m remember this setting and skip
117
- those groups.
118
-
119
- The canonical form of this configuration is 1m"without"22m. To convert the
120
- canonical form to the environment variable form, capitalize it, and
121
- prepend 1mBUNDLE_22m. The environment variable form of 1m"without" 22mis 1mBUN-0m
122
- 1mDLE_WITHOUT22m.
123
-
124
- Any periods in the configuration keys must be replaced with two under-
125
- scores when setting it via environment variables. The configuration key
126
- 1mlocal.rack 22mbecomes the environment variable 1mBUNDLE_LOCAL__RACK22m.
127
-
128
- 1mLIST OF AVAILABLE KEYS0m
129
- The following is a list of all configuration keys and their purpose.
130
- You can learn more about their operation in bundle install(1) 4mbun-0m
131
- 4mdle-install.1.html24m.
132
-
133
- o 1mpath 22m(1mBUNDLE_PATH22m): The location on disk where all gems in your
134
- bundle will be located regardless of 1m$GEM_HOME 22mor 1m$GEM_PATH 22mvalues.
135
- Bundle gems not found in this location will be installed by 1mbundle0m
136
- 1minstall22m. Defaults to 1mGem.dir22m. When --deployment is used, defaults
137
- to vendor/bundle.
138
-
139
- o 1mfrozen 22m(1mBUNDLE_FROZEN22m): Disallow changes to the 1mGemfile22m. Defaults
140
- to 1mtrue 22mwhen 1m--deployment 22mis used.
141
-
142
- o 1mwithout 22m(1mBUNDLE_WITHOUT22m): A 1m:22m-separated list of groups whose gems
143
- bundler should not install
144
-
145
- o 1mbin 22m(1mBUNDLE_BIN22m): Install executables from gems in the bundle to
146
- the specified directory. Defaults to 1mfalse22m.
147
-
148
- o 1mgemfile 22m(1mBUNDLE_GEMFILE22m): The name of the file that bundler should
149
- use as the 1mGemfile22m. This location of this file also sets the root
150
- of the project, which is used to resolve relative paths in the 1mGem-0m
151
- 1mfile22m, among other things. By default, bundler will search up from
152
- the current working directory until it finds a 1mGemfile22m.
153
-
154
- o 1mssl_ca_cert 22m(1mBUNDLE_SSL_CA_CERT22m): Path to a designated CA certifi-
155
- cate file or folder containing multiple certificates for trusted
156
- CAs in PEM format.
157
-
158
- o 1mssl_client_cert 22m(1mBUNDLE_SSL_CLIENT_CERT22m): Path to a designated file
159
- containing a X.509 client certificate and key in PEM format.
160
-
161
- o 1mcache_path 22m(1mBUNDLE_CACHE_PATH22m): The directory that bundler will
162
- place cached gems in when running 1mbundle package22m, and that bundler
163
- will look in when installing gems.
164
-
165
- o 1mdisable_multisource 22m(1mBUNDLE_DISABLE_MULTISOURCE22m): When set, Gem-
166
- files containing multiple sources will produce errors instead of
167
- warnings. Use 1mbundle config --delete disable_multisource 22mto unset.
168
-
169
- o 1mignore_messages 22m(1mBUNDLE_IGNORE_MESSAGES22m): When set, no post install
170
- messages will be printed. To silence a single gem, use dot notation
171
- like 1mignore_messages.httparty true22m.
172
-
173
- o 1mretry 22m(1mBUNDLE_RETRY22m): The number of times to retry failed network
174
- requests. Defaults to 1m322m.
175
-
176
- o 1mredirect 22m(1mBUNDLE_REDIRECT22m): The number of redirects allowed for
177
- network requests. Defaults to 1m522m.
178
-
179
- o 1mtimeout 22m(1mBUNDLE_TIMEOUT22m): The seconds allowed before timing out for
180
- network requests. Defaults to 1m1022m.
181
-
182
-
183
-
184
- In general, you should set these settings per-application by using the
185
- applicable flag to the bundle install(1) 4mbundle-install.1.html24m or bun-
186
- dle package(1) 4mbundle-package.1.html24m command.
187
-
188
- You can set them globally either via environment variables or 1mbundle0m
189
- 1mconfig22m, whichever is preferable for your setup. If you use both, envi-
190
- ronment variables will take preference over global settings.
191
-
192
- 1mLOCAL GIT REPOS0m
193
- Bundler also allows you to work against a git repository locally
194
- instead of using the remote version. This can be achieved by setting up
195
- a local override:
196
-
197
-
198
-
199
- bundle config local.GEM_NAME /path/to/local/git/repository
200
-
201
-
202
-
203
- For example, in order to use a local Rack repository, a developer could
204
- call:
205
-
206
-
207
-
208
- bundle config local.rack ~/Work/git/rack
209
-
210
-
211
-
212
- Now instead of checking out the remote git repository, the local over-
213
- ride will be used. Similar to a path source, every time the local git
214
- repository change, changes will be automatically picked up by Bundler.
215
- This means a commit in the local git repo will update the revision in
216
- the 1mGemfile.lock 22mto the local git repo revision. This requires the same
217
- attention as git submodules. Before pushing to the remote, you need to
218
- ensure the local override was pushed, otherwise you may point to a com-
219
- mit that only exists in your local machine.
220
-
221
- Bundler does many checks to ensure a developer won't work with invalid
222
- references. Particularly, we force a developer to specify a branch in
223
- the 1mGemfile 22min order to use this feature. If the branch specified in
224
- the 1mGemfile 22mand the current branch in the local git repository do not
225
- match, Bundler will abort. This ensures that a developer is always
226
- working against the correct branches, and prevents accidental locking
227
- to a different branch.
228
-
229
- Finally, Bundler also ensures that the current revision in the 1mGem-0m
230
- 1mfile.lock 22mexists in the local git repository. By doing this, Bundler
231
- forces you to fetch the latest changes in the remotes.
232
-
233
- 1mMIRRORS OF GEM SOURCES0m
234
- Bundler supports overriding gem sources with mirrors. This allows you
235
- to configure rubygems.org as the gem source in your Gemfile while still
236
- using your mirror to fetch gems.
237
-
238
-
239
-
240
- bundle config mirror.SOURCE_URL MIRROR_URL
241
-
242
-
243
-
244
- For example, to use a mirror of rubygems.org hosted at
245
-
246
-
247
-
248
- bundle config mirror.http://rubygems.org http://rubygems-mirror.org
249
-
250
-
251
-
252
- 1mCREDENTIALS FOR GEM SOURCES0m
253
- Bundler allows you to configure credentials for any gem source, which
254
- allows you to avoid putting secrets into your Gemfile.
255
-
256
-
257
-
258
- bundle config SOURCE_HOSTNAME USERNAME:PASSWORD
259
-
260
-
261
-
262
- For example, to save the credentials of user 1mclaudette 22mfor the gem
263
- source at 1mgems.longerous.com22m, you would run:
264
-
265
-
266
-
267
- bundle config gems.longerous.com claudette:s00pers3krit
268
-
269
-
270
-
271
- Or you can set the credentials as an environment variable like this:
272
-
273
-
274
-
275
- export BUNDLE_GEMS__LONGEROUS__COM="claudette:s00pers3krit"
276
-
277
-
278
-
279
-
280
-
281
-
282
- October 2016 BUNDLE-CONFIG(1)