diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-01-10 17:02:32 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-01-11 13:51:52 +0900 |
commit | ea31461ba0cd9eb2fb68fd5b13266e75c343a471 (patch) | |
tree | bf850e0cfc181772329afd72e3bd45bfc1c759bc | |
parent | 443e4178859ed4d2789c3e5c982647a8e10d7021 (diff) |
[rubygems/rubygems] bin/rubocop -A --only Style/StringLiterals
https://github.com/rubygems/rubygems/commit/f25013bcc0
-rw-r--r-- | lib/rubygems/commands/rdoc_command.rb | 2 | ||||
-rw-r--r-- | test/rubygems/test_gem_ext_builder.rb | 2 | ||||
-rw-r--r-- | test/rubygems/test_gem_source.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/rubygems/commands/rdoc_command.rb b/lib/rubygems/commands/rdoc_command.rb index 2303e16424..b9470411ef 100644 --- a/lib/rubygems/commands/rdoc_command.rb +++ b/lib/rubygems/commands/rdoc_command.rb @@ -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 diff --git a/test/rubygems/test_gem_ext_builder.rb b/test/rubygems/test_gem_ext_builder.rb index 64ea1e5a2b..b1b6356020 100644 --- a/test/rubygems/test_gem_ext_builder.rb +++ b/test/rubygems/test_gem_ext_builder.rb @@ -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) diff --git a/test/rubygems/test_gem_source.rb b/test/rubygems/test_gem_source.rb index 870f7b1dc2..aa26dd07f0 100644 --- a/test/rubygems/test_gem_source.rb +++ b/test/rubygems/test_gem_source.rb @@ -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 |