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)
91 lines
3.1 KiB
Text
91 lines
3.1 KiB
Text
BUNDLE-GEM(1) BUNDLE-GEM(1)
|
|
|
|
|
|
|
|
NAME
|
|
bundle-gem - Generate a project skeleton for creating a rubygem
|
|
|
|
SYNOPSIS
|
|
bundle gem GEM_NAME OPTIONS
|
|
|
|
DESCRIPTION
|
|
Generates a directory named GEM_NAME with a Rakefile, GEM_NAME.gemspec,
|
|
and other supporting files and directories that can be used to develop
|
|
a rubygem with that name.
|
|
|
|
Run rake -T in the resulting project for a list of Rake tasks that can
|
|
be used to test and publish the gem to rubygems.org.
|
|
|
|
The generated project skeleton can be customized with OPTIONS, as
|
|
explained below. Note that these options can also be specified via
|
|
Bundler's global configuration file using the following names:
|
|
|
|
o gem.coc
|
|
|
|
o gem.mit
|
|
|
|
o gem.test
|
|
|
|
|
|
|
|
OPTIONS
|
|
--exe or -b or --bin
|
|
Specify that Bundler should create a binary executable (as
|
|
exe/GEM_NAME) in the generated rubygem project. This binary will
|
|
also be added to the GEM_NAME.gemspec manifest. This behavior is
|
|
disabled by default.
|
|
|
|
--no-exe
|
|
Do not create a binary (overrides --exe specified in the global
|
|
config).
|
|
|
|
--coc Add a CODE_OF_CONDUCT.md file to the root of the generated
|
|
project. If this option is unspecified, an interactive prompt
|
|
will be displayed and the answer will be saved in Bundler's
|
|
global config for future bundle gem use.
|
|
|
|
--no-coc
|
|
Do not create a CODE_OF_CONDUCT.md (overrides --coc specified in
|
|
the global config).
|
|
|
|
--ext Add boilerplate for C extension code to the generated project.
|
|
This behavior is disabled by default.
|
|
|
|
--no-ext
|
|
Do not add C extension code (overrides --ext specified in the
|
|
global config).
|
|
|
|
--mit Add an MIT license to a LICENSE.txt file in the root of the gen-
|
|
erated project. Your name from the global git config is used for
|
|
the copyright statement. If this option is unspecified, an
|
|
interactive prompt will be displayed and the answer will be
|
|
saved in Bundler's global config for future bundle gem use.
|
|
|
|
--no-mit
|
|
Do not create a LICENSE.txt (overrides --mit specified in the
|
|
global config).
|
|
|
|
-t, --test=minitest, --test=rspec
|
|
Specify the test framework that Bundler should use when generat-
|
|
ing the project. Acceptable values are minitest and rspec. The
|
|
GEM_NAME.gemspec will be configured and a skeleton test/spec
|
|
directory will be created based on this option. If this option
|
|
is unspecified, an interactive prompt will be displayed and the
|
|
answer will be saved in Bundler's global config for future bun-
|
|
dle gem use. If no option is specified, the default testing
|
|
framework is RSpec.
|
|
|
|
-e, --edit[=EDITOR]
|
|
Open the resulting GEM_NAME.gemspec in EDITOR, or the default
|
|
editor if not specified. The default is $BUNDLER_EDITOR, $VIS-
|
|
UAL, or $EDITOR.
|
|
|
|
SEE ALSO
|
|
o bundle config(1) bundle-config.1.html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
November 2019 BUNDLE-GEM(1)
|