End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::SourceFetchProblem.new
new(source, error)
lib/rubygems/errors.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/errors.rb, line 152
def initialize(source, error)
@source = source
@error = error
end
Creates a new SourceFetchProblem for the given source and error.