End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::Source.new
new(uri)
lib/rubygems/source.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/source.rb, line 28
def initialize(uri)
begin
unless uri.kind_of? URI
uri = URI.parse(uri.to_s)
end
rescue URI::InvalidURIError
raise if Gem::Source == self.class
end
@uri = uri
end
Creates a new Source which will use the index located at uri.