Skip to content

Commit 888a8f4

Browse files
committed
[rubygems/rubygems] bin/rubocop -A --only Style/StringLiteralsInInterpolation
rubygems/rubygems@2333f5f9c5
1 parent ea31461 commit 888a8f4

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

lib/rubygems/specification_policy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Gem::SpecificationPolicy
77

88
VALID_NAME_PATTERN = /\A[a-zA-Z0-9\.\-\_]+\z/ # :nodoc:
99

10-
SPECIAL_CHARACTERS = /\A[#{Regexp.escape('.-_')}]+/ # :nodoc:
10+
SPECIAL_CHARACTERS = /\A[#{Regexp.escape(".-_")}]+/ # :nodoc:
1111

1212
VALID_URI_PATTERN = %r{\Ahttps?:\/\/([^\s:@]+:[^\s:@]*@)?[A-Za-z\d\-]+(\.[A-Za-z\d\-]+)+\.?(:\d{1,5})?([\/?]\S*)?\z} # :nodoc:
1313

test/rubygems/test_gem_commands_environment_command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_execute
3030
assert_match(/USER INSTALLATION DIRECTORY: #{Regexp.escape Gem.user_dir}/,
3131
@ui.output)
3232
assert_match(/RUBYGEMS PREFIX: /, @ui.output)
33-
assert_match(/RUBY EXECUTABLE:.*#{RbConfig::CONFIG['ruby_install_name']}/,
33+
assert_match(/RUBY EXECUTABLE:.*#{RbConfig::CONFIG["ruby_install_name"]}/,
3434
@ui.output)
3535
assert_match(/GIT EXECUTABLE: #{@cmd.send(:git_path)}/, @ui.output)
3636
assert_match(/SYSTEM CONFIGURATION DIRECTORY:/, @ui.output)

test/rubygems/test_gem_dependency_installer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ def test_install_env_shebang
621621

622622
env = "/\\S+/env" unless Gem.win_platform?
623623

624-
assert_match(/\A#!#{env} #{RbConfig::CONFIG['ruby_install_name']}\n/,
624+
assert_match(/\A#!#{env} #{RbConfig::CONFIG["ruby_install_name"]}\n/,
625625
File.read(File.join(@gemhome, "bin", "a_bin")))
626626
end
627627

test/rubygems/test_gem_ext_builder.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def test_class_make
4848

4949
results = results.join("\n").b
5050

51-
assert_match(/DESTDIR\\=#{ENV['DESTDIR']} clean$/, results)
52-
assert_match(/DESTDIR\\=#{ENV['DESTDIR']}$/, results)
53-
assert_match(/DESTDIR\\=#{ENV['DESTDIR']} install$/, results)
51+
assert_match(/DESTDIR\\=#{ENV["DESTDIR"]} clean$/, results)
52+
assert_match(/DESTDIR\\=#{ENV["DESTDIR"]}$/, results)
53+
assert_match(/DESTDIR\\=#{ENV["DESTDIR"]} install$/, results)
5454

5555
unless results.include?("nmake")
5656
assert_match(/^clean: destination$/, results)
@@ -77,9 +77,9 @@ def test_class_make_no_clean
7777

7878
results = results.join("\n").b
7979

80-
assert_match(/DESTDIR\\=#{ENV['DESTDIR']} clean$/, results)
81-
assert_match(/DESTDIR\\=#{ENV['DESTDIR']}$/, results)
82-
assert_match(/DESTDIR\\=#{ENV['DESTDIR']} install$/, results)
80+
assert_match(/DESTDIR\\=#{ENV["DESTDIR"]} clean$/, results)
81+
assert_match(/DESTDIR\\=#{ENV["DESTDIR"]}$/, results)
82+
assert_match(/DESTDIR\\=#{ENV["DESTDIR"]} install$/, results)
8383
end
8484

8585
def test_custom_make_with_options

0 commit comments

Comments
 (0)