bundler 2.0.2 → 2.1.0.pre.1

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 (210) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +687 -574
  3. data/LICENSE.md +18 -19
  4. data/README.md +8 -7
  5. data/bundler.gemspec +5 -23
  6. data/exe/bundle +19 -3
  7. data/lib/bundler.rb +121 -68
  8. data/lib/bundler/build_metadata.rb +3 -3
  9. data/lib/bundler/capistrano.rb +5 -5
  10. data/lib/bundler/cli.rb +130 -124
  11. data/lib/bundler/cli/add.rb +27 -16
  12. data/lib/bundler/cli/common.rb +10 -11
  13. data/lib/bundler/cli/config.rb +161 -86
  14. data/lib/bundler/cli/console.rb +2 -2
  15. data/lib/bundler/cli/doctor.rb +4 -4
  16. data/lib/bundler/cli/exec.rb +4 -9
  17. data/lib/bundler/cli/gem.rb +5 -5
  18. data/lib/bundler/cli/info.rb +17 -5
  19. data/lib/bundler/cli/init.rb +1 -1
  20. data/lib/bundler/cli/install.rb +3 -3
  21. data/lib/bundler/cli/issue.rb +1 -1
  22. data/lib/bundler/cli/open.rb +10 -6
  23. data/lib/bundler/cli/outdated.rb +85 -81
  24. data/lib/bundler/cli/package.rb +8 -9
  25. data/lib/bundler/cli/plugin.rb +9 -2
  26. data/lib/bundler/cli/pristine.rb +1 -1
  27. data/lib/bundler/cli/show.rb +1 -1
  28. data/lib/bundler/cli/update.rb +32 -12
  29. data/lib/bundler/compact_index_client.rb +25 -9
  30. data/lib/bundler/compact_index_client/updater.rb +2 -6
  31. data/lib/bundler/current_ruby.rb +8 -7
  32. data/lib/bundler/definition.rb +33 -26
  33. data/lib/bundler/dependency.rb +16 -4
  34. data/lib/bundler/deployment.rb +2 -2
  35. data/lib/bundler/dsl.rb +18 -42
  36. data/lib/bundler/env.rb +6 -5
  37. data/lib/bundler/environment_preserver.rb +0 -1
  38. data/lib/bundler/feature_flag.rb +0 -12
  39. data/lib/bundler/fetcher.rb +14 -11
  40. data/lib/bundler/fetcher/compact_index.rb +26 -12
  41. data/lib/bundler/fetcher/dependency.rb +1 -1
  42. data/lib/bundler/fetcher/downloader.rb +3 -0
  43. data/lib/bundler/fetcher/index.rb +4 -2
  44. data/lib/bundler/friendly_errors.rb +4 -5
  45. data/lib/bundler/gem_helper.rb +8 -8
  46. data/lib/bundler/gem_helpers.rb +2 -4
  47. data/lib/bundler/gem_tasks.rb +1 -1
  48. data/lib/bundler/gem_version_promoter.rb +3 -3
  49. data/lib/bundler/graph.rb +2 -2
  50. data/lib/bundler/injector.rb +3 -1
  51. data/lib/bundler/inline.rb +19 -18
  52. data/lib/bundler/installer.rb +7 -14
  53. data/lib/bundler/installer/gem_installer.rb +5 -1
  54. data/lib/bundler/installer/parallel_installer.rb +4 -4
  55. data/lib/bundler/installer/standalone.rb +1 -2
  56. data/lib/bundler/lazy_specification.rb +2 -2
  57. data/lib/bundler/lockfile_parser.rb +13 -21
  58. data/lib/bundler/match_platform.rb +1 -1
  59. data/lib/bundler/plugin.rb +29 -18
  60. data/lib/bundler/plugin/api.rb +1 -1
  61. data/lib/bundler/plugin/api/source.rb +2 -2
  62. data/lib/bundler/plugin/index.rb +10 -2
  63. data/lib/bundler/plugin/installer.rb +28 -15
  64. data/lib/bundler/psyched_yaml.rb +1 -1
  65. data/lib/bundler/resolver.rb +72 -24
  66. data/lib/bundler/resolver/spec_group.rb +2 -2
  67. data/lib/bundler/retry.rb +2 -2
  68. data/lib/bundler/ruby_version.rb +4 -19
  69. data/lib/bundler/rubygems_ext.rb +10 -65
  70. data/lib/bundler/rubygems_gem_installer.rb +1 -1
  71. data/lib/bundler/rubygems_integration.rb +135 -403
  72. data/lib/bundler/runtime.rb +2 -9
  73. data/lib/bundler/settings.rb +15 -48
  74. data/lib/bundler/setup.rb +6 -5
  75. data/lib/bundler/shared_helpers.rb +53 -68
  76. data/lib/bundler/similarity_detector.rb +2 -2
  77. data/lib/bundler/source.rb +5 -5
  78. data/lib/bundler/source/git.rb +19 -12
  79. data/lib/bundler/source/git/git_proxy.rb +35 -39
  80. data/lib/bundler/source/metadata.rb +7 -2
  81. data/lib/bundler/source/path.rb +13 -8
  82. data/lib/bundler/source/rubygems.rb +11 -5
  83. data/lib/bundler/source/rubygems/remote.rb +1 -2
  84. data/lib/bundler/source_list.rb +9 -12
  85. data/lib/bundler/spec_set.rb +1 -6
  86. data/lib/bundler/stub_specification.rb +18 -30
  87. data/lib/bundler/templates/Executable.bundler +22 -13
  88. data/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +3 -3
  89. data/lib/bundler/templates/newgem/Gemfile.tt +8 -0
  90. data/lib/bundler/templates/newgem/README.md.tt +4 -3
  91. data/lib/bundler/templates/newgem/newgem.gemspec.tt +2 -18
  92. data/lib/bundler/templates/newgem/test/test_helper.rb.tt +0 -4
  93. data/lib/bundler/templates/newgem/travis.yml.tt +0 -1
  94. data/lib/bundler/ui.rb +3 -3
  95. data/lib/bundler/ui/rg_proxy.rb +1 -1
  96. data/lib/bundler/ui/shell.rb +4 -8
  97. data/lib/bundler/vendor/connection_pool/lib/connection_pool.rb +161 -0
  98. data/lib/bundler/vendor/connection_pool/lib/connection_pool/monotonic_time.rb +66 -0
  99. data/lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +176 -0
  100. data/lib/bundler/vendor/connection_pool/lib/connection_pool/version.rb +3 -0
  101. data/lib/bundler/vendor/fileutils/lib/fileutils.rb +1 -1
  102. data/lib/bundler/vendor/molinillo/lib/molinillo.rb +6 -6
  103. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +2 -2
  104. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +1 -1
  105. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +1 -1
  106. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +1 -1
  107. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +1 -1
  108. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +6 -6
  109. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +1 -1
  110. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +1 -1
  111. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +30 -8
  112. data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +1 -1
  113. data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +4 -4
  114. data/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +2 -2
  115. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +248 -279
  116. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/connection.rb +40 -0
  117. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/pool.rb +53 -0
  118. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb +79 -0
  119. data/lib/bundler/vendor/thor/lib/thor.rb +1 -1
  120. data/lib/bundler/vendor/thor/lib/thor/actions.rb +7 -7
  121. data/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +1 -1
  122. data/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +1 -1
  123. data/lib/bundler/vendor/thor/lib/thor/actions/directory.rb +1 -1
  124. data/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +1 -1
  125. data/lib/bundler/vendor/thor/lib/thor/base.rb +13 -13
  126. data/lib/bundler/vendor/thor/lib/thor/group.rb +1 -1
  127. data/lib/bundler/vendor/thor/lib/thor/line_editor.rb +2 -2
  128. data/lib/bundler/vendor/thor/lib/thor/parser.rb +4 -4
  129. data/lib/bundler/vendor/thor/lib/thor/runner.rb +4 -4
  130. data/lib/bundler/vendor/thor/lib/thor/shell.rb +3 -3
  131. data/lib/bundler/vendor/thor/lib/thor/shell/color.rb +1 -1
  132. data/lib/bundler/vendor/thor/lib/thor/shell/html.rb +1 -1
  133. data/lib/bundler/vendor/thor/lib/thor/util.rb +1 -1
  134. data/lib/bundler/vendored_fileutils.rb +1 -6
  135. data/lib/bundler/vendored_molinillo.rb +1 -1
  136. data/lib/bundler/vendored_persistent.rb +7 -5
  137. data/lib/bundler/vendored_thor.rb +2 -2
  138. data/lib/bundler/version.rb +1 -20
  139. data/lib/bundler/version_ranges.rb +51 -5
  140. data/lib/bundler/vlad.rb +3 -3
  141. data/lib/bundler/worker.rb +1 -3
  142. data/lib/bundler/yaml_serializer.rb +2 -3
  143. data/man/bundle-add.1 +10 -2
  144. data/man/bundle-add.1.txt +11 -5
  145. data/man/bundle-add.ronn +7 -1
  146. data/man/bundle-binstubs.1 +2 -2
  147. data/man/bundle-binstubs.1.txt +2 -2
  148. data/man/bundle-binstubs.ronn +1 -1
  149. data/man/bundle-check.1 +1 -1
  150. data/man/bundle-check.1.txt +6 -6
  151. data/man/bundle-clean.1 +1 -1
  152. data/man/bundle-clean.1.txt +1 -1
  153. data/man/bundle-config.1 +35 -35
  154. data/man/bundle-config.1.txt +65 -66
  155. data/man/bundle-config.ronn +41 -39
  156. data/man/bundle-doctor.1 +1 -1
  157. data/man/bundle-doctor.1.txt +1 -1
  158. data/man/bundle-exec.1 +1 -1
  159. data/man/bundle-exec.1.txt +1 -1
  160. data/man/bundle-gem.1 +1 -1
  161. data/man/bundle-gem.1.txt +3 -3
  162. data/man/bundle-info.1 +1 -1
  163. data/man/bundle-info.1.txt +1 -1
  164. data/man/bundle-init.1 +1 -1
  165. data/man/bundle-init.1.txt +1 -1
  166. data/man/bundle-inject.1 +1 -1
  167. data/man/bundle-inject.1.txt +1 -1
  168. data/man/bundle-install.1 +8 -5
  169. data/man/bundle-install.1.txt +56 -51
  170. data/man/bundle-install.ronn +9 -4
  171. data/man/bundle-list.1 +1 -1
  172. data/man/bundle-list.1.txt +1 -1
  173. data/man/bundle-lock.1 +1 -1
  174. data/man/bundle-lock.1.txt +16 -16
  175. data/man/bundle-open.1 +1 -1
  176. data/man/bundle-open.1.txt +1 -1
  177. data/man/bundle-outdated.1 +1 -1
  178. data/man/bundle-outdated.1.txt +1 -1
  179. data/man/bundle-package.1 +1 -1
  180. data/man/bundle-package.1.txt +1 -1
  181. data/man/bundle-platform.1 +1 -1
  182. data/man/bundle-platform.1.txt +1 -1
  183. data/man/bundle-pristine.1 +1 -1
  184. data/man/bundle-pristine.1.txt +1 -1
  185. data/man/bundle-remove.1 +1 -1
  186. data/man/bundle-remove.1.txt +1 -1
  187. data/man/bundle-show.1 +1 -1
  188. data/man/bundle-show.1.txt +1 -1
  189. data/man/bundle-update.1 +4 -4
  190. data/man/bundle-update.1.txt +64 -65
  191. data/man/bundle-update.ronn +3 -3
  192. data/man/bundle-viz.1 +1 -1
  193. data/man/bundle-viz.1.txt +1 -1
  194. data/man/bundle.1 +2 -2
  195. data/man/bundle.1.txt +7 -7
  196. data/man/bundle.ronn +1 -1
  197. data/man/gemfile.5 +12 -15
  198. data/man/gemfile.5.ronn +9 -13
  199. data/man/gemfile.5.txt +103 -107
  200. metadata +11 -112
  201. data/exe/bundle_ruby +0 -60
  202. data/lib/bundler/cli/cache.rb +0 -36
  203. data/lib/bundler/compatibility_guard.rb +0 -13
  204. data/lib/bundler/ssl_certs/.document +0 -1
  205. data/lib/bundler/ssl_certs/certificate_manager.rb +0 -66
  206. data/lib/bundler/ssl_certs/index.rubygems.org/GlobalSignRootCA.pem +0 -21
  207. data/lib/bundler/ssl_certs/rubygems.global.ssl.fastly.net/DigiCertHighAssuranceEVRootCA.pem +0 -23
  208. data/lib/bundler/ssl_certs/rubygems.org/AddTrustExternalCARoot.pem +0 -25
  209. data/lib/bundler/vendor/net-http-persistent/lib/net/http/faster.rb +0 -27
  210. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/ssl_reuse.rb +0 -129
@@ -6,7 +6,7 @@ NAME
6
6
  bundle-config - Set bundler configuration options
7
7
 
8
8
  SYNOPSIS
9
- bundle config [name [value]]
9
+ bundle config [list|get|set|unset] [name [value]]
10
10
 
11
11
  DESCRIPTION
12
12
  This command allows you to interact with Bundler's configuration sys-
@@ -24,42 +24,50 @@ DESCRIPTION
24
24
 
25
25
 
26
26
 
27
- Executing bundle config with no parameters will print a list of all
28
- bundler configuration for the current bundle, and where that configura-
29
- tion was set.
27
+ Executing bundle config list with will print a list of all bundler con-
28
+ figuration for the current bundle, and where that configuration was
29
+ set.
30
30
 
31
- Executing bundle config <name> will print the value of that configura-
32
- tion setting, and where it was set.
31
+ Executing bundle config get <name> will print the value of that config-
32
+ uration setting, and where it was set.
33
33
 
34
- Executing bundle config <name> <value> will set that configuration to
35
- the value specified for all bundles executed as the current user. The
36
- configuration will be stored in ~/.bundle/config. If name already is
37
- set, name will be overridden and user will be warned.
34
+ Executing bundle config set <name> <value> will set that configuration
35
+ to the value specified for all bundles executed as the current user.
36
+ The configuration will be stored in ~/.bundle/config. If name already
37
+ is set, name will be overridden and user will be warned.
38
38
 
39
- Executing bundle config --global <name> <value> works the same as
39
+ Executing bundle config set --global <name> <value> works the same as
40
40
  above.
41
41
 
42
- Executing bundle config --local <name> <value> will set that configura-
43
- tion to the local application. The configuration will be stored in
44
- app/.bundle/config.
42
+ Executing bundle config set --local <name> <value> will set that con-
43
+ figuration to the local application. The configuration will be stored
44
+ in app/.bundle/config.
45
45
 
46
- Executing bundle config --delete <name> will delete the configuration
47
- in both local and global sources. Not compatible with --global or
48
- --local flag.
46
+ Executing bundle config unset <name> will delete the configuration in
47
+ both local and global sources.
48
+
49
+ Executing bundle config unset --global <name> will delete the configu-
50
+ ration only from the user configuration.
51
+
52
+ Executing bundle config unset --local <name> <value> will delete the
53
+ configuration only from the local application.
49
54
 
50
55
  Executing bundle with the BUNDLE_IGNORE_CONFIG environment variable set
51
56
  will cause it to ignore all configuration.
52
57
 
53
- Executing bundle config disable_multisource true upgrades the warning
54
- about the Gemfile containing multiple primary sources to an error. Exe-
55
- cuting bundle config --delete disable_multisource downgrades this error
58
+ Executing bundle config set disable_multisource true upgrades the warn-
59
+ ing about the Gemfile containing multiple primary sources to an error.
60
+ Executing bundle config unset disable_multisource downgrades this error
56
61
  to a warning.
57
62
 
58
63
  REMEMBERING OPTIONS
59
- Flags passed to bundle install or the Bundler runtime, such as --path
60
- foo or --without production, are not remembered between commands. If
61
- these options must be remembered,they must be set using bundle config
62
- (e.g., bundle config path foo).
64
+ Flags passed to bundle install or the Bundler runtime, such as --path
65
+ foo or --without production, are remembered between commands and saved
66
+ to your local application's configuration (normally, ./.bundle/config).
67
+
68
+ However, this will be changed in bundler 3, so it's better not to rely
69
+ on this behavior. If these options must be remembered, it's better to
70
+ set them using bundle config (e.g., bundle config set path foo).
63
71
 
64
72
  The options that can be configured are:
65
73
 
@@ -109,7 +117,7 @@ BUILD OPTIONS
109
117
 
110
118
 
111
119
 
112
- bundle config build.mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config
120
+ bundle config set build.mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config
113
121
 
114
122
 
115
123
 
@@ -174,7 +182,7 @@ LIST OF AVAILABLE KEYS
174
182
 
175
183
  o cache_path (BUNDLE_CACHE_PATH): The directory that bundler will
176
184
  place cached gems in when running bundle package, and that bundler
177
- will look in when installing gems. Defaults to vendor/bundle.
185
+ will look in when installing gems. Defaults to vendor/cache.
178
186
 
179
187
  o clean (BUNDLE_CLEAN): Whether Bundler should run bundle clean auto-
180
188
  matically after bundle install.
@@ -203,22 +211,19 @@ LIST OF AVAILABLE KEYS
203
211
 
204
212
  o disable_multisource (BUNDLE_DISABLE_MULTISOURCE): When set, Gem-
205
213
  files containing multiple sources will produce errors instead of
206
- warnings. Use bundle config --delete disable_multisource to unset.
214
+ warnings. Use bundle config unset disable_multisource to unset.
207
215
 
208
- o disable_platform_warnings (BUNDLE_DISABLE_PLATFORM_WARNINGS): Dis-
209
- able warnings during bundle install when a dependency is unused on
216
+ o disable_platform_warnings (BUNDLE_DISABLE_PLATFORM_WARNINGS): Dis-
217
+ able warnings during bundle install when a dependency is unused on
210
218
  the current platform.
211
219
 
212
220
  o disable_shared_gems (BUNDLE_DISABLE_SHARED_GEMS): Stop Bundler from
213
221
  accessing gems installed to RubyGems' normal location.
214
222
 
215
- o disable_version_check (BUNDLE_DISABLE_VERSION_CHECK): Stop Bundler
216
- from checking if a newer Bundler version is available on
223
+ o disable_version_check (BUNDLE_DISABLE_VERSION_CHECK): Stop Bundler
224
+ from checking if a newer Bundler version is available on
217
225
  rubygems.org.
218
226
 
219
- o error_on_stderr (BUNDLE_ERROR_ON_STDERR): Print Bundler errors to
220
- stderr.
221
-
222
227
  o force_ruby_platform (BUNDLE_FORCE_RUBY_PLATFORM): Ignore the cur-
223
228
  rent machine's platform and install only ruby platform gems. As a
224
229
  result, gems with native extensions will be compiled from source.
@@ -242,54 +247,44 @@ LIST OF AVAILABLE KEYS
242
247
  cache all gems globally, rather than locally to the installing Ruby
243
248
  installation.
244
249
 
245
- o global_path_appends_ruby_scope (BUN-
246
- DLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE): Whether Bundler should append
247
- the Ruby scope (e.g. engine and ABI version) to a globally-config-
248
- ured path.
249
-
250
250
  o ignore_messages (BUNDLE_IGNORE_MESSAGES): When set, no post install
251
251
  messages will be printed. To silence a single gem, use dot notation
252
252
  like ignore_messages.httparty true.
253
253
 
254
- o init_gems_rb (BUNDLE_INIT_GEMS_RB) Generate a gems.rb instead of a
254
+ o init_gems_rb (BUNDLE_INIT_GEMS_RB) Generate a gems.rb instead of a
255
255
  Gemfile when running bundle init.
256
256
 
257
- o jobs (BUNDLE_JOBS): The number of gems Bundler can install in par-
257
+ o jobs (BUNDLE_JOBS): The number of gems Bundler can install in par-
258
258
  allel. Defaults to 1.
259
259
 
260
- o list_command (BUNDLE_LIST_COMMAND) Enable new list command feature
261
-
262
- o major_deprecations (BUNDLE_MAJOR_DEPRECATIONS): Whether Bundler
263
- should print deprecation warnings for behavior that will be changed
264
- in the next major version.
265
-
266
- o no_install (BUNDLE_NO_INSTALL): Whether bundle package should skip
260
+ o no_install (BUNDLE_NO_INSTALL): Whether bundle package should skip
267
261
  installing gems.
268
262
 
269
- o no_prune (BUNDLE_NO_PRUNE): Whether Bundler should leave outdated
263
+ o no_prune (BUNDLE_NO_PRUNE): Whether Bundler should leave outdated
270
264
  gems unpruned when caching.
271
265
 
272
266
  o only_update_to_newer_versions (BUNDLE_ONLY_UPDATE_TO_NEWER_VER-
273
267
  SIONS): During bundle update, only resolve to newer versions of the
274
268
  gems in the lockfile.
275
269
 
276
- o path (BUNDLE_PATH): The location on disk where all gems in your
270
+ o path (BUNDLE_PATH): The location on disk where all gems in your
277
271
  bundle will be located regardless of $GEM_HOME or $GEM_PATH values.
278
- Bundle gems not found in this location will be installed by bundle
279
- install. Defaults to Gem.dir. When --deployment is used, defaults
272
+ Bundle gems not found in this location will be installed by bundle
273
+ install. Defaults to Gem.dir. When --deployment is used, defaults
280
274
  to vendor/bundle.
281
275
 
282
- o path.system (BUNDLE_PATH__SYSTEM): Whether Bundler will install
276
+ o path.system (BUNDLE_PATH__SYSTEM): Whether Bundler will install
283
277
  gems into the default system path (Gem.dir).
284
278
 
285
- o path_relative_to_cwd (BUNDLE_PATH_RELATIVE_TO_CWD) Makes --path
279
+ o path_relative_to_cwd (BUNDLE_PATH_RELATIVE_TO_CWD) Makes --path
286
280
  relative to the CWD instead of the Gemfile.
287
281
 
288
282
  o plugins (BUNDLE_PLUGINS): Enable Bundler's experimental plugin sys-
289
283
  tem.
290
284
 
291
- o prefer_gems_rb (BUNDLE_PREFER_GEMS_RB) Prefer gems.rb to Gemfile
292
- when Bundler is searching for a Gemfile.
285
+ o prefer_patch (BUNDLE_PREFER_PATCH): Prefer updating only to next
286
+ patch version during updates. Makes bundle update calls equivalent
287
+ to bundler update --patch.
293
288
 
294
289
  o print_only_version_number (BUNDLE_PRINT_ONLY_VERSION_NUMBER) Print
295
290
  only version number from bundler --version.
@@ -308,6 +303,10 @@ LIST OF AVAILABLE KEYS
308
303
  for generated binstubs. Defaults to the ruby install name used to
309
304
  generate the binstub.
310
305
 
306
+ o silence_deprecations (BUNDLE_SILENCE_DEPRECATIONS): Whether Bundler
307
+ should silence deprecation warnings for behavior that will be
308
+ changed in the next major version.
309
+
311
310
  o silence_root_warning (BUNDLE_SILENCE_ROOT_WARNING): Silence the
312
311
  warning Bundler prints when installing gems as root.
313
312
 
@@ -378,7 +377,7 @@ LOCAL GIT REPOS
378
377
 
379
378
 
380
379
 
381
- bundle config local.GEM_NAME /path/to/local/git/repository
380
+ bundle config set local.GEM_NAME /path/to/local/git/repository
382
381
 
383
382
 
384
383
 
@@ -387,7 +386,7 @@ LOCAL GIT REPOS
387
386
 
388
387
 
389
388
 
390
- bundle config local.rack ~/Work/git/rack
389
+ bundle config set local.rack ~/Work/git/rack
391
390
 
392
391
 
393
392
 
@@ -420,7 +419,7 @@ MIRRORS OF GEM SOURCES
420
419
 
421
420
 
422
421
 
423
- bundle config mirror.SOURCE_URL MIRROR_URL
422
+ bundle config set mirror.SOURCE_URL MIRROR_URL
424
423
 
425
424
 
426
425
 
@@ -429,7 +428,7 @@ MIRRORS OF GEM SOURCES
429
428
 
430
429
 
431
430
 
432
- bundle config mirror.http://rubygems.org http://rubygems-mirror.org
431
+ bundle config set mirror.http://rubygems.org http://rubygems-mirror.org
433
432
 
434
433
 
435
434
 
@@ -439,7 +438,7 @@ MIRRORS OF GEM SOURCES
439
438
 
440
439
 
441
440
 
442
- bundle config mirror.SOURCE_URL.fallback_timeout TIMEOUT
441
+ bundle config set mirror.SOURCE_URL.fallback_timeout TIMEOUT
443
442
 
444
443
 
445
444
 
@@ -447,7 +446,7 @@ MIRRORS OF GEM SOURCES
447
446
 
448
447
 
449
448
 
450
- bundle config mirror.https://rubygems.org.fallback_timeout 3
449
+ bundle config set mirror.https://rubygems.org.fallback_timeout 3
451
450
 
452
451
 
453
452
 
@@ -460,7 +459,7 @@ CREDENTIALS FOR GEM SOURCES
460
459
 
461
460
 
462
461
 
463
- bundle config SOURCE_HOSTNAME USERNAME:PASSWORD
462
+ bundle config set SOURCE_HOSTNAME USERNAME:PASSWORD
464
463
 
465
464
 
466
465
 
@@ -469,7 +468,7 @@ CREDENTIALS FOR GEM SOURCES
469
468
 
470
469
 
471
470
 
472
- bundle config gems.longerous.com claudette:s00pers3krit
471
+ bundle config set gems.longerous.com claudette:s00pers3krit
473
472
 
474
473
 
475
474
 
@@ -486,7 +485,7 @@ CREDENTIALS FOR GEM SOURCES
486
485
 
487
486
 
488
487
 
489
- bundle config https://github.com/bundler/bundler.git username:password
488
+ bundle config set https://github.com/bundler/bundler.git username:password
490
489
 
491
490
 
492
491
 
@@ -526,4 +525,4 @@ CONFIGURE BUNDLER DIRECTORIES
526
525
 
527
526
 
528
527
 
529
- June 2019 BUNDLE-CONFIG(1)
528
+ August 2019 BUNDLE-CONFIG(1)
@@ -3,7 +3,7 @@ bundle-config(1) -- Set bundler configuration options
3
3
 
4
4
  ## SYNOPSIS
5
5
 
6
- `bundle config` [<name> [<value>]]
6
+ `bundle config` [list|get|set|unset] [<name> [<value>]]
7
7
 
8
8
  ## DESCRIPTION
9
9
 
@@ -16,39 +16,48 @@ Bundler loads configuration settings in this order:
16
16
  3. Global config (`~/.bundle/config`)
17
17
  4. Bundler default config
18
18
 
19
- Executing `bundle config` with no parameters will print a list of all
20
- bundler configuration for the current bundle, and where that configuration
19
+ Executing `bundle config list` with will print a list of all bundler
20
+ configuration for the current bundle, and where that configuration
21
21
  was set.
22
22
 
23
- Executing `bundle config <name>` will print the value of that configuration
23
+ Executing `bundle config get <name>` will print the value of that configuration
24
24
  setting, and where it was set.
25
25
 
26
- Executing `bundle config <name> <value>` will set that configuration to the
26
+ Executing `bundle config set <name> <value>` will set that configuration to the
27
27
  value specified for all bundles executed as the current user. The configuration
28
28
  will be stored in `~/.bundle/config`. If <name> already is set, <name> will be
29
29
  overridden and user will be warned.
30
30
 
31
- Executing `bundle config --global <name> <value>` works the same as above.
31
+ Executing `bundle config set --global <name> <value>` works the same as above.
32
32
 
33
- Executing `bundle config --local <name> <value>` will set that configuration to
33
+ Executing `bundle config set --local <name> <value>` will set that configuration to
34
34
  the local application. The configuration will be stored in `app/.bundle/config`.
35
35
 
36
- Executing `bundle config --delete <name>` will delete the configuration in both
37
- local and global sources. Not compatible with --global or --local flag.
36
+ Executing `bundle config unset <name>` will delete the configuration in both
37
+ local and global sources.
38
+
39
+ Executing `bundle config unset --global <name>` will delete the configuration
40
+ only from the user configuration.
41
+
42
+ Executing `bundle config unset --local <name> <value>` will delete the
43
+ configuration only from the local application.
38
44
 
39
45
  Executing bundle with the `BUNDLE_IGNORE_CONFIG` environment variable set will
40
46
  cause it to ignore all configuration.
41
47
 
42
- Executing `bundle config disable_multisource true` upgrades the warning about
48
+ Executing `bundle config set disable_multisource true` upgrades the warning about
43
49
  the Gemfile containing multiple primary sources to an error. Executing `bundle
44
- config --delete disable_multisource` downgrades this error to a warning.
50
+ config unset disable_multisource` downgrades this error to a warning.
45
51
 
46
52
  ## REMEMBERING OPTIONS
47
53
 
48
- Flags passed to `bundle install` or the Bundler runtime,
49
- such as `--path foo` or `--without production`, are not remembered between commands.
50
- If these options must be remembered,they must be set using `bundle config`
51
- (e.g., `bundle config path foo`).
54
+ Flags passed to `bundle install` or the Bundler runtime, such as `--path foo` or
55
+ `--without production`, are remembered between commands and saved to your local
56
+ application's configuration (normally, `./.bundle/config`).
57
+
58
+ However, this will be changed in bundler 3, so it's better not to rely on this
59
+ behavior. If these options must be remembered, it's better to set them using
60
+ `bundle config` (e.g., `bundle config set path foo`).
52
61
 
53
62
  The options that can be configured are:
54
63
 
@@ -92,7 +101,7 @@ pass configuration flags to `gem install` to specify where to find the
92
101
  Since the specific location of that executable can change from machine
93
102
  to machine, you can specify these flags on a per-machine basis.
94
103
 
95
- bundle config build.mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config
104
+ bundle config set build.mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config
96
105
 
97
106
  After running this command, every time bundler needs to install the
98
107
  `mysql` gem, it will pass along the flags you specified.
@@ -145,7 +154,7 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
145
154
  * `cache_path` (`BUNDLE_CACHE_PATH`):
146
155
  The directory that bundler will place cached gems in when running
147
156
  <code>bundle package</code>, and that bundler will look in when installing gems.
148
- Defaults to `vendor/bundle`.
157
+ Defaults to `vendor/cache`.
149
158
  * `clean` (`BUNDLE_CLEAN`):
150
159
  Whether Bundler should run `bundle clean` automatically after
151
160
  `bundle install`.
@@ -169,7 +178,7 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
169
178
  * `disable_multisource` (`BUNDLE_DISABLE_MULTISOURCE`):
170
179
  When set, Gemfiles containing multiple sources will produce errors
171
180
  instead of warnings.
172
- Use `bundle config --delete disable_multisource` to unset.
181
+ Use `bundle config unset disable_multisource` to unset.
173
182
  * `disable_platform_warnings` (`BUNDLE_DISABLE_PLATFORM_WARNINGS`):
174
183
  Disable warnings during bundle install when a dependency is unused on the current platform.
175
184
  * `disable_shared_gems` (`BUNDLE_DISABLE_SHARED_GEMS`):
@@ -177,8 +186,6 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
177
186
  * `disable_version_check` (`BUNDLE_DISABLE_VERSION_CHECK`):
178
187
  Stop Bundler from checking if a newer Bundler version is available on
179
188
  rubygems.org.
180
- * `error_on_stderr` (`BUNDLE_ERROR_ON_STDERR`):
181
- Print Bundler errors to stderr.
182
189
  * `force_ruby_platform` (`BUNDLE_FORCE_RUBY_PLATFORM`):
183
190
  Ignore the current machine's platform and install only `ruby` platform gems.
184
191
  As a result, gems with native extensions will be compiled from source.
@@ -198,9 +205,6 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
198
205
  * `global_gem_cache` (`BUNDLE_GLOBAL_GEM_CACHE`):
199
206
  Whether Bundler should cache all gems globally, rather than locally to the
200
207
  installing Ruby installation.
201
- * `global_path_appends_ruby_scope` (`BUNDLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE`):
202
- Whether Bundler should append the Ruby scope (e.g. engine and ABI version)
203
- to a globally-configured path.
204
208
  * `ignore_messages` (`BUNDLE_IGNORE_MESSAGES`): When set, no post install
205
209
  messages will be printed. To silence a single gem, use dot notation like
206
210
  `ignore_messages.httparty true`.
@@ -208,11 +212,6 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
208
212
  Generate a `gems.rb` instead of a `Gemfile` when running `bundle init`.
209
213
  * `jobs` (`BUNDLE_JOBS`):
210
214
  The number of gems Bundler can install in parallel. Defaults to 1.
211
- * `list_command` (`BUNDLE_LIST_COMMAND`)
212
- Enable new list command feature
213
- * `major_deprecations` (`BUNDLE_MAJOR_DEPRECATIONS`):
214
- Whether Bundler should print deprecation warnings for behavior that will
215
- be changed in the next major version.
216
215
  * `no_install` (`BUNDLE_NO_INSTALL`):
217
216
  Whether `bundle package` should skip installing gems.
218
217
  * `no_prune` (`BUNDLE_NO_PRUNE`):
@@ -231,8 +230,8 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
231
230
  Makes `--path` relative to the CWD instead of the `Gemfile`.
232
231
  * `plugins` (`BUNDLE_PLUGINS`):
233
232
  Enable Bundler's experimental plugin system.
234
- * `prefer_gems_rb` (`BUNDLE_PREFER_GEMS_RB`)
235
- Prefer `gems.rb` to `Gemfile` when Bundler is searching for a Gemfile.
233
+ * `prefer_patch` (BUNDLE_PREFER_PATCH):
234
+ Prefer updating only to next patch version during updates. Makes `bundle update` calls equivalent to `bundler update --patch`.
236
235
  * `print_only_version_number` (`BUNDLE_PRINT_ONLY_VERSION_NUMBER`)
237
236
  Print only version number from `bundler --version`.
238
237
  * `redirect` (`BUNDLE_REDIRECT`):
@@ -245,6 +244,9 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
245
244
  * `shebang` (`BUNDLE_SHEBANG`):
246
245
  The program name that should be invoked for generated binstubs. Defaults to
247
246
  the ruby install name used to generate the binstub.
247
+ * `silence_deprecations` (`BUNDLE_SILENCE_DEPRECATIONS`):
248
+ Whether Bundler should silence deprecation warnings for behavior that will
249
+ be changed in the next major version.
248
250
  * `silence_root_warning` (`BUNDLE_SILENCE_ROOT_WARNING`):
249
251
  Silence the warning Bundler prints when installing gems as root.
250
252
  * `skip_default_git_sources` (`BUNDLE_SKIP_DEFAULT_GIT_SOURCES`):
@@ -300,11 +302,11 @@ Bundler also allows you to work against a git repository locally
300
302
  instead of using the remote version. This can be achieved by setting
301
303
  up a local override:
302
304
 
303
- bundle config local.GEM_NAME /path/to/local/git/repository
305
+ bundle config set local.GEM_NAME /path/to/local/git/repository
304
306
 
305
307
  For example, in order to use a local Rack repository, a developer could call:
306
308
 
307
- bundle config local.rack ~/Work/git/rack
309
+ bundle config set local.rack ~/Work/git/rack
308
310
 
309
311
  Now instead of checking out the remote git repository, the local
310
312
  override will be used. Similar to a path source, every time the local
@@ -334,21 +336,21 @@ Bundler supports overriding gem sources with mirrors. This allows you to
334
336
  configure rubygems.org as the gem source in your Gemfile while still using your
335
337
  mirror to fetch gems.
336
338
 
337
- bundle config mirror.SOURCE_URL MIRROR_URL
339
+ bundle config set mirror.SOURCE_URL MIRROR_URL
338
340
 
339
341
  For example, to use a mirror of rubygems.org hosted at rubygems-mirror.org:
340
342
 
341
- bundle config mirror.http://rubygems.org http://rubygems-mirror.org
343
+ bundle config set mirror.http://rubygems.org http://rubygems-mirror.org
342
344
 
343
345
  Each mirror also provides a fallback timeout setting. If the mirror does not
344
346
  respond within the fallback timeout, Bundler will try to use the original
345
347
  server instead of the mirror.
346
348
 
347
- bundle config mirror.SOURCE_URL.fallback_timeout TIMEOUT
349
+ bundle config set mirror.SOURCE_URL.fallback_timeout TIMEOUT
348
350
 
349
351
  For example, to fall back to rubygems.org after 3 seconds:
350
352
 
351
- bundle config mirror.https://rubygems.org.fallback_timeout 3
353
+ bundle config set mirror.https://rubygems.org.fallback_timeout 3
352
354
 
353
355
  The default fallback timeout is 0.1 seconds, but the setting can currently
354
356
  only accept whole seconds (for example, 1, 15, or 30).
@@ -358,12 +360,12 @@ only accept whole seconds (for example, 1, 15, or 30).
358
360
  Bundler allows you to configure credentials for any gem source, which allows
359
361
  you to avoid putting secrets into your Gemfile.
360
362
 
361
- bundle config SOURCE_HOSTNAME USERNAME:PASSWORD
363
+ bundle config set SOURCE_HOSTNAME USERNAME:PASSWORD
362
364
 
363
365
  For example, to save the credentials of user `claudette` for the gem source at
364
366
  `gems.longerous.com`, you would run:
365
367
 
366
- bundle config gems.longerous.com claudette:s00pers3krit
368
+ bundle config set gems.longerous.com claudette:s00pers3krit
367
369
 
368
370
  Or you can set the credentials as an environment variable like this:
369
371
 
@@ -371,7 +373,7 @@ Or you can set the credentials as an environment variable like this:
371
373
 
372
374
  For gems with a git source with HTTP(S) URL you can specify credentials like so:
373
375
 
374
- bundle config https://github.com/bundler/bundler.git username:password
376
+ bundle config set https://github.com/bundler/bundler.git username:password
375
377
 
376
378
  Or you can set the credentials as an environment variable like so:
377
379