End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::LocalRemoteOptions#add_clear_sources_option
add_clear_sources_option
lib/rubygems/local_remote_options.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/local_remote_options.rb, line 78
def add_clear_sources_option
add_option(:"Local/Remote", "--clear-sources",
"Clear the gem sources") do |value, options|
Gem.sources = nil
options[:sources_cleared] = true
end
end
Add the –clear-sources option
See also
#add_bulk_threshold_option
#add_local_remote_options
#accept_uri_http
#add_proxy_option
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0