1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[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
This commit is contained in:
Utkarsh Gupta 2020-06-16 19:07:21 +05:30 committed by Hiroshi SHIBATA
parent ec98d56153
commit 22ee047f73
Notes: git 2020-06-18 19:15:00 +09:00
2 changed files with 0 additions and 8 deletions

View file

@ -79,7 +79,6 @@ module Bundler
]
templates.merge!("gitignore.tt" => ".gitignore") if Bundler.git_present?
templates.merge!("rubocop.yml.tt" => ".rubocop.yml")
if test_framework = ask_and_set_test_framework
config[:test] = test_framework

View file

@ -326,7 +326,6 @@ RSpec.describe "bundle gem" do
expect(bundled_app("#{gem_name}/lib/#{require_path}.rb")).to exist
expect(bundled_app("#{gem_name}/lib/#{require_path}/version.rb")).to exist
expect(bundled_app("#{gem_name}/.gitignore")).to exist
expect(bundled_app("#{gem_name}/.rubocop.yml")).to exist
expect(bundled_app("#{gem_name}/bin/setup")).to exist
expect(bundled_app("#{gem_name}/bin/console")).to exist
@ -385,12 +384,6 @@ RSpec.describe "bundle gem" do
expect(bundled_app("#{gem_name}/lib/#{require_path}.rb").read).to match(/class Error < StandardError; end$/)
end
it "creates a default .rubocop.yml" do
bundle "gem #{gem_name}"
expect(bundled_app("#{gem_name}/.rubocop.yml")).to exist
end
it "runs rake without problems" do
bundle "gem #{gem_name}"