Specifies a Specification object that should be activated. Also contains a dependency that was used to introduce this activation.
Methods
- D
- E
- F
- H
- I
- N
- P
- T
- V
Attributes
[R] | request | The parent request for this activation request. |
[R] | spec | The specification to be activated. |
Class Public methods
new(spec, request) Link
Creates a new ActivationRequest
that will activate spec
. The parent request
is used to provide diagnostics in case of conflicts.
Instance Public methods
development?() Link
Is this activation request for a development dependency?
download(path) Link
Downloads a gem at path
and returns the file path.
# File ruby/lib/rubygems/resolver/activation_request.rb, line 56 def download(path) Gem.ensure_gem_subdirectories path if @spec.respond_to? :sources exception = nil path = @spec.sources.find do |source| source.download full_spec, path rescue exception end return path if path raise exception if exception elsif @spec.respond_to? :source source = @spec.source source.download full_spec, path else source = Gem.sources.first source.download full_spec, path end end
eql?(other) Link
full_spec() Link
The Gem::Specification
for this activation request.
hash() Link
installed?() Link
True if the requested gem has already been installed.
name() Link
The name of this activation request’s specification
parent() Link
Return the ActivationRequest
that contained the dependency that we were activated for.
platform() Link
The platform of this activation request’s specification