mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
7585bc3187
Features: - Add caller information to some deprecation messages to make them easier to fix [#7361](https://github.com/bundler/bundler/pull/7361) - Reconcile `bundle cache` vs `bundle package` everywhere. Now in docs, CLI help and everywhere else `bundle cache` is the preferred version and `bundle package` remains as an alias [#7389](https://github.com/bundler/bundler/pull/7389) - Display some basic `bundler` documentation together with ruby's RDoc based documentation [#7394](https://github.com/bundler/bundler/pull/7394) Bugfixes: - Fix typos deprecation message and upgrading docs [#7374](https://github.com/bundler/bundler/pull/7374) - Deprecation warnings about `taint` usage on ruby 2.7 [#7385](https://github.com/bundler/bundler/pull/7385) - Fix `--help` flag not correctly delegating to `man` when used with command aliases [#7388](https://github.com/bundler/bundler/pull/7388) - `bundle add` should cache newly added gems if an application cache exists [#7393](https://github.com/bundler/bundler/pull/7393) - Stop using an insecure folder as a "fallback home" when user home is not defined [#7416](https://github.com/bundler/bundler/pull/7416) - Fix `bundler/inline` warning about `Bundler.root` redefinition [#7417](https://github.com/bundler/bundler/pull/7417)
66 lines
1.5 KiB
Groff
66 lines
1.5 KiB
Groff
.\" generated with Ronn/v0.7.3
|
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
.
|
|
.TH "BUNDLE\-ADD" "1" "November 2019" "" ""
|
|
.
|
|
.SH "NAME"
|
|
\fBbundle\-add\fR \- Add gem to the Gemfile and run bundle install
|
|
.
|
|
.SH "SYNOPSIS"
|
|
\fBbundle add\fR \fIGEM_NAME\fR [\-\-group=GROUP] [\-\-version=VERSION] [\-\-source=SOURCE] [\-\-git=GIT] [\-\-branch=BRANCH] [\-\-skip\-install] [\-\-strict] [\-\-optimistic]
|
|
.
|
|
.SH "DESCRIPTION"
|
|
Adds the named gem to the Gemfile and run \fBbundle install\fR\. \fBbundle install\fR can be avoided by using the flag \fB\-\-skip\-install\fR\.
|
|
.
|
|
.P
|
|
Example:
|
|
.
|
|
.P
|
|
bundle add rails
|
|
.
|
|
.P
|
|
bundle add rails \-\-version "< 3\.0, > 1\.1"
|
|
.
|
|
.P
|
|
bundle add rails \-\-version "~> 5\.0\.0" \-\-source "https://gems\.example\.com" \-\-group "development"
|
|
.
|
|
.P
|
|
bundle add rails \-\-skip\-install
|
|
.
|
|
.P
|
|
bundle add rails \-\-group "development, test"
|
|
.
|
|
.SH "OPTIONS"
|
|
.
|
|
.TP
|
|
\fB\-\-version\fR, \fB\-v\fR
|
|
Specify version requirements(s) for the added gem\.
|
|
.
|
|
.TP
|
|
\fB\-\-group\fR, \fB\-g\fR
|
|
Specify the group(s) for the added gem\. Multiple groups should be separated by commas\.
|
|
.
|
|
.TP
|
|
\fB\-\-source\fR, , \fB\-s\fR
|
|
Specify the source for the added gem\.
|
|
.
|
|
.TP
|
|
\fB\-\-git\fR
|
|
Specify the git source for the added gem\.
|
|
.
|
|
.TP
|
|
\fB\-\-branch\fR
|
|
Specify the git branch for the added gem\.
|
|
.
|
|
.TP
|
|
\fB\-\-skip\-install\fR
|
|
Adds the gem to the Gemfile but does not install it\.
|
|
.
|
|
.TP
|
|
\fB\-\-optimistic\fR
|
|
Adds optimistic declaration of version
|
|
.
|
|
.TP
|
|
\fB\-\-strict\fR
|
|
Adds strict declaration of version
|
|
|