An error caused by searching for a dependency that is completely unknown, i.e. has no versions available whatsoever.
Initializes a new error with the given missing dependency. @param [Object] dependency @see {#dependency} @param [Array<Object>] required_by @see {#required_by}
# File rubygems/resolver/molinillo/lib/molinillo/errors.rb, line 18
def initialize(dependency, required_by = [])
@dependency = dependency
@required_by = required_by
super()
end
The error message for the missing dependency, including the specifications that had this dependency.
# File rubygems/resolver/molinillo/lib/molinillo/errors.rb, line 26
def message
sources = required_by.map { |r| "`#{r}`" }.join(' and ')
message = "Unable to find a specification for `#{dependency}`"
message += " depended upon by #{sources}" unless sources.empty?
message
end