mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[rubygems/rubygems] bin/rubocop -A --only Style/StringLiteralsInInterpolation
2333f5f9c5
This commit is contained in:
parent
ea31461ba0
commit
888a8f4318
4 changed files with 9 additions and 9 deletions
|
@ -7,7 +7,7 @@ class Gem::SpecificationPolicy
|
|||
|
||||
VALID_NAME_PATTERN = /\A[a-zA-Z0-9\.\-\_]+\z/ # :nodoc:
|
||||
|
||||
SPECIAL_CHARACTERS = /\A[#{Regexp.escape('.-_')}]+/ # :nodoc:
|
||||
SPECIAL_CHARACTERS = /\A[#{Regexp.escape(".-_")}]+/ # :nodoc:
|
||||
|
||||
VALID_URI_PATTERN = %r{\Ahttps?:\/\/([^\s:@]+:[^\s:@]*@)?[A-Za-z\d\-]+(\.[A-Za-z\d\-]+)+\.?(:\d{1,5})?([\/?]\S*)?\z} # :nodoc:
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ class TestGemCommandsEnvironmentCommand < Gem::TestCase
|
|||
assert_match(/USER INSTALLATION DIRECTORY: #{Regexp.escape Gem.user_dir}/,
|
||||
@ui.output)
|
||||
assert_match(/RUBYGEMS PREFIX: /, @ui.output)
|
||||
assert_match(/RUBY EXECUTABLE:.*#{RbConfig::CONFIG['ruby_install_name']}/,
|
||||
assert_match(/RUBY EXECUTABLE:.*#{RbConfig::CONFIG["ruby_install_name"]}/,
|
||||
@ui.output)
|
||||
assert_match(/GIT EXECUTABLE: #{@cmd.send(:git_path)}/, @ui.output)
|
||||
assert_match(/SYSTEM CONFIGURATION DIRECTORY:/, @ui.output)
|
||||
|
|
|
@ -621,7 +621,7 @@ class TestGemDependencyInstaller < Gem::TestCase
|
|||
|
||||
env = "/\\S+/env" unless Gem.win_platform?
|
||||
|
||||
assert_match(/\A#!#{env} #{RbConfig::CONFIG['ruby_install_name']}\n/,
|
||||
assert_match(/\A#!#{env} #{RbConfig::CONFIG["ruby_install_name"]}\n/,
|
||||
File.read(File.join(@gemhome, "bin", "a_bin")))
|
||||
end
|
||||
|
||||
|
|
|
@ -48,9 +48,9 @@ install:
|
|||
|
||||
results = results.join("\n").b
|
||||
|
||||
assert_match(/DESTDIR\\=#{ENV['DESTDIR']} clean$/, results)
|
||||
assert_match(/DESTDIR\\=#{ENV['DESTDIR']}$/, results)
|
||||
assert_match(/DESTDIR\\=#{ENV['DESTDIR']} install$/, results)
|
||||
assert_match(/DESTDIR\\=#{ENV["DESTDIR"]} clean$/, results)
|
||||
assert_match(/DESTDIR\\=#{ENV["DESTDIR"]}$/, results)
|
||||
assert_match(/DESTDIR\\=#{ENV["DESTDIR"]} install$/, results)
|
||||
|
||||
unless results.include?("nmake")
|
||||
assert_match(/^clean: destination$/, results)
|
||||
|
@ -77,9 +77,9 @@ install:
|
|||
|
||||
results = results.join("\n").b
|
||||
|
||||
assert_match(/DESTDIR\\=#{ENV['DESTDIR']} clean$/, results)
|
||||
assert_match(/DESTDIR\\=#{ENV['DESTDIR']}$/, results)
|
||||
assert_match(/DESTDIR\\=#{ENV['DESTDIR']} install$/, results)
|
||||
assert_match(/DESTDIR\\=#{ENV["DESTDIR"]} clean$/, results)
|
||||
assert_match(/DESTDIR\\=#{ENV["DESTDIR"]}$/, results)
|
||||
assert_match(/DESTDIR\\=#{ENV["DESTDIR"]} install$/, results)
|
||||
end
|
||||
|
||||
def test_custom_make_with_options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue