mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
parent
a881b33818
commit
06da0d1456
3 changed files with 3 additions and 3 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)
|
||||
source << "/" unless source.end_with?("/")
|
||||
|
||||
if options.delete :sources_cleared
|
||||
Gem.sources = [source]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue