End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::SourceList#delete
delete(source)
lib/rubygems/source_list.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/source_list.rb, line 139
def delete(source)
if source.kind_of? Gem::Source
@sources.delete source
else
@sources.delete_if {|x| x.uri.to_s == source.to_s }
end
end
Deletes source from the source list which may be a Gem::Source or a URI.