summaryrefslogtreecommitdiff
path: root/lib/rubygems
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-04-04 12:12:02 +0900
committergit <[email protected]>2023-04-04 12:20:43 +0000
commit06da0d1456f52a69ad19a0a8cc35e3359d2d144c ()
treeb83609f2b7d0f8610e0f918d8c1a048810dd62fd /lib/rubygems
parenta881b33818b101ad097cd0158afda11b6c24f1fc (diff)
[rubygems/rubygems] util/rubocop -A
https://.com/rubygems/rubygems/commit/8c9ea5d180
-rw-r--r--lib/rubygems/local_remote_options.rb2
-rw-r--r--lib/rubygems/specification_policy.rb2
2 files changed, 2 insertions, 2 deletions
@@ -103,7 +103,7 @@ module Gem::LocalRemoteOptions
add_option(:"Local/Remote", "-s", "--source URL", URI::HTTP,
"Append URL to list of remote gem sources") do |source, options|
- source << "/" if !/\/\z/.match?(source)
if options.delete :sources_cleared
Gem.sources = [source]
@@ -144,7 +144,7 @@ class Gem::SpecificationPolicy
end
next unless METADATA_LINK_KEYS.include? key
- if !VALID_URI_PATTERN.match?(value)
error "#{entry} has invalid link: #{value.inspect}"
end
end