bundler 1.15.1 → 1.17.3
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 +5 -5
- data/CHANGELOG.md +320 -0
- data/README.md +17 -8
- data/bundler.gemspec +25 -9
- data/exe/bundle +1 -6
- data/exe/bundle_ruby +4 -3
- data/lib/bundler/build_metadata.rb +53 -0
- data/lib/bundler/capistrano.rb +5 -0
- data/lib/bundler/cli/add.rb +15 -6
- data/lib/bundler/cli/binstubs.rb +17 -9
- data/lib/bundler/cli/cache.rb +5 -4
- data/lib/bundler/cli/check.rb +3 -5
- data/lib/bundler/cli/clean.rb +5 -6
- data/lib/bundler/cli/common.rb +11 -2
- data/lib/bundler/cli/config.rb +2 -1
- data/lib/bundler/cli/console.rb +2 -1
- data/lib/bundler/cli/doctor.rb +48 -1
- data/lib/bundler/cli/exec.rb +6 -5
- data/lib/bundler/cli/gem.rb +13 -8
- data/lib/bundler/cli/info.rb +0 -1
- data/lib/bundler/cli/init.rb +18 -6
- data/lib/bundler/cli/inject.rb +1 -0
- data/lib/bundler/cli/install.rb +64 -77
- data/lib/bundler/cli/issue.rb +1 -1
- data/lib/bundler/cli/list.rb +58 -0
- data/lib/bundler/cli/lock.rb +0 -1
- data/lib/bundler/cli/open.rb +2 -2
- data/lib/bundler/cli/outdated.rb +20 -9
- data/lib/bundler/cli/package.rb +9 -6
- data/lib/bundler/cli/platform.rb +1 -0
- data/lib/bundler/cli/plugin.rb +1 -0
- data/lib/bundler/cli/pristine.rb +20 -6
- data/lib/bundler/cli/remove.rb +18 -0
- data/lib/bundler/cli/show.rb +0 -1
- data/lib/bundler/cli/update.rb +35 -7
- data/lib/bundler/cli/viz.rb +4 -0
- data/lib/bundler/cli.rb +234 -90
- data/lib/bundler/compact_index_client/cache.rb +1 -2
- data/lib/bundler/compact_index_client/updater.rb +35 -7
- data/lib/bundler/compact_index_client.rb +1 -0
- data/lib/bundler/compatibility_guard.rb +14 -0
- data/lib/bundler/constants.rb +1 -0
- data/lib/bundler/current_ruby.rb +13 -5
- data/lib/bundler/definition.rb +192 -139
- data/lib/bundler/dep_proxy.rb +3 -1
- data/lib/bundler/dependency.rb +9 -9
- data/lib/bundler/deployment.rb +1 -1
- data/lib/bundler/deprecate.rb +15 -3
- data/lib/bundler/dsl.rb +115 -64
- data/lib/bundler/endpoint_specification.rb +10 -1
- data/lib/bundler/env.rb +90 -29
- data/lib/bundler/environment_preserver.rb +27 -6
- data/lib/bundler/errors.rb +1 -0
- data/lib/bundler/feature_flag.rb +46 -4
- data/lib/bundler/fetcher/base.rb +1 -0
- data/lib/bundler/fetcher/compact_index.rb +2 -11
- data/lib/bundler/fetcher/dependency.rb +2 -1
- data/lib/bundler/fetcher/downloader.rb +11 -5
- data/lib/bundler/fetcher/index.rb +3 -2
- data/lib/bundler/fetcher.rb +18 -11
- data/lib/bundler/friendly_errors.rb +6 -1
- data/lib/bundler/gem_helper.rb +19 -10
- data/lib/bundler/gem_helpers.rb +1 -0
- data/lib/bundler/gem_remote_fetcher.rb +1 -0
- data/lib/bundler/gem_tasks.rb +1 -0
- data/lib/bundler/gem_version_promoter.rb +17 -2
- data/lib/bundler/gemdeps.rb +1 -0
- data/lib/bundler/graph.rb +1 -0
- data/lib/bundler/index.rb +8 -8
- data/lib/bundler/injector.rb +192 -30
- data/lib/bundler/inline.rb +10 -10
- data/lib/bundler/installer/gem_installer.rb +12 -2
- data/lib/bundler/installer/parallel_installer.rb +78 -42
- data/lib/bundler/installer/standalone.rb +1 -0
- data/lib/bundler/installer.rb +138 -53
- data/lib/bundler/lazy_specification.rb +3 -2
- data/lib/bundler/lockfile_generator.rb +95 -0
- data/lib/bundler/lockfile_parser.rb +10 -4
- data/lib/bundler/match_platform.rb +1 -0
- data/lib/bundler/mirror.rb +8 -5
- data/lib/bundler/plugin/api/source.rb +9 -2
- data/lib/bundler/plugin/events.rb +61 -0
- data/lib/bundler/plugin/index.rb +7 -2
- data/lib/bundler/plugin/installer.rb +7 -6
- data/lib/bundler/plugin/source_list.rb +7 -8
- data/lib/bundler/plugin.rb +13 -5
- data/lib/bundler/process_lock.rb +24 -0
- data/lib/bundler/psyched_yaml.rb +10 -0
- data/lib/bundler/remote_specification.rb +10 -1
- data/lib/bundler/resolver/spec_group.rb +106 -0
- data/lib/bundler/resolver.rb +158 -195
- data/lib/bundler/retry.rb +1 -0
- data/lib/bundler/ruby_dsl.rb +1 -0
- data/lib/bundler/ruby_version.rb +2 -1
- data/lib/bundler/rubygems_ext.rb +5 -4
- data/lib/bundler/rubygems_gem_installer.rb +31 -1
- data/lib/bundler/rubygems_integration.rb +71 -32
- data/lib/bundler/runtime.rb +11 -9
- data/lib/bundler/settings/validator.rb +102 -0
- data/lib/bundler/settings.rb +213 -86
- data/lib/bundler/setup.rb +4 -7
- data/lib/bundler/shared_helpers.rb +131 -26
- data/lib/bundler/similarity_detector.rb +1 -0
- data/lib/bundler/source/gemspec.rb +1 -0
- data/lib/bundler/source/git/git_proxy.rb +21 -11
- data/lib/bundler/source/git.rb +24 -19
- data/lib/bundler/source/metadata.rb +62 -0
- data/lib/bundler/source/path/installer.rb +2 -0
- data/lib/bundler/source/path.rb +11 -7
- data/lib/bundler/source/rubygems/remote.rb +8 -2
- data/lib/bundler/source/rubygems.rb +161 -84
- data/lib/bundler/source.rb +36 -0
- data/lib/bundler/source_list.rb +75 -15
- data/lib/bundler/spec_set.rb +12 -6
- data/lib/bundler/ssl_certs/certificate_manager.rb +2 -1
- data/lib/bundler/stub_specification.rb +1 -0
- data/lib/bundler/templates/.document +1 -0
- data/lib/bundler/templates/Executable +12 -0
- data/lib/bundler/templates/Executable.bundler +105 -0
- data/lib/bundler/templates/Gemfile +3 -0
- data/lib/bundler/templates/gems.rb +8 -0
- data/lib/bundler/templates/newgem/Gemfile.tt +2 -0
- data/lib/bundler/templates/newgem/README.md.tt +1 -1
- data/lib/bundler/templates/newgem/gitignore.tt +0 -1
- data/lib/bundler/templates/newgem/lib/newgem.rb.tt +1 -0
- data/lib/bundler/templates/newgem/newgem.gemspec.tt +12 -3
- data/lib/bundler/templates/newgem/rspec.tt +1 -0
- data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +0 -2
- data/lib/bundler/templates/newgem/{.travis.yml.tt → travis.yml.tt} +2 -0
- data/lib/bundler/ui/rg_proxy.rb +1 -0
- data/lib/bundler/ui/shell.rb +17 -4
- data/lib/bundler/ui/silent.rb +1 -0
- data/lib/bundler/ui.rb +1 -0
- data/lib/bundler/uri_credentials_filter.rb +1 -0
- data/lib/bundler/vendor/fileutils/lib/fileutils.rb +1638 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb +26 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +7 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +15 -4
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +3 -2
- data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +75 -7
- data/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +2 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +3 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +491 -148
- data/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +8 -4
- data/lib/bundler/vendor/molinillo/lib/molinillo.rb +2 -0
- data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +3 -1
- data/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +1 -0
- data/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +1 -0
- data/lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +9 -1
- data/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +45 -8
- data/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +9 -3
- data/lib/bundler/vendor/thor/lib/thor/actions.rb +6 -3
- data/lib/bundler/vendor/thor/lib/thor/base.rb +27 -4
- data/lib/bundler/vendor/thor/lib/thor/command.rb +9 -7
- data/lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +12 -0
- data/lib/bundler/vendor/thor/lib/thor/group.rb +1 -1
- data/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +2 -0
- data/lib/bundler/vendor/thor/lib/thor/parser/option.rb +5 -5
- data/lib/bundler/vendor/thor/lib/thor/parser/options.rb +6 -5
- data/lib/bundler/vendor/thor/lib/thor/runner.rb +6 -4
- data/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +10 -9
- data/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
- data/lib/bundler/vendor/thor/lib/thor.rb +25 -8
- data/lib/bundler/vendored_fileutils.rb +9 -0
- data/lib/bundler/vendored_molinillo.rb +1 -0
- data/lib/bundler/vendored_persistent.rb +35 -0
- data/lib/bundler/vendored_thor.rb +1 -0
- data/lib/bundler/version.rb +6 -2
- data/lib/bundler/version_ranges.rb +1 -0
- data/lib/bundler/vlad.rb +5 -0
- data/lib/bundler/worker.rb +1 -0
- data/lib/bundler/yaml_serializer.rb +3 -3
- data/lib/bundler.rb +86 -52
- data/man/bundle-add.1 +18 -3
- data/man/bundle-add.1.txt +26 -14
- data/man/bundle-add.ronn +13 -2
- data/man/bundle-binstubs.1 +11 -1
- data/man/bundle-binstubs.1.txt +33 -18
- data/man/bundle-binstubs.ronn +15 -1
- data/man/bundle-check.1 +4 -4
- data/man/bundle-check.1.txt +15 -14
- data/man/bundle-check.ronn +3 -3
- data/man/bundle-clean.1 +1 -1
- data/man/bundle-clean.1.txt +10 -10
- data/man/bundle-config.1 +129 -29
- data/man/bundle-config.1.txt +285 -174
- data/man/bundle-config.ronn +167 -88
- data/man/bundle-doctor.1 +44 -0
- data/man/bundle-doctor.1.txt +44 -0
- data/man/bundle-doctor.ronn +33 -0
- data/man/bundle-exec.1 +6 -3
- data/man/bundle-exec.1.txt +78 -71
- data/man/bundle-exec.ronn +10 -3
- data/man/bundle-gem.1 +4 -4
- data/man/bundle-gem.1.txt +41 -40
- data/man/bundle-gem.ronn +3 -2
- data/man/bundle-info.1 +1 -1
- data/man/bundle-info.1.txt +8 -8
- data/man/bundle-init.1 +9 -4
- data/man/bundle-init.1.txt +23 -13
- data/man/bundle-init.ronn +15 -4
- data/man/bundle-inject.1 +4 -4
- data/man/bundle-inject.1.txt +10 -10
- data/man/bundle-inject.ronn +3 -3
- data/man/bundle-install.1 +31 -28
- data/man/bundle-install.1.txt +205 -194
- data/man/bundle-install.ronn +44 -35
- data/man/bundle-list.1 +50 -0
- data/man/bundle-list.1.txt +43 -0
- data/man/bundle-list.ronn +33 -0
- data/man/bundle-lock.1 +1 -1
- data/man/bundle-lock.1.txt +47 -47
- data/man/bundle-lock.ronn +1 -1
- data/man/bundle-open.1 +1 -1
- data/man/bundle-open.1.txt +7 -7
- data/man/bundle-outdated.1 +7 -3
- data/man/bundle-outdated.1.txt +40 -36
- data/man/bundle-outdated.ronn +6 -2
- data/man/bundle-package.1 +6 -3
- data/man/bundle-package.1.txt +44 -39
- data/man/bundle-package.ronn +7 -2
- data/man/bundle-platform.1 +1 -1
- data/man/bundle-platform.1.txt +13 -13
- data/man/bundle-pristine.1 +21 -3
- data/man/bundle-pristine.1.txt +33 -10
- data/man/bundle-pristine.ronn +24 -3
- data/man/bundle-remove.1 +31 -0
- data/man/bundle-remove.1.txt +34 -0
- data/man/bundle-remove.ronn +23 -0
- data/man/bundle-show.1 +3 -3
- data/man/bundle-show.1.txt +14 -12
- data/man/bundle-show.ronn +3 -2
- data/man/bundle-update.1 +13 -9
- data/man/bundle-update.1.txt +133 -130
- data/man/bundle-update.ronn +21 -17
- data/man/bundle-viz.1 +7 -7
- data/man/bundle-viz.1.txt +17 -15
- data/man/bundle-viz.ronn +6 -6
- data/man/bundle.1 +31 -32
- data/man/bundle.1.txt +63 -75
- data/man/bundle.ronn +35 -47
- data/man/gemfile.5 +44 -8
- data/man/gemfile.5.ronn +54 -8
- data/man/gemfile.5.txt +218 -165
- data/man/index.txt +25 -15
- metadata +36 -44
- data/.codeclimate.yml +0 -25
- data/.gitignore +0 -18
- data/.rspec +0 -3
- data/.rubocop.yml +0 -131
- data/.rubocop_todo.yml +0 -418
- data/.travis.yml +0 -122
- data/CODE_OF_CONDUCT.md +0 -42
- data/CONTRIBUTING.md +0 -17
- data/Rakefile +0 -346
- data/bin/rake +0 -19
- data/bin/rspec +0 -15
- data/bin/rubocop +0 -17
- data/bin/with_rubygems +0 -39
- data/doc/README.md +0 -30
- data/doc/TROUBLESHOOTING.md +0 -64
- data/doc/contributing/BUG_TRIAGE.md +0 -36
- data/doc/contributing/COMMUNITY.md +0 -13
- data/doc/contributing/GETTING_HELP.md +0 -11
- data/doc/contributing/HOW_YOU_CAN_HELP.md +0 -27
- data/doc/contributing/ISSUES.md +0 -51
- data/doc/contributing/README.md +0 -38
- data/doc/development/NEW_FEATURES.md +0 -10
- data/doc/development/PULL_REQUESTS.md +0 -40
- data/doc/development/README.md +0 -19
- data/doc/development/RELEASING.md +0 -9
- data/doc/development/SETUP.md +0 -29
- data/doc/documentation/README.md +0 -29
- data/doc/documentation/VISION.md +0 -26
- data/doc/documentation/WRITING.md +0 -54
- data/lib/bundler/postit_trampoline.rb +0 -73
- data/lib/bundler/vendor/postit/lib/postit/environment.rb +0 -44
- data/lib/bundler/vendor/postit/lib/postit/installer.rb +0 -28
- data/lib/bundler/vendor/postit/lib/postit/parser.rb +0 -21
- data/lib/bundler/vendor/postit/lib/postit/setup.rb +0 -12
- data/lib/bundler/vendor/postit/lib/postit/version.rb +0 -3
- data/lib/bundler/vendor/postit/lib/postit.rb +0 -15
- data/task/release.rake +0 -116
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" "
|
4
|
+
.TH "BUNDLE\-SHOW" "1" "November 2018" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBbundle\-show\fR \- Shows all the gems in your bundle, or the path to a gem
|
@@ -10,7 +10,7 @@
|
|
10
10
|
\fBbundle show\fR [GEM] [\-\-paths]
|
11
11
|
.
|
12
12
|
.SH "DESCRIPTION"
|
13
|
-
Without the [GEM] option, \fBshow\fR will print a list of the names and versions of all gems that are required by your \fBGemfile(5)\fR\.
|
13
|
+
Without the [GEM] option, \fBshow\fR will print a list of the names and versions of all gems that are required by your [\fBGemfile(5)\fR][Gemfile(5)], sorted by name\.
|
14
14
|
.
|
15
15
|
.P
|
16
16
|
Calling show with [GEM] will list the exact location of that gem on your machine\.
|
@@ -19,5 +19,5 @@ Calling show with [GEM] will list the exact location of that gem on your machine
|
|
19
19
|
.
|
20
20
|
.TP
|
21
21
|
\fB\-\-paths\fR
|
22
|
-
List the paths of all gems that are required by your \fBGemfile(5)\fR\.
|
22
|
+
List the paths of all gems that are required by your [\fBGemfile(5)\fR][Gemfile(5)], sorted by gem name\.
|
23
23
|
|
data/man/bundle-show.1.txt
CHANGED
@@ -2,24 +2,26 @@ BUNDLE-SHOW(1) BUNDLE-SHOW(1)
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
|
6
|
-
|
5
|
+
NAME
|
6
|
+
bundle-show - Shows all the gems in your bundle, or the path to a gem
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
SYNOPSIS
|
9
|
+
bundle show [GEM] [--paths]
|
10
10
|
|
11
|
-
|
12
|
-
Without the [GEM] option,
|
13
|
-
sions of all gems that are required by
|
11
|
+
DESCRIPTION
|
12
|
+
Without the [GEM] option, show will print a list of the names and ver-
|
13
|
+
sions of all gems that are required by your [Gemfile(5)][Gemfile(5)],
|
14
|
+
sorted by name.
|
14
15
|
|
15
|
-
Calling
|
16
|
+
Calling show with [GEM] will list the exact location of that gem on
|
16
17
|
your machine.
|
17
18
|
|
18
|
-
|
19
|
-
|
20
|
-
List the paths of all gems
|
19
|
+
OPTIONS
|
20
|
+
--paths
|
21
|
+
List the paths of all gems that are required by your [Gem-
|
22
|
+
file(5)][Gemfile(5)], sorted by gem name.
|
21
23
|
|
22
24
|
|
23
25
|
|
24
26
|
|
25
|
-
|
27
|
+
November 2018 BUNDLE-SHOW(1)
|
data/man/bundle-show.ronn
CHANGED
@@ -9,7 +9,7 @@ bundle-show(1) -- Shows all the gems in your bundle, or the path to a gem
|
|
9
9
|
## DESCRIPTION
|
10
10
|
|
11
11
|
Without the [GEM] option, `show` will print a list of the names and versions of
|
12
|
-
all gems that are required by your `Gemfile(5)
|
12
|
+
all gems that are required by your [`Gemfile(5)`][Gemfile(5)], sorted by name.
|
13
13
|
|
14
14
|
Calling show with [GEM] will list the exact location of that gem on your
|
15
15
|
machine.
|
@@ -17,4 +17,5 @@ machine.
|
|
17
17
|
## OPTIONS
|
18
18
|
|
19
19
|
* `--paths`:
|
20
|
-
List the paths of all gems that are required by your `Gemfile(5)
|
20
|
+
List the paths of all gems that are required by your [`Gemfile(5)`][Gemfile(5)],
|
21
|
+
sorted by gem name.
|
data/man/bundle-update.1
CHANGED
@@ -1,16 +1,16 @@
|
|
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 2018" "" ""
|
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 [\-\-group=NAME] [\-\-source=NAME] [\-\-local] [\-\-ruby] [\-\-bundler[=VERSION]] [\-\-full\-index] [\-\-jobs=JOBS] [\-\-quiet] [\-\-force] [\-\-patch|\-\-minor|\-\-major] [\-\-strict] [\-\-conservative]
|
10
|
+
\fBbundle update\fR \fI*gems\fR [\-\-all] [\-\-group=NAME] [\-\-source=NAME] [\-\-local] [\-\-ruby] [\-\-bundler[=VERSION]] [\-\-full\-index] [\-\-jobs=JOBS] [\-\-quiet] [\-\-force] [\-\-patch|\-\-minor|\-\-major] [\-\-strict] [\-\-conservative]
|
11
11
|
.
|
12
12
|
.SH "DESCRIPTION"
|
13
|
-
Update the gems specified (all gems, if
|
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\.
|
14
14
|
.
|
15
15
|
.P
|
16
16
|
You would use \fBbundle update\fR to explicitly update the version of a gem\.
|
@@ -18,7 +18,11 @@ You would use \fBbundle update\fR to explicitly update the version of a gem\.
|
|
18
18
|
.SH "OPTIONS"
|
19
19
|
.
|
20
20
|
.TP
|
21
|
-
\fB\-\-
|
21
|
+
\fB\-\-all\fR
|
22
|
+
Update all gems specified in Gemfile\.
|
23
|
+
.
|
24
|
+
.TP
|
25
|
+
\fB\-\-group=<name>\fR, \fB\-g=[<name>]\fR
|
22
26
|
Only update the gems in the specified group\. For instance, you can update all gems in the development group with \fBbundle update \-\-group development\fR\. You can also call \fBbundle update rails \-\-group test\fR to update the rails gem and all gems in the test group, for example\.
|
23
27
|
.
|
24
28
|
.TP
|
@@ -42,7 +46,7 @@ Update the locked version of bundler to the invoked bundler version\.
|
|
42
46
|
Fall back to using the single\-file index of all gems\.
|
43
47
|
.
|
44
48
|
.TP
|
45
|
-
\fB\-\-jobs=[<number>]\fR
|
49
|
+
\fB\-\-jobs=[<number>]\fR, \fB\-j[<number>]\fR
|
46
50
|
Specify the number of jobs to run in parallel\. The default is \fB1\fR\.
|
47
51
|
.
|
48
52
|
.TP
|
@@ -55,7 +59,7 @@ Only output warnings and errors\.
|
|
55
59
|
.
|
56
60
|
.TP
|
57
61
|
\fB\-\-force\fR
|
58
|
-
Force downloading every gem\.
|
62
|
+
Force downloading every gem\. \fB\-\-redownload\fR is an alias of this option\.
|
59
63
|
.
|
60
64
|
.TP
|
61
65
|
\fB\-\-patch\fR
|
@@ -78,7 +82,7 @@ Do not allow any gem to be updated past latest \fB\-\-patch\fR | \fB\-\-minor\fR
|
|
78
82
|
Use bundle install conservative update behavior and do not allow shared dependencies to be updated\.
|
79
83
|
.
|
80
84
|
.SH "UPDATING ALL GEMS"
|
81
|
-
If you run \fBbundle update\fR
|
85
|
+
If you run \fBbundle update \-\-all\fR, bundler will ignore any previously installed gems and resolve all dependencies again based on the latest versions of all gems available in the sources\.
|
82
86
|
.
|
83
87
|
.P
|
84
88
|
Consider the following Gemfile(5):
|
@@ -149,7 +153,7 @@ After checking in the \fBGemfile\.lock\fR into version control and cloning it on
|
|
149
153
|
However, from time to time, you might want to update the gems you are using to the newest versions that still match the gems in your Gemfile(5)\.
|
150
154
|
.
|
151
155
|
.P
|
152
|
-
To do this, run \fBbundle update\fR, which will ignore the \fBGemfile\.lock\fR, and resolve all the dependencies again\. Keep in mind that this process can result in a significantly different set of the 25 gems, based on the requirements of new gems that the gem authors released since the last time you ran \fBbundle update\fR\.
|
156
|
+
To do this, run \fBbundle update \-\-all\fR, which will ignore the \fBGemfile\.lock\fR, and resolve all the dependencies again\. Keep in mind that this process can result in a significantly different set of the 25 gems, based on the requirements of new gems that the gem authors released since the last time you ran \fBbundle update \-\-all\fR\.
|
153
157
|
.
|
154
158
|
.SH "UPDATING A LIST OF GEMS"
|
155
159
|
Sometimes, you want to update a single gem in the Gemfile(5), and leave the rest of the gems that you specified locked to the versions in the \fBGemfile\.lock\fR\.
|
@@ -384,7 +388,7 @@ $ bundle update rails thin
|
|
384
388
|
If you want to update all the gems to the latest possible versions that still match the gems listed in the Gemfile(5), run
|
385
389
|
.
|
386
390
|
.IP
|
387
|
-
$ bundle update
|
391
|
+
$ bundle update \-\-all
|
388
392
|
.
|
389
393
|
.IP "" 0
|
390
394
|
|
data/man/bundle-update.1.txt
CHANGED
@@ -2,83 +2,86 @@ BUNDLE-UPDATE(1) BUNDLE-UPDATE(1)
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
[--bundler[=VERSION]] [--full-index]
|
11
|
-
[--patch|--minor|--major] [--strict] [--conservative]
|
12
|
-
|
13
|
-
|
14
|
-
Update the gems specified (all gems, if
|
15
|
-
the previously installed gems specified in the
|
16
|
-
eral, you should use bundle install(1)
|
5
|
+
NAME
|
6
|
+
bundle-update - Update your gems to the latest available versions
|
7
|
+
|
8
|
+
SYNOPSIS
|
9
|
+
bundle update *gems [--all] [--group=NAME] [--source=NAME] [--local]
|
10
|
+
[--ruby] [--bundler[=VERSION]] [--full-index] [--jobs=JOBS] [--quiet]
|
11
|
+
[--force] [--patch|--minor|--major] [--strict] [--conservative]
|
12
|
+
|
13
|
+
DESCRIPTION
|
14
|
+
Update the gems specified (all gems, if --all flag is used), ignoring
|
15
|
+
the previously installed gems specified in the Gemfile.lock. In gen-
|
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
|
19
|
+
You would use bundle update to explicitly update the version of a gem.
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
21
|
+
OPTIONS
|
22
|
+
--all Update all gems specified in Gemfile.
|
23
|
+
|
24
|
+
--group=<name>, -g=[<name>]
|
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
|
27
29
|
group, for example.
|
28
30
|
|
29
|
-
|
30
|
-
The
|
31
|
-
instance,
|
32
|
-
|
33
|
-
|
31
|
+
--source=<name>
|
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
|
+
--source rails
|
34
36
|
|
35
|
-
|
36
|
-
Do
|
37
|
+
--local
|
38
|
+
Do not attempt to fetch gems remotely and use the gem cache
|
37
39
|
instead.
|
38
40
|
|
39
|
-
|
41
|
+
--ruby Update the locked version of Ruby to the current version of
|
40
42
|
Ruby.
|
41
43
|
|
42
|
-
|
44
|
+
--bundler
|
43
45
|
Update the locked version of bundler to the invoked bundler ver-
|
44
46
|
sion.
|
45
47
|
|
46
|
-
|
48
|
+
--full-index
|
47
49
|
Fall back to using the single-file index of all gems.
|
48
50
|
|
49
|
-
|
50
|
-
Specify the number of jobs to run in parallel. The default is
|
51
|
+
--jobs=[<number>], -j[<number>]
|
52
|
+
Specify the number of jobs to run in parallel. The default is 1.
|
51
53
|
|
52
|
-
|
53
|
-
Retry failed network or git requests for
|
54
|
+
--retry=[<number>]
|
55
|
+
Retry failed network or git requests for number times.
|
54
56
|
|
55
|
-
|
57
|
+
--quiet
|
56
58
|
Only output warnings and errors.
|
57
59
|
|
58
|
-
|
59
|
-
Force downloading every gem.
|
60
|
+
--force
|
61
|
+
Force downloading every gem. --redownload is an alias of this
|
62
|
+
option.
|
60
63
|
|
61
|
-
|
64
|
+
--patch
|
62
65
|
Prefer updating only to next patch version.
|
63
66
|
|
64
|
-
|
67
|
+
--minor
|
65
68
|
Prefer updating only to next minor version.
|
66
69
|
|
67
|
-
|
70
|
+
--major
|
68
71
|
Prefer updating to next major version (default).
|
69
72
|
|
70
|
-
|
71
|
-
Do not allow any gem to be updated past latest
|
72
|
-
|
|
73
|
+
--strict
|
74
|
+
Do not allow any gem to be updated past latest --patch | --minor
|
75
|
+
| --major.
|
73
76
|
|
74
|
-
|
77
|
+
--conservative
|
75
78
|
Use bundle install conservative update behavior and do not allow
|
76
79
|
shared dependencies to be updated.
|
77
80
|
|
78
|
-
|
79
|
-
If
|
80
|
-
|
81
|
-
|
81
|
+
UPDATING ALL GEMS
|
82
|
+
If you run bundle update --all, bundler will ignore any previously
|
83
|
+
installed gems and resolve all dependencies again based on the latest
|
84
|
+
versions of all gems available in the sources.
|
82
85
|
|
83
86
|
Consider the following Gemfile(5):
|
84
87
|
|
@@ -91,8 +94,8 @@ BUNDLE-UPDATE(1) BUNDLE-UPDATE(1)
|
|
91
94
|
|
92
95
|
|
93
96
|
|
94
|
-
When
|
95
|
-
bundler
|
97
|
+
When you run bundle install(1) bundle-install.1.html the first time,
|
98
|
+
bundler will resolve all of the dependencies, all the way down, and
|
96
99
|
install what you need:
|
97
100
|
|
98
101
|
|
@@ -131,44 +134,44 @@ BUNDLE-UPDATE(1) BUNDLE-UPDATE(1)
|
|
131
134
|
|
132
135
|
|
133
136
|
|
134
|
-
As
|
135
|
-
application
|
136
|
-
the
|
137
|
-
bundle
|
137
|
+
As you can see, even though you have two gems in the Gemfile(5), your
|
138
|
+
application needs 26 different gems in order to run. Bundler remembers
|
139
|
+
the exact versions it installed in Gemfile.lock. The next time you run
|
140
|
+
bundle install(1) bundle-install.1.html, bundler skips the dependency
|
138
141
|
resolution and installs the same gems as it installed last time.
|
139
142
|
|
140
|
-
After
|
141
|
-
on
|
142
|
-
will
|
143
|
-
need to worry that a new release of
|
143
|
+
After checking in the Gemfile.lock into version control and cloning it
|
144
|
+
on another machine, running bundle install(1) bundle-install.1.html
|
145
|
+
will still install the gems that you installed last time. You don't
|
146
|
+
need to worry that a new release of erubis or mail changes the gems you
|
144
147
|
use.
|
145
148
|
|
146
|
-
However,
|
147
|
-
using
|
149
|
+
However, from time to time, you might want to update the gems you are
|
150
|
+
using to the newest versions that still match the gems in your Gem-
|
148
151
|
file(5).
|
149
152
|
|
150
|
-
To
|
151
|
-
resolve
|
152
|
-
result
|
153
|
-
requirements
|
154
|
-
time you ran
|
153
|
+
To do this, run bundle update --all, which will ignore the Gem-
|
154
|
+
file.lock, and resolve all the dependencies again. Keep in mind that
|
155
|
+
this process can result in a significantly different set of the 25
|
156
|
+
gems, based on the requirements of new gems that the gem authors
|
157
|
+
released since the last time you ran bundle update --all.
|
155
158
|
|
156
|
-
|
159
|
+
UPDATING A LIST OF GEMS
|
157
160
|
Sometimes, you want to update a single gem in the Gemfile(5), and leave
|
158
|
-
the
|
159
|
-
|
161
|
+
the rest of the gems that you specified locked to the versions in the
|
162
|
+
Gemfile.lock.
|
160
163
|
|
161
|
-
For
|
162
|
-
version
|
163
|
-
of its dependencies. To do this, run
|
164
|
+
For instance, in the scenario above, imagine that nokogiri releases
|
165
|
+
version 1.4.4, and you want to update it without updating Rails and all
|
166
|
+
of its dependencies. To do this, run bundle update nokogiri.
|
164
167
|
|
165
|
-
Bundler
|
168
|
+
Bundler will update nokogiri and any of its dependencies, but leave
|
166
169
|
alone Rails and its dependencies.
|
167
170
|
|
168
|
-
|
169
|
-
Sometimes,
|
170
|
-
the
|
171
|
-
|
171
|
+
OVERLAPPING DEPENDENCIES
|
172
|
+
Sometimes, multiple gems declared in your Gemfile(5) are satisfied by
|
173
|
+
the same second-level dependency. For instance, consider the case of
|
174
|
+
thin and rack-perftools-profiler.
|
172
175
|
|
173
176
|
|
174
177
|
|
@@ -179,8 +182,8 @@ BUNDLE-UPDATE(1) BUNDLE-UPDATE(1)
|
|
179
182
|
|
180
183
|
|
181
184
|
|
182
|
-
The
|
183
|
-
depends on
|
185
|
+
The thin gem depends on rack >= 1.0, while rack-perftools-profiler
|
186
|
+
depends on rack ~> 1.0. If you run bundle install, you get:
|
184
187
|
|
185
188
|
|
186
189
|
|
@@ -197,86 +200,86 @@ BUNDLE-UPDATE(1) BUNDLE-UPDATE(1)
|
|
197
200
|
|
198
201
|
|
199
202
|
In this case, the two gems have their own set of dependencies, but they
|
200
|
-
share
|
201
|
-
update
|
202
|
-
but
|
203
|
-
|
204
|
-
even though it's
|
205
|
-
|
206
|
-
In
|
207
|
-
bundler
|
203
|
+
share rack in common. If you run bundle update thin, bundler will
|
204
|
+
update daemons, eventmachine and rack, which are dependencies of thin,
|
205
|
+
but not open4 or perftools.rb, which are dependencies of
|
206
|
+
rack-perftools_profiler. Note that bundle update thin will update rack
|
207
|
+
even though it's also a dependency of rack-perftools_profiler.
|
208
|
+
|
209
|
+
In short, by default, when you update a gem using bundle update,
|
210
|
+
bundler will update all dependencies of that gem, including those that
|
208
211
|
are also dependencies of another gem.
|
209
212
|
|
210
213
|
To prevent updating shared dependencies, prior to version 1.14 the only
|
211
|
-
option was the
|
212
|
-
|
214
|
+
option was the CONSERVATIVE UPDATING behavior in bundle install(1) bun-
|
215
|
+
dle-install.1.html:
|
213
216
|
|
214
|
-
In this scenario, updating the
|
215
|
-
and
|
216
|
-
update
|
217
|
-
see the
|
218
|
-
|
217
|
+
In this scenario, updating the thin version manually in the Gemfile(5),
|
218
|
+
and then running bundle install(1) bundle-install.1.html will only
|
219
|
+
update daemons and eventmachine, but not rack. For more information,
|
220
|
+
see the CONSERVATIVE UPDATING section of bundle install(1) bun-
|
221
|
+
dle-install.1.html.
|
219
222
|
|
220
|
-
Starting with 1.14, specifying the
|
223
|
+
Starting with 1.14, specifying the --conservative option will also pre-
|
221
224
|
vent shared dependencies from being updated.
|
222
225
|
|
223
|
-
|
224
|
-
Version
|
225
|
-
gem
|
226
|
-
|
226
|
+
PATCH LEVEL OPTIONS
|
227
|
+
Version 1.14 introduced 4 patch-level options that will influence how
|
228
|
+
gem versions are resolved. One of the following options can be used:
|
229
|
+
--patch, --minor or --major. --strict can be added to further influence
|
227
230
|
resolution.
|
228
231
|
|
229
|
-
|
232
|
+
--patch
|
230
233
|
Prefer updating only to next patch version.
|
231
234
|
|
232
|
-
|
235
|
+
--minor
|
233
236
|
Prefer updating only to next minor version.
|
234
237
|
|
235
|
-
|
238
|
+
--major
|
236
239
|
Prefer updating to next major version (default).
|
237
240
|
|
238
|
-
|
239
|
-
Do not allow any gem to be updated past latest
|
240
|
-
|
|
241
|
+
--strict
|
242
|
+
Do not allow any gem to be updated past latest --patch | --minor
|
243
|
+
| --major.
|
241
244
|
|
242
|
-
When
|
243
|
-
requirements
|
245
|
+
When Bundler is resolving what versions to use to satisfy declared
|
246
|
+
requirements in the Gemfile or in parent gems, it looks up all avail-
|
244
247
|
able versions, filters out any versions that don't satisfy the require-
|
245
248
|
ment, and then, by default, sorts them from newest to oldest, consider-
|
246
249
|
ing them in that order.
|
247
250
|
|
248
|
-
Providing
|
249
|
-
sort
|
250
|
-
latest
|
251
|
+
Providing one of the patch level options (e.g. --patch) changes the
|
252
|
+
sort order of the satisfying versions, causing Bundler to consider the
|
253
|
+
latest --patch or --minor version available before other versions. Note
|
251
254
|
that versions outside the stated patch level could still be resolved to
|
252
255
|
if necessary to find a suitable dependency graph.
|
253
256
|
|
254
|
-
For
|
255
|
-
defined
|
256
|
-
all exist, the default order of preference by default (
|
257
|
+
For example, if gem 'foo' is locked at 1.0.2, with no gem requirement
|
258
|
+
defined in the Gemfile, and versions 1.0.3, 1.0.4, 1.1.0, 1.1.1, 2.0.0
|
259
|
+
all exist, the default order of preference by default (--major) will be
|
257
260
|
"2.0.0, 1.1.1, 1.1.0, 1.0.4, 1.0.3, 1.0.2".
|
258
261
|
|
259
|
-
If
|
262
|
+
If the --patch option is used, the order of preference will change to
|
260
263
|
"1.0.4, 1.0.3, 1.0.2, 1.1.1, 1.1.0, 2.0.0".
|
261
264
|
|
262
|
-
If
|
265
|
+
If the --minor option is used, the order of preference will change to
|
263
266
|
"1.1.1, 1.1.0, 1.0.4, 1.0.3, 1.0.2, 2.0.0".
|
264
267
|
|
265
|
-
Combining
|
266
|
-
remove
|
268
|
+
Combining the --strict option with any of the patch level options will
|
269
|
+
remove any versions beyond the scope of the patch level option, to
|
267
270
|
ensure that no gem is updated that far.
|
268
271
|
|
269
|
-
To
|
272
|
+
To continue the previous example, if both --patch and --strict options
|
270
273
|
are used, the available versions for resolution would be "1.0.4, 1.0.3,
|
271
|
-
1.0.2".
|
274
|
+
1.0.2". If --minor and --strict are used, it would be "1.1.1, 1.1.0,
|
272
275
|
1.0.4, 1.0.3, 1.0.2".
|
273
276
|
|
274
|
-
Gem
|
277
|
+
Gem requirements as defined in the Gemfile will still be the first
|
275
278
|
determining factor for what versions are available. If the gem require-
|
276
|
-
ment
|
277
|
-
thing as providing the
|
279
|
+
ment for foo in the Gemfile is '~> 1.0', that will accomplish the same
|
280
|
+
thing as providing the --minor and --strict options.
|
278
281
|
|
279
|
-
|
282
|
+
PATCH LEVEL EXAMPLES
|
280
283
|
Given the following gem specifications:
|
281
284
|
|
282
285
|
|
@@ -322,11 +325,11 @@ BUNDLE-UPDATE(1) BUNDLE-UPDATE(1)
|
|
322
325
|
|
323
326
|
|
324
327
|
|
325
|
-
In
|
328
|
+
In case 1, bar is upgraded to 2.1.1, a minor version increase, because
|
326
329
|
the dependency from foo 1.4.5 required it.
|
327
330
|
|
328
|
-
In
|
329
|
-
allowed to move because it's not a declared dependency in the
|
331
|
+
In case 2, only foo is requested to be unlocked, but bar is also
|
332
|
+
allowed to move because it's not a declared dependency in the Gemfile.
|
330
333
|
|
331
334
|
In case 3, bar goes up a whole major release, because a minor increase
|
332
335
|
is preferred now for foo, and when it goes to 1.5.1, it requires 3.0.0
|
@@ -340,7 +343,7 @@ BUNDLE-UPDATE(1) BUNDLE-UPDATE(1)
|
|
340
343
|
from consideration because of the --strict flag, so the most they can
|
341
344
|
move is up to 1.4.4 and 2.0.4.
|
342
345
|
|
343
|
-
|
346
|
+
RECOMMENDED WORKFLOW
|
344
347
|
In general, when working with an application managed with bundler, you
|
345
348
|
should use the following workflow:
|
346
349
|
|
@@ -348,7 +351,7 @@ BUNDLE-UPDATE(1) BUNDLE-UPDATE(1)
|
|
348
351
|
|
349
352
|
$ bundle install
|
350
353
|
|
351
|
-
o Check the resulting
|
354
|
+
o Check the resulting Gemfile.lock into version control
|
352
355
|
|
353
356
|
$ git add Gemfile.lock
|
354
357
|
|
@@ -366,11 +369,11 @@ BUNDLE-UPDATE(1) BUNDLE-UPDATE(1)
|
|
366
369
|
|
367
370
|
$ bundle install
|
368
371
|
|
369
|
-
o Make sure to check the updated
|
372
|
+
o Make sure to check the updated Gemfile.lock into version control
|
370
373
|
|
371
374
|
$ git add Gemfile.lock
|
372
375
|
|
373
|
-
o If bundle install(1)
|
376
|
+
o If bundle install(1) bundle-install.1.html reports a conflict, man-
|
374
377
|
ually update the specific gems that you changed in the Gemfile(5)
|
375
378
|
|
376
379
|
$ bundle update rails thin
|
@@ -378,11 +381,11 @@ BUNDLE-UPDATE(1) BUNDLE-UPDATE(1)
|
|
378
381
|
o If you want to update all the gems to the latest possible versions
|
379
382
|
that still match the gems listed in the Gemfile(5), run
|
380
383
|
|
381
|
-
$ bundle update
|
384
|
+
$ bundle update --all
|
382
385
|
|
383
386
|
|
384
387
|
|
385
388
|
|
386
389
|
|
387
390
|
|
388
|
-
|
391
|
+
December 2018 BUNDLE-UPDATE(1)
|