[rubygems/rubygems] util/rubocop -A --only Style/RedundantInterpolation
https://github.com/rubygems/rubygems/commit/add44e56eb
This commit is contained in:
parent
0b632b9cdd
commit
712d6e675b
@ -17,7 +17,7 @@ longer using.
|
|||||||
end
|
end
|
||||||
|
|
||||||
def usage # :nodoc:
|
def usage # :nodoc:
|
||||||
"#{program_name}"
|
program_name.to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
def execute
|
def execute
|
||||||
|
@ -154,7 +154,7 @@ module Gem::Deprecate
|
|||||||
". It will be removed in Rubygems #{version}.\n",
|
". It will be removed in Rubygems #{version}.\n",
|
||||||
]
|
]
|
||||||
|
|
||||||
alert_warning "#{msg.join}" unless Gem::Deprecate.skip
|
alert_warning msg.join.to_s unless Gem::Deprecate.skip
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -269,7 +269,7 @@ module Gem::GemcutterUtilities
|
|||||||
else
|
else
|
||||||
say "Please select scopes you want to enable for the API key (y/n)"
|
say "Please select scopes you want to enable for the API key (y/n)"
|
||||||
API_SCOPES.each do |scope|
|
API_SCOPES.each do |scope|
|
||||||
selected = ask_yes_no("#{scope}", false)
|
selected = ask_yes_no(scope.to_s, false)
|
||||||
scope_params[scope] = true if selected
|
scope_params[scope] = true if selected
|
||||||
end
|
end
|
||||||
say "\n"
|
say "\n"
|
||||||
|
@ -131,7 +131,7 @@ class Gem::Resolver::Conflict
|
|||||||
|
|
||||||
current = current.parent
|
current = current.parent
|
||||||
when Gem::Resolver::DependencyRequest then
|
when Gem::Resolver::DependencyRequest then
|
||||||
path << "#{current.dependency}"
|
path << current.dependency.to_s
|
||||||
|
|
||||||
current = current.requester
|
current = current.requester
|
||||||
else
|
else
|
||||||
|
@ -10,7 +10,7 @@ class Gem::S3URISigner
|
|||||||
end
|
end
|
||||||
|
|
||||||
def to_s # :nodoc:
|
def to_s # :nodoc:
|
||||||
"#{super}"
|
(super).to_s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ class Gem::S3URISigner
|
|||||||
end
|
end
|
||||||
|
|
||||||
def to_s # :nodoc:
|
def to_s # :nodoc:
|
||||||
"#{super}"
|
(super).to_s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -510,7 +510,7 @@ module Gem::Security
|
|||||||
extensions = EXTENSIONS)
|
extensions = EXTENSIONS)
|
||||||
raise Gem::Security::Exception,
|
raise Gem::Security::Exception,
|
||||||
"incorrect signing key for re-signing " +
|
"incorrect signing key for re-signing " +
|
||||||
"#{expired_certificate.subject}" unless
|
expired_certificate.subject.to_s unless
|
||||||
expired_certificate.check_private_key(private_key)
|
expired_certificate.check_private_key(private_key)
|
||||||
|
|
||||||
unless expired_certificate.subject.to_s ==
|
unless expired_certificate.subject.to_s ==
|
||||||
|
@ -595,7 +595,7 @@ class TestGemCommandsPristineCommand < Gem::TestCase
|
|||||||
FileUtils.rm gem_exec
|
FileUtils.rm gem_exec
|
||||||
FileUtils.rm gem_bindir
|
FileUtils.rm gem_bindir
|
||||||
|
|
||||||
@cmd.handle_options ["--all", "--only-executables", "--bindir", "#{gem_bindir}"]
|
@cmd.handle_options ["--all", "--only-executables", "--bindir", gem_bindir.to_s]
|
||||||
|
|
||||||
use_ui @ui do
|
use_ui @ui do
|
||||||
@cmd.execute
|
@cmd.execute
|
||||||
|
@ -160,8 +160,8 @@ class TestGemIndexer < Gem::TestCase
|
|||||||
assert_indexed marshal_quickdir, "#{File.basename(@a1.spec_file)}.rz"
|
assert_indexed marshal_quickdir, "#{File.basename(@a1.spec_file)}.rz"
|
||||||
assert_indexed marshal_quickdir, "#{File.basename(@a2.spec_file)}.rz"
|
assert_indexed marshal_quickdir, "#{File.basename(@a2.spec_file)}.rz"
|
||||||
|
|
||||||
refute_indexed quickdir, "#{File.basename(@c1_2.spec_file)}"
|
refute_indexed quickdir, File.basename(@c1_2.spec_file).to_s
|
||||||
refute_indexed marshal_quickdir, "#{File.basename(@c1_2.spec_file)}"
|
refute_indexed marshal_quickdir, File.basename(@c1_2.spec_file).to_s
|
||||||
|
|
||||||
assert_indexed @indexerdir, "specs.#{@marshal_version}"
|
assert_indexed @indexerdir, "specs.#{@marshal_version}"
|
||||||
assert_indexed @indexerdir, "specs.#{@marshal_version}.gz"
|
assert_indexed @indexerdir, "specs.#{@marshal_version}.gz"
|
||||||
|
@ -29,7 +29,7 @@ class TestGemResolverAPISet < Gem::TestCase
|
|||||||
set = @DR::APISet.new @dep_uri
|
set = @DR::APISet.new @dep_uri
|
||||||
|
|
||||||
assert_equal URI("#{@gem_repo}info/"), set.dep_uri
|
assert_equal URI("#{@gem_repo}info/"), set.dep_uri
|
||||||
assert_equal URI("#{@gem_repo}"), set.uri
|
assert_equal URI(@gem_repo.to_s), set.uri
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_find_all
|
def test_find_all
|
||||||
|
@ -182,7 +182,7 @@ class TestGemSecurity < Gem::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
assert_equal "incorrect signing key for re-signing " +
|
assert_equal "incorrect signing key for re-signing " +
|
||||||
"#{ALTERNATE_CERT.subject}",
|
ALTERNATE_CERT.subject.to_s,
|
||||||
e.message
|
e.message
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -383,7 +383,7 @@ class TestGemRequire < Gem::TestCase
|
|||||||
|
|
||||||
# Remove an old default gem version directly from disk as if someone ran
|
# Remove an old default gem version directly from disk as if someone ran
|
||||||
# gem cleanup.
|
# gem cleanup.
|
||||||
FileUtils.rm_rf(File.join(@gemhome, "#{b1.full_name}"))
|
FileUtils.rm_rf(File.join(@gemhome, b1.full_name.to_s))
|
||||||
FileUtils.rm_rf(File.join(@gemhome, "specifications", "default", "#{b1.full_name}.gemspec"))
|
FileUtils.rm_rf(File.join(@gemhome, "specifications", "default", "#{b1.full_name}.gemspec"))
|
||||||
|
|
||||||
# Require gems that have not been removed.
|
# Require gems that have not been removed.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user