Skip to content

Commit 949f125

Browse files
committed
[rubygems/rubygems] Use Bundler.settings[gem.bundle]
rubygems/rubygems@b16511598e
1 parent 59585b2 commit 949f125

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

lib/bundler/cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ def viz
544544
method_option :ci, type: :string, lazy_default: Bundler.settings["gem.ci"] || "", enum: %w[github gitlab circle], desc: "Generate CI configuration, either GitHub Actions, GitLab CI or CircleCI. Set a default with `bundle config set --global gem.ci (github|gitlab|circle)`"
545545
method_option :linter, type: :string, lazy_default: Bundler.settings["gem.linter"] || "", enum: %w[rubocop standard], desc: "Add a linter and code formatter, either RuboCop or Standard. Set a default with `bundle config set --global gem.linter (rubocop|standard)`"
546546
method_option :github_username, type: :string, default: Bundler.settings["gem.github_username"], banner: "Set your username on GitHub", desc: "Fill in GitHub username on README so that you don't have to do it manually. Set a default with `bundle config set --global gem.github_username <your_username>`."
547-
method_option :bundle, type: :boolean, default: true, desc: "Automatically run `bundle install` after creation."
547+
method_option :bundle, type: :boolean, default: Bundler.settings["gem.bundle"], desc: "Automatically run `bundle install` after creation. Set a default with `bundle config set --global gem.bundle true`"
548548

549549
def gem(name)
550550
require_relative "cli/gem"

lib/bundler/settings.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class Settings
2727
gem.changelog
2828
gem.coc
2929
gem.mit
30+
gem.bundle
3031
git.allow_insecure
3132
global_gem_cache
3233
ignore_messages

spec/bundler/quality_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ def check_for_specific_pronouns(filename)
144144
gem.coc
145145
gem.linter
146146
gem.mit
147+
gem.bundle
147148
gem.rubocop
148149
gem.test
149150
git.allow_insecure

0 commit comments

Comments
 (0)