diff options
author | Frank Lam <ryzingsun11@yahoo.com> | 2020-05-30 17:06:57 +0800 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-18 19:14:15 +0900 |
commit | 8e3136a03bdaf1aa405a07e689206080f3dfed7b (patch) | |
tree | bda8693a301b2924c8f1f2c92295650cb2b2ef8a /lib/bundler/cli.rb | |
parent | a80a5706b1d6737b866a164ad672a80de669dec1 (diff) | |
download | ruby-8e3136a03bdaf1aa405a07e689206080f3dfed7b.tar.gz |
[rubygems/rubygems] Make test framework/CI configuration for bundle gem consistent
* Add hints for --ci option
https://github.com/rubygems/rubygems/commit/5f779f45b0
Diffstat (limited to 'lib/bundler/cli.rb')
-rw-r--r-- | lib/bundler/cli.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index 07f35d5709..8dd5315771 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -574,8 +574,10 @@ module Bundler method_option :mit, :type => :boolean, :desc => "Generate an MIT license file. Set a default with `bundle config set gem.mit true`." method_option :rubocop, :type => :boolean, :desc => "Add rubocop to the generated Rakefile and gemspec. Set a default with `bundle config set gem.rubocop true`." method_option :test, :type => :string, :lazy_default => Bundler.settings["gem.test"] || "", :aliases => "-t", :banner => "Use the specified test framework for your library", - :desc => "Generate a test directory for your library, either rspec, minitest or test-unit. Set a default with `bundle config set gem.test rspec`." - method_option :ci, :type => :string, :desc => "Generate CI configuration, either GitHub Actions, Travis CI, GitLab CI or CircleCI. Set a default with `bundle config set gem.ci (github|travis|gitlab|circle)`" + :desc => "Generate a test directory for your library, either rspec, minitest or test-unit. Set a default with `bundle config set gem.test (rspec|minitest|test-unit)`." + method_option :ci, :type => :string, :lazy_default => Bundler.settings["gem.ci"] || "", + :desc => "Generate CI configuration, either GitHub Actions, Travis CI, GitLab CI or CircleCI. Set a default with `bundle config set gem.ci (github|travis|gitlab|circle)`" + def gem(name) end |