Represents a specification retrieved via the rubygems.org API.
This is used to avoid loading the full Specification object when all we need is the name, version, and dependencies.
Class Methods
3.2
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/rubygems/resolver/api_specification.rb, line 13
def self.new(set, api_data)
cache_key = [set, api_data]
cache = @@cache[cache_key]
return cache if cache
@@cache[cache_key] = super
end
No documentation available
Instance Methods
#
3.2
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/rubygems/resolver/api_specification.rb, line 50
def hash
@set.hash ^ @name.hash ^ @version.hash ^ @platform.hash
end
No documentation available