[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

@ -22,29 +22,29 @@ class TestGemCommandsEnvironmentCommand < Gem::TestCase
@cmd.execute
end
assert_match %r|RUBYGEMS VERSION: (\d\.)+\d|, @ui.output
assert_match %r|RUBY VERSION: \d+\.\d+\.\d+ \(.*\) \[.*\]|, @ui.output
assert_match %r|INSTALLATION DIRECTORY: #{Regexp.escape @gemhome}|,
assert_match %r{RUBYGEMS VERSION: (\d\.)+\d}, @ui.output
assert_match %r{RUBY VERSION: \d+\.\d+\.\d+ \(.*\) \[.*\]}, @ui.output
assert_match %r{INSTALLATION DIRECTORY: #{Regexp.escape @gemhome}},
@ui.output
assert_match %r|RUBYGEMS PREFIX: |, @ui.output
assert_match %r|RUBY EXECUTABLE:.*#{RbConfig::CONFIG['ruby_install_name']}|,
assert_match %r{RUBYGEMS PREFIX: }, @ui.output
assert_match %r{RUBY EXECUTABLE:.*#{RbConfig::CONFIG['ruby_install_name']}},
@ui.output
assert_match %r|GIT EXECUTABLE: #{@cmd.send(:git_path)}|, @ui.output
assert_match %r|SYSTEM CONFIGURATION DIRECTORY:|, @ui.output
assert_match %r|EXECUTABLE DIRECTORY:|, @ui.output
assert_match %r|RUBYGEMS PLATFORMS:|, @ui.output
assert_match %r|- #{Gem::Platform.local}|, @ui.output
assert_match %r|GEM PATHS:|, @ui.output
assert_match %r|- #{Regexp.escape @gemhome}|, @ui.output
assert_match %r|GEM CONFIGURATION:|, @ui.output
assert_match %r|"gemcutter_key" => "\*\*\*\*"|, @ui.output
assert_match %r|:verbose => |, @ui.output
assert_match %r|REMOTE SOURCES:|, @ui.output
assert_match %r{GIT EXECUTABLE: #{@cmd.send(:git_path)}}, @ui.output
assert_match %r{SYSTEM CONFIGURATION DIRECTORY:}, @ui.output
assert_match %r{EXECUTABLE DIRECTORY:}, @ui.output
assert_match %r{RUBYGEMS PLATFORMS:}, @ui.output
assert_match %r{- #{Gem::Platform.local}}, @ui.output
assert_match %r{GEM PATHS:}, @ui.output
assert_match %r{- #{Regexp.escape @gemhome}}, @ui.output
assert_match %r{GEM CONFIGURATION:}, @ui.output
assert_match %r{"gemcutter_key" => "\*\*\*\*"}, @ui.output
assert_match %r{:verbose => }, @ui.output
assert_match %r{REMOTE SOURCES:}, @ui.output
assert_match %r|- SHELL PATH:|, @ui.output
assert_match %r|- /usr/local/bin$|, @ui.output
assert_match %r|- /usr/bin$|, @ui.output
assert_match %r|- /bin$|, @ui.output
assert_match %r{- SHELL PATH:}, @ui.output
assert_match %r{- /usr/local/bin$}, @ui.output
assert_match %r{- /usr/bin$}, @ui.output
assert_match %r{- /bin$}, @ui.output
assert_empty @ui.error