bundler 2.0.0 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bundler might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +778 -572
- 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 +5 -5
- data/lib/bundler/cli.rb +182 -144
- 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 +2 -2
- data/lib/bundler/cli/doctor.rb +4 -4
- data/lib/bundler/cli/exec.rb +4 -16
- 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 +12 -11
- 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 +31 -11
- 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 +8 -7
- data/lib/bundler/definition.rb +36 -27
- data/lib/bundler/dependency.rb +16 -4
- data/lib/bundler/deployment.rb +2 -2
- data/lib/bundler/dsl.rb +19 -43
- data/lib/bundler/env.rb +8 -13
- data/lib/bundler/environment_preserver.rb +0 -1
- data/lib/bundler/feature_flag.rb +2 -14
- 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 +148 -398
- data/lib/bundler/runtime.rb +2 -9
- data/lib/bundler/settings.rb +22 -52
- data/lib/bundler/setup.rb +11 -12
- 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 +7 -2
- 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 +1 -6
- 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 -0
- 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 +3 -3
- 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 +3 -3
- data/man/bundle.1.txt +8 -8
- data/man/bundle.ronn +2 -2
- data/man/gemfile.5 +13 -16
- data/man/gemfile.5.ronn +10 -14
- data/man/gemfile.5.txt +104 -108
- data/man/index.txt +1 -1
- metadata +33 -108
- 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-list.1
CHANGED
data/man/bundle-list.1.txt
CHANGED
data/man/bundle-lock.1
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "BUNDLE\-LOCK" "1" "December
|
4
|
+
.TH "BUNDLE\-LOCK" "1" "December 2019" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBbundle\-lock\fR \- Creates / Updates a lockfile without installing
|
data/man/bundle-lock.1.txt
CHANGED
@@ -16,16 +16,16 @@ DESCRIPTION
|
|
16
16
|
OPTIONS
|
17
17
|
--update=<*gems>
|
18
18
|
Ignores the existing lockfile. Resolve then updates lockfile.
|
19
|
-
Taking a list of gems or updating all gems if no list is
|
19
|
+
Taking a list of gems or updating all gems if no list is given.
|
20
20
|
|
21
21
|
--local
|
22
22
|
Do not attempt to connect to rubygems.org. Instead, Bundler will
|
23
|
-
use
|
24
|
-
dor/cache.
|
23
|
+
use the gems already present in Rubygems' cache or in ven-
|
24
|
+
dor/cache. Note that if a appropriate platform-specific gem
|
25
25
|
exists on rubygems.org it will not be found.
|
26
26
|
|
27
27
|
--print
|
28
|
-
Prints
|
28
|
+
Prints the lockfile to STDOUT instead of writing to the file
|
29
29
|
system.
|
30
30
|
|
31
31
|
--lockfile=<path>
|
@@ -35,7 +35,7 @@ OPTIONS
|
|
35
35
|
Fall back to using the single-file index of all gems.
|
36
36
|
|
37
37
|
--add-platform
|
38
|
-
Add
|
38
|
+
Add a new platform to the lockfile, re-resolving for the addi-
|
39
39
|
tion of that platform.
|
40
40
|
|
41
41
|
--remove-platform
|
@@ -51,7 +51,7 @@ OPTIONS
|
|
51
51
|
If updating, prefer updating to next major version (default).
|
52
52
|
|
53
53
|
--strict
|
54
|
-
If
|
54
|
+
If updating, do not allow any gem to be updated past latest
|
55
55
|
--patch | --minor | --major.
|
56
56
|
|
57
57
|
--conservative
|
@@ -59,28 +59,28 @@ OPTIONS
|
|
59
59
|
do not allow shared dependencies to be updated.
|
60
60
|
|
61
61
|
UPDATING ALL GEMS
|
62
|
-
If
|
63
|
-
bundler
|
64
|
-
dependencies
|
62
|
+
If you run bundle lock with --update option without list of gems,
|
63
|
+
bundler will ignore any previously installed gems and resolve all
|
64
|
+
dependencies again based on the latest versions of all gems available
|
65
65
|
in the sources.
|
66
66
|
|
67
67
|
UPDATING A LIST OF GEMS
|
68
68
|
Sometimes, you want to update a single gem in the Gemfile(5), and leave
|
69
|
-
the
|
69
|
+
the rest of the gems that you specified locked to the versions in the
|
70
70
|
Gemfile.lock.
|
71
71
|
|
72
|
-
For
|
72
|
+
For instance, you only want to update nokogiri, run bundle lock
|
73
73
|
--update nokogiri.
|
74
74
|
|
75
75
|
Bundler will update nokogiri and any of its dependencies, but leave the
|
76
|
-
rest
|
76
|
+
rest of the gems that you specified locked to the versions in the Gem-
|
77
77
|
file.lock.
|
78
78
|
|
79
79
|
SUPPORTING OTHER PLATFORMS
|
80
|
-
If
|
80
|
+
If you want your bundle to support platforms other than the one you're
|
81
81
|
running locally, you can run bundle lock --add-platform PLATFORM to add
|
82
|
-
PLATFORM
|
83
|
-
new
|
82
|
+
PLATFORM to the lockfile, force bundler to re-resolve and consider the
|
83
|
+
new platform when picking gems, all without needing to have a machine
|
84
84
|
that matches PLATFORM handy to install those platform-specific gems on.
|
85
85
|
|
86
86
|
For a full explanation of gem platforms, see gem help platform.
|
@@ -90,4 +90,4 @@ PATCH LEVEL OPTIONS
|
|
90
90
|
|
91
91
|
|
92
92
|
|
93
|
-
December
|
93
|
+
December 2019 BUNDLE-LOCK(1)
|
data/man/bundle-open.1
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "BUNDLE\-OPEN" "1" "December
|
4
|
+
.TH "BUNDLE\-OPEN" "1" "December 2019" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBbundle\-open\fR \- Opens the source directory for a gem in your bundle
|
data/man/bundle-open.1.txt
CHANGED
data/man/bundle-outdated.1
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "BUNDLE\-OUTDATED" "1" "December
|
4
|
+
.TH "BUNDLE\-OUTDATED" "1" "December 2019" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBbundle\-outdated\fR \- List installed gems with newer versions available
|
data/man/bundle-outdated.1.txt
CHANGED
data/man/bundle-platform.1
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "BUNDLE\-PLATFORM" "1" "December
|
4
|
+
.TH "BUNDLE\-PLATFORM" "1" "December 2019" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBbundle\-platform\fR \- Displays platform compatibility information
|
data/man/bundle-platform.1.txt
CHANGED
data/man/bundle-pristine.1
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "BUNDLE\-PRISTINE" "1" "December
|
4
|
+
.TH "BUNDLE\-PRISTINE" "1" "December 2019" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBbundle\-pristine\fR \- Restores installed gems to their pristine condition
|
data/man/bundle-pristine.1.txt
CHANGED
data/man/bundle-remove.1
CHANGED
data/man/bundle-remove.1.txt
CHANGED
data/man/bundle-show.1
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "BUNDLE\-SHOW" "1" "December
|
4
|
+
.TH "BUNDLE\-SHOW" "1" "December 2019" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBbundle\-show\fR \- Shows all the gems in your bundle, or the path to a gem
|
data/man/bundle-show.1.txt
CHANGED
data/man/bundle-update.1
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "BUNDLE\-UPDATE" "1" "
|
4
|
+
.TH "BUNDLE\-UPDATE" "1" "December 2019" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBbundle\-update\fR \- Update your gems to the latest available versions
|
8
8
|
.
|
9
9
|
.SH "SYNOPSIS"
|
10
|
-
\fBbundle update\fR \fI*gems\fR [\-\-all] [\-\-group=NAME] [\-\-source=NAME] [\-\-local] [\-\-ruby] [\-\-bundler[=VERSION]] [\-\-full\-index] [\-\-jobs=JOBS] [\-\-quiet] [\-\-
|
10
|
+
\fBbundle update\fR \fI*gems\fR [\-\-all] [\-\-group=NAME] [\-\-source=NAME] [\-\-local] [\-\-ruby] [\-\-bundler[=VERSION]] [\-\-full\-index] [\-\-jobs=JOBS] [\-\-quiet] [\-\-patch|\-\-minor|\-\-major] [\-\-redownload] [\-\-strict] [\-\-conservative]
|
11
11
|
.
|
12
12
|
.SH "DESCRIPTION"
|
13
13
|
Update the gems specified (all gems, if \fB\-\-all\fR flag is used), ignoring the previously installed gems specified in the \fBGemfile\.lock\fR\. In general, you should use bundle install(1) \fIbundle\-install\.1\.html\fR to install the same exact gems and versions across machines\.
|
@@ -58,8 +58,8 @@ Retry failed network or git requests for \fInumber\fR times\.
|
|
58
58
|
Only output warnings and errors\.
|
59
59
|
.
|
60
60
|
.TP
|
61
|
-
\fB\-\-
|
62
|
-
Force downloading every gem\.
|
61
|
+
\fB\-\-redownload\fR
|
62
|
+
Force downloading every gem\.
|
63
63
|
.
|
64
64
|
.TP
|
65
65
|
\fB\-\-patch\fR
|
data/man/bundle-update.1.txt
CHANGED
@@ -8,7 +8,7 @@ NAME
|
|
8
8
|
SYNOPSIS
|
9
9
|
bundle update *gems [--all] [--group=NAME] [--source=NAME] [--local]
|
10
10
|
[--ruby] [--bundler[=VERSION]] [--full-index] [--jobs=JOBS] [--quiet]
|
11
|
-
[--
|
11
|
+
[--patch|--minor|--major] [--redownload] [--strict] [--conservative]
|
12
12
|
|
13
13
|
DESCRIPTION
|
14
14
|
Update the gems specified (all gems, if --all flag is used), ignoring
|
@@ -16,29 +16,29 @@ DESCRIPTION
|
|
16
16
|
eral, you should use bundle install(1) bundle-install.1.html to install
|
17
17
|
the same exact gems and versions across machines.
|
18
18
|
|
19
|
-
You would use bundle update to explicitly update the version of a
|
19
|
+
You would use bundle update to explicitly update the version of a gem.
|
20
20
|
|
21
21
|
OPTIONS
|
22
22
|
--all Update all gems specified in Gemfile.
|
23
23
|
|
24
24
|
--group=<name>, -g=[<name>]
|
25
|
-
Only
|
26
|
-
can
|
27
|
-
--group
|
28
|
-
--group
|
25
|
+
Only update the gems in the specified group. For instance, you
|
26
|
+
can update all gems in the development group with bundle update
|
27
|
+
--group development. You can also call bundle update rails
|
28
|
+
--group test to update the rails gem and all gems in the test
|
29
29
|
group, for example.
|
30
30
|
|
31
31
|
--source=<name>
|
32
|
-
The
|
33
|
-
instance,
|
34
|
-
http://github.com/rails/rails.git,
|
32
|
+
The name of a :git or :path source used in the Gemfile(5). For
|
33
|
+
instance, with a :git source of
|
34
|
+
http://github.com/rails/rails.git, you would call bundle update
|
35
35
|
--source rails
|
36
36
|
|
37
37
|
--local
|
38
|
-
Do
|
38
|
+
Do not attempt to fetch gems remotely and use the gem cache
|
39
39
|
instead.
|
40
40
|
|
41
|
-
--ruby Update
|
41
|
+
--ruby Update the locked version of Ruby to the current version of
|
42
42
|
Ruby.
|
43
43
|
|
44
44
|
--bundler
|
@@ -57,9 +57,8 @@ OPTIONS
|
|
57
57
|
--quiet
|
58
58
|
Only output warnings and errors.
|
59
59
|
|
60
|
-
--
|
61
|
-
Force downloading every gem.
|
62
|
-
option.
|
60
|
+
--redownload
|
61
|
+
Force downloading every gem.
|
63
62
|
|
64
63
|
--patch
|
65
64
|
Prefer updating only to next patch version.
|
@@ -79,8 +78,8 @@ OPTIONS
|
|
79
78
|
shared dependencies to be updated.
|
80
79
|
|
81
80
|
UPDATING ALL GEMS
|
82
|
-
If
|
83
|
-
installed
|
81
|
+
If you run bundle update --all, bundler will ignore any previously
|
82
|
+
installed gems and resolve all dependencies again based on the latest
|
84
83
|
versions of all gems available in the sources.
|
85
84
|
|
86
85
|
Consider the following Gemfile(5):
|
@@ -94,8 +93,8 @@ UPDATING ALL GEMS
|
|
94
93
|
|
95
94
|
|
96
95
|
|
97
|
-
When
|
98
|
-
bundler
|
96
|
+
When you run bundle install(1) bundle-install.1.html the first time,
|
97
|
+
bundler will resolve all of the dependencies, all the way down, and
|
99
98
|
install what you need:
|
100
99
|
|
101
100
|
|
@@ -134,43 +133,43 @@ UPDATING ALL GEMS
|
|
134
133
|
|
135
134
|
|
136
135
|
|
137
|
-
As
|
138
|
-
application
|
139
|
-
the
|
140
|
-
bundle
|
136
|
+
As you can see, even though you have two gems in the Gemfile(5), your
|
137
|
+
application needs 26 different gems in order to run. Bundler remembers
|
138
|
+
the exact versions it installed in Gemfile.lock. The next time you run
|
139
|
+
bundle install(1) bundle-install.1.html, bundler skips the dependency
|
141
140
|
resolution and installs the same gems as it installed last time.
|
142
141
|
|
143
|
-
After
|
144
|
-
on
|
145
|
-
will
|
142
|
+
After checking in the Gemfile.lock into version control and cloning it
|
143
|
+
on another machine, running bundle install(1) bundle-install.1.html
|
144
|
+
will still install the gems that you installed last time. You don't
|
146
145
|
need to worry that a new release of erubis or mail changes the gems you
|
147
146
|
use.
|
148
147
|
|
149
|
-
However,
|
150
|
-
using
|
148
|
+
However, from time to time, you might want to update the gems you are
|
149
|
+
using to the newest versions that still match the gems in your Gem-
|
151
150
|
file(5).
|
152
151
|
|
153
|
-
To
|
154
|
-
file.lock,
|
155
|
-
this
|
156
|
-
gems,
|
152
|
+
To do this, run bundle update --all, which will ignore the Gem-
|
153
|
+
file.lock, and resolve all the dependencies again. Keep in mind that
|
154
|
+
this process can result in a significantly different set of the 25
|
155
|
+
gems, based on the requirements of new gems that the gem authors
|
157
156
|
released since the last time you ran bundle update --all.
|
158
157
|
|
159
158
|
UPDATING A LIST OF GEMS
|
160
159
|
Sometimes, you want to update a single gem in the Gemfile(5), and leave
|
161
|
-
the
|
160
|
+
the rest of the gems that you specified locked to the versions in the
|
162
161
|
Gemfile.lock.
|
163
162
|
|
164
|
-
For
|
163
|
+
For instance, in the scenario above, imagine that nokogiri releases
|
165
164
|
version 1.4.4, and you want to update it without updating Rails and all
|
166
165
|
of its dependencies. To do this, run bundle update nokogiri.
|
167
166
|
|
168
|
-
Bundler
|
167
|
+
Bundler will update nokogiri and any of its dependencies, but leave
|
169
168
|
alone Rails and its dependencies.
|
170
169
|
|
171
170
|
OVERLAPPING DEPENDENCIES
|
172
|
-
Sometimes,
|
173
|
-
the
|
171
|
+
Sometimes, multiple gems declared in your Gemfile(5) are satisfied by
|
172
|
+
the same second-level dependency. For instance, consider the case of
|
174
173
|
thin and rack-perftools-profiler.
|
175
174
|
|
176
175
|
|
@@ -182,7 +181,7 @@ OVERLAPPING DEPENDENCIES
|
|
182
181
|
|
183
182
|
|
184
183
|
|
185
|
-
The
|
184
|
+
The thin gem depends on rack >= 1.0, while rack-perftools-profiler
|
186
185
|
depends on rack ~> 1.0. If you run bundle install, you get:
|
187
186
|
|
188
187
|
|
@@ -200,14 +199,14 @@ OVERLAPPING DEPENDENCIES
|
|
200
199
|
|
201
200
|
|
202
201
|
In this case, the two gems have their own set of dependencies, but they
|
203
|
-
share
|
204
|
-
update
|
205
|
-
but
|
206
|
-
rack-perftools_profiler.
|
202
|
+
share rack in common. If you run bundle update thin, bundler will
|
203
|
+
update daemons, eventmachine and rack, which are dependencies of thin,
|
204
|
+
but not open4 or perftools.rb, which are dependencies of
|
205
|
+
rack-perftools_profiler. Note that bundle update thin will update rack
|
207
206
|
even though it's also a dependency of rack-perftools_profiler.
|
208
207
|
|
209
|
-
In
|
210
|
-
bundler
|
208
|
+
In short, by default, when you update a gem using bundle update,
|
209
|
+
bundler will update all dependencies of that gem, including those that
|
211
210
|
are also dependencies of another gem.
|
212
211
|
|
213
212
|
To prevent updating shared dependencies, prior to version 1.14 the only
|
@@ -215,8 +214,8 @@ OVERLAPPING DEPENDENCIES
|
|
215
214
|
dle-install.1.html:
|
216
215
|
|
217
216
|
In this scenario, updating the thin version manually in the Gemfile(5),
|
218
|
-
and
|
219
|
-
update
|
217
|
+
and then running bundle install(1) bundle-install.1.html will only
|
218
|
+
update daemons and eventmachine, but not rack. For more information,
|
220
219
|
see the CONSERVATIVE UPDATING section of bundle install(1) bun-
|
221
220
|
dle-install.1.html.
|
222
221
|
|
@@ -224,8 +223,8 @@ OVERLAPPING DEPENDENCIES
|
|
224
223
|
vent shared dependencies from being updated.
|
225
224
|
|
226
225
|
PATCH LEVEL OPTIONS
|
227
|
-
Version
|
228
|
-
gem
|
226
|
+
Version 1.14 introduced 4 patch-level options that will influence how
|
227
|
+
gem versions are resolved. One of the following options can be used:
|
229
228
|
--patch, --minor or --major. --strict can be added to further influence
|
230
229
|
resolution.
|
231
230
|
|
@@ -242,41 +241,41 @@ PATCH LEVEL OPTIONS
|
|
242
241
|
Do not allow any gem to be updated past latest --patch | --minor
|
243
242
|
| --major.
|
244
243
|
|
245
|
-
When
|
246
|
-
requirements
|
244
|
+
When Bundler is resolving what versions to use to satisfy declared
|
245
|
+
requirements in the Gemfile or in parent gems, it looks up all avail-
|
247
246
|
able versions, filters out any versions that don't satisfy the require-
|
248
247
|
ment, and then, by default, sorts them from newest to oldest, consider-
|
249
248
|
ing them in that order.
|
250
249
|
|
251
|
-
Providing
|
252
|
-
sort
|
250
|
+
Providing one of the patch level options (e.g. --patch) changes the
|
251
|
+
sort order of the satisfying versions, causing Bundler to consider the
|
253
252
|
latest --patch or --minor version available before other versions. Note
|
254
253
|
that versions outside the stated patch level could still be resolved to
|
255
254
|
if necessary to find a suitable dependency graph.
|
256
255
|
|
257
|
-
For
|
258
|
-
defined
|
256
|
+
For example, if gem 'foo' is locked at 1.0.2, with no gem requirement
|
257
|
+
defined in the Gemfile, and versions 1.0.3, 1.0.4, 1.1.0, 1.1.1, 2.0.0
|
259
258
|
all exist, the default order of preference by default (--major) will be
|
260
259
|
"2.0.0, 1.1.1, 1.1.0, 1.0.4, 1.0.3, 1.0.2".
|
261
260
|
|
262
|
-
If
|
261
|
+
If the --patch option is used, the order of preference will change to
|
263
262
|
"1.0.4, 1.0.3, 1.0.2, 1.1.1, 1.1.0, 2.0.0".
|
264
263
|
|
265
|
-
If
|
264
|
+
If the --minor option is used, the order of preference will change to
|
266
265
|
"1.1.1, 1.1.0, 1.0.4, 1.0.3, 1.0.2, 2.0.0".
|
267
266
|
|
268
|
-
Combining
|
269
|
-
remove
|
267
|
+
Combining the --strict option with any of the patch level options will
|
268
|
+
remove any versions beyond the scope of the patch level option, to
|
270
269
|
ensure that no gem is updated that far.
|
271
270
|
|
272
|
-
To
|
271
|
+
To continue the previous example, if both --patch and --strict options
|
273
272
|
are used, the available versions for resolution would be "1.0.4, 1.0.3,
|
274
|
-
1.0.2".
|
273
|
+
1.0.2". If --minor and --strict are used, it would be "1.1.1, 1.1.0,
|
275
274
|
1.0.4, 1.0.3, 1.0.2".
|
276
275
|
|
277
|
-
Gem
|
276
|
+
Gem requirements as defined in the Gemfile will still be the first
|
278
277
|
determining factor for what versions are available. If the gem require-
|
279
|
-
ment
|
278
|
+
ment for foo in the Gemfile is '~> 1.0', that will accomplish the same
|
280
279
|
thing as providing the --minor and --strict options.
|
281
280
|
|
282
281
|
PATCH LEVEL EXAMPLES
|
@@ -325,11 +324,11 @@ PATCH LEVEL EXAMPLES
|
|
325
324
|
|
326
325
|
|
327
326
|
|
328
|
-
In
|
327
|
+
In case 1, bar is upgraded to 2.1.1, a minor version increase, because
|
329
328
|
the dependency from foo 1.4.5 required it.
|
330
329
|
|
331
|
-
In
|
332
|
-
allowed to move because it's not a declared dependency in the
|
330
|
+
In case 2, only foo is requested to be unlocked, but bar is also
|
331
|
+
allowed to move because it's not a declared dependency in the Gemfile.
|
333
332
|
|
334
333
|
In case 3, bar goes up a whole major release, because a minor increase
|
335
334
|
is preferred now for foo, and when it goes to 1.5.1, it requires 3.0.0
|
@@ -388,4 +387,4 @@ RECOMMENDED WORKFLOW
|
|
388
387
|
|
389
388
|
|
390
389
|
|
391
|
-
|
390
|
+
December 2019 BUNDLE-UPDATE(1)
|