[rubygems/rubygems] util/rubocop -A

https://github.com/rubygems/rubygems/commit/8c9ea5d180
This commit is contained in:
Hiroshi SHIBATA 2023-04-04 12:12:02 +09:00 коммит произвёл git
Родитель a881b33818
Коммит 06da0d1456
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -103,7 +103,7 @@ module Gem::LocalRemoteOptions
add_option(:"Local/Remote", "-s", "--source URL", URI::HTTP, add_option(:"Local/Remote", "-s", "--source URL", URI::HTTP,
"Append URL to list of remote gem sources") do |source, options| "Append URL to list of remote gem sources") do |source, options|
source << "/" if !/\/\z/.match?(source) source << "/" unless source.end_with?("/")
if options.delete :sources_cleared if options.delete :sources_cleared
Gem.sources = [source] Gem.sources = [source]

Просмотреть файл

@ -144,7 +144,7 @@ class Gem::SpecificationPolicy
end end
next unless METADATA_LINK_KEYS.include? key next unless METADATA_LINK_KEYS.include? key
if !VALID_URI_PATTERN.match?(value) unless VALID_URI_PATTERN.match?(value)
error "#{entry} has invalid link: #{value.inspect}" error "#{entry} has invalid link: #{value.inspect}"
end end
end end

Просмотреть файл

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