bundler 2.2.0.rc.1 → 2.2.0.rc.2

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 (163) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +725 -687
  3. data/lib/bundler.rb +6 -3
  4. data/lib/bundler/build_metadata.rb +3 -11
  5. data/lib/bundler/cli.rb +27 -14
  6. data/lib/bundler/cli/add.rb +1 -1
  7. data/lib/bundler/cli/cache.rb +1 -7
  8. data/lib/bundler/cli/clean.rb +1 -1
  9. data/lib/bundler/cli/common.rb +14 -0
  10. data/lib/bundler/cli/doctor.rb +1 -1
  11. data/lib/bundler/cli/exec.rb +1 -1
  12. data/lib/bundler/cli/fund.rb +36 -0
  13. data/lib/bundler/cli/gem.rb +1 -1
  14. data/lib/bundler/cli/info.rb +2 -1
  15. data/lib/bundler/cli/init.rb +1 -1
  16. data/lib/bundler/cli/inject.rb +1 -1
  17. data/lib/bundler/cli/install.rb +4 -2
  18. data/lib/bundler/cli/list.rb +1 -1
  19. data/lib/bundler/cli/outdated.rb +1 -1
  20. data/lib/bundler/cli/pristine.rb +1 -1
  21. data/lib/bundler/cli/show.rb +1 -1
  22. data/lib/bundler/cli/update.rb +2 -0
  23. data/lib/bundler/compact_index_client.rb +1 -1
  24. data/lib/bundler/compact_index_client/cache.rb +1 -1
  25. data/lib/bundler/definition.rb +28 -37
  26. data/lib/bundler/dep_proxy.rb +1 -1
  27. data/lib/bundler/dsl.rb +4 -4
  28. data/lib/bundler/endpoint_specification.rb +1 -1
  29. data/lib/bundler/fetcher.rb +3 -3
  30. data/lib/bundler/fetcher/base.rb +1 -1
  31. data/lib/bundler/fetcher/compact_index.rb +1 -1
  32. data/lib/bundler/fetcher/downloader.rb +1 -1
  33. data/lib/bundler/fetcher/index.rb +1 -1
  34. data/lib/bundler/friendly_errors.rb +3 -3
  35. data/lib/bundler/gem_helper.rb +17 -9
  36. data/lib/bundler/gem_helpers.rb +6 -1
  37. data/lib/bundler/gem_version_promoter.rb +1 -1
  38. data/lib/bundler/graph.rb +1 -1
  39. data/lib/bundler/index.rb +1 -1
  40. data/lib/bundler/injector.rb +1 -1
  41. data/lib/bundler/installer.rb +1 -1
  42. data/lib/bundler/installer/gem_installer.rb +1 -1
  43. data/lib/bundler/installer/parallel_installer.rb +1 -1
  44. data/lib/bundler/installer/standalone.rb +2 -2
  45. data/lib/bundler/lazy_specification.rb +3 -3
  46. data/lib/bundler/lockfile_generator.rb +1 -1
  47. data/lib/bundler/lockfile_parser.rb +1 -1
  48. data/lib/bundler/mirror.rb +2 -2
  49. data/lib/bundler/plugin.rb +5 -6
  50. data/lib/bundler/plugin/index.rb +1 -1
  51. data/lib/bundler/plugin/installer.rb +1 -1
  52. data/lib/bundler/plugin/installer/rubygems.rb +1 -1
  53. data/lib/bundler/plugin/source_list.rb +1 -1
  54. data/lib/bundler/remote_specification.rb +1 -1
  55. data/lib/bundler/resolver.rb +4 -4
  56. data/lib/bundler/resolver/spec_group.rb +2 -2
  57. data/lib/bundler/retry.rb +1 -1
  58. data/lib/bundler/ruby_version.rb +1 -1
  59. data/lib/bundler/rubygems_ext.rb +46 -1
  60. data/lib/bundler/rubygems_gem_installer.rb +2 -2
  61. data/lib/bundler/rubygems_integration.rb +18 -6
  62. data/lib/bundler/runtime.rb +2 -2
  63. data/lib/bundler/settings.rb +49 -42
  64. data/lib/bundler/shared_helpers.rb +1 -1
  65. data/lib/bundler/similarity_detector.rb +1 -1
  66. data/lib/bundler/source.rb +1 -1
  67. data/lib/bundler/source/git.rb +1 -1
  68. data/lib/bundler/source/git/git_proxy.rb +4 -2
  69. data/lib/bundler/source/path.rb +2 -2
  70. data/lib/bundler/source/path/installer.rb +1 -1
  71. data/lib/bundler/source/rubygems.rb +2 -2
  72. data/lib/bundler/source/rubygems/remote.rb +1 -1
  73. data/lib/bundler/source_list.rb +2 -2
  74. data/lib/bundler/spec_set.rb +1 -1
  75. data/lib/bundler/stub_specification.rb +1 -1
  76. data/lib/bundler/templates/newgem/README.md.tt +1 -1
  77. data/lib/bundler/templates/newgem/bin/console.tt +1 -2
  78. data/lib/bundler/templates/newgem/newgem.gemspec.tt +2 -2
  79. data/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +0 -1
  80. data/lib/bundler/ui/shell.rb +5 -5
  81. data/lib/bundler/uri_credentials_filter.rb +1 -1
  82. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +7 -4
  83. data/lib/bundler/vendored_persistent.rb +0 -7
  84. data/lib/bundler/version.rb +1 -1
  85. data/lib/bundler/worker.rb +1 -1
  86. data/lib/bundler/yaml_serializer.rb +1 -1
  87. data/man/bundle-add.1 +1 -1
  88. data/man/{bundle-add.ronn → bundle-add.1.ronn} +0 -0
  89. data/man/bundle-binstubs.1 +5 -3
  90. data/man/{bundle-binstubs.ronn → bundle-binstubs.1.ronn} +2 -4
  91. data/man/bundle-cache.1 +1 -1
  92. data/man/{bundle-cache.ronn → bundle-cache.1.ronn} +0 -0
  93. data/man/bundle-check.1 +1 -1
  94. data/man/{bundle-check.ronn → bundle-check.1.ronn} +0 -0
  95. data/man/bundle-clean.1 +1 -1
  96. data/man/{bundle-clean.ronn → bundle-clean.1.ronn} +0 -0
  97. data/man/bundle-config.1 +14 -14
  98. data/man/{bundle-config.ronn → bundle-config.1.ronn} +14 -13
  99. data/man/bundle-doctor.1 +1 -1
  100. data/man/{bundle-doctor.ronn → bundle-doctor.1.ronn} +0 -0
  101. data/man/bundle-exec.1 +1 -1
  102. data/man/{bundle-exec.ronn → bundle-exec.1.ronn} +0 -0
  103. data/man/bundle-gem.1 +1 -1
  104. data/man/{bundle-gem.ronn → bundle-gem.1.ronn} +0 -0
  105. data/man/bundle-info.1 +1 -1
  106. data/man/{bundle-info.ronn → bundle-info.1.ronn} +0 -0
  107. data/man/bundle-init.1 +1 -1
  108. data/man/{bundle-init.ronn → bundle-init.1.ronn} +0 -0
  109. data/man/bundle-inject.1 +1 -1
  110. data/man/{bundle-inject.ronn → bundle-inject.1.ronn} +0 -0
  111. data/man/bundle-install.1 +29 -2
  112. data/man/{bundle-install.ronn → bundle-install.1.ronn} +24 -2
  113. data/man/bundle-list.1 +1 -1
  114. data/man/{bundle-list.ronn → bundle-list.1.ronn} +0 -0
  115. data/man/bundle-lock.1 +1 -1
  116. data/man/{bundle-lock.ronn → bundle-lock.1.ronn} +0 -0
  117. data/man/bundle-open.1 +1 -1
  118. data/man/{bundle-open.ronn → bundle-open.1.ronn} +0 -0
  119. data/man/bundle-outdated.1 +1 -1
  120. data/man/{bundle-outdated.ronn → bundle-outdated.1.ronn} +0 -0
  121. data/man/bundle-platform.1 +1 -1
  122. data/man/{bundle-platform.ronn → bundle-platform.1.ronn} +0 -0
  123. data/man/bundle-pristine.1 +1 -1
  124. data/man/{bundle-pristine.ronn → bundle-pristine.1.ronn} +0 -0
  125. data/man/bundle-remove.1 +1 -1
  126. data/man/{bundle-remove.ronn → bundle-remove.1.ronn} +0 -0
  127. data/man/bundle-show.1 +1 -1
  128. data/man/{bundle-show.ronn → bundle-show.1.ronn} +0 -0
  129. data/man/bundle-update.1 +1 -1
  130. data/man/{bundle-update.ronn → bundle-update.1.ronn} +0 -0
  131. data/man/bundle-viz.1 +1 -1
  132. data/man/{bundle-viz.ronn → bundle-viz.1.ronn} +0 -0
  133. data/man/bundle.1 +1 -1
  134. data/man/{bundle.ronn → bundle.1.ronn} +0 -0
  135. data/man/gemfile.5 +4 -4
  136. data/man/gemfile.5.ronn +4 -4
  137. metadata +28 -53
  138. data/man/bundle-add.1.txt +0 -58
  139. data/man/bundle-binstubs.1.txt +0 -48
  140. data/man/bundle-cache.1.txt +0 -78
  141. data/man/bundle-check.1.txt +0 -33
  142. data/man/bundle-clean.1.txt +0 -26
  143. data/man/bundle-config.1.txt +0 -527
  144. data/man/bundle-doctor.1.txt +0 -44
  145. data/man/bundle-exec.1.txt +0 -181
  146. data/man/bundle-gem.1.txt +0 -117
  147. data/man/bundle-info.1.txt +0 -21
  148. data/man/bundle-init.1.txt +0 -34
  149. data/man/bundle-inject.1.txt +0 -32
  150. data/man/bundle-install.1.txt +0 -401
  151. data/man/bundle-list.1.txt +0 -44
  152. data/man/bundle-lock.1.txt +0 -93
  153. data/man/bundle-open.1.txt +0 -29
  154. data/man/bundle-outdated.1.txt +0 -131
  155. data/man/bundle-platform.1.txt +0 -57
  156. data/man/bundle-pristine.1.txt +0 -44
  157. data/man/bundle-remove.1.txt +0 -34
  158. data/man/bundle-show.1.txt +0 -27
  159. data/man/bundle-update.1.txt +0 -391
  160. data/man/bundle-viz.1.txt +0 -39
  161. data/man/bundle.1.txt +0 -116
  162. data/man/gemfile.5.txt +0 -651
  163. data/man/index.txt +0 -25
@@ -39,7 +39,7 @@ module Bundler
39
39
  "rubygems remote at #{anonymized_uri}"
40
40
  end
41
41
 
42
- private
42
+ private
43
43
 
44
44
  def apply_auth(uri, auth)
45
45
  if auth && uri.userinfo.nil?
@@ -116,7 +116,7 @@ module Bundler
116
116
  @rubygems_aggregate.remotes
117
117
  end
118
118
 
119
- private
119
+ private
120
120
 
121
121
  def rubygems_aggregate_class
122
122
  Source::Rubygems
@@ -147,7 +147,7 @@ module Bundler
147
147
  if source.uri =~ /^git\:/
148
148
  Bundler.ui.warn "The git source `#{source.uri}` uses the `git` protocol, " \
149
149
  "which transmits data without encryption. Disable this warning with " \
150
- "`bundle config set git.allow_insecure true`, or switch to the `https` " \
150
+ "`bundle config set --local git.allow_insecure true`, or switch to the `https` " \
151
151
  "protocol to keep your data secure."
152
152
  end
153
153
  end
@@ -147,7 +147,7 @@ module Bundler
147
147
  sorted.each(&b)
148
148
  end
149
149
 
150
- private
150
+ private
151
151
 
152
152
  def sorted
153
153
  rake = @specs.find {|s| s.name == "rake" }
@@ -83,7 +83,7 @@ module Bundler
83
83
  stub.raw_require_paths
84
84
  end
85
85
 
86
- private
86
+ private
87
87
 
88
88
  def _remote_specification
89
89
  @_remote_specification ||= begin
@@ -28,7 +28,7 @@ TODO: Write usage instructions here
28
28
 
29
29
  After checking out the repo, run `bin/setup` to install dependencies.<% if config[:test] %> Then, run `rake <%= config[:test].sub('mini', '').sub('rspec', 'spec') %>` to run the tests.<% end %> You can also run `bin/console` for an interactive prompt that will allow you to experiment.<% if config[:bin] %> Run `bundle exec <%= config[:name] %>` to use the gem in this directory, ignoring other installed copies of this gem.<% end %>
30
30
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
32
 
33
33
  ## Contributing
34
34
 
@@ -1,6 +1,5 @@
1
- # frozen_string_literal: true
2
-
3
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
4
3
 
5
4
  require "bundler/setup"
6
5
  require "<%= config[:namespaced_path] %>"
@@ -25,10 +25,10 @@ Gem::Specification.new do |spec|
25
25
  # Specify which files should be added to the gem when it is released.
26
26
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27
27
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
28
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
28
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
29
29
  end
30
30
  spec.bindir = "exe"
31
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
32
  spec.require_paths = ["lib"]
33
33
  <%- if config[:ext] -%>
34
34
  spec.extensions = ["ext/<%= config[:underscored_name] %>/extconf.rb"]
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "bundler/setup"
4
3
  require "<%= config[:namespaced_path] %>"
5
4
 
6
5
  RSpec.configure do |config|
@@ -28,17 +28,17 @@ module Bundler
28
28
  tell_me(msg, :green, newline) if level("confirm")
29
29
  end
30
30
 
31
- def warn(msg, newline = nil)
31
+ def warn(msg, newline = nil, color = :yellow)
32
32
  return unless level("warn")
33
33
  return if @warning_history.include? msg
34
34
  @warning_history << msg
35
35
 
36
- tell_err(msg, :yellow, newline)
36
+ tell_err(msg, color, newline)
37
37
  end
38
38
 
39
- def error(msg, newline = nil)
39
+ def error(msg, newline = nil, color = :red)
40
40
  return unless level("error")
41
- tell_err(msg, :red, newline)
41
+ tell_err(msg, color, newline)
42
42
  end
43
43
 
44
44
  def debug(msg, newline = nil)
@@ -92,7 +92,7 @@ module Bundler
92
92
  []
93
93
  end
94
94
 
95
- private
95
+ private
96
96
 
97
97
  # valimism
98
98
  def tell_me(msg, color = nil, newline = nil)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Bundler
4
4
  module URICredentialsFilter
5
- module_function
5
+ module_function
6
6
 
7
7
  def credential_filtered_uri(uri_to_anonymize)
8
8
  return uri_to_anonymize if uri_to_anonymize.nil?
@@ -3,8 +3,6 @@ require_relative '../../../../uri/lib/uri'
3
3
  require 'cgi' # for escaping
4
4
  require_relative '../../../../connection_pool/lib/connection_pool'
5
5
 
6
- autoload :OpenSSL, 'openssl'
7
-
8
6
  ##
9
7
  # Persistent connections for Net::HTTP
10
8
  #
@@ -149,9 +147,14 @@ class Bundler::Persistent::Net::HTTP::Persistent
149
147
  EPOCH = Time.at 0 # :nodoc:
150
148
 
151
149
  ##
152
- # Is OpenSSL available? This test works with autoload
150
+ # Is OpenSSL available?
153
151
 
154
- HAVE_OPENSSL = defined? OpenSSL::SSL # :nodoc:
152
+ HAVE_OPENSSL = begin # :nodoc:
153
+ require 'openssl'
154
+ true
155
+ rescue LoadError
156
+ false
157
+ end
155
158
 
156
159
  ##
157
160
  # The default connection pool size is 1/4 the allowed open files
@@ -1,12 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # We forcibly require OpenSSL, because net/http/persistent will only autoload
4
- # it. On some Rubies, autoload fails but explicit require succeeds.
5
- begin
6
- require "openssl"
7
- rescue LoadError
8
- # some Ruby builds don't have OpenSSL
9
- end
10
3
  module Bundler
11
4
  module Persistent
12
5
  module Net
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Bundler
4
- VERSION = "2.2.0.rc.1".freeze
4
+ VERSION = "2.2.0.rc.2".freeze
5
5
 
6
6
  def self.bundler_major_version
7
7
  @bundler_major_version ||= VERSION.split(".").first.to_i
@@ -48,7 +48,7 @@ module Bundler
48
48
  stop_threads
49
49
  end
50
50
 
51
- private
51
+ private
52
52
 
53
53
  def process_queue(i)
54
54
  loop do
@@ -3,7 +3,7 @@
3
3
  module Bundler
4
4
  # A stub yaml serializer that can handle only hashes and strings (as of now).
5
5
  module YAMLSerializer
6
- module_function
6
+ module_function
7
7
 
8
8
  def dump(hash)
9
9
  yaml = String.new("---")
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-ADD" "1" "July 2020" "" ""
4
+ .TH "BUNDLE\-ADD" "1" "October 2020" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-add\fR \- Add gem to the Gemfile and run bundle install
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-BINSTUBS" "1" "July 2020" "" ""
4
+ .TH "BUNDLE\-BINSTUBS" "1" "October 2020" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-binstubs\fR \- Install the binstubs of the listed gems
@@ -36,5 +36,7 @@ Makes binstubs that can work without depending on Rubygems or Bundler at runtime
36
36
  \fB\-\-shebang\fR
37
37
  Specify a different shebang executable name than the default (default \'ruby\')
38
38
  .
39
- .SH "BUNDLE INSTALL \-\-BINSTUBS"
40
- To create binstubs for all the gems in the bundle you can use the \fB\-\-binstubs\fR flag in bundle install(1) \fIbundle\-install\.1\.html\fR\.
39
+ .TP
40
+ \fB\-\-all\fR
41
+ Create binstubs for all gems in the bundle\.
42
+
@@ -37,7 +37,5 @@ Calling binstubs with [GEM [GEM]] will create binstubs for all given gems.
37
37
  * `--shebang`:
38
38
  Specify a different shebang executable name than the default (default 'ruby')
39
39
 
40
- ## BUNDLE INSTALL --BINSTUBS
41
-
42
- To create binstubs for all the gems in the bundle you can use the `--binstubs`
43
- flag in [bundle install(1)](bundle-install.1.html).
40
+ * `--all`:
41
+ Create binstubs for all gems in the bundle.
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-CACHE" "1" "July 2020" "" ""
4
+ .TH "BUNDLE\-CACHE" "1" "October 2020" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-cache\fR \- Package your needed \fB\.gem\fR files into your application
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-CHECK" "1" "July 2020" "" ""
4
+ .TH "BUNDLE\-CHECK" "1" "October 2020" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-check\fR \- Verifies if dependencies are satisfied by installed gems
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-CLEAN" "1" "July 2020" "" ""
4
+ .TH "BUNDLE\-CLEAN" "1" "October 2020" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-clean\fR \- Cleans up unused gems in your bundler directory
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-CONFIG" "1" "July 2020" "" ""
4
+ .TH "BUNDLE\-CONFIG" "1" "October 2020" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-config\fR \- Set bundler configuration options
@@ -57,13 +57,13 @@ Executing \fBbundle config unset \-\-local <name> <value>\fR will delete the con
57
57
  Executing bundle with the \fBBUNDLE_IGNORE_CONFIG\fR environment variable set will cause it to ignore all configuration\.
58
58
  .
59
59
  .P
60
- Executing \fBbundle config set disable_multisource true\fR upgrades the warning about the Gemfile containing multiple primary sources to an error\. Executing \fBbundle config unset disable_multisource\fR downgrades this error to a warning\.
60
+ Executing \fBbundle config set \-\-local disable_multisource true\fR upgrades the warning about the Gemfile containing multiple primary sources to an error\. Executing \fBbundle config unset disable_multisource\fR downgrades this error to a warning\.
61
61
  .
62
62
  .SH "REMEMBERING OPTIONS"
63
63
  Flags passed to \fBbundle install\fR or the Bundler runtime, such as \fB\-\-path foo\fR or \fB\-\-without production\fR, are remembered between commands and saved to your local application\'s configuration (normally, \fB\./\.bundle/config\fR)\.
64
64
  .
65
65
  .P
66
- However, this will be changed in bundler 3, so it\'s better not to rely on this behavior\. If these options must be remembered, it\'s better to set them using \fBbundle config\fR (e\.g\., \fBbundle config set path foo\fR)\.
66
+ However, this will be changed in bundler 3, so it\'s better not to rely on this behavior\. If these options must be remembered, it\'s better to set them using \fBbundle config\fR (e\.g\., \fBbundle config set \-\-local path foo\fR)\.
67
67
  .
68
68
  .P
69
69
  The options that can be configured are:
@@ -111,7 +111,7 @@ Since the specific location of that executable can change from machine to machin
111
111
  .
112
112
  .nf
113
113
 
114
- bundle config set build\.mysql \-\-with\-mysql\-config=/usr/local/mysql/bin/mysql_config
114
+ bundle config set \-\-global build\.mysql \-\-with\-mysql\-config=/usr/local/mysql/bin/mysql_config
115
115
  .
116
116
  .fi
117
117
  .
@@ -154,7 +154,7 @@ The following is a list of all configuration keys and their purpose\. You can le
154
154
  \fBbin\fR (\fBBUNDLE_BIN\fR): Install executables from gems in the bundle to the specified directory\. Defaults to \fBfalse\fR\.
155
155
  .
156
156
  .IP "\(bu" 4
157
- \fBcache_all\fR (\fBBUNDLE_CACHE_ALL\fR): Cache all gems, including path and git gems\.
157
+ \fBcache_all\fR (\fBBUNDLE_CACHE_ALL\fR): Cache all gems, including path and git gems\. This needs to be explicitly configured on bundler 1 and bundler 2, but will be the default on bundler 3\.
158
158
  .
159
159
  .IP "\(bu" 4
160
160
  \fBcache_all_platforms\fR (\fBBUNDLE_CACHE_ALL_PLATFORMS\fR): Cache gems for all platforms\.
@@ -312,7 +312,7 @@ Bundler also allows you to work against a git repository locally instead of usin
312
312
  .
313
313
  .nf
314
314
 
315
- bundle config set local\.GEM_NAME /path/to/local/git/repository
315
+ bundle config set \-\-local local\.GEM_NAME /path/to/local/git/repository
316
316
  .
317
317
  .fi
318
318
  .
@@ -325,7 +325,7 @@ For example, in order to use a local Rack repository, a developer could call:
325
325
  .
326
326
  .nf
327
327
 
328
- bundle config set local\.rack ~/Work/git/rack
328
+ bundle config set \-\-local local\.rack ~/Work/git/rack
329
329
  .
330
330
  .fi
331
331
  .
@@ -347,7 +347,7 @@ Bundler supports overriding gem sources with mirrors\. This allows you to config
347
347
  .
348
348
  .nf
349
349
 
350
- bundle config set mirror\.SOURCE_URL MIRROR_URL
350
+ bundle config set \-\-global mirror\.SOURCE_URL MIRROR_URL
351
351
  .
352
352
  .fi
353
353
  .
@@ -360,7 +360,7 @@ For example, to use a mirror of rubygems\.org hosted at rubygems\-mirror\.org:
360
360
  .
361
361
  .nf
362
362
 
363
- bundle config set mirror\.http://rubygems\.org http://rubygems\-mirror\.org
363
+ bundle config set \-\-global mirror\.http://rubygems\.org http://rubygems\-mirror\.org
364
364
  .
365
365
  .fi
366
366
  .
@@ -373,7 +373,7 @@ Each mirror also provides a fallback timeout setting\. If the mirror does not re
373
373
  .
374
374
  .nf
375
375
 
376
- bundle config set mirror\.SOURCE_URL\.fallback_timeout TIMEOUT
376
+ bundle config set \-\-global mirror\.SOURCE_URL\.fallback_timeout TIMEOUT
377
377
  .
378
378
  .fi
379
379
  .
@@ -386,7 +386,7 @@ For example, to fall back to rubygems\.org after 3 seconds:
386
386
  .
387
387
  .nf
388
388
 
389
- bundle config set mirror\.https://rubygems\.org\.fallback_timeout 3
389
+ bundle config set \-\-global mirror\.https://rubygems\.org\.fallback_timeout 3
390
390
  .
391
391
  .fi
392
392
  .
@@ -402,7 +402,7 @@ Bundler allows you to configure credentials for any gem source, which allows you
402
402
  .
403
403
  .nf
404
404
 
405
- bundle config set SOURCE_HOSTNAME USERNAME:PASSWORD
405
+ bundle config set \-\-global SOURCE_HOSTNAME USERNAME:PASSWORD
406
406
  .
407
407
  .fi
408
408
  .
@@ -415,7 +415,7 @@ For example, to save the credentials of user \fBclaudette\fR for the gem source
415
415
  .
416
416
  .nf
417
417
 
418
- bundle config set gems\.longerous\.com claudette:s00pers3krit
418
+ bundle config set \-\-global gems\.longerous\.com claudette:s00pers3krit
419
419
  .
420
420
  .fi
421
421
  .
@@ -441,7 +441,7 @@ For gems with a git source with HTTP(S) URL you can specify credentials like so:
441
441
  .
442
442
  .nf
443
443
 
444
- bundle config set https://github\.com/bundler/bundler\.git username:password
444
+ bundle config set \-\-global https://github\.com/bundler/bundler\.git username:password
445
445
  .
446
446
  .fi
447
447
  .
@@ -47,7 +47,7 @@ configuration only from the local application.
47
47
  Executing bundle with the `BUNDLE_IGNORE_CONFIG` environment variable set will
48
48
  cause it to ignore all configuration.
49
49
 
50
- Executing `bundle config set disable_multisource true` upgrades the warning about
50
+ Executing `bundle config set --local disable_multisource true` upgrades the warning about
51
51
  the Gemfile containing multiple primary sources to an error. Executing `bundle
52
52
  config unset disable_multisource` downgrades this error to a warning.
53
53
 
@@ -59,7 +59,7 @@ application's configuration (normally, `./.bundle/config`).
59
59
 
60
60
  However, this will be changed in bundler 3, so it's better not to rely on this
61
61
  behavior. If these options must be remembered, it's better to set them using
62
- `bundle config` (e.g., `bundle config set path foo`).
62
+ `bundle config` (e.g., `bundle config set --local path foo`).
63
63
 
64
64
  The options that can be configured are:
65
65
 
@@ -103,7 +103,7 @@ pass configuration flags to `gem install` to specify where to find the
103
103
  Since the specific location of that executable can change from machine
104
104
  to machine, you can specify these flags on a per-machine basis.
105
105
 
106
- bundle config set build.mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config
106
+ bundle config set --global build.mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config
107
107
 
108
108
  After running this command, every time bundler needs to install the
109
109
  `mysql` gem, it will pass along the flags you specified.
@@ -150,7 +150,8 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
150
150
  Install executables from gems in the bundle to the specified directory.
151
151
  Defaults to `false`.
152
152
  * `cache_all` (`BUNDLE_CACHE_ALL`):
153
- Cache all gems, including path and git gems.
153
+ Cache all gems, including path and git gems. This needs to be explicitly
154
+ configured on bundler 1 and bundler 2, but will be the default on bundler 3.
154
155
  * `cache_all_platforms` (`BUNDLE_CACHE_ALL_PLATFORMS`):
155
156
  Cache gems for all platforms.
156
157
  * `cache_path` (`BUNDLE_CACHE_PATH`):
@@ -299,11 +300,11 @@ Bundler also allows you to work against a git repository locally
299
300
  instead of using the remote version. This can be achieved by setting
300
301
  up a local override:
301
302
 
302
- bundle config set local.GEM_NAME /path/to/local/git/repository
303
+ bundle config set --local local.GEM_NAME /path/to/local/git/repository
303
304
 
304
305
  For example, in order to use a local Rack repository, a developer could call:
305
306
 
306
- bundle config set local.rack ~/Work/git/rack
307
+ bundle config set --local local.rack ~/Work/git/rack
307
308
 
308
309
  Now instead of checking out the remote git repository, the local
309
310
  override will be used. Similar to a path source, every time the local
@@ -333,21 +334,21 @@ Bundler supports overriding gem sources with mirrors. This allows you to
333
334
  configure rubygems.org as the gem source in your Gemfile while still using your
334
335
  mirror to fetch gems.
335
336
 
336
- bundle config set mirror.SOURCE_URL MIRROR_URL
337
+ bundle config set --global mirror.SOURCE_URL MIRROR_URL
337
338
 
338
339
  For example, to use a mirror of rubygems.org hosted at rubygems-mirror.org:
339
340
 
340
- bundle config set mirror.http://rubygems.org http://rubygems-mirror.org
341
+ bundle config set --global mirror.http://rubygems.org http://rubygems-mirror.org
341
342
 
342
343
  Each mirror also provides a fallback timeout setting. If the mirror does not
343
344
  respond within the fallback timeout, Bundler will try to use the original
344
345
  server instead of the mirror.
345
346
 
346
- bundle config set mirror.SOURCE_URL.fallback_timeout TIMEOUT
347
+ bundle config set --global mirror.SOURCE_URL.fallback_timeout TIMEOUT
347
348
 
348
349
  For example, to fall back to rubygems.org after 3 seconds:
349
350
 
350
- bundle config set mirror.https://rubygems.org.fallback_timeout 3
351
+ bundle config set --global mirror.https://rubygems.org.fallback_timeout 3
351
352
 
352
353
  The default fallback timeout is 0.1 seconds, but the setting can currently
353
354
  only accept whole seconds (for example, 1, 15, or 30).
@@ -357,12 +358,12 @@ only accept whole seconds (for example, 1, 15, or 30).
357
358
  Bundler allows you to configure credentials for any gem source, which allows
358
359
  you to avoid putting secrets into your Gemfile.
359
360
 
360
- bundle config set SOURCE_HOSTNAME USERNAME:PASSWORD
361
+ bundle config set --global SOURCE_HOSTNAME USERNAME:PASSWORD
361
362
 
362
363
  For example, to save the credentials of user `claudette` for the gem source at
363
364
  `gems.longerous.com`, you would run:
364
365
 
365
- bundle config set gems.longerous.com claudette:s00pers3krit
366
+ bundle config set --global gems.longerous.com claudette:s00pers3krit
366
367
 
367
368
  Or you can set the credentials as an environment variable like this:
368
369
 
@@ -370,7 +371,7 @@ Or you can set the credentials as an environment variable like this:
370
371
 
371
372
  For gems with a git source with HTTP(S) URL you can specify credentials like so:
372
373
 
373
- bundle config set https://github.com/bundler/bundler.git username:password
374
+ bundle config set --global https://github.com/bundler/bundler.git username:password
374
375
 
375
376
  Or you can set the credentials as an environment variable like so:
376
377