Used Internally. Wraps a Dependency object to also track which spec contained the Dependency.

Methods
E
I
M
N
R
Attributes
[R] dependency

The wrapped Gem::Dependency

[R] requester

The request for this dependency.

Class Public methods
new(dependency, requester)

Creates a new DependencyRequest for dependency from requester. +requester may be nil if the request came from a user.

# File lib/rubygems/resolver/dependency_request.rb, line 21
def initialize dependency, requester
  @dependency = dependency
  @requester  = requester
end
Instance Public methods
explicit?()

Indicate that the request is for a gem explicitly requested by the user

# File lib/rubygems/resolver/dependency_request.rb, line 54
def explicit?
  @requester.nil?
end
implicit?()

Indicate that the request is for a gem requested as a dependency of another gem

# File lib/rubygems/resolver/dependency_request.rb, line 62
def implicit?
  !explicit?
end
matches_spec?(spec)

Does this dependency request match spec

# File lib/rubygems/resolver/dependency_request.rb, line 40
def matches_spec?(spec)
  @dependency.matches_spec? spec
end
name()

The name of the gem this dependency request is requesting.

# File lib/rubygems/resolver/dependency_request.rb, line 47
def name
  @dependency.name
end
request_context()

Return a String indicating who caused this request to be added (only valid for implicit requests)

# File lib/rubygems/resolver/dependency_request.rb, line 70
def request_context
  @requester ? @requester.request : "(unknown)"
end
requirement()

The version requirement for this dependency request

# File lib/rubygems/resolver/dependency_request.rb, line 88
def requirement
  @dependency.requirement
end