summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJuanitoFatas <katehuang0320@gmail.com>2015-11-28 16:35:36 +0800
committerJuanitoFatas <katehuang0320@gmail.com>2015-11-28 16:37:20 +0800
commit553955f03aba80ae60489efb185d40623f8009fe (patch)
treedc5fdc36ea8aa289916b79b38e629ec4b3cdc929 /man
parentd4cc7861615d5178eb0d944bbd0ec4121bedb86a (diff)
downloadbundler-553955f03aba80ae60489efb185d40623f8009fe.tar.gz
Documents lock command's `--update` option [ci skip].
Diffstat (limited to 'man')
-rw-r--r--man/bundle-lock.ronn21
1 files changed, 19 insertions, 2 deletions
diff --git a/man/bundle-lock.ronn b/man/bundle-lock.ronn
index 467d484211..8afc50af8a 100644
--- a/man/bundle-lock.ronn
+++ b/man/bundle-lock.ronn
@@ -14,8 +14,9 @@ Lock the gems specified in Gemfile.
## OPTIONS
-* `--update`:
- Ignores the existing lockfile. Resolve then updates lockfile.
+* `--update=<*gems>`:
+ Ignores the existing lockfile. Resolve then updates lockfile. Taking a list
+ of gems or updating all gems if no list is given.
* `--local`:
Do not attempt to connect to `rubygems.org`. Instead, Bundler will use the
@@ -28,3 +29,19 @@ Lock the gems specified in Gemfile.
* `--lockfile=<path>`:
The path where the lockfile should be written to.
+
+## UPDATING ALL GEMS
+
+If you run `bundle lock` with `--update` option without list of gems, bundler will
+ignore any previously installed gems and resolve all dependencies again based
+on the latest versions of all gems available in the sources.
+
+## UPDATING A LIST OF GEMS
+
+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 `Gemfile.lock`.
+
+For instance, you only want to update `nokogiri`, run `bundle lock --update nokogiri`.
+
+Bundler will update `nokogiri` and any of its dependencies, but leave the rest of the
+gems that you specified locked to the versions in the `Gemfile.lock`.