In Files

  • rubygems/dependency_resolver.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

Gem::DependencyResolver::APISpecification

Represents a specification retrieved via the rubygems.org API. This is used to avoid having to load the full Specification object when all we need is the name, version, and dependencies.

Attributes

dependencies[R]
name[R]
version[R]

Public Class Methods

new(set, api_data) click to toggle source
 
               # File rubygems/dependency_resolver.rb, line 74
def initialize(set, api_data)
  @set = set
  @name = api_data[:name]
  @version = Gem::Version.new api_data[:number]
  @dependencies = api_data[:dependencies].map do |name, ver|
    Gem::Dependency.new name, ver.split(/\s*,\s*/)
  end
end
            

Public Instance Methods

full_name() click to toggle source
 
               # File rubygems/dependency_resolver.rb, line 93
def full_name
  "#{@name}-#{@version}"
end