bundler 2.6.9 → 2.7.2

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 (113) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1136 -1033
  3. data/README.md +7 -7
  4. data/bundler.gemspec +2 -2
  5. data/lib/bundler/build_metadata.rb +10 -11
  6. data/lib/bundler/checksum.rb +6 -0
  7. data/lib/bundler/cli/cache.rb +0 -1
  8. data/lib/bundler/cli/common.rb +1 -1
  9. data/lib/bundler/cli/config.rb +2 -2
  10. data/lib/bundler/cli/gem.rb +62 -30
  11. data/lib/bundler/cli/install.rb +5 -7
  12. data/lib/bundler/cli/lock.rb +5 -5
  13. data/lib/bundler/cli/outdated.rb +1 -1
  14. data/lib/bundler/cli/show.rb +2 -6
  15. data/lib/bundler/cli/update.rb +3 -3
  16. data/lib/bundler/cli.rb +45 -49
  17. data/lib/bundler/compact_index_client.rb +1 -5
  18. data/lib/bundler/current_ruby.rb +27 -3
  19. data/lib/bundler/definition.rb +97 -81
  20. data/lib/bundler/dependency.rb +1 -1
  21. data/lib/bundler/dsl.rb +34 -24
  22. data/lib/bundler/feature_flag.rb +15 -12
  23. data/lib/bundler/fetcher/dependency.rb +2 -1
  24. data/lib/bundler/fetcher/downloader.rb +33 -7
  25. data/lib/bundler/fetcher.rb +49 -19
  26. data/lib/bundler/friendly_errors.rb +2 -1
  27. data/lib/bundler/index.rb +7 -2
  28. data/lib/bundler/installer.rb +5 -4
  29. data/lib/bundler/lazy_specification.rb +9 -7
  30. data/lib/bundler/lockfile_parser.rb +21 -5
  31. data/lib/bundler/man/bundle-add.1 +1 -1
  32. data/lib/bundler/man/bundle-binstubs.1 +1 -1
  33. data/lib/bundler/man/bundle-cache.1 +1 -1
  34. data/lib/bundler/man/bundle-check.1 +1 -1
  35. data/lib/bundler/man/bundle-clean.1 +1 -1
  36. data/lib/bundler/man/bundle-config.1 +200 -137
  37. data/lib/bundler/man/bundle-config.1.ronn +138 -109
  38. data/lib/bundler/man/bundle-console.1 +1 -1
  39. data/lib/bundler/man/bundle-doctor.1 +43 -4
  40. data/lib/bundler/man/bundle-doctor.1.ronn +48 -4
  41. data/lib/bundler/man/bundle-env.1 +1 -1
  42. data/lib/bundler/man/bundle-exec.1 +1 -1
  43. data/lib/bundler/man/bundle-fund.1 +1 -1
  44. data/lib/bundler/man/bundle-gem.1 +67 -44
  45. data/lib/bundler/man/bundle-gem.1.ronn +8 -4
  46. data/lib/bundler/man/bundle-help.1 +1 -1
  47. data/lib/bundler/man/bundle-info.1 +1 -1
  48. data/lib/bundler/man/bundle-init.1 +1 -1
  49. data/lib/bundler/man/bundle-inject.1 +2 -2
  50. data/lib/bundler/man/bundle-inject.1.ronn +1 -1
  51. data/lib/bundler/man/bundle-install.1 +4 -4
  52. data/lib/bundler/man/bundle-install.1.ronn +3 -4
  53. data/lib/bundler/man/bundle-issue.1 +1 -1
  54. data/lib/bundler/man/bundle-licenses.1 +1 -1
  55. data/lib/bundler/man/bundle-list.1 +1 -1
  56. data/lib/bundler/man/bundle-lock.1 +1 -1
  57. data/lib/bundler/man/bundle-open.1 +1 -1
  58. data/lib/bundler/man/bundle-outdated.1 +1 -1
  59. data/lib/bundler/man/bundle-platform.1 +1 -1
  60. data/lib/bundler/man/bundle-plugin.1 +40 -15
  61. data/lib/bundler/man/bundle-plugin.1.ronn +44 -15
  62. data/lib/bundler/man/bundle-pristine.1 +1 -1
  63. data/lib/bundler/man/bundle-remove.1 +1 -1
  64. data/lib/bundler/man/bundle-show.1 +1 -1
  65. data/lib/bundler/man/bundle-update.1 +5 -5
  66. data/lib/bundler/man/bundle-update.1.ronn +4 -4
  67. data/lib/bundler/man/bundle-version.1 +1 -1
  68. data/lib/bundler/man/bundle-viz.1 +1 -1
  69. data/lib/bundler/man/bundle.1 +1 -1
  70. data/lib/bundler/man/gemfile.5 +1 -1
  71. data/lib/bundler/match_platform.rb +31 -12
  72. data/lib/bundler/materialization.rb +2 -2
  73. data/lib/bundler/resolver/package.rb +2 -1
  74. data/lib/bundler/resolver.rb +1 -3
  75. data/lib/bundler/rubygems_ext.rb +116 -120
  76. data/lib/bundler/rubygems_integration.rb +11 -6
  77. data/lib/bundler/runtime.rb +1 -1
  78. data/lib/bundler/self_manager.rb +32 -42
  79. data/lib/bundler/settings/validator.rb +0 -23
  80. data/lib/bundler/settings.rb +4 -6
  81. data/lib/bundler/shared_helpers.rb +6 -4
  82. data/lib/bundler/source/gemspec.rb +4 -0
  83. data/lib/bundler/source/git/git_proxy.rb +3 -3
  84. data/lib/bundler/source/path.rb +9 -0
  85. data/lib/bundler/source_list.rb +1 -5
  86. data/lib/bundler/source_map.rb +1 -1
  87. data/lib/bundler/spec_set.rb +7 -3
  88. data/lib/bundler/templates/Executable +0 -11
  89. data/lib/bundler/templates/newgem/github/workflows/main.yml.tt +2 -0
  90. data/lib/bundler/templates/newgem/newgem.gemspec.tt +6 -5
  91. data/lib/bundler/ui/shell.rb +2 -2
  92. data/lib/bundler/vendor/net-http-persistent/README.rdoc +1 -1
  93. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb +2 -1
  94. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +81 -42
  95. data/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +42 -6
  96. data/lib/bundler/vendor/thor/lib/thor/parser/options.rb +1 -1
  97. data/lib/bundler/vendor/thor/lib/thor/runner.rb +1 -1
  98. data/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +3 -7
  99. data/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
  100. data/lib/bundler/version.rb +10 -2
  101. data/lib/bundler/worker.rb +1 -1
  102. data/lib/bundler.rb +14 -12
  103. metadata +4 -14
  104. data/lib/bundler/gem_helpers.rb +0 -144
  105. data/lib/bundler/templates/Executable.bundler +0 -109
  106. data/lib/bundler/vendor/connection_pool/.document +0 -1
  107. data/lib/bundler/vendor/fileutils/.document +0 -1
  108. data/lib/bundler/vendor/net-http-persistent/.document +0 -1
  109. data/lib/bundler/vendor/pub_grub/.document +0 -1
  110. data/lib/bundler/vendor/securerandom/.document +0 -1
  111. data/lib/bundler/vendor/thor/.document +0 -1
  112. data/lib/bundler/vendor/tsort/.document +0 -1
  113. data/lib/bundler/vendor/uri/.document +0 -1
@@ -1,16 +1,16 @@
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" "August 2025" ""
4
4
  .SH "NAME"
5
5
  \fBbundle\-config\fR \- Set bundler configuration options
6
6
  .SH "SYNOPSIS"
7
- \fBbundle config\fR list
7
+ \fBbundle config\fR [list]
8
8
  .br
9
- \fBbundle config\fR [get] NAME
9
+ \fBbundle config\fR [get [\-\-local|\-\-global]] NAME
10
10
  .br
11
- \fBbundle config\fR [set] NAME VALUE
11
+ \fBbundle config\fR [set [\-\-local|\-\-global]] NAME VALUE
12
12
  .br
13
- \fBbundle config\fR unset NAME
13
+ \fBbundle config\fR unset [\-\-local|\-\-global] NAME
14
14
  .SH "DESCRIPTION"
15
15
  This command allows you to interact with Bundler's configuration system\.
16
16
  .P
@@ -25,46 +25,226 @@ Global config (\fB~/\.bundle/config\fR)
25
25
  Bundler default config
26
26
  .IP "" 0
27
27
  .P
28
+ Executing \fBbundle\fR with the \fBBUNDLE_IGNORE_CONFIG\fR environment variable set will cause it to ignore all configuration\.
29
+ .SH "SUB\-COMMANDS"
30
+ .SS "list (default command)"
28
31
  Executing \fBbundle config list\fR will print a list of all bundler configuration for the current bundle, and where that configuration was set\.
32
+ .SS "get"
33
+ Executing \fBbundle config get <name>\fR will print the value of that configuration setting, and all locations where it was set\.
29
34
  .P
30
- Executing \fBbundle config get <name>\fR will print the value of that configuration setting, and where it was set\.
31
- .P
32
- Executing \fBbundle config set <name> <value>\fR defaults to setting \fBlocal\fR configuration if executing from within a local application, otherwise it will set \fBglobal\fR configuration\. See \fB\-\-local\fR and \fB\-\-global\fR options below\.
35
+ \fBOPTIONS\fR
36
+ .TP
37
+ \fB\-\-local\fR
38
+ Get configuration from configuration file for the local application, namely, \fB<project_root>/\.bundle/config\fR, or \fB$BUNDLE_APP_CONFIG/config\fR if \fBBUNDLE_APP_CONFIG\fR is set\.
39
+ .TP
40
+ \fB\-\-global\fR
41
+ Get configuration from configuration file global to all bundles executed as the current user, namely, from \fB~/\.bundle/config\fR\.
42
+ .SS "set"
43
+ Executing \fBbundle config set <name> <value>\fR defaults to setting \fBlocal\fR configuration if executing from within a local application, otherwise it will set \fBglobal\fR configuration\.
33
44
  .P
45
+ \fBOPTIONS\fR
46
+ .TP
47
+ \fB\-\-local\fR
34
48
  Executing \fBbundle config set \-\-local <name> <value>\fR will set that configuration in the directory for the local application\. The configuration will be stored in \fB<project_root>/\.bundle/config\fR\. If \fBBUNDLE_APP_CONFIG\fR is set, the configuration will be stored in \fB$BUNDLE_APP_CONFIG/config\fR\.
35
- .P
49
+ .TP
50
+ \fB\-\-global\fR
36
51
  Executing \fBbundle config set \-\-global <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\.
37
- .P
52
+ .SS "unset"
38
53
  Executing \fBbundle config unset <name>\fR will delete the configuration in both local and global sources\.
39
54
  .P
55
+ \fBOPTIONS\fR
56
+ .TP
57
+ \fB\-\-local\fR
58
+ Executing \fBbundle config unset \-\-local <name>\fR will delete the configuration only from the local application\.
59
+ .TP
60
+ \fB\-\-global\fR
40
61
  Executing \fBbundle config unset \-\-global <name>\fR will delete the configuration only from the user configuration\.
62
+ .SH "CONFIGURATION KEYS"
63
+ Configuration keys in bundler have two forms: the canonical form and the environment variable form\.
41
64
  .P
42
- Executing \fBbundle config unset \-\-local <name>\fR will delete the configuration only from the local application\.
65
+ 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\.
66
+ .P
67
+ 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\.
43
68
  .P
44
- Executing bundle with the \fBBUNDLE_IGNORE_CONFIG\fR environment variable set will cause it to ignore all configuration\.
69
+ 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\.
70
+ .SH "LIST OF AVAILABLE KEYS"
71
+ 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\.
72
+ .TP
73
+ \fBallow_offline_install\fR (\fBBUNDLE_ALLOW_OFFLINE_INSTALL\fR)
74
+ Allow Bundler to use cached data when installing without network access\.
75
+ .TP
76
+ \fBauto_install\fR (\fBBUNDLE_AUTO_INSTALL\fR)
77
+ Automatically run \fBbundle install\fR when gems are missing\.
78
+ .TP
79
+ \fBbin\fR (\fBBUNDLE_BIN\fR)
80
+ Install executables from gems in the bundle to the specified directory\. Defaults to \fBfalse\fR\.
81
+ .TP
82
+ \fBcache_all\fR (\fBBUNDLE_CACHE_ALL\fR)
83
+ Cache all gems, including path and git gems\. This needs to be explicitly before bundler 4, but will be the default on bundler 4\.
84
+ .TP
85
+ \fBcache_all_platforms\fR (\fBBUNDLE_CACHE_ALL_PLATFORMS\fR)
86
+ Cache gems for all platforms\.
87
+ .TP
88
+ \fBcache_path\fR (\fBBUNDLE_CACHE_PATH\fR)
89
+ 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\.
90
+ .TP
91
+ \fBclean\fR (\fBBUNDLE_CLEAN\fR)
92
+ 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\.
93
+ .TP
94
+ \fBconsole\fR (\fBBUNDLE_CONSOLE\fR)
95
+ The console that \fBbundle console\fR starts\. Defaults to \fBirb\fR\.
96
+ .TP
97
+ \fBdefault_cli_command\fR (\fBBUNDLE_DEFAULT_CLI_COMMAND\fR)
98
+ 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\.
99
+ .TP
100
+ \fBdeployment\fR (\fBBUNDLE_DEPLOYMENT\fR)
101
+ Equivalent to setting \fBfrozen\fR to \fBtrue\fR and \fBpath\fR to \fBvendor/bundle\fR\.
102
+ .TP
103
+ \fBdisable_checksum_validation\fR (\fBBUNDLE_DISABLE_CHECKSUM_VALIDATION\fR)
104
+ Allow installing gems even if they do not match the checksum provided by RubyGems\.
105
+ .TP
106
+ \fBdisable_exec_load\fR (\fBBUNDLE_DISABLE_EXEC_LOAD\fR)
107
+ Stop Bundler from using \fBload\fR to launch an executable in\-process in \fBbundle exec\fR\.
108
+ .TP
109
+ \fBdisable_local_branch_check\fR (\fBBUNDLE_DISABLE_LOCAL_BRANCH_CHECK\fR)
110
+ Allow Bundler to use a local git override without a branch specified in the Gemfile\.
111
+ .TP
112
+ \fBdisable_local_revision_check\fR (\fBBUNDLE_DISABLE_LOCAL_REVISION_CHECK\fR)
113
+ Allow Bundler to use a local git override without checking if the revision present in the lockfile is present in the repository\.
114
+ .TP
115
+ \fBdisable_shared_gems\fR (\fBBUNDLE_DISABLE_SHARED_GEMS\fR)
116
+ Stop Bundler from accessing gems installed to RubyGems' normal location\.
117
+ .TP
118
+ \fBdisable_version_check\fR (\fBBUNDLE_DISABLE_VERSION_CHECK\fR)
119
+ Stop Bundler from checking if a newer Bundler version is available on rubygems\.org\.
120
+ .TP
121
+ \fBforce_ruby_platform\fR (\fBBUNDLE_FORCE_RUBY_PLATFORM\fR)
122
+ 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\.
123
+ .TP
124
+ \fBfrozen\fR (\fBBUNDLE_FROZEN\fR)
125
+ 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\.
126
+ .TP
127
+ \fBgem\.github_username\fR (\fBBUNDLE_GEM__GITHUB_USERNAME\fR)
128
+ 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\.
129
+ .TP
130
+ \fBgem\.push_key\fR (\fBBUNDLE_GEM__PUSH_KEY\fR)
131
+ Sets the \fB\-\-key\fR parameter for \fBgem push\fR when using the \fBrake release\fR command with a private gemstash server\.
132
+ .TP
133
+ \fBgemfile\fR (\fBBUNDLE_GEMFILE\fR)
134
+ 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\.
135
+ .TP
136
+ \fBglobal_gem_cache\fR (\fBBUNDLE_GLOBAL_GEM_CACHE\fR)
137
+ Whether Bundler should cache all gems and compiled extensions globally, rather than locally to the configured installation path\.
138
+ .TP
139
+ \fBignore_funding_requests\fR (\fBBUNDLE_IGNORE_FUNDING_REQUESTS\fR)
140
+ When set, no funding requests will be printed\.
141
+ .TP
142
+ \fBignore_messages\fR (\fBBUNDLE_IGNORE_MESSAGES\fR)
143
+ When set, no post install messages will be printed\. To silence a single gem, use dot notation like \fBignore_messages\.httparty true\fR\.
144
+ .TP
145
+ \fBinit_gems_rb\fR (\fBBUNDLE_INIT_GEMS_RB\fR)
146
+ Generate a \fBgems\.rb\fR instead of a \fBGemfile\fR when running \fBbundle init\fR\.
147
+ .TP
148
+ \fBjobs\fR (\fBBUNDLE_JOBS\fR)
149
+ The number of gems Bundler can install in parallel\. Defaults to the number of available processors\.
150
+ .TP
151
+ \fBlockfile_checksums\fR (\fBBUNDLE_LOCKFILE_CHECKSUMS\fR)
152
+ Whether Bundler should include a checksums section in new lockfiles, to protect from compromised gem sources\.
153
+ .TP
154
+ \fBno_install\fR (\fBBUNDLE_NO_INSTALL\fR)
155
+ Whether \fBbundle package\fR should skip installing gems\.
156
+ .TP
157
+ \fBno_prune\fR (\fBBUNDLE_NO_PRUNE\fR)
158
+ Whether Bundler should leave outdated gems unpruned when caching\.
159
+ .TP
160
+ \fBonly\fR (\fBBUNDLE_ONLY\fR)
161
+ A space\-separated list of groups to install only gems of the specified groups\.
162
+ .TP
163
+ \fBpath\fR (\fBBUNDLE_PATH\fR)
164
+ 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\.
165
+ .TP
166
+ \fBpath\.system\fR (\fBBUNDLE_PATH__SYSTEM\fR)
167
+ Whether Bundler will install gems into the default system path (\fBGem\.dir\fR)\.
168
+ .TP
169
+ \fBplugins\fR (\fBBUNDLE_PLUGINS\fR)
170
+ Enable Bundler's experimental plugin system\.
171
+ .TP
172
+ \fBprefer_patch\fR (BUNDLE_PREFER_PATCH)
173
+ Prefer updating only to next patch version during updates\. Makes \fBbundle update\fR calls equivalent to \fBbundler update \-\-patch\fR\.
174
+ .TP
175
+ \fBredirect\fR (\fBBUNDLE_REDIRECT\fR)
176
+ The number of redirects allowed for network requests\. Defaults to \fB5\fR\.
177
+ .TP
178
+ \fBretry\fR (\fBBUNDLE_RETRY\fR)
179
+ The number of times to retry failed network requests\. Defaults to \fB3\fR\.
180
+ .TP
181
+ \fBshebang\fR (\fBBUNDLE_SHEBANG\fR)
182
+ The program name that should be invoked for generated binstubs\. Defaults to the ruby install name used to generate the binstub\.
183
+ .TP
184
+ \fBsilence_deprecations\fR (\fBBUNDLE_SILENCE_DEPRECATIONS\fR)
185
+ Whether Bundler should silence deprecation warnings for behavior that will be changed in the next major version\.
186
+ .TP
187
+ \fBsilence_root_warning\fR (\fBBUNDLE_SILENCE_ROOT_WARNING\fR)
188
+ Silence the warning Bundler prints when installing gems as root\.
189
+ .TP
190
+ \fBsimulate_version\fR (\fBBUNDLE_SIMULATE_VERSION\fR)
191
+ 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\.
192
+ .TP
193
+ \fBssl_ca_cert\fR (\fBBUNDLE_SSL_CA_CERT\fR)
194
+ Path to a designated CA certificate file or folder containing multiple certificates for trusted CAs in PEM format\.
195
+ .TP
196
+ \fBssl_client_cert\fR (\fBBUNDLE_SSL_CLIENT_CERT\fR)
197
+ Path to a designated file containing a X\.509 client certificate and key in PEM format\.
198
+ .TP
199
+ \fBssl_verify_mode\fR (\fBBUNDLE_SSL_VERIFY_MODE\fR)
200
+ The SSL verification mode Bundler uses when making HTTPS requests\. Defaults to verify peer\.
201
+ .TP
202
+ \fBsystem_bindir\fR (\fBBUNDLE_SYSTEM_BINDIR\fR)
203
+ The location where RubyGems installs binstubs\. Defaults to \fBGem\.bindir\fR\.
204
+ .TP
205
+ \fBtimeout\fR (\fBBUNDLE_TIMEOUT\fR)
206
+ The seconds allowed before timing out for network requests\. Defaults to \fB10\fR\.
207
+ .TP
208
+ \fBupdate_requires_all_flag\fR (\fBBUNDLE_UPDATE_REQUIRES_ALL_FLAG\fR)
209
+ Require passing \fB\-\-all\fR to \fBbundle update\fR when everything should be updated, and disallow passing no options to \fBbundle update\fR\.
210
+ .TP
211
+ \fBuser_agent\fR (\fBBUNDLE_USER_AGENT\fR)
212
+ The custom user agent fragment Bundler includes in API requests\.
213
+ .TP
214
+ \fBverbose\fR (\fBBUNDLE_VERBOSE\fR)
215
+ Whether Bundler should print verbose output\. Defaults to \fBfalse\fR, unless the \fB\-\-verbose\fR CLI flag is used\.
216
+ .TP
217
+ \fBversion\fR (\fBBUNDLE_VERSION\fR)
218
+ 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\.
219
+ .TP
220
+ \fBwith\fR (\fBBUNDLE_WITH\fR)
221
+ A space\-separated or \fB:\fR\-separated list of groups whose gems bundler should install\.
222
+ .TP
223
+ \fBwithout\fR (\fBBUNDLE_WITHOUT\fR)
224
+ A space\-separated or \fB:\fR\-separated list of groups whose gems bundler should not install\.
45
225
  .SH "REMEMBERING OPTIONS"
46
226
  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
227
  .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)\.
228
+ 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
229
  .P
50
- The options that can be configured are:
230
+ The flags that can be configured are:
51
231
  .TP
52
- \fBbin\fR
232
+ \fB\-\-bin\fR
53
233
  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
234
  .TP
55
- \fBdeployment\fR
235
+ \fB\-\-deployment\fR
56
236
  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
237
  .TP
58
- \fBonly\fR
238
+ \fB\-\-only\fR
59
239
  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
240
  .TP
61
- \fBpath\fR
241
+ \fB\-\-path\fR
62
242
  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
243
  .TP
64
- \fBwithout\fR
244
+ \fB\-\-without\fR
65
245
  A space\-separated or \fB:\fR\-separated list of groups referencing gems to skip during installation\.
66
246
  .TP
67
- \fBwith\fR
247
+ \fB\-\-with\fR
68
248
  A space\-separated or \fB:\fR\-separated list of \fBoptional\fR groups referencing gems to include during installation\.
69
249
  .SH "BUILD OPTIONS"
70
250
  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 +264,6 @@ bundle config set \-\-global build\.mysql \-\-with\-mysql\-config=/usr/local/mys
84
264
  .IP "" 0
85
265
  .P
86
266
  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
267
  .SH "LOCAL GIT REPOS"
205
268
  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
269
  .IP "" 4