mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
[rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems
So it matches the style used by bundler.
ab0580fd65
This commit is contained in:
parent
f987302cf4
commit
ba9dcdab36
47 changed files with 302 additions and 302 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue