bundler 1.17.2 → 2.1.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +799 -571
- data/LICENSE.md +18 -19
- data/README.md +9 -8
- data/bundler.gemspec +8 -25
- data/exe/bundle +19 -3
- data/lib/bundler.rb +202 -87
- data/lib/bundler/build_metadata.rb +3 -3
- data/lib/bundler/capistrano.rb +4 -4
- data/lib/bundler/cli.rb +178 -140
- data/lib/bundler/cli/add.rb +28 -16
- data/lib/bundler/cli/cache.rb +25 -13
- data/lib/bundler/cli/common.rb +11 -12
- data/lib/bundler/cli/config.rb +161 -86
- data/lib/bundler/cli/console.rb +1 -1
- data/lib/bundler/cli/doctor.rb +4 -4
- data/lib/bundler/cli/exec.rb +15 -18
- data/lib/bundler/cli/gem.rb +5 -5
- data/lib/bundler/cli/info.rb +17 -5
- data/lib/bundler/cli/init.rb +1 -1
- data/lib/bundler/cli/install.rb +11 -10
- data/lib/bundler/cli/issue.rb +3 -3
- data/lib/bundler/cli/open.rb +10 -6
- data/lib/bundler/cli/outdated.rb +85 -81
- data/lib/bundler/cli/plugin.rb +9 -2
- data/lib/bundler/cli/pristine.rb +1 -1
- data/lib/bundler/cli/show.rb +1 -1
- data/lib/bundler/cli/update.rb +32 -12
- data/lib/bundler/compact_index_client.rb +25 -9
- data/lib/bundler/compact_index_client/updater.rb +2 -6
- data/lib/bundler/current_ruby.rb +9 -7
- data/lib/bundler/definition.rb +35 -26
- data/lib/bundler/dependency.rb +16 -4
- data/lib/bundler/deployment.rb +1 -1
- data/lib/bundler/dsl.rb +16 -40
- data/lib/bundler/env.rb +8 -13
- data/lib/bundler/environment_preserver.rb +0 -1
- data/lib/bundler/feature_flag.rb +23 -34
- data/lib/bundler/fetcher.rb +16 -13
- data/lib/bundler/fetcher/compact_index.rb +26 -12
- data/lib/bundler/fetcher/dependency.rb +1 -1
- data/lib/bundler/fetcher/downloader.rb +5 -2
- data/lib/bundler/fetcher/index.rb +5 -3
- data/lib/bundler/friendly_errors.rb +6 -7
- data/lib/bundler/gem_helper.rb +40 -25
- data/lib/bundler/gem_helpers.rb +2 -4
- data/lib/bundler/gem_tasks.rb +1 -1
- data/lib/bundler/gem_version_promoter.rb +3 -3
- data/lib/bundler/graph.rb +2 -2
- data/lib/bundler/injector.rb +10 -8
- data/lib/bundler/inline.rb +40 -30
- data/lib/bundler/installer.rb +7 -14
- data/lib/bundler/installer/gem_installer.rb +5 -1
- data/lib/bundler/installer/parallel_installer.rb +4 -8
- data/lib/bundler/installer/standalone.rb +1 -2
- data/lib/bundler/lazy_specification.rb +2 -3
- data/lib/bundler/lockfile_parser.rb +14 -21
- data/lib/bundler/match_platform.rb +1 -1
- data/lib/bundler/mirror.rb +3 -3
- data/lib/bundler/plugin.rb +42 -29
- data/lib/bundler/plugin/api.rb +1 -1
- data/lib/bundler/plugin/api/source.rb +4 -6
- data/lib/bundler/plugin/index.rb +14 -3
- data/lib/bundler/plugin/installer.rb +28 -15
- data/lib/bundler/psyched_yaml.rb +1 -1
- data/lib/bundler/remote_specification.rb +0 -2
- data/lib/bundler/resolver.rb +72 -24
- data/lib/bundler/resolver/spec_group.rb +3 -2
- data/lib/bundler/retry.rb +2 -2
- data/lib/bundler/ruby_version.rb +4 -19
- data/lib/bundler/rubygems_ext.rb +11 -67
- data/lib/bundler/rubygems_gem_installer.rb +1 -1
- data/lib/bundler/rubygems_integration.rb +142 -402
- data/lib/bundler/runtime.rb +2 -9
- data/lib/bundler/settings.rb +22 -51
- data/lib/bundler/setup.rb +7 -13
- data/lib/bundler/shared_helpers.rb +51 -77
- data/lib/bundler/similarity_detector.rb +2 -2
- data/lib/bundler/source.rb +5 -5
- data/lib/bundler/source/git.rb +24 -17
- data/lib/bundler/source/git/git_proxy.rb +38 -41
- data/lib/bundler/source/metadata.rb +9 -5
- data/lib/bundler/source/path.rb +13 -8
- data/lib/bundler/source/rubygems.rb +14 -8
- data/lib/bundler/source/rubygems/remote.rb +2 -3
- data/lib/bundler/source_list.rb +9 -12
- data/lib/bundler/spec_set.rb +23 -12
- data/lib/bundler/stub_specification.rb +18 -30
- data/lib/bundler/templates/Executable.bundler +23 -14
- data/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +3 -3
- data/lib/bundler/templates/newgem/Gemfile.tt +8 -2
- data/lib/bundler/templates/newgem/README.md.tt +4 -3
- data/lib/bundler/templates/newgem/newgem.gemspec.tt +6 -27
- data/lib/bundler/templates/newgem/test/test_helper.rb.tt +1 -1
- data/lib/bundler/templates/newgem/travis.yml.tt +0 -1
- data/lib/bundler/ui.rb +3 -3
- data/lib/bundler/ui/rg_proxy.rb +1 -1
- data/lib/bundler/ui/shell.rb +4 -8
- data/lib/bundler/uri_credentials_filter.rb +7 -3
- data/lib/bundler/vendor/connection_pool/lib/connection_pool.rb +161 -0
- data/lib/bundler/vendor/connection_pool/lib/connection_pool/monotonic_time.rb +66 -0
- data/lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +176 -0
- data/lib/bundler/vendor/connection_pool/lib/connection_pool/version.rb +3 -0
- data/lib/bundler/vendor/fileutils/lib/fileutils.rb +273 -147
- data/lib/bundler/vendor/molinillo/lib/molinillo.rb +6 -6
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +2 -2
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +1 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +1 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +1 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +1 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +6 -6
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +1 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +1 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +30 -8
- data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +1 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +4 -4
- data/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +2 -2
- data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +273 -304
- data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/connection.rb +40 -0
- data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/pool.rb +53 -0
- data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb +79 -0
- data/lib/bundler/vendor/thor/lib/thor.rb +19 -4
- data/lib/bundler/vendor/thor/lib/thor/actions.rb +27 -12
- data/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +1 -1
- data/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +1 -1
- data/lib/bundler/vendor/thor/lib/thor/actions/directory.rb +7 -17
- data/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +16 -7
- data/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +19 -8
- data/lib/bundler/vendor/thor/lib/thor/base.rb +54 -43
- data/lib/bundler/vendor/thor/lib/thor/command.rb +21 -14
- data/lib/bundler/vendor/thor/lib/thor/error.rb +78 -0
- data/lib/bundler/vendor/thor/lib/thor/group.rb +3 -3
- data/lib/bundler/vendor/thor/lib/thor/invocation.rb +1 -0
- data/lib/bundler/vendor/thor/lib/thor/line_editor.rb +2 -2
- data/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +1 -1
- data/lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb +6 -6
- data/lib/bundler/vendor/thor/lib/thor/nested_context.rb +29 -0
- data/lib/bundler/vendor/thor/lib/thor/parser.rb +4 -4
- data/lib/bundler/vendor/thor/lib/thor/parser/arguments.rb +2 -2
- data/lib/bundler/vendor/thor/lib/thor/parser/option.rb +20 -7
- data/lib/bundler/vendor/thor/lib/thor/parser/options.rb +20 -5
- data/lib/bundler/vendor/thor/lib/thor/rake_compat.rb +1 -0
- data/lib/bundler/vendor/thor/lib/thor/runner.rb +15 -14
- data/lib/bundler/vendor/thor/lib/thor/shell.rb +4 -4
- data/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +62 -8
- data/lib/bundler/vendor/thor/lib/thor/shell/color.rb +6 -2
- data/lib/bundler/vendor/thor/lib/thor/shell/html.rb +3 -3
- data/lib/bundler/vendor/thor/lib/thor/util.rb +18 -2
- data/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
- data/lib/bundler/vendor/uri/lib/uri.rb +104 -0
- data/lib/bundler/vendor/uri/lib/uri/common.rb +744 -0
- data/lib/bundler/vendor/uri/lib/uri/file.rb +94 -0
- data/lib/bundler/vendor/uri/lib/uri/ftp.rb +267 -0
- data/lib/bundler/vendor/uri/lib/uri/generic.rb +1568 -0
- data/lib/bundler/vendor/uri/lib/uri/http.rb +88 -0
- data/lib/bundler/vendor/uri/lib/uri/https.rb +23 -0
- data/lib/bundler/vendor/uri/lib/uri/ldap.rb +261 -0
- data/lib/bundler/vendor/uri/lib/uri/ldaps.rb +21 -0
- data/lib/bundler/vendor/uri/lib/uri/mailto.rb +294 -0
- data/lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +546 -0
- data/lib/bundler/vendor/uri/lib/uri/rfc3986_parser.rb +125 -0
- data/lib/bundler/vendor/uri/lib/uri/version.rb +6 -0
- data/lib/bundler/vendored_fileutils.rb +1 -6
- data/lib/bundler/vendored_molinillo.rb +1 -1
- data/lib/bundler/vendored_persistent.rb +7 -5
- data/lib/bundler/vendored_thor.rb +2 -2
- data/lib/bundler/vendored_uri.rb +4 -0
- data/lib/bundler/version.rb +1 -20
- data/lib/bundler/version_ranges.rb +51 -5
- data/lib/bundler/vlad.rb +2 -2
- data/lib/bundler/worker.rb +1 -3
- data/lib/bundler/yaml_serializer.rb +2 -3
- data/man/bundle-add.1 +10 -2
- data/man/bundle-add.1.txt +11 -5
- data/man/bundle-add.ronn +7 -1
- data/man/bundle-binstubs.1 +2 -2
- data/man/bundle-binstubs.1.txt +2 -2
- data/man/bundle-binstubs.ronn +1 -1
- data/man/bundle-cache.1 +55 -0
- data/man/bundle-cache.1.txt +78 -0
- data/man/{bundle-package.ronn → bundle-cache.ronn} +15 -15
- data/man/bundle-check.1 +1 -1
- data/man/bundle-check.1.txt +6 -6
- data/man/bundle-clean.1 +1 -1
- data/man/bundle-clean.1.txt +1 -1
- data/man/bundle-config.1 +36 -36
- data/man/bundle-config.1.txt +66 -67
- data/man/bundle-config.ronn +42 -40
- data/man/bundle-doctor.1 +1 -1
- data/man/bundle-doctor.1.txt +1 -1
- data/man/bundle-exec.1 +2 -2
- data/man/bundle-exec.1.txt +2 -2
- data/man/bundle-exec.ronn +1 -1
- data/man/bundle-gem.1 +1 -1
- data/man/bundle-gem.1.txt +3 -3
- data/man/bundle-info.1 +1 -1
- data/man/bundle-info.1.txt +1 -1
- data/man/bundle-init.1 +2 -2
- data/man/bundle-init.1.txt +2 -2
- data/man/bundle-init.ronn +1 -1
- data/man/bundle-inject.1 +1 -1
- data/man/bundle-inject.1.txt +1 -1
- data/man/bundle-install.1 +8 -5
- data/man/bundle-install.1.txt +56 -51
- data/man/bundle-install.ronn +9 -4
- data/man/bundle-list.1 +1 -1
- data/man/bundle-list.1.txt +1 -1
- data/man/bundle-lock.1 +1 -1
- data/man/bundle-lock.1.txt +16 -16
- data/man/bundle-open.1 +1 -1
- data/man/bundle-open.1.txt +1 -1
- data/man/bundle-outdated.1 +1 -1
- data/man/bundle-outdated.1.txt +1 -1
- data/man/bundle-platform.1 +1 -1
- data/man/bundle-platform.1.txt +1 -1
- data/man/bundle-pristine.1 +1 -1
- data/man/bundle-pristine.1.txt +1 -1
- data/man/bundle-remove.1 +1 -1
- data/man/bundle-remove.1.txt +1 -1
- data/man/bundle-show.1 +1 -1
- data/man/bundle-show.1.txt +1 -1
- data/man/bundle-update.1 +4 -4
- data/man/bundle-update.1.txt +64 -65
- data/man/bundle-update.ronn +3 -3
- data/man/bundle-viz.1 +1 -1
- data/man/bundle-viz.1.txt +1 -1
- data/man/bundle.1 +7 -3
- data/man/bundle.1.txt +11 -8
- data/man/bundle.ronn +5 -2
- data/man/gemfile.5 +17 -20
- data/man/gemfile.5.ronn +14 -18
- data/man/gemfile.5.txt +108 -112
- data/man/index.txt +1 -1
- metadata +34 -110
- data/exe/bundle_ruby +0 -60
- data/lib/bundler/cli/package.rb +0 -49
- data/lib/bundler/compatibility_guard.rb +0 -14
- data/lib/bundler/gem_remote_fetcher.rb +0 -43
- data/lib/bundler/ssl_certs/.document +0 -1
- data/lib/bundler/ssl_certs/certificate_manager.rb +0 -66
- data/lib/bundler/ssl_certs/index.rubygems.org/GlobalSignRootCA.pem +0 -21
- data/lib/bundler/ssl_certs/rubygems.global.ssl.fastly.net/DigiCertHighAssuranceEVRootCA.pem +0 -23
- data/lib/bundler/ssl_certs/rubygems.org/AddTrustExternalCARoot.pem +0 -25
- data/lib/bundler/vendor/net-http-persistent/lib/net/http/faster.rb +0 -27
- data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/ssl_reuse.rb +0 -129
- data/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb +0 -12
- data/lib/bundler/vendor/thor/lib/thor/core_ext/ordered_hash.rb +0 -129
- data/man/bundle-package.1 +0 -55
- data/man/bundle-package.1.txt +0 -79
data/man/bundle-config.1.txt
CHANGED
@@ -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
|
28
|
-
|
29
|
-
|
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
|
32
|
-
|
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
|
35
|
-
the value specified for all bundles executed as
|
36
|
-
configuration will
|
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
|
39
|
+
Executing bundle config set --global <name> <value> works the same as
|
40
40
|
above.
|
41
41
|
|
42
|
-
Executing
|
43
|
-
|
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
|
47
|
-
|
48
|
-
|
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
|
54
|
-
about the Gemfile containing multiple primary sources to an
|
55
|
-
|
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
|
60
|
-
foo
|
61
|
-
|
62
|
-
|
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/
|
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.
|
214
|
+
warnings. Use bundle config unset disable_multisource to unset.
|
207
215
|
|
208
|
-
o disable_platform_warnings
|
209
|
-
able
|
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
|
216
|
-
from
|
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
|
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
|
257
|
+
o jobs (BUNDLE_JOBS): The number of gems Bundler can install in par-
|
258
258
|
allel. Defaults to 1.
|
259
259
|
|
260
|
-
o
|
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
|
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
|
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
|
279
|
-
install.
|
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
|
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 (
|
286
|
-
to the CWD instead of the Gemfile.
|
279
|
+
o path_relative_to_cwd (BUNDLE_PATH_RELATIVE_TO_CWD) Makes --path
|
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
|
292
|
-
|
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
|
-
December
|
528
|
+
December 2019 BUNDLE-CONFIG(1)
|
data/man/bundle-config.ronn
CHANGED
@@ -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
|
20
|
-
|
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
|
37
|
-
local and global sources.
|
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
|
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
|
-
|
50
|
-
|
51
|
-
|
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/
|
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
|
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`):
|
@@ -227,12 +226,12 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
|
|
227
226
|
is used, defaults to vendor/bundle.
|
228
227
|
* `path.system` (`BUNDLE_PATH__SYSTEM`):
|
229
228
|
Whether Bundler will install gems into the default system path (`Gem.dir`).
|
230
|
-
* `path_relative_to_cwd` (`
|
229
|
+
* `path_relative_to_cwd` (`BUNDLE_PATH_RELATIVE_TO_CWD`)
|
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
|
-
* `
|
235
|
-
Prefer
|
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
|
|