Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem::Resolver::IndexSpecification.new
new(set, name, version, source, platform, content_address: nil)
lib/rubygems/resolver/index_specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/resolver/index_specification.rb, line 18
def initialize(set, name, version, source, platform, content_address: nil)
super()
@set = set
@name = name
@version = version
@source = source
@platform = Gem::Platform.new(platform.to_s)
@original_platform = platform.to_s
@content_address = content_address
@spec = nil
end
An IndexSpecification is created from the index format described in ‘gem help generate_index`.
The set contains other specifications for this (URL) source.
The name, version and platform are the name, version and platform of the gem.