summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorUtkarsh Gupta <utkarsh@debian.org>2020-06-16 19:07:21 +0530
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-18 19:14:15 +0900
commitd9c888d394575cd612c3af7f7bb82d0d01511428 (patch)
treebba7b251d668e57f0cb94bada6ac38d61be58a2d /lib
parentf9de8ccf1e26c9774cd1ebdb587b8edbb08b4d7b (diff)
[rubygems/rubygems] Only add .rubocop.yml when --rubocop flag is passed
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org> https://github.com/rubygems/rubygems/commit/ef2dae4222
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3212
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/cli/gem.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/cli/gem.rb b/lib/bundler/cli/gem.rb
index 5b0f5b3564..5b4e436d99 100644
--- a/lib/bundler/cli/gem.rb
+++ b/lib/bundler/cli/gem.rb
@@ -148,6 +148,7 @@ module Bundler
"and the Ruby Style Guides (https://github.com/rubocop-hq/ruby-style-guide).")
config[:rubocop] = true
Bundler.ui.info "RuboCop enabled in config"
+ templates.merge!("rubocop.yml.tt" => ".rubocop.yml")
end
templates.merge!("exe/newgem.tt" => "exe/#{name}") if config[:exe]