rubygems-update 3.6.8 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +874 -787
  3. data/CONTRIBUTING.md +9 -0
  4. data/Manifest.txt +6 -22
  5. data/README.md +1 -1
  6. data/SECURITY.md +7 -0
  7. data/bundler/CHANGELOG.md +1103 -1030
  8. data/bundler/README.md +7 -7
  9. data/bundler/bundler.gemspec +2 -2
  10. data/bundler/lib/bundler/build_metadata.rb +10 -11
  11. data/bundler/lib/bundler/cli/common.rb +1 -1
  12. data/bundler/lib/bundler/cli/config.rb +2 -2
  13. data/bundler/lib/bundler/cli/doctor/diagnose.rb +167 -0
  14. data/bundler/lib/bundler/cli/doctor/ssl.rb +249 -0
  15. data/bundler/lib/bundler/cli/doctor.rb +27 -155
  16. data/bundler/lib/bundler/cli/gem.rb +62 -30
  17. data/bundler/lib/bundler/cli/install.rb +4 -4
  18. data/bundler/lib/bundler/cli/issue.rb +2 -2
  19. data/bundler/lib/bundler/cli/outdated.rb +1 -1
  20. data/bundler/lib/bundler/cli/update.rb +2 -2
  21. data/bundler/lib/bundler/cli.rb +12 -25
  22. data/bundler/lib/bundler/compact_index_client.rb +1 -5
  23. data/bundler/lib/bundler/current_ruby.rb +27 -3
  24. data/bundler/lib/bundler/definition.rb +55 -58
  25. data/bundler/lib/bundler/dependency.rb +1 -1
  26. data/bundler/lib/bundler/dsl.rb +33 -23
  27. data/bundler/lib/bundler/feature_flag.rb +15 -12
  28. data/bundler/lib/bundler/fetcher/dependency.rb +2 -1
  29. data/bundler/lib/bundler/fetcher/downloader.rb +33 -7
  30. data/bundler/lib/bundler/fetcher.rb +49 -19
  31. data/bundler/lib/bundler/friendly_errors.rb +2 -1
  32. data/bundler/lib/bundler/index.rb +7 -2
  33. data/bundler/lib/bundler/installer.rb +5 -4
  34. data/bundler/lib/bundler/lazy_specification.rb +29 -18
  35. data/bundler/lib/bundler/lockfile_parser.rb +21 -5
  36. data/bundler/lib/bundler/man/bundle-add.1 +1 -1
  37. data/bundler/lib/bundler/man/bundle-binstubs.1 +1 -1
  38. data/bundler/lib/bundler/man/bundle-cache.1 +1 -1
  39. data/bundler/lib/bundler/man/bundle-check.1 +1 -1
  40. data/bundler/lib/bundler/man/bundle-clean.1 +1 -1
  41. data/bundler/lib/bundler/man/bundle-config.1 +172 -126
  42. data/bundler/lib/bundler/man/bundle-config.1.ronn +91 -91
  43. data/bundler/lib/bundler/man/bundle-console.1 +1 -1
  44. data/bundler/lib/bundler/man/bundle-doctor.1 +43 -4
  45. data/bundler/lib/bundler/man/bundle-doctor.1.ronn +48 -4
  46. data/bundler/lib/bundler/man/bundle-env.1 +1 -1
  47. data/bundler/lib/bundler/man/bundle-exec.1 +1 -1
  48. data/bundler/lib/bundler/man/bundle-fund.1 +1 -1
  49. data/bundler/lib/bundler/man/bundle-gem.1 +67 -44
  50. data/bundler/lib/bundler/man/bundle-gem.1.ronn +8 -4
  51. data/bundler/lib/bundler/man/bundle-help.1 +1 -1
  52. data/bundler/lib/bundler/man/bundle-info.1 +1 -1
  53. data/bundler/lib/bundler/man/bundle-init.1 +1 -1
  54. data/bundler/lib/bundler/man/bundle-inject.1 +2 -2
  55. data/bundler/lib/bundler/man/bundle-inject.1.ronn +1 -1
  56. data/bundler/lib/bundler/man/bundle-install.1 +1 -1
  57. data/bundler/lib/bundler/man/bundle-issue.1 +1 -1
  58. data/bundler/lib/bundler/man/bundle-licenses.1 +1 -1
  59. data/bundler/lib/bundler/man/bundle-list.1 +1 -1
  60. data/bundler/lib/bundler/man/bundle-lock.1 +1 -1
  61. data/bundler/lib/bundler/man/bundle-open.1 +1 -1
  62. data/bundler/lib/bundler/man/bundle-outdated.1 +1 -1
  63. data/bundler/lib/bundler/man/bundle-platform.1 +1 -1
  64. data/bundler/lib/bundler/man/bundle-plugin.1 +1 -1
  65. data/bundler/lib/bundler/man/bundle-pristine.1 +1 -1
  66. data/bundler/lib/bundler/man/bundle-remove.1 +1 -1
  67. data/bundler/lib/bundler/man/bundle-show.1 +1 -1
  68. data/bundler/lib/bundler/man/bundle-update.1 +1 -1
  69. data/bundler/lib/bundler/man/bundle-version.1 +1 -1
  70. data/bundler/lib/bundler/man/bundle-viz.1 +1 -1
  71. data/bundler/lib/bundler/man/bundle.1 +1 -1
  72. data/bundler/lib/bundler/man/gemfile.5 +1 -1
  73. data/bundler/lib/bundler/match_platform.rb +31 -12
  74. data/bundler/lib/bundler/materialization.rb +2 -2
  75. data/bundler/lib/bundler/resolver/package.rb +1 -1
  76. data/bundler/lib/bundler/resolver.rb +11 -9
  77. data/bundler/lib/bundler/rubygems_ext.rb +116 -120
  78. data/bundler/lib/bundler/rubygems_integration.rb +11 -6
  79. data/bundler/lib/bundler/runtime.rb +1 -1
  80. data/bundler/lib/bundler/self_manager.rb +32 -42
  81. data/bundler/lib/bundler/settings/validator.rb +0 -23
  82. data/bundler/lib/bundler/settings.rb +4 -6
  83. data/bundler/lib/bundler/shared_helpers.rb +6 -4
  84. data/bundler/lib/bundler/source/git/git_proxy.rb +3 -3
  85. data/bundler/lib/bundler/source/path.rb +7 -0
  86. data/bundler/lib/bundler/source_list.rb +1 -5
  87. data/bundler/lib/bundler/source_map.rb +1 -1
  88. data/bundler/lib/bundler/spec_set.rb +28 -6
  89. data/bundler/lib/bundler/templates/Executable +0 -11
  90. data/bundler/lib/bundler/templates/newgem/github/workflows/main.yml.tt +2 -0
  91. data/bundler/lib/bundler/templates/newgem/newgem.gemspec.tt +6 -5
  92. data/bundler/lib/bundler/ui/shell.rb +2 -2
  93. data/bundler/lib/bundler/vendor/net-http-persistent/README.rdoc +1 -1
  94. data/bundler/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb +2 -1
  95. data/bundler/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +81 -42
  96. data/bundler/lib/bundler/version.rb +10 -2
  97. data/bundler/lib/bundler/worker.rb +1 -1
  98. data/bundler/lib/bundler.rb +14 -12
  99. data/doc/bundler/UPGRADING.md +137 -127
  100. data/doc/rubygems/CONTRIBUTING.md +1 -1
  101. data/lib/rubygems/basic_specification.rb +7 -0
  102. data/lib/rubygems/commands/pristine_command.rb +9 -12
  103. data/lib/rubygems/commands/push_command.rb +2 -1
  104. data/lib/rubygems/commands/setup_command.rb +2 -2
  105. data/lib/rubygems/core_ext/kernel_require.rb +5 -2
  106. data/lib/rubygems/ext/builder.rb +15 -4
  107. data/lib/rubygems/ext/cargo_builder.rb +7 -5
  108. data/lib/rubygems/ext/rake_builder.rb +1 -3
  109. data/lib/rubygems/gemcutter_utilities/webauthn_listener.rb +10 -3
  110. data/lib/rubygems/gemcutter_utilities.rb +5 -2
  111. data/lib/rubygems/installer.rb +45 -50
  112. data/lib/rubygems/package/tar_writer.rb +5 -4
  113. data/lib/rubygems/platform.rb +142 -39
  114. data/lib/rubygems/remote_fetcher.rb +3 -3
  115. data/lib/rubygems/request_set.rb +3 -6
  116. data/lib/rubygems/resolver/best_set.rb +1 -1
  117. data/lib/rubygems/resolver/source_set.rb +1 -1
  118. data/lib/rubygems/resolver.rb +1 -1
  119. data/lib/rubygems/s3_uri_signer.rb +5 -3
  120. data/lib/rubygems/source.rb +28 -22
  121. data/lib/rubygems/specification.rb +2 -2
  122. data/lib/rubygems/uri_formatter.rb +2 -1
  123. data/lib/rubygems/util/licenses.rb +21 -0
  124. data/lib/rubygems/vendor/net-http/lib/net/http.rb +14 -19
  125. data/lib/rubygems/vendor/resolv/lib/resolv.rb +50 -22
  126. data/lib/rubygems.rb +65 -7
  127. data/rubygems-update.gemspec +2 -2
  128. data/setup.rb +1 -1
  129. metadata +9 -25
  130. data/bundler/lib/bundler/gem_helpers.rb +0 -144
  131. data/bundler/lib/bundler/templates/Executable.bundler +0 -109
  132. data/bundler/lib/bundler/vendor/fileutils/.document +0 -1
  133. data/bundler/lib/bundler/vendor/net-http-persistent/.document +0 -1
  134. data/bundler/lib/bundler/vendor/pub_grub/.document +0 -1
  135. data/bundler/lib/bundler/vendor/securerandom/.document +0 -1
  136. data/bundler/lib/bundler/vendor/thor/.document +0 -1
  137. data/bundler/lib/bundler/vendor/tsort/.document +0 -1
  138. data/bundler/lib/bundler/vendor/uri/.document +0 -1
  139. data/lib/rubygems/shellwords.rb +0 -3
  140. data/lib/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA.pem +0 -21
  141. data/lib/rubygems/vendor/molinillo/.document +0 -1
  142. data/lib/rubygems/vendor/net-http/.document +0 -1
  143. data/lib/rubygems/vendor/net-protocol/.document +0 -1
  144. data/lib/rubygems/vendor/optparse/.document +0 -1
  145. data/lib/rubygems/vendor/resolv/.document +0 -1
  146. data/lib/rubygems/vendor/securerandom/.document +0 -1
  147. data/lib/rubygems/vendor/timeout/.document +0 -1
  148. data/lib/rubygems/vendor/tsort/.document +0 -1
  149. data/lib/rubygems/vendor/uri/.document +0 -1
  150. /data/lib/rubygems/ssl_certs/rubygems.org/{GlobalSignRootCA_R3.pem → GlobalSign.pem} +0 -0
  151. /data/{bundler/lib/bundler/vendor/connection_pool → lib/rubygems/vendor}/.document +0 -0
@@ -33,7 +33,7 @@ module Bundler
33
33
  lazy_spec
34
34
  end
35
35
 
36
- def initialize(name, version, platform, source = nil)
36
+ def initialize(name, version, platform, source = nil, **materialization_options)
37
37
  @name = name
38
38
  @version = version
39
39
  @dependencies = []
@@ -43,6 +43,7 @@ module Bundler
43
43
 
44
44
  @original_source = source
45
45
  @source = source
46
+ @materialization_options = materialization_options
46
47
 
47
48
  @force_ruby_platform = default_force_ruby_platform
48
49
  @most_specific_locked_platform = nil
@@ -142,15 +143,15 @@ module Bundler
142
143
  end
143
144
  else
144
145
  materialize([name, version]) do |matching_specs|
145
- target_platform = source.is_a?(Source::Path) ? platform : local_platform
146
+ target_platform = source.is_a?(Source::Path) ? platform : Bundler.local_platform
146
147
 
147
- installable_candidates = GemHelpers.select_best_platform_match(matching_specs, target_platform)
148
+ installable_candidates = MatchPlatform.select_best_platform_match(matching_specs, target_platform)
148
149
 
149
150
  specification = choose_compatible(installable_candidates, fallback_to_non_installable: false)
150
151
  return specification unless specification.nil?
151
152
 
152
153
  if target_platform != platform
153
- installable_candidates = GemHelpers.select_best_platform_match(matching_specs, platform)
154
+ installable_candidates = MatchPlatform.select_best_platform_match(matching_specs, platform)
154
155
  end
155
156
 
156
157
  choose_compatible(installable_candidates)
@@ -190,7 +191,7 @@ module Bundler
190
191
  end
191
192
 
192
193
  def ruby_platform_materializes_to_ruby_platform?
193
- generic_platform = generic_local_platform == Gem::Platform::JAVA ? Gem::Platform::JAVA : Gem::Platform::RUBY
194
+ generic_platform = Bundler.generic_local_platform == Gem::Platform::JAVA ? Gem::Platform::JAVA : Gem::Platform::RUBY
194
195
 
195
196
  (most_specific_locked_platform != generic_platform) || force_ruby_platform || Bundler.settings[:force_ruby_platform]
196
197
  end
@@ -213,22 +214,32 @@ module Bundler
213
214
  end
214
215
  if search.nil? && fallback_to_non_installable
215
216
  search = candidates.last
216
- elsif search && search.full_name == full_name
217
- # We don't validate locally installed dependencies but accept what's in
218
- # the lockfile instead for performance, since loading locally installed
219
- # dependencies would mean evaluating all gemspecs, which would affect
220
- # `bundler/setup` performance
221
- if search.is_a?(StubSpecification)
222
- search.dependencies = dependencies
223
- else
224
- if !source.is_a?(Source::Path) && search.runtime_dependencies.sort != dependencies.sort
225
- raise IncorrectLockfileDependencies.new(self)
226
- end
217
+ end
227
218
 
228
- search.locked_platform = platform if search.instance_of?(RemoteSpecification) || search.instance_of?(EndpointSpecification)
229
- end
219
+ if search
220
+ validate_dependencies(search) if search.platform == platform
221
+
222
+ search.locked_platform = platform if search.instance_of?(RemoteSpecification) || search.instance_of?(EndpointSpecification)
230
223
  end
231
224
  search
232
225
  end
226
+
227
+ # Validate dependencies of this locked spec are consistent with dependencies
228
+ # of the actual spec that was materialized.
229
+ #
230
+ # Note that unless we are in strict mode (which we set during installation)
231
+ # we don't validate dependencies of locally installed gems but
232
+ # accept what's in the lockfile instead for performance, since loading
233
+ # dependencies of locally installed gems would mean evaluating all gemspecs,
234
+ # which would affect `bundler/setup` performance.
235
+ def validate_dependencies(spec)
236
+ if !@materialization_options[:strict] && spec.is_a?(StubSpecification)
237
+ spec.dependencies = dependencies
238
+ else
239
+ if !source.is_a?(Source::Path) && spec.runtime_dependencies.sort != dependencies.sort
240
+ raise IncorrectLockfileDependencies.new(self)
241
+ end
242
+ end
243
+ end
233
244
  end
234
245
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative "shared_helpers"
4
+
3
5
  module Bundler
4
6
  class LockfileParser
5
- include GemHelpers
6
-
7
7
  class Position
8
8
  attr_reader :line, :column
9
9
  def initialize(line, column)
@@ -94,7 +94,7 @@ module Bundler
94
94
  lockfile_contents.split(BUNDLED).last.strip
95
95
  end
96
96
 
97
- def initialize(lockfile)
97
+ def initialize(lockfile, strict: false)
98
98
  @platforms = []
99
99
  @sources = []
100
100
  @dependencies = {}
@@ -106,6 +106,7 @@ module Bundler
106
106
  "Gemfile.lock"
107
107
  end
108
108
  @pos = Position.new(1, 1)
109
+ @strict = strict
109
110
 
110
111
  if lockfile.match?(/<<<<<<<|=======|>>>>>>>|\|\|\|\|\|\|\|/)
111
112
  raise LockfileError, "Your #{@lockfile_path} contains merge conflicts.\n" \
@@ -139,8 +140,23 @@ module Bundler
139
140
  end
140
141
  @pos.advance!(line)
141
142
  end
143
+
144
+ if !Bundler.frozen_bundle? && @platforms.include?(Gem::Platform::X64_MINGW_LEGACY)
145
+ if @platforms.include?(Gem::Platform::X64_MINGW)
146
+ @platforms.delete(Gem::Platform::X64_MINGW_LEGACY)
147
+ SharedHelpers.major_deprecation(2,
148
+ "Found x64-mingw32 in lockfile, which is deprecated. Removing it. Support for x64-mingw32 will be removed in Bundler 4.0.",
149
+ removed_message: "Found x64-mingw32 in lockfile, which is no longer supported as of Bundler 4.0.")
150
+ else
151
+ @platforms[@platforms.index(Gem::Platform::X64_MINGW_LEGACY)] = Gem::Platform::X64_MINGW
152
+ SharedHelpers.major_deprecation(2,
153
+ "Found x64-mingw32 in lockfile, which is deprecated. Using x64-mingw-ucrt, the replacement for x64-mingw32 in modern rubies, instead. Support for x64-mingw32 will be removed in Bundler 4.0.",
154
+ removed_message: "Found x64-mingw32 in lockfile, which is no longer supported as of Bundler 4.0.")
155
+ end
156
+ end
157
+
142
158
  @most_specific_locked_platform = @platforms.min_by do |bundle_platform|
143
- platform_specificity_match(bundle_platform, local_platform)
159
+ Gem::Platform.platform_specificity_match(bundle_platform, Bundler.local_platform)
144
160
  end
145
161
  @specs = @specs.values.sort_by!(&:full_name).each do |spec|
146
162
  spec.most_specific_locked_platform = @most_specific_locked_platform
@@ -271,7 +287,7 @@ module Bundler
271
287
 
272
288
  version = Gem::Version.new(version)
273
289
  platform = platform ? Gem::Platform.new(platform) : Gem::Platform::RUBY
274
- @current_spec = LazySpecification.new(name, version, platform, @current_source)
290
+ @current_spec = LazySpecification.new(name, version, platform, @current_source, strict: @strict)
275
291
  @current_source.add_dependency_names(name)
276
292
 
277
293
  @specs[@current_spec.full_name] = @current_spec
@@ -1,6 +1,6 @@
1
1
  .\" generated with Ronn-NG/v0.10.1
2
2
  .\" http://github.com/apjanke/ronn-ng/tree/0.10.1
3
- .TH "BUNDLE\-ADD" "1" "March 2025" ""
3
+ .TH "BUNDLE\-ADD" "1" "July 2025" ""
4
4
  .SH "NAME"
5
5
  \fBbundle\-add\fR \- Add gem to the Gemfile and run bundle install
6
6
  .SH "SYNOPSIS"
@@ -1,6 +1,6 @@
1
1
  .\" generated with Ronn-NG/v0.10.1
2
2
  .\" http://github.com/apjanke/ronn-ng/tree/0.10.1
3
- .TH "BUNDLE\-BINSTUBS" "1" "March 2025" ""
3
+ .TH "BUNDLE\-BINSTUBS" "1" "July 2025" ""
4
4
  .SH "NAME"
5
5
  \fBbundle\-binstubs\fR \- Install the binstubs of the listed gems
6
6
  .SH "SYNOPSIS"
@@ -1,6 +1,6 @@
1
1
  .\" generated with Ronn-NG/v0.10.1
2
2
  .\" http://github.com/apjanke/ronn-ng/tree/0.10.1
3
- .TH "BUNDLE\-CACHE" "1" "March 2025" ""
3
+ .TH "BUNDLE\-CACHE" "1" "July 2025" ""
4
4
  .SH "NAME"
5
5
  \fBbundle\-cache\fR \- Package your needed \fB\.gem\fR files into your application
6
6
  .SH "SYNOPSIS"
@@ -1,6 +1,6 @@
1
1
  .\" generated with Ronn-NG/v0.10.1
2
2
  .\" http://github.com/apjanke/ronn-ng/tree/0.10.1
3
- .TH "BUNDLE\-CHECK" "1" "March 2025" ""
3
+ .TH "BUNDLE\-CHECK" "1" "July 2025" ""
4
4
  .SH "NAME"
5
5
  \fBbundle\-check\fR \- Verifies if dependencies are satisfied by installed gems
6
6
  .SH "SYNOPSIS"
@@ -1,6 +1,6 @@
1
1
  .\" generated with Ronn-NG/v0.10.1
2
2
  .\" http://github.com/apjanke/ronn-ng/tree/0.10.1
3
- .TH "BUNDLE\-CLEAN" "1" "March 2025" ""
3
+ .TH "BUNDLE\-CLEAN" "1" "July 2025" ""
4
4
  .SH "NAME"
5
5
  \fBbundle\-clean\fR \- Cleans up unused gems in your bundler directory
6
6
  .SH "SYNOPSIS"
@@ -1,6 +1,6 @@
1
1
  .\" generated with Ronn-NG/v0.10.1
2
2
  .\" http://github.com/apjanke/ronn-ng/tree/0.10.1
3
- .TH "BUNDLE\-CONFIG" "1" "March 2025" ""
3
+ .TH "BUNDLE\-CONFIG" "1" "July 2025" ""
4
4
  .SH "NAME"
5
5
  \fBbundle\-config\fR \- Set bundler configuration options
6
6
  .SH "SYNOPSIS"
@@ -42,29 +42,192 @@ Executing \fBbundle config unset \-\-global <name>\fR will delete the configurat
42
42
  Executing \fBbundle config unset \-\-local <name>\fR will delete the configuration only from the local application\.
43
43
  .P
44
44
  Executing bundle with the \fBBUNDLE_IGNORE_CONFIG\fR environment variable set will cause it to ignore all configuration\.
45
+ .SH "CONFIGURATION KEYS"
46
+ Configuration keys in bundler have two forms: the canonical form and the environment variable form\.
47
+ .P
48
+ 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\.
49
+ .P
50
+ 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\.
51
+ .P
52
+ 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\.
53
+ .SH "LIST OF AVAILABLE KEYS"
54
+ 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\.
55
+ .TP
56
+ \fBallow_offline_install\fR (\fBBUNDLE_ALLOW_OFFLINE_INSTALL\fR)
57
+ Allow Bundler to use cached data when installing without network access\.
58
+ .TP
59
+ \fBauto_install\fR (\fBBUNDLE_AUTO_INSTALL\fR)
60
+ Automatically run \fBbundle install\fR when gems are missing\.
61
+ .TP
62
+ \fBbin\fR (\fBBUNDLE_BIN\fR)
63
+ Install executables from gems in the bundle to the specified directory\. Defaults to \fBfalse\fR\.
64
+ .TP
65
+ \fBcache_all\fR (\fBBUNDLE_CACHE_ALL\fR)
66
+ Cache all gems, including path and git gems\. This needs to be explicitly before bundler 4, but will be the default on bundler 4\.
67
+ .TP
68
+ \fBcache_all_platforms\fR (\fBBUNDLE_CACHE_ALL_PLATFORMS\fR)
69
+ Cache gems for all platforms\.
70
+ .TP
71
+ \fBcache_path\fR (\fBBUNDLE_CACHE_PATH\fR)
72
+ The directory that bundler will place cached gems in when running \fBbundle package\fR, and that bundler will look in when installing gems\. Defaults to \fBvendor/cache\fR\.
73
+ .TP
74
+ \fBclean\fR (\fBBUNDLE_CLEAN\fR)
75
+ Whether Bundler should run \fBbundle clean\fR automatically after \fBbundle install\fR\. Defaults to \fBtrue\fR in Bundler 4, as long as \fBpath\fR is not explicitly configured\.
76
+ .TP
77
+ \fBconsole\fR (\fBBUNDLE_CONSOLE\fR)
78
+ The console that \fBbundle console\fR starts\. Defaults to \fBirb\fR\.
79
+ .TP
80
+ \fBdefault_cli_command\fR (\fBBUNDLE_DEFAULT_CLI_COMMAND\fR)
81
+ The command that running \fBbundle\fR without arguments should run\. Defaults to \fBcli_help\fR since Bundler 4, but can also be \fBinstall\fR which was the previous default\.
82
+ .TP
83
+ \fBdeployment\fR (\fBBUNDLE_DEPLOYMENT\fR)
84
+ Equivalent to setting \fBfrozen\fR to \fBtrue\fR and \fBpath\fR to \fBvendor/bundle\fR\.
85
+ .TP
86
+ \fBdisable_checksum_validation\fR (\fBBUNDLE_DISABLE_CHECKSUM_VALIDATION\fR)
87
+ Allow installing gems even if they do not match the checksum provided by RubyGems\.
88
+ .TP
89
+ \fBdisable_exec_load\fR (\fBBUNDLE_DISABLE_EXEC_LOAD\fR)
90
+ Stop Bundler from using \fBload\fR to launch an executable in\-process in \fBbundle exec\fR\.
91
+ .TP
92
+ \fBdisable_local_branch_check\fR (\fBBUNDLE_DISABLE_LOCAL_BRANCH_CHECK\fR)
93
+ Allow Bundler to use a local git override without a branch specified in the Gemfile\.
94
+ .TP
95
+ \fBdisable_local_revision_check\fR (\fBBUNDLE_DISABLE_LOCAL_REVISION_CHECK\fR)
96
+ Allow Bundler to use a local git override without checking if the revision present in the lockfile is present in the repository\.
97
+ .TP
98
+ \fBdisable_shared_gems\fR (\fBBUNDLE_DISABLE_SHARED_GEMS\fR)
99
+ Stop Bundler from accessing gems installed to RubyGems' normal location\.
100
+ .TP
101
+ \fBdisable_version_check\fR (\fBBUNDLE_DISABLE_VERSION_CHECK\fR)
102
+ Stop Bundler from checking if a newer Bundler version is available on rubygems\.org\.
103
+ .TP
104
+ \fBforce_ruby_platform\fR (\fBBUNDLE_FORCE_RUBY_PLATFORM\fR)
105
+ Ignore the current machine's platform and install only \fBruby\fR platform gems\. As a result, gems with native extensions will be compiled from source\.
106
+ .TP
107
+ \fBfrozen\fR (\fBBUNDLE_FROZEN\fR)
108
+ Disallow any automatic changes to \fBGemfile\.lock\fR\. Bundler commands will be blocked unless the lockfile can be installed exactly as written\. Usually this will happen when changing the \fBGemfile\fR manually and forgetting to update the lockfile through \fBbundle lock\fR or \fBbundle install\fR\.
109
+ .TP
110
+ \fBgem\.github_username\fR (\fBBUNDLE_GEM__GITHUB_USERNAME\fR)
111
+ Sets a GitHub username or organization to be used in the \fBREADME\fR and \fB\.gemspec\fR files when you create a new gem via \fBbundle gem\fR command\. It can be overridden by passing an explicit \fB\-\-github\-username\fR flag to \fBbundle gem\fR\.
112
+ .TP
113
+ \fBgem\.push_key\fR (\fBBUNDLE_GEM__PUSH_KEY\fR)
114
+ Sets the \fB\-\-key\fR parameter for \fBgem push\fR when using the \fBrake release\fR command with a private gemstash server\.
115
+ .TP
116
+ \fBgemfile\fR (\fBBUNDLE_GEMFILE\fR)
117
+ 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\.
118
+ .TP
119
+ \fBglobal_gem_cache\fR (\fBBUNDLE_GLOBAL_GEM_CACHE\fR)
120
+ Whether Bundler should cache all gems and compiled extensions globally, rather than locally to the configured installation path\.
121
+ .TP
122
+ \fBignore_funding_requests\fR (\fBBUNDLE_IGNORE_FUNDING_REQUESTS\fR)
123
+ When set, no funding requests will be printed\.
124
+ .TP
125
+ \fBignore_messages\fR (\fBBUNDLE_IGNORE_MESSAGES\fR)
126
+ When set, no post install messages will be printed\. To silence a single gem, use dot notation like \fBignore_messages\.httparty true\fR\.
127
+ .TP
128
+ \fBinit_gems_rb\fR (\fBBUNDLE_INIT_GEMS_RB\fR)
129
+ Generate a \fBgems\.rb\fR instead of a \fBGemfile\fR when running \fBbundle init\fR\.
130
+ .TP
131
+ \fBjobs\fR (\fBBUNDLE_JOBS\fR)
132
+ The number of gems Bundler can install in parallel\. Defaults to the number of available processors\.
133
+ .TP
134
+ \fBlockfile_checksums\fR (\fBBUNDLE_LOCKFILE_CHECKSUMS\fR)
135
+ Whether Bundler should include a checksums section in new lockfiles, to protect from compromised gem sources\.
136
+ .TP
137
+ \fBno_install\fR (\fBBUNDLE_NO_INSTALL\fR)
138
+ Whether \fBbundle package\fR should skip installing gems\.
139
+ .TP
140
+ \fBno_prune\fR (\fBBUNDLE_NO_PRUNE\fR)
141
+ Whether Bundler should leave outdated gems unpruned when caching\.
142
+ .TP
143
+ \fBonly\fR (\fBBUNDLE_ONLY\fR)
144
+ A space\-separated list of groups to install only gems of the specified groups\.
145
+ .TP
146
+ \fBpath\fR (\fBBUNDLE_PATH\fR)
147
+ 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 \fB\.bundle\fR relative to repository root in Bundler 4, and to the default system path (\fBGem\.dir\fR) before Bundler 4\.
148
+ .TP
149
+ \fBpath\.system\fR (\fBBUNDLE_PATH__SYSTEM\fR)
150
+ Whether Bundler will install gems into the default system path (\fBGem\.dir\fR)\.
151
+ .TP
152
+ \fBplugins\fR (\fBBUNDLE_PLUGINS\fR)
153
+ Enable Bundler's experimental plugin system\.
154
+ .TP
155
+ \fBprefer_patch\fR (BUNDLE_PREFER_PATCH)
156
+ Prefer updating only to next patch version during updates\. Makes \fBbundle update\fR calls equivalent to \fBbundler update \-\-patch\fR\.
157
+ .TP
158
+ \fBredirect\fR (\fBBUNDLE_REDIRECT\fR)
159
+ The number of redirects allowed for network requests\. Defaults to \fB5\fR\.
160
+ .TP
161
+ \fBretry\fR (\fBBUNDLE_RETRY\fR)
162
+ The number of times to retry failed network requests\. Defaults to \fB3\fR\.
163
+ .TP
164
+ \fBshebang\fR (\fBBUNDLE_SHEBANG\fR)
165
+ The program name that should be invoked for generated binstubs\. Defaults to the ruby install name used to generate the binstub\.
166
+ .TP
167
+ \fBsilence_deprecations\fR (\fBBUNDLE_SILENCE_DEPRECATIONS\fR)
168
+ Whether Bundler should silence deprecation warnings for behavior that will be changed in the next major version\.
169
+ .TP
170
+ \fBsilence_root_warning\fR (\fBBUNDLE_SILENCE_ROOT_WARNING\fR)
171
+ Silence the warning Bundler prints when installing gems as root\.
172
+ .TP
173
+ \fBsimulate_version\fR (\fBBUNDLE_SIMULATE_VERSION\fR)
174
+ The virtual version Bundler should use for activating feature flags\. Can be used to simulate all the new functionality that will be enabled in a future major version\.
175
+ .TP
176
+ \fBssl_ca_cert\fR (\fBBUNDLE_SSL_CA_CERT\fR)
177
+ Path to a designated CA certificate file or folder containing multiple certificates for trusted CAs in PEM format\.
178
+ .TP
179
+ \fBssl_client_cert\fR (\fBBUNDLE_SSL_CLIENT_CERT\fR)
180
+ Path to a designated file containing a X\.509 client certificate and key in PEM format\.
181
+ .TP
182
+ \fBssl_verify_mode\fR (\fBBUNDLE_SSL_VERIFY_MODE\fR)
183
+ The SSL verification mode Bundler uses when making HTTPS requests\. Defaults to verify peer\.
184
+ .TP
185
+ \fBsystem_bindir\fR (\fBBUNDLE_SYSTEM_BINDIR\fR)
186
+ The location where RubyGems installs binstubs\. Defaults to \fBGem\.bindir\fR\.
187
+ .TP
188
+ \fBtimeout\fR (\fBBUNDLE_TIMEOUT\fR)
189
+ The seconds allowed before timing out for network requests\. Defaults to \fB10\fR\.
190
+ .TP
191
+ \fBupdate_requires_all_flag\fR (\fBBUNDLE_UPDATE_REQUIRES_ALL_FLAG\fR)
192
+ Require passing \fB\-\-all\fR to \fBbundle update\fR when everything should be updated, and disallow passing no options to \fBbundle update\fR\.
193
+ .TP
194
+ \fBuser_agent\fR (\fBBUNDLE_USER_AGENT\fR)
195
+ The custom user agent fragment Bundler includes in API requests\.
196
+ .TP
197
+ \fBverbose\fR (\fBBUNDLE_VERBOSE\fR)
198
+ Whether Bundler should print verbose output\. Defaults to \fBfalse\fR, unless the \fB\-\-verbose\fR CLI flag is used\.
199
+ .TP
200
+ \fBversion\fR (\fBBUNDLE_VERSION\fR)
201
+ The version of Bundler to use when running under Bundler environment\. Defaults to \fBlockfile\fR\. You can also specify \fBsystem\fR or \fBx\.y\.z\fR\. \fBlockfile\fR will use the Bundler version specified in the \fBGemfile\.lock\fR, \fBsystem\fR will use the system version of Bundler, and \fBx\.y\.z\fR will use the specified version of Bundler\.
202
+ .TP
203
+ \fBwith\fR (\fBBUNDLE_WITH\fR)
204
+ A space\-separated or \fB:\fR\-separated list of groups whose gems bundler should install\.
205
+ .TP
206
+ \fBwithout\fR (\fBBUNDLE_WITHOUT\fR)
207
+ A space\-separated or \fB:\fR\-separated list of groups whose gems bundler should not install\.
45
208
  .SH "REMEMBERING OPTIONS"
46
209
  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)\.
47
210
  .P
48
- 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)\.
211
+ However, this will be changed in bundler 4, 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)\.
49
212
  .P
50
- The options that can be configured are:
213
+ The flags that can be configured are:
51
214
  .TP
52
- \fBbin\fR
215
+ \fB\-\-bin\fR
53
216
  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\.
54
217
  .TP
55
- \fBdeployment\fR
218
+ \fB\-\-deployment\fR
56
219
  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\.
57
220
  .TP
58
- \fBonly\fR
221
+ \fB\-\-only\fR
59
222
  A space\-separated list of groups to install only gems of the specified groups\. Please check carefully if you want to install also gems without a group, cause they get put inside \fBdefault\fR group\. For example \fBonly test:default\fR will install all gems specified in test group and without one\.
60
223
  .TP
61
- \fBpath\fR
224
+ \fB\-\-path\fR
62
225
  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\. Accordingly, gems installed to other locations will not get listed\.
63
226
  .TP
64
- \fBwithout\fR
227
+ \fB\-\-without\fR
65
228
  A space\-separated or \fB:\fR\-separated list of groups referencing gems to skip during installation\.
66
229
  .TP
67
- \fBwith\fR
230
+ \fB\-\-with\fR
68
231
  A space\-separated or \fB:\fR\-separated list of \fBoptional\fR groups referencing gems to include during installation\.
69
232
  .SH "BUILD OPTIONS"
70
233
  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\.
@@ -84,123 +247,6 @@ bundle config set \-\-global build\.mysql \-\-with\-mysql\-config=/usr/local/mys
84
247
  .IP "" 0
85
248
  .P
86
249
  After running this command, every time bundler needs to install the \fBmysql\fR gem, it will pass along the flags you specified\.
87
- .SH "CONFIGURATION KEYS"
88
- Configuration keys in bundler have two forms: the canonical form and the environment variable form\.
89
- .P
90
- 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\.
91
- .P
92
- 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\.
93
- .P
94
- 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\.
95
- .SH "LIST OF AVAILABLE KEYS"
96
- 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\.
97
- .IP "\(bu" 4
98
- \fBallow_offline_install\fR (\fBBUNDLE_ALLOW_OFFLINE_INSTALL\fR): Allow Bundler to use cached data when installing without network access\.
99
- .IP "\(bu" 4
100
- \fBauto_clean_without_path\fR (\fBBUNDLE_AUTO_CLEAN_WITHOUT_PATH\fR): Automatically run \fBbundle clean\fR after installing when an explicit \fBpath\fR has not been set and Bundler is not installing into the system gems\.
101
- .IP "\(bu" 4
102
- \fBauto_install\fR (\fBBUNDLE_AUTO_INSTALL\fR): Automatically run \fBbundle install\fR when gems are missing\.
103
- .IP "\(bu" 4
104
- \fBbin\fR (\fBBUNDLE_BIN\fR): Install executables from gems in the bundle to the specified directory\. Defaults to \fBfalse\fR\.
105
- .IP "\(bu" 4
106
- \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\.
107
- .IP "\(bu" 4
108
- \fBcache_all_platforms\fR (\fBBUNDLE_CACHE_ALL_PLATFORMS\fR): Cache gems for all platforms\.
109
- .IP "\(bu" 4
110
- \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\. Defaults to \fBvendor/cache\fR\.
111
- .IP "\(bu" 4
112
- \fBclean\fR (\fBBUNDLE_CLEAN\fR): Whether Bundler should run \fBbundle clean\fR automatically after \fBbundle install\fR\.
113
- .IP "\(bu" 4
114
- \fBconsole\fR (\fBBUNDLE_CONSOLE\fR): The console that \fBbundle console\fR starts\. Defaults to \fBirb\fR\.
115
- .IP "\(bu" 4
116
- \fBdefault_install_uses_path\fR (\fBBUNDLE_DEFAULT_INSTALL_USES_PATH\fR): Whether a \fBbundle install\fR without an explicit \fB\-\-path\fR argument defaults to installing gems in \fB\.bundle\fR\.
117
- .IP "\(bu" 4
118
- \fBdeployment\fR (\fBBUNDLE_DEPLOYMENT\fR): Disallow changes to the \fBGemfile\fR\. When the \fBGemfile\fR is changed and the lockfile has not been updated, running Bundler commands will be blocked\.
119
- .IP "\(bu" 4
120
- \fBdisable_checksum_validation\fR (\fBBUNDLE_DISABLE_CHECKSUM_VALIDATION\fR): Allow installing gems even if they do not match the checksum provided by RubyGems\.
121
- .IP "\(bu" 4
122
- \fBdisable_exec_load\fR (\fBBUNDLE_DISABLE_EXEC_LOAD\fR): Stop Bundler from using \fBload\fR to launch an executable in\-process in \fBbundle exec\fR\.
123
- .IP "\(bu" 4
124
- \fBdisable_local_branch_check\fR (\fBBUNDLE_DISABLE_LOCAL_BRANCH_CHECK\fR): Allow Bundler to use a local git override without a branch specified in the Gemfile\.
125
- .IP "\(bu" 4
126
- \fBdisable_local_revision_check\fR (\fBBUNDLE_DISABLE_LOCAL_REVISION_CHECK\fR): Allow Bundler to use a local git override without checking if the revision present in the lockfile is present in the repository\.
127
- .IP "\(bu" 4
128
- \fBdisable_shared_gems\fR (\fBBUNDLE_DISABLE_SHARED_GEMS\fR): Stop Bundler from accessing gems installed to RubyGems' normal location\.
129
- .IP "\(bu" 4
130
- \fBdisable_version_check\fR (\fBBUNDLE_DISABLE_VERSION_CHECK\fR): Stop Bundler from checking if a newer Bundler version is available on rubygems\.org\.
131
- .IP "\(bu" 4
132
- \fBforce_ruby_platform\fR (\fBBUNDLE_FORCE_RUBY_PLATFORM\fR): Ignore the current machine's platform and install only \fBruby\fR platform gems\. As a result, gems with native extensions will be compiled from source\.
133
- .IP "\(bu" 4
134
- \fBfrozen\fR (\fBBUNDLE_FROZEN\fR): Disallow changes to the \fBGemfile\fR\. When the \fBGemfile\fR is changed and the lockfile has not been updated, running Bundler commands will be blocked\. Defaults to \fBtrue\fR when \fB\-\-deployment\fR is used\.
135
- .IP "\(bu" 4
136
- \fBgem\.github_username\fR (\fBBUNDLE_GEM__GITHUB_USERNAME\fR): Sets a GitHub username or organization to be used in \fBREADME\fR file when you create a new gem via \fBbundle gem\fR command\. It can be overridden by passing an explicit \fB\-\-github\-username\fR flag to \fBbundle gem\fR\.
137
- .IP "\(bu" 4
138
- \fBgem\.push_key\fR (\fBBUNDLE_GEM__PUSH_KEY\fR): Sets the \fB\-\-key\fR parameter for \fBgem push\fR when using the \fBrake release\fR command with a private gemstash server\.
139
- .IP "\(bu" 4
140
- \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\.
141
- .IP "\(bu" 4
142
- \fBglobal_gem_cache\fR (\fBBUNDLE_GLOBAL_GEM_CACHE\fR): Whether Bundler should cache all gems globally, rather than locally to the installing Ruby installation\.
143
- .IP "\(bu" 4
144
- \fBignore_funding_requests\fR (\fBBUNDLE_IGNORE_FUNDING_REQUESTS\fR): When set, no funding requests will be printed\.
145
- .IP "\(bu" 4
146
- \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\.
147
- .IP "\(bu" 4
148
- \fBinit_gems_rb\fR (\fBBUNDLE_INIT_GEMS_RB\fR): Generate a \fBgems\.rb\fR instead of a \fBGemfile\fR when running \fBbundle init\fR\.
149
- .IP "\(bu" 4
150
- \fBjobs\fR (\fBBUNDLE_JOBS\fR): The number of gems Bundler can install in parallel\. Defaults to the number of available processors\.
151
- .IP "\(bu" 4
152
- \fBlockfile_checksums\fR (\fBBUNDLE_LOCKFILE_CHECKSUMS\fR): Whether Bundler should include a checksums section in new lockfiles, to protect from compromised gem sources\.
153
- .IP "\(bu" 4
154
- \fBno_install\fR (\fBBUNDLE_NO_INSTALL\fR): Whether \fBbundle package\fR should skip installing gems\.
155
- .IP "\(bu" 4
156
- \fBno_prune\fR (\fBBUNDLE_NO_PRUNE\fR): Whether Bundler should leave outdated gems unpruned when caching\.
157
- .IP "\(bu" 4
158
- \fBonly\fR (\fBBUNDLE_ONLY\fR): A space\-separated list of groups to install only gems of the specified groups\.
159
- .IP "\(bu" 4
160
- \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\.
161
- .IP "\(bu" 4
162
- \fBpath\.system\fR (\fBBUNDLE_PATH__SYSTEM\fR): Whether Bundler will install gems into the default system path (\fBGem\.dir\fR)\.
163
- .IP "\(bu" 4
164
- \fBpath_relative_to_cwd\fR (\fBBUNDLE_PATH_RELATIVE_TO_CWD\fR) Makes \fB\-\-path\fR relative to the CWD instead of the \fBGemfile\fR\.
165
- .IP "\(bu" 4
166
- \fBplugins\fR (\fBBUNDLE_PLUGINS\fR): Enable Bundler's experimental plugin system\.
167
- .IP "\(bu" 4
168
- \fBprefer_patch\fR (BUNDLE_PREFER_PATCH): Prefer updating only to next patch version during updates\. Makes \fBbundle update\fR calls equivalent to \fBbundler update \-\-patch\fR\.
169
- .IP "\(bu" 4
170
- \fBprint_only_version_number\fR (\fBBUNDLE_PRINT_ONLY_VERSION_NUMBER\fR): Print only version number from \fBbundler \-\-version\fR\.
171
- .IP "\(bu" 4
172
- \fBredirect\fR (\fBBUNDLE_REDIRECT\fR): The number of redirects allowed for network requests\. Defaults to \fB5\fR\.
173
- .IP "\(bu" 4
174
- \fBretry\fR (\fBBUNDLE_RETRY\fR): The number of times to retry failed network requests\. Defaults to \fB3\fR\.
175
- .IP "\(bu" 4
176
- \fBsetup_makes_kernel_gem_public\fR (\fBBUNDLE_SETUP_MAKES_KERNEL_GEM_PUBLIC\fR): Have \fBBundler\.setup\fR make the \fBKernel#gem\fR method public, even though RubyGems declares it as private\.
177
- .IP "\(bu" 4
178
- \fBshebang\fR (\fBBUNDLE_SHEBANG\fR): The program name that should be invoked for generated binstubs\. Defaults to the ruby install name used to generate the binstub\.
179
- .IP "\(bu" 4
180
- \fBsilence_deprecations\fR (\fBBUNDLE_SILENCE_DEPRECATIONS\fR): Whether Bundler should silence deprecation warnings for behavior that will be changed in the next major version\.
181
- .IP "\(bu" 4
182
- \fBsilence_root_warning\fR (\fBBUNDLE_SILENCE_ROOT_WARNING\fR): Silence the warning Bundler prints when installing gems as root\.
183
- .IP "\(bu" 4
184
- \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\.
185
- .IP "\(bu" 4
186
- \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\.
187
- .IP "\(bu" 4
188
- \fBssl_verify_mode\fR (\fBBUNDLE_SSL_VERIFY_MODE\fR): The SSL verification mode Bundler uses when making HTTPS requests\. Defaults to verify peer\.
189
- .IP "\(bu" 4
190
- \fBsystem_bindir\fR (\fBBUNDLE_SYSTEM_BINDIR\fR): The location where RubyGems installs binstubs\. Defaults to \fBGem\.bindir\fR\.
191
- .IP "\(bu" 4
192
- \fBtimeout\fR (\fBBUNDLE_TIMEOUT\fR): The seconds allowed before timing out for network requests\. Defaults to \fB10\fR\.
193
- .IP "\(bu" 4
194
- \fBupdate_requires_all_flag\fR (\fBBUNDLE_UPDATE_REQUIRES_ALL_FLAG\fR): Require passing \fB\-\-all\fR to \fBbundle update\fR when everything should be updated, and disallow passing no options to \fBbundle update\fR\.
195
- .IP "\(bu" 4
196
- \fBuser_agent\fR (\fBBUNDLE_USER_AGENT\fR): The custom user agent fragment Bundler includes in API requests\.
197
- .IP "\(bu" 4
198
- \fBversion\fR (\fBBUNDLE_VERSION\fR): The version of Bundler to use when running under Bundler environment\. Defaults to \fBlockfile\fR\. You can also specify \fBsystem\fR or \fBx\.y\.z\fR\. \fBlockfile\fR will use the Bundler version specified in the \fBGemfile\.lock\fR, \fBsystem\fR will use the system version of Bundler, and \fBx\.y\.z\fR will use the specified version of Bundler\.
199
- .IP "\(bu" 4
200
- \fBwith\fR (\fBBUNDLE_WITH\fR): A space\-separated or \fB:\fR\-separated list of groups whose gems bundler should install\.
201
- .IP "\(bu" 4
202
- \fBwithout\fR (\fBBUNDLE_WITHOUT\fR): A space\-separated or \fB:\fR\-separated list of groups whose gems bundler should not install\.
203
- .IP "" 0
204
250
  .SH "LOCAL GIT REPOS"
205
251
  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:
206
252
  .IP "" 4