[rubygems/rubygems] bin/rubocop -A --only Style/StringLiterals

https://github.com/rubygems/rubygems/commit/f25013bcc0
This commit is contained in:
Hiroshi SHIBATA 2024-01-10 17:02:32 +09:00
parent 443e417885
commit ea31461ba0
3 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ Use --overwrite to force rebuilding of documentation.
begin
doc.generate
rescue Errno::ENOENT => e
match = e.message.include?(' - ')
match = e.message.include?(" - ")
alert_error "Unable to document #{spec.full_name}, " \
" #{match.post_match} is missing, skipping"
terminate_interaction 1 if specs.length == 1

View File

@ -52,7 +52,7 @@ install:
assert_match(/DESTDIR\\=#{ENV['DESTDIR']}$/, results)
assert_match(/DESTDIR\\=#{ENV['DESTDIR']} install$/, results)
unless results.include?('nmake')
unless results.include?("nmake")
assert_match(/^clean: destination$/, results)
assert_match(/^all: destination$/, results)
assert_match(/^install: destination$/, results)

View File

@ -39,7 +39,7 @@ class TestGemSource < Gem::TestCase
uri = URI.parse("file:///C:/WINDOWS/Temp/gem_repo")
root = Gem.spec_cache_dir
cache_dir = @source.cache_dir(uri).gsub(root, "")
assert !cache_dir.include?(':'), "#{cache_dir} should not contain a :"
assert !cache_dir.include?(":"), "#{cache_dir} should not contain a :"
end
def test_dependency_resolver_set_bundler_api