bundler 2.0.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 +7 -0
- data/CHANGELOG.md +3111 -0
- data/LICENSE.md +23 -0
- data/README.md +63 -0
- data/bundler.gemspec +65 -0
- data/exe/bundle +31 -0
- data/exe/bundle_ruby +60 -0
- data/exe/bundler +4 -0
- data/lib/bundler.rb +567 -0
- data/lib/bundler/build_metadata.rb +53 -0
- data/lib/bundler/capistrano.rb +22 -0
- data/lib/bundler/cli.rb +792 -0
- data/lib/bundler/cli/add.rb +35 -0
- data/lib/bundler/cli/binstubs.rb +49 -0
- data/lib/bundler/cli/cache.rb +36 -0
- data/lib/bundler/cli/check.rb +38 -0
- data/lib/bundler/cli/clean.rb +25 -0
- data/lib/bundler/cli/common.rb +102 -0
- data/lib/bundler/cli/config.rb +119 -0
- data/lib/bundler/cli/console.rb +43 -0
- data/lib/bundler/cli/doctor.rb +140 -0
- data/lib/bundler/cli/exec.rb +105 -0
- data/lib/bundler/cli/gem.rb +252 -0
- data/lib/bundler/cli/info.rb +50 -0
- data/lib/bundler/cli/init.rb +47 -0
- data/lib/bundler/cli/inject.rb +60 -0
- data/lib/bundler/cli/install.rb +218 -0
- data/lib/bundler/cli/issue.rb +40 -0
- data/lib/bundler/cli/list.rb +58 -0
- data/lib/bundler/cli/lock.rb +63 -0
- data/lib/bundler/cli/open.rb +26 -0
- data/lib/bundler/cli/outdated.rb +266 -0
- data/lib/bundler/cli/package.rb +49 -0
- data/lib/bundler/cli/platform.rb +46 -0
- data/lib/bundler/cli/plugin.rb +24 -0
- data/lib/bundler/cli/pristine.rb +47 -0
- data/lib/bundler/cli/remove.rb +18 -0
- data/lib/bundler/cli/show.rb +75 -0
- data/lib/bundler/cli/update.rb +91 -0
- data/lib/bundler/cli/viz.rb +31 -0
- data/lib/bundler/compact_index_client.rb +109 -0
- data/lib/bundler/compact_index_client/cache.rb +118 -0
- data/lib/bundler/compact_index_client/updater.rb +116 -0
- data/lib/bundler/compatibility_guard.rb +13 -0
- data/lib/bundler/constants.rb +7 -0
- data/lib/bundler/current_ruby.rb +94 -0
- data/lib/bundler/definition.rb +995 -0
- data/lib/bundler/dep_proxy.rb +48 -0
- data/lib/bundler/dependency.rb +139 -0
- data/lib/bundler/deployment.rb +69 -0
- data/lib/bundler/deprecate.rb +44 -0
- data/lib/bundler/dsl.rb +615 -0
- data/lib/bundler/endpoint_specification.rb +141 -0
- data/lib/bundler/env.rb +149 -0
- data/lib/bundler/environment_preserver.rb +59 -0
- data/lib/bundler/errors.rb +158 -0
- data/lib/bundler/feature_flag.rb +75 -0
- data/lib/bundler/fetcher.rb +312 -0
- data/lib/bundler/fetcher/base.rb +52 -0
- data/lib/bundler/fetcher/compact_index.rb +126 -0
- data/lib/bundler/fetcher/dependency.rb +82 -0
- data/lib/bundler/fetcher/downloader.rb +84 -0
- data/lib/bundler/fetcher/index.rb +52 -0
- data/lib/bundler/friendly_errors.rb +131 -0
- data/lib/bundler/gem_helper.rb +217 -0
- data/lib/bundler/gem_helpers.rb +101 -0
- data/lib/bundler/gem_remote_fetcher.rb +43 -0
- data/lib/bundler/gem_tasks.rb +7 -0
- data/lib/bundler/gem_version_promoter.rb +190 -0
- data/lib/bundler/gemdeps.rb +29 -0
- data/lib/bundler/graph.rb +152 -0
- data/lib/bundler/index.rb +213 -0
- data/lib/bundler/injector.rb +253 -0
- data/lib/bundler/inline.rb +74 -0
- data/lib/bundler/installer.rb +318 -0
- data/lib/bundler/installer/gem_installer.rb +85 -0
- data/lib/bundler/installer/parallel_installer.rb +229 -0
- data/lib/bundler/installer/standalone.rb +53 -0
- data/lib/bundler/lazy_specification.rb +123 -0
- data/lib/bundler/lockfile_generator.rb +95 -0
- data/lib/bundler/lockfile_parser.rb +256 -0
- data/lib/bundler/match_platform.rb +24 -0
- data/lib/bundler/mirror.rb +223 -0
- data/lib/bundler/plugin.rb +294 -0
- data/lib/bundler/plugin/api.rb +81 -0
- data/lib/bundler/plugin/api/source.rb +306 -0
- data/lib/bundler/plugin/dsl.rb +53 -0
- data/lib/bundler/plugin/events.rb +61 -0
- data/lib/bundler/plugin/index.rb +165 -0
- data/lib/bundler/plugin/installer.rb +96 -0
- data/lib/bundler/plugin/installer/git.rb +38 -0
- data/lib/bundler/plugin/installer/rubygems.rb +27 -0
- data/lib/bundler/plugin/source_list.rb +27 -0
- data/lib/bundler/process_lock.rb +24 -0
- data/lib/bundler/psyched_yaml.rb +37 -0
- data/lib/bundler/remote_specification.rb +114 -0
- data/lib/bundler/resolver.rb +373 -0
- data/lib/bundler/resolver/spec_group.rb +106 -0
- data/lib/bundler/retry.rb +66 -0
- data/lib/bundler/ruby_dsl.rb +18 -0
- data/lib/bundler/ruby_version.rb +152 -0
- data/lib/bundler/rubygems_ext.rb +209 -0
- data/lib/bundler/rubygems_gem_installer.rb +99 -0
- data/lib/bundler/rubygems_integration.rb +915 -0
- data/lib/bundler/runtime.rb +322 -0
- data/lib/bundler/settings.rb +464 -0
- data/lib/bundler/settings/validator.rb +102 -0
- data/lib/bundler/setup.rb +28 -0
- data/lib/bundler/shared_helpers.rb +386 -0
- data/lib/bundler/similarity_detector.rb +63 -0
- data/lib/bundler/source.rb +94 -0
- data/lib/bundler/source/gemspec.rb +18 -0
- data/lib/bundler/source/git.rb +329 -0
- data/lib/bundler/source/git/git_proxy.rb +262 -0
- data/lib/bundler/source/metadata.rb +62 -0
- data/lib/bundler/source/path.rb +249 -0
- data/lib/bundler/source/path/installer.rb +74 -0
- data/lib/bundler/source/rubygems.rb +539 -0
- data/lib/bundler/source/rubygems/remote.rb +69 -0
- data/lib/bundler/source_list.rb +186 -0
- data/lib/bundler/spec_set.rb +208 -0
- data/lib/bundler/ssl_certs/.document +1 -0
- data/lib/bundler/ssl_certs/certificate_manager.rb +66 -0
- data/lib/bundler/ssl_certs/index.rubygems.org/GlobalSignRootCA.pem +21 -0
- data/lib/bundler/ssl_certs/rubygems.global.ssl.fastly.net/DigiCertHighAssuranceEVRootCA.pem +23 -0
- data/lib/bundler/ssl_certs/rubygems.org/AddTrustExternalCARoot.pem +25 -0
- data/lib/bundler/stub_specification.rb +108 -0
- data/lib/bundler/templates/.document +1 -0
- data/lib/bundler/templates/Executable +29 -0
- data/lib/bundler/templates/Executable.bundler +105 -0
- data/lib/bundler/templates/Executable.standalone +14 -0
- data/lib/bundler/templates/Gemfile +7 -0
- data/lib/bundler/templates/gems.rb +8 -0
- data/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +74 -0
- data/lib/bundler/templates/newgem/Gemfile.tt +4 -0
- data/lib/bundler/templates/newgem/LICENSE.txt.tt +21 -0
- data/lib/bundler/templates/newgem/README.md.tt +47 -0
- data/lib/bundler/templates/newgem/Rakefile.tt +29 -0
- data/lib/bundler/templates/newgem/bin/console.tt +14 -0
- data/lib/bundler/templates/newgem/bin/setup.tt +8 -0
- data/lib/bundler/templates/newgem/exe/newgem.tt +3 -0
- data/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt +3 -0
- data/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt +9 -0
- data/lib/bundler/templates/newgem/ext/newgem/newgem.h.tt +6 -0
- data/lib/bundler/templates/newgem/gitignore.tt +20 -0
- data/lib/bundler/templates/newgem/lib/newgem.rb.tt +13 -0
- data/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +7 -0
- data/lib/bundler/templates/newgem/newgem.gemspec.tt +50 -0
- data/lib/bundler/templates/newgem/rspec.tt +3 -0
- data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +9 -0
- data/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +14 -0
- data/lib/bundler/templates/newgem/test/newgem_test.rb.tt +11 -0
- data/lib/bundler/templates/newgem/test/test_helper.rb.tt +8 -0
- data/lib/bundler/templates/newgem/travis.yml.tt +7 -0
- data/lib/bundler/ui.rb +9 -0
- data/lib/bundler/ui/rg_proxy.rb +19 -0
- data/lib/bundler/ui/shell.rb +146 -0
- data/lib/bundler/ui/silent.rb +69 -0
- data/lib/bundler/uri_credentials_filter.rb +37 -0
- data/lib/bundler/vendor/fileutils/lib/fileutils.rb +1741 -0
- data/lib/bundler/vendor/fileutils/lib/fileutils/version.rb +5 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo.rb +12 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb +26 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +57 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +81 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +223 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +36 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +66 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +62 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +63 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +61 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +126 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +46 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +36 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +136 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +143 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +6 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +101 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +67 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +837 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +46 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +58 -0
- data/lib/bundler/vendor/net-http-persistent/lib/net/http/faster.rb +27 -0
- data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +1233 -0
- data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/ssl_reuse.rb +129 -0
- data/lib/bundler/vendor/thor/lib/thor.rb +509 -0
- data/lib/bundler/vendor/thor/lib/thor/actions.rb +331 -0
- data/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +104 -0
- data/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +60 -0
- data/lib/bundler/vendor/thor/lib/thor/actions/directory.rb +118 -0
- data/lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +143 -0
- data/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +373 -0
- data/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +109 -0
- data/lib/bundler/vendor/thor/lib/thor/base.rb +678 -0
- data/lib/bundler/vendor/thor/lib/thor/command.rb +135 -0
- data/lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +97 -0
- data/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb +12 -0
- data/lib/bundler/vendor/thor/lib/thor/core_ext/ordered_hash.rb +129 -0
- data/lib/bundler/vendor/thor/lib/thor/error.rb +114 -0
- data/lib/bundler/vendor/thor/lib/thor/group.rb +281 -0
- data/lib/bundler/vendor/thor/lib/thor/invocation.rb +177 -0
- data/lib/bundler/vendor/thor/lib/thor/line_editor.rb +17 -0
- data/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +37 -0
- data/lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb +88 -0
- data/lib/bundler/vendor/thor/lib/thor/parser.rb +4 -0
- data/lib/bundler/vendor/thor/lib/thor/parser/argument.rb +70 -0
- data/lib/bundler/vendor/thor/lib/thor/parser/arguments.rb +175 -0
- data/lib/bundler/vendor/thor/lib/thor/parser/option.rb +146 -0
- data/lib/bundler/vendor/thor/lib/thor/parser/options.rb +226 -0
- data/lib/bundler/vendor/thor/lib/thor/rake_compat.rb +71 -0
- data/lib/bundler/vendor/thor/lib/thor/runner.rb +324 -0
- data/lib/bundler/vendor/thor/lib/thor/shell.rb +81 -0
- data/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +482 -0
- data/lib/bundler/vendor/thor/lib/thor/shell/color.rb +149 -0
- data/lib/bundler/vendor/thor/lib/thor/shell/html.rb +126 -0
- data/lib/bundler/vendor/thor/lib/thor/util.rb +268 -0
- data/lib/bundler/vendor/thor/lib/thor/version.rb +3 -0
- data/lib/bundler/vendored_fileutils.rb +9 -0
- data/lib/bundler/vendored_molinillo.rb +4 -0
- data/lib/bundler/vendored_persistent.rb +52 -0
- data/lib/bundler/vendored_thor.rb +8 -0
- data/lib/bundler/version.rb +28 -0
- data/lib/bundler/version_ranges.rb +76 -0
- data/lib/bundler/vlad.rb +17 -0
- data/lib/bundler/worker.rb +106 -0
- data/lib/bundler/yaml_serializer.rb +90 -0
- data/man/bundle-add.1 +58 -0
- data/man/bundle-add.1.txt +52 -0
- data/man/bundle-add.ronn +40 -0
- data/man/bundle-binstubs.1 +40 -0
- data/man/bundle-binstubs.1.txt +48 -0
- data/man/bundle-binstubs.ronn +43 -0
- data/man/bundle-check.1 +31 -0
- data/man/bundle-check.1.txt +33 -0
- data/man/bundle-check.ronn +26 -0
- data/man/bundle-clean.1 +24 -0
- data/man/bundle-clean.1.txt +26 -0
- data/man/bundle-clean.ronn +18 -0
- data/man/bundle-config.1 +497 -0
- data/man/bundle-config.1.txt +529 -0
- data/man/bundle-config.ronn +397 -0
- 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 +165 -0
- data/man/bundle-exec.1.txt +178 -0
- data/man/bundle-exec.ronn +152 -0
- data/man/bundle-gem.1 +80 -0
- data/man/bundle-gem.1.txt +91 -0
- data/man/bundle-gem.ronn +78 -0
- data/man/bundle-info.1 +20 -0
- data/man/bundle-info.1.txt +21 -0
- data/man/bundle-info.ronn +17 -0
- data/man/bundle-init.1 +25 -0
- data/man/bundle-init.1.txt +34 -0
- data/man/bundle-init.ronn +29 -0
- data/man/bundle-inject.1 +33 -0
- data/man/bundle-inject.1.txt +32 -0
- data/man/bundle-inject.ronn +22 -0
- data/man/bundle-install.1 +308 -0
- data/man/bundle-install.1.txt +396 -0
- data/man/bundle-install.ronn +378 -0
- 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 +84 -0
- data/man/bundle-lock.1.txt +93 -0
- data/man/bundle-lock.ronn +94 -0
- data/man/bundle-open.1 +32 -0
- data/man/bundle-open.1.txt +29 -0
- data/man/bundle-open.ronn +19 -0
- data/man/bundle-outdated.1 +155 -0
- data/man/bundle-outdated.1.txt +131 -0
- data/man/bundle-outdated.ronn +111 -0
- data/man/bundle-package.1 +55 -0
- data/man/bundle-package.1.txt +79 -0
- data/man/bundle-package.ronn +72 -0
- data/man/bundle-platform.1 +61 -0
- data/man/bundle-platform.1.txt +57 -0
- data/man/bundle-platform.ronn +42 -0
- data/man/bundle-pristine.1 +34 -0
- data/man/bundle-pristine.1.txt +44 -0
- data/man/bundle-pristine.ronn +34 -0
- 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 +23 -0
- data/man/bundle-show.1.txt +27 -0
- data/man/bundle-show.ronn +21 -0
- data/man/bundle-update.1 +394 -0
- data/man/bundle-update.1.txt +391 -0
- data/man/bundle-update.ronn +350 -0
- data/man/bundle-viz.1 +39 -0
- data/man/bundle-viz.1.txt +39 -0
- data/man/bundle-viz.ronn +30 -0
- data/man/bundle.1 +136 -0
- data/man/bundle.1.txt +116 -0
- data/man/bundle.ronn +111 -0
- data/man/gemfile.5 +689 -0
- data/man/gemfile.5.ronn +521 -0
- data/man/gemfile.5.txt +653 -0
- data/man/index.txt +25 -0
- metadata +463 -0
@@ -0,0 +1,350 @@
|
|
1
|
+
bundle-update(1) -- Update your gems to the latest available versions
|
2
|
+
=====================================================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
`bundle update` <*gems> [--all]
|
7
|
+
[--group=NAME]
|
8
|
+
[--source=NAME]
|
9
|
+
[--local]
|
10
|
+
[--ruby]
|
11
|
+
[--bundler[=VERSION]]
|
12
|
+
[--full-index]
|
13
|
+
[--jobs=JOBS]
|
14
|
+
[--quiet]
|
15
|
+
[--force]
|
16
|
+
[--patch|--minor|--major]
|
17
|
+
[--strict]
|
18
|
+
[--conservative]
|
19
|
+
|
20
|
+
## DESCRIPTION
|
21
|
+
|
22
|
+
Update the gems specified (all gems, if `--all` flag is used), ignoring
|
23
|
+
the previously installed gems specified in the `Gemfile.lock`. In
|
24
|
+
general, you should use [bundle install(1)](bundle-install.1.html) to install the same exact
|
25
|
+
gems and versions across machines.
|
26
|
+
|
27
|
+
You would use `bundle update` to explicitly update the version of a
|
28
|
+
gem.
|
29
|
+
|
30
|
+
## OPTIONS
|
31
|
+
|
32
|
+
* `--all`:
|
33
|
+
Update all gems specified in Gemfile.
|
34
|
+
|
35
|
+
* `--group=<name>`, `-g=[<name>]`:
|
36
|
+
Only update the gems in the specified group. For instance, you can update all gems
|
37
|
+
in the development group with `bundle update --group development`. You can also
|
38
|
+
call `bundle update rails --group test` to update the rails gem and all gems in
|
39
|
+
the test group, for example.
|
40
|
+
|
41
|
+
* `--source=<name>`:
|
42
|
+
The name of a `:git` or `:path` source used in the Gemfile(5). For
|
43
|
+
instance, with a `:git` source of `http://github.com/rails/rails.git`,
|
44
|
+
you would call `bundle update --source rails`
|
45
|
+
|
46
|
+
* `--local`:
|
47
|
+
Do not attempt to fetch gems remotely and use the gem cache instead.
|
48
|
+
|
49
|
+
* `--ruby`:
|
50
|
+
Update the locked version of Ruby to the current version of Ruby.
|
51
|
+
|
52
|
+
* `--bundler`:
|
53
|
+
Update the locked version of bundler to the invoked bundler version.
|
54
|
+
|
55
|
+
* `--full-index`:
|
56
|
+
Fall back to using the single-file index of all gems.
|
57
|
+
|
58
|
+
* `--jobs=[<number>]`, `-j[<number>]`:
|
59
|
+
Specify the number of jobs to run in parallel. The default is `1`.
|
60
|
+
|
61
|
+
* `--retry=[<number>]`:
|
62
|
+
Retry failed network or git requests for <number> times.
|
63
|
+
|
64
|
+
* `--quiet`:
|
65
|
+
Only output warnings and errors.
|
66
|
+
|
67
|
+
* `--force`:
|
68
|
+
Force downloading every gem. `--redownload` is an alias of this option.
|
69
|
+
|
70
|
+
* `--patch`:
|
71
|
+
Prefer updating only to next patch version.
|
72
|
+
|
73
|
+
* `--minor`:
|
74
|
+
Prefer updating only to next minor version.
|
75
|
+
|
76
|
+
* `--major`:
|
77
|
+
Prefer updating to next major version (default).
|
78
|
+
|
79
|
+
* `--strict`:
|
80
|
+
Do not allow any gem to be updated past latest `--patch` | `--minor` | `--major`.
|
81
|
+
|
82
|
+
* `--conservative`:
|
83
|
+
Use bundle install conservative update behavior and do not allow shared dependencies to be updated.
|
84
|
+
|
85
|
+
## UPDATING ALL GEMS
|
86
|
+
|
87
|
+
If you run `bundle update --all`, bundler will ignore
|
88
|
+
any previously installed gems and resolve all dependencies again
|
89
|
+
based on the latest versions of all gems available in the sources.
|
90
|
+
|
91
|
+
Consider the following Gemfile(5):
|
92
|
+
|
93
|
+
source "https://rubygems.org"
|
94
|
+
|
95
|
+
gem "rails", "3.0.0.rc"
|
96
|
+
gem "nokogiri"
|
97
|
+
|
98
|
+
When you run [bundle install(1)](bundle-install.1.html) the first time, bundler will resolve
|
99
|
+
all of the dependencies, all the way down, and install what you need:
|
100
|
+
|
101
|
+
Fetching gem metadata from https://rubygems.org/.........
|
102
|
+
Resolving dependencies...
|
103
|
+
Installing builder 2.1.2
|
104
|
+
Installing abstract 1.0.0
|
105
|
+
Installing rack 1.2.8
|
106
|
+
Using bundler 1.7.6
|
107
|
+
Installing rake 10.4.0
|
108
|
+
Installing polyglot 0.3.5
|
109
|
+
Installing mime-types 1.25.1
|
110
|
+
Installing i18n 0.4.2
|
111
|
+
Installing mini_portile 0.6.1
|
112
|
+
Installing tzinfo 0.3.42
|
113
|
+
Installing rack-mount 0.6.14
|
114
|
+
Installing rack-test 0.5.7
|
115
|
+
Installing treetop 1.4.15
|
116
|
+
Installing thor 0.14.6
|
117
|
+
Installing activesupport 3.0.0.rc
|
118
|
+
Installing erubis 2.6.6
|
119
|
+
Installing activemodel 3.0.0.rc
|
120
|
+
Installing arel 0.4.0
|
121
|
+
Installing mail 2.2.20
|
122
|
+
Installing activeresource 3.0.0.rc
|
123
|
+
Installing actionpack 3.0.0.rc
|
124
|
+
Installing activerecord 3.0.0.rc
|
125
|
+
Installing actionmailer 3.0.0.rc
|
126
|
+
Installing railties 3.0.0.rc
|
127
|
+
Installing rails 3.0.0.rc
|
128
|
+
Installing nokogiri 1.6.5
|
129
|
+
|
130
|
+
Bundle complete! 2 Gemfile dependencies, 26 gems total.
|
131
|
+
Use `bundle show [gemname]` to see where a bundled gem is installed.
|
132
|
+
|
133
|
+
As you can see, even though you have two gems in the Gemfile(5), your application
|
134
|
+
needs 26 different gems in order to run. Bundler remembers the exact versions
|
135
|
+
it installed in `Gemfile.lock`. The next time you run [bundle install(1)](bundle-install.1.html), bundler skips
|
136
|
+
the dependency resolution and installs the same gems as it installed last time.
|
137
|
+
|
138
|
+
After checking in the `Gemfile.lock` into version control and cloning it on another
|
139
|
+
machine, running [bundle install(1)](bundle-install.1.html) will _still_ install the gems that you installed
|
140
|
+
last time. You don't need to worry that a new release of `erubis` or `mail` changes
|
141
|
+
the gems you use.
|
142
|
+
|
143
|
+
However, from time to time, you might want to update the gems you are using to the
|
144
|
+
newest versions that still match the gems in your Gemfile(5).
|
145
|
+
|
146
|
+
To do this, run `bundle update --all`, which will ignore the `Gemfile.lock`, and resolve
|
147
|
+
all the dependencies again. Keep in mind that this process can result in a significantly
|
148
|
+
different set of the 25 gems, based on the requirements of new gems that the gem
|
149
|
+
authors released since the last time you ran `bundle update --all`.
|
150
|
+
|
151
|
+
## UPDATING A LIST OF GEMS
|
152
|
+
|
153
|
+
Sometimes, you want to update a single gem in the Gemfile(5), and leave the rest of the
|
154
|
+
gems that you specified locked to the versions in the `Gemfile.lock`.
|
155
|
+
|
156
|
+
For instance, in the scenario above, imagine that `nokogiri` releases version `1.4.4`, and
|
157
|
+
you want to update it _without_ updating Rails and all of its dependencies. To do this,
|
158
|
+
run `bundle update nokogiri`.
|
159
|
+
|
160
|
+
Bundler will update `nokogiri` and any of its dependencies, but leave alone Rails and
|
161
|
+
its dependencies.
|
162
|
+
|
163
|
+
## OVERLAPPING DEPENDENCIES
|
164
|
+
|
165
|
+
Sometimes, multiple gems declared in your Gemfile(5) are satisfied by the same
|
166
|
+
second-level dependency. For instance, consider the case of `thin` and
|
167
|
+
`rack-perftools-profiler`.
|
168
|
+
|
169
|
+
source "https://rubygems.org"
|
170
|
+
|
171
|
+
gem "thin"
|
172
|
+
gem "rack-perftools-profiler"
|
173
|
+
|
174
|
+
The `thin` gem depends on `rack >= 1.0`, while `rack-perftools-profiler` depends
|
175
|
+
on `rack ~> 1.0`. If you run bundle install, you get:
|
176
|
+
|
177
|
+
Fetching source index for https://rubygems.org/
|
178
|
+
Installing daemons (1.1.0)
|
179
|
+
Installing eventmachine (0.12.10) with native extensions
|
180
|
+
Installing open4 (1.0.1)
|
181
|
+
Installing perftools.rb (0.4.7) with native extensions
|
182
|
+
Installing rack (1.2.1)
|
183
|
+
Installing rack-perftools_profiler (0.0.2)
|
184
|
+
Installing thin (1.2.7) with native extensions
|
185
|
+
Using bundler (1.0.0.rc.3)
|
186
|
+
|
187
|
+
In this case, the two gems have their own set of dependencies, but they share
|
188
|
+
`rack` in common. If you run `bundle update thin`, bundler will update `daemons`,
|
189
|
+
`eventmachine` and `rack`, which are dependencies of `thin`, but not `open4` or
|
190
|
+
`perftools.rb`, which are dependencies of `rack-perftools_profiler`. Note that
|
191
|
+
`bundle update thin` will update `rack` even though it's _also_ a dependency of
|
192
|
+
`rack-perftools_profiler`.
|
193
|
+
|
194
|
+
In short, by default, when you update a gem using `bundle update`, bundler will
|
195
|
+
update all dependencies of that gem, including those that are also dependencies
|
196
|
+
of another gem.
|
197
|
+
|
198
|
+
To prevent updating shared dependencies, prior to version 1.14 the only option
|
199
|
+
was the `CONSERVATIVE UPDATING` behavior in [bundle install(1)](bundle-install.1.html):
|
200
|
+
|
201
|
+
In this scenario, updating the `thin` version manually in the Gemfile(5),
|
202
|
+
and then running [bundle install(1)](bundle-install.1.html) will only update `daemons` and `eventmachine`,
|
203
|
+
but not `rack`. For more information, see the `CONSERVATIVE UPDATING` section
|
204
|
+
of [bundle install(1)](bundle-install.1.html).
|
205
|
+
|
206
|
+
Starting with 1.14, specifying the `--conservative` option will also prevent shared
|
207
|
+
dependencies from being updated.
|
208
|
+
|
209
|
+
## PATCH LEVEL OPTIONS
|
210
|
+
|
211
|
+
Version 1.14 introduced 4 patch-level options that will influence how gem
|
212
|
+
versions are resolved. One of the following options can be used: `--patch`,
|
213
|
+
`--minor` or `--major`. `--strict` can be added to further influence resolution.
|
214
|
+
|
215
|
+
* `--patch`:
|
216
|
+
Prefer updating only to next patch version.
|
217
|
+
|
218
|
+
* `--minor`:
|
219
|
+
Prefer updating only to next minor version.
|
220
|
+
|
221
|
+
* `--major`:
|
222
|
+
Prefer updating to next major version (default).
|
223
|
+
|
224
|
+
* `--strict`:
|
225
|
+
Do not allow any gem to be updated past latest `--patch` | `--minor` | `--major`.
|
226
|
+
|
227
|
+
When Bundler is resolving what versions to use to satisfy declared
|
228
|
+
requirements in the Gemfile or in parent gems, it looks up all
|
229
|
+
available versions, filters out any versions that don't satisfy
|
230
|
+
the requirement, and then, by default, sorts them from newest to
|
231
|
+
oldest, considering them in that order.
|
232
|
+
|
233
|
+
Providing one of the patch level options (e.g. `--patch`) changes the
|
234
|
+
sort order of the satisfying versions, causing Bundler to consider the
|
235
|
+
latest `--patch` or `--minor` version available before other versions.
|
236
|
+
Note that versions outside the stated patch level could still be
|
237
|
+
resolved to if necessary to find a suitable dependency graph.
|
238
|
+
|
239
|
+
For example, if gem 'foo' is locked at 1.0.2, with no gem requirement
|
240
|
+
defined in the Gemfile, and versions 1.0.3, 1.0.4, 1.1.0, 1.1.1, 2.0.0
|
241
|
+
all exist, the default order of preference by default (`--major`) will
|
242
|
+
be "2.0.0, 1.1.1, 1.1.0, 1.0.4, 1.0.3, 1.0.2".
|
243
|
+
|
244
|
+
If the `--patch` option is used, the order of preference will change to
|
245
|
+
"1.0.4, 1.0.3, 1.0.2, 1.1.1, 1.1.0, 2.0.0".
|
246
|
+
|
247
|
+
If the `--minor` option is used, the order of preference will change to
|
248
|
+
"1.1.1, 1.1.0, 1.0.4, 1.0.3, 1.0.2, 2.0.0".
|
249
|
+
|
250
|
+
Combining the `--strict` option with any of the patch level options
|
251
|
+
will remove any versions beyond the scope of the patch level option,
|
252
|
+
to ensure that no gem is updated that far.
|
253
|
+
|
254
|
+
To continue the previous example, if both `--patch` and `--strict`
|
255
|
+
options are used, the available versions for resolution would be
|
256
|
+
"1.0.4, 1.0.3, 1.0.2". If `--minor` and `--strict` are used, it would
|
257
|
+
be "1.1.1, 1.1.0, 1.0.4, 1.0.3, 1.0.2".
|
258
|
+
|
259
|
+
Gem requirements as defined in the Gemfile will still be the first
|
260
|
+
determining factor for what versions are available. If the gem
|
261
|
+
requirement for `foo` in the Gemfile is '~> 1.0', that will accomplish
|
262
|
+
the same thing as providing the `--minor` and `--strict` options.
|
263
|
+
|
264
|
+
## PATCH LEVEL EXAMPLES
|
265
|
+
|
266
|
+
Given the following gem specifications:
|
267
|
+
|
268
|
+
foo 1.4.3, requires: ~> bar 2.0
|
269
|
+
foo 1.4.4, requires: ~> bar 2.0
|
270
|
+
foo 1.4.5, requires: ~> bar 2.1
|
271
|
+
foo 1.5.0, requires: ~> bar 2.1
|
272
|
+
foo 1.5.1, requires: ~> bar 3.0
|
273
|
+
bar with versions 2.0.3, 2.0.4, 2.1.0, 2.1.1, 3.0.0
|
274
|
+
|
275
|
+
Gemfile:
|
276
|
+
|
277
|
+
gem 'foo'
|
278
|
+
|
279
|
+
Gemfile.lock:
|
280
|
+
|
281
|
+
foo (1.4.3)
|
282
|
+
bar (~> 2.0)
|
283
|
+
bar (2.0.3)
|
284
|
+
|
285
|
+
Cases:
|
286
|
+
|
287
|
+
# Command Line Result
|
288
|
+
------------------------------------------------------------
|
289
|
+
1 bundle update --patch 'foo 1.4.5', 'bar 2.1.1'
|
290
|
+
2 bundle update --patch foo 'foo 1.4.5', 'bar 2.1.1'
|
291
|
+
3 bundle update --minor 'foo 1.5.1', 'bar 3.0.0'
|
292
|
+
4 bundle update --minor --strict 'foo 1.5.0', 'bar 2.1.1'
|
293
|
+
5 bundle update --patch --strict 'foo 1.4.4', 'bar 2.0.4'
|
294
|
+
|
295
|
+
In case 1, bar is upgraded to 2.1.1, a minor version increase, because
|
296
|
+
the dependency from foo 1.4.5 required it.
|
297
|
+
|
298
|
+
In case 2, only foo is requested to be unlocked, but bar is also
|
299
|
+
allowed to move because it's not a declared dependency in the Gemfile.
|
300
|
+
|
301
|
+
In case 3, bar goes up a whole major release, because a minor increase
|
302
|
+
is preferred now for foo, and when it goes to 1.5.1, it requires 3.0.0
|
303
|
+
of bar.
|
304
|
+
|
305
|
+
In case 4, foo is preferred up to a minor version, but 1.5.1 won't work
|
306
|
+
because the --strict flag removes bar 3.0.0 from consideration since
|
307
|
+
it's a major increment.
|
308
|
+
|
309
|
+
In case 5, both foo and bar have any minor or major increments removed
|
310
|
+
from consideration because of the --strict flag, so the most they can
|
311
|
+
move is up to 1.4.4 and 2.0.4.
|
312
|
+
|
313
|
+
## RECOMMENDED WORKFLOW
|
314
|
+
|
315
|
+
In general, when working with an application managed with bundler, you should
|
316
|
+
use the following workflow:
|
317
|
+
|
318
|
+
* After you create your Gemfile(5) for the first time, run
|
319
|
+
|
320
|
+
$ bundle install
|
321
|
+
|
322
|
+
* Check the resulting `Gemfile.lock` into version control
|
323
|
+
|
324
|
+
$ git add Gemfile.lock
|
325
|
+
|
326
|
+
* When checking out this repository on another development machine, run
|
327
|
+
|
328
|
+
$ bundle install
|
329
|
+
|
330
|
+
* When checking out this repository on a deployment machine, run
|
331
|
+
|
332
|
+
$ bundle install --deployment
|
333
|
+
|
334
|
+
* After changing the Gemfile(5) to reflect a new or update dependency, run
|
335
|
+
|
336
|
+
$ bundle install
|
337
|
+
|
338
|
+
* Make sure to check the updated `Gemfile.lock` into version control
|
339
|
+
|
340
|
+
$ git add Gemfile.lock
|
341
|
+
|
342
|
+
* If [bundle install(1)](bundle-install.1.html) reports a conflict, manually update the specific
|
343
|
+
gems that you changed in the Gemfile(5)
|
344
|
+
|
345
|
+
$ bundle update rails thin
|
346
|
+
|
347
|
+
* If you want to update all the gems to the latest possible versions that
|
348
|
+
still match the gems listed in the Gemfile(5), run
|
349
|
+
|
350
|
+
$ bundle update --all
|
data/man/bundle-viz.1
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
.\" generated with Ronn/v0.7.3
|
2
|
+
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
+
.
|
4
|
+
.TH "BUNDLE\-VIZ" "1" "June 2019" "" ""
|
5
|
+
.
|
6
|
+
.SH "NAME"
|
7
|
+
\fBbundle\-viz\fR \- Generates a visual dependency graph for your Gemfile
|
8
|
+
.
|
9
|
+
.SH "SYNOPSIS"
|
10
|
+
\fBbundle viz\fR [\-\-file=FILE] [\-\-format=FORMAT] [\-\-requirements] [\-\-version] [\-\-without=GROUP GROUP]
|
11
|
+
.
|
12
|
+
.SH "DESCRIPTION"
|
13
|
+
\fBviz\fR generates a PNG file of the current \fBGemfile(5)\fR as a dependency graph\. \fBviz\fR requires the ruby\-graphviz gem (and its dependencies)\.
|
14
|
+
.
|
15
|
+
.P
|
16
|
+
The associated gems must also be installed via \fBbundle install(1)\fR \fIbundle\-install\.1\.html\fR\.
|
17
|
+
.
|
18
|
+
.SH "OPTIONS"
|
19
|
+
.
|
20
|
+
.TP
|
21
|
+
\fB\-\-file\fR, \fB\-f\fR
|
22
|
+
The name to use for the generated file\. See \fB\-\-format\fR option
|
23
|
+
.
|
24
|
+
.TP
|
25
|
+
\fB\-\-format\fR, \fB\-F\fR
|
26
|
+
This is output format option\. Supported format is png, jpg, svg, dot \.\.\.
|
27
|
+
.
|
28
|
+
.TP
|
29
|
+
\fB\-\-requirements\fR, \fB\-R\fR
|
30
|
+
Set to show the version of each required dependency\.
|
31
|
+
.
|
32
|
+
.TP
|
33
|
+
\fB\-\-version\fR, \fB\-v\fR
|
34
|
+
Set to show each gem version\.
|
35
|
+
.
|
36
|
+
.TP
|
37
|
+
\fB\-\-without\fR, \fB\-W\fR
|
38
|
+
Exclude gems that are part of the specified named group\.
|
39
|
+
|
@@ -0,0 +1,39 @@
|
|
1
|
+
BUNDLE-VIZ(1) BUNDLE-VIZ(1)
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
NAME
|
6
|
+
bundle-viz - Generates a visual dependency graph for your Gemfile
|
7
|
+
|
8
|
+
SYNOPSIS
|
9
|
+
bundle viz [--file=FILE] [--format=FORMAT] [--requirements] [--version]
|
10
|
+
[--without=GROUP GROUP]
|
11
|
+
|
12
|
+
DESCRIPTION
|
13
|
+
viz generates a PNG file of the current Gemfile(5) as a dependency
|
14
|
+
graph. viz requires the ruby-graphviz gem (and its dependencies).
|
15
|
+
|
16
|
+
The associated gems must also be installed via bundle install(1) bun-
|
17
|
+
dle-install.1.html.
|
18
|
+
|
19
|
+
OPTIONS
|
20
|
+
--file, -f
|
21
|
+
The name to use for the generated file. See --format option
|
22
|
+
|
23
|
+
--format, -F
|
24
|
+
This is output format option. Supported format is png, jpg, svg,
|
25
|
+
dot ...
|
26
|
+
|
27
|
+
--requirements, -R
|
28
|
+
Set to show the version of each required dependency.
|
29
|
+
|
30
|
+
--version, -v
|
31
|
+
Set to show each gem version.
|
32
|
+
|
33
|
+
--without, -W
|
34
|
+
Exclude gems that are part of the specified named group.
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
June 2019 BUNDLE-VIZ(1)
|
data/man/bundle-viz.ronn
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
bundle-viz(1) -- Generates a visual dependency graph for your Gemfile
|
2
|
+
=====================================================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
`bundle viz` [--file=FILE]
|
7
|
+
[--format=FORMAT]
|
8
|
+
[--requirements]
|
9
|
+
[--version]
|
10
|
+
[--without=GROUP GROUP]
|
11
|
+
|
12
|
+
## DESCRIPTION
|
13
|
+
|
14
|
+
`viz` generates a PNG file of the current `Gemfile(5)` as a dependency graph.
|
15
|
+
`viz` requires the ruby-graphviz gem (and its dependencies).
|
16
|
+
|
17
|
+
The associated gems must also be installed via [`bundle install(1)`](bundle-install.1.html).
|
18
|
+
|
19
|
+
## OPTIONS
|
20
|
+
|
21
|
+
* `--file`, `-f`:
|
22
|
+
The name to use for the generated file. See `--format` option
|
23
|
+
* `--format`, `-F`:
|
24
|
+
This is output format option. Supported format is png, jpg, svg, dot ...
|
25
|
+
* `--requirements`, `-R`:
|
26
|
+
Set to show the version of each required dependency.
|
27
|
+
* `--version`, `-v`:
|
28
|
+
Set to show each gem version.
|
29
|
+
* `--without`, `-W`:
|
30
|
+
Exclude gems that are part of the specified named group.
|