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
lib/rubygems/resolver/api_specification.rb
View on GitHub
# File tmp/rubies/ruby-3.3.0/lib/rubygems/resolver/api_specification.rb, line 14
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
#
lib/rubygems/resolver/api_specification.rb
View on GitHub
# File tmp/rubies/ruby-3.3.0/lib/rubygems/resolver/api_specification.rb, line 51
def hash
@set.hash ^ @name.hash ^ @version.hash ^ @platform.hash
end
No documentation available