зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] util/rubocop -A
https://github.com/rubygems/rubygems/commit/8c9ea5d180
This commit is contained in:
Родитель
a881b33818
Коммит
06da0d1456
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче