class Gem::DependencyResolver::ActivationRequest


activation.
Also contains a dependency that was used to introduce this
Specifies a Specification object that should be activated.

def ==(other)

def ==(other)
  case other
  when Gem::Specification
    @spec == other
  when ActivationRequest
    @spec == other.spec && @request == other.request
  else
    false
  end
end

def download(path)

def download(path)
  if @spec.respond_to? :source
    source = @spec.source
  else
    source = Gem.sources.first
  end
  source.download full_spec, path
end

def full_name

def full_name
  @spec.full_name
end

def full_spec

def full_spec
  Gem::Specification === @spec ? @spec : @spec.spec
end

def initialize(spec, req, others_possible=true)

def initialize(spec, req, others_possible=true)
  @spec = spec
  @request = req
  @others_possible = others_possible
end

def installed?

def installed?
  this_spec = full_spec
  Gem::Specification.any? do |s|
    s == this_spec
  end
end

def name

def name
  @spec.name
end

def others_possible?


requests for the same Dependency request.
Indicate if this activation is one of a set of possible
def others_possible?
  @others_possible
end

def parent


that we were activated for.
Return the ActivationRequest that contained the dependency
def parent
  @request.requester
end

def version

def version
  @spec.version
end