diff options
author | Utkarsh Gupta <utkarsh@debian.org> | 2020-06-16 19:07:21 +0530 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-18 19:14:15 +0900 |
commit | d9c888d394575cd612c3af7f7bb82d0d01511428 (patch) | |
tree | bba7b251d668e57f0cb94bada6ac38d61be58a2d /lib/bundler | |
parent | f9de8ccf1e26c9774cd1ebdb587b8edbb08b4d7b (diff) | |
download | ruby-d9c888d394575cd612c3af7f7bb82d0d01511428.tar.gz |
[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
Diffstat (limited to 'lib/bundler')
-rw-r--r-- | lib/bundler/cli/gem.rb | 1 |
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] |