[rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems

So it matches the style used by bundler.

ab0580fd65
This commit is contained in:
David Rodríguez 2020-03-24 19:51:43 +01:00 committed by Hiroshi SHIBATA
parent f987302cf4
commit ba9dcdab36
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
47 changed files with 302 additions and 302 deletions

View file

@ -50,14 +50,14 @@ install:
results = results.join "\n"
assert_match %r%"DESTDIR=#{ENV['DESTDIR']}" clean$%, results
assert_match %r%"DESTDIR=#{ENV['DESTDIR']}"$%, results
assert_match %r%"DESTDIR=#{ENV['DESTDIR']}" install$%, results
assert_match %r{"DESTDIR=#{ENV['DESTDIR']}" clean$}, results
assert_match %r{"DESTDIR=#{ENV['DESTDIR']}"$}, results
assert_match %r{"DESTDIR=#{ENV['DESTDIR']}" install$}, results
if /nmake/ !~ results
assert_match %r%^clean: destination$%, results
assert_match %r%^all: destination$%, results
assert_match %r%^install: destination$%, results
assert_match %r{^clean: destination$}, results
assert_match %r{^all: destination$}, results
assert_match %r{^install: destination$}, results
end
end
@ -81,9 +81,9 @@ install:
results = results.join "\n"
assert_match %r%"DESTDIR=#{ENV['DESTDIR']}" clean$%, results
assert_match %r%"DESTDIR=#{ENV['DESTDIR']}"$%, results
assert_match %r%"DESTDIR=#{ENV['DESTDIR']}" install$%, results
assert_match %r{"DESTDIR=#{ENV['DESTDIR']}" clean$}, results
assert_match %r{"DESTDIR=#{ENV['DESTDIR']}"$}, results
assert_match %r{"DESTDIR=#{ENV['DESTDIR']}" install$}, results
end
def test_build_extensions
@ -234,9 +234,9 @@ install:
gem_make_out = File.join @spec.extension_dir, 'gem_make.out'
assert_match %r%#{Regexp.escape Gem.ruby}.* extconf\.rb%,
assert_match %r{#{Regexp.escape Gem.ruby}.* extconf\.rb},
File.read(gem_make_out)
assert_match %r%: No such file%,
assert_match %r{: No such file},
File.read(gem_make_out)
refute_path_exists @spec.gem_build_complete_path
@ -244,7 +244,7 @@ install:
skip "Gem.ruby is not the name of the binary being run in the end" \
unless File.read(gem_make_out).include? "#{Gem.ruby}:"
assert_match %r%#{Regexp.escape Gem.ruby}: No such file%,
assert_match %r{#{Regexp.escape Gem.ruby}: No such file},
File.read(gem_make_out)
assert_equal cwd, Dir.pwd