class Molinillo::NoSuchDependencyError
i.e. has no versions available whatsoever.
An error caused by searching for a dependency that is completely unknown,
def initialize(dependency, required_by = [])
-
required_by
(Array
) -- @see {#required_by} -
dependency
(Object
) -- @see {#dependency}
def initialize(dependency, required_by = []) @dependency = dependency @required_by = required_by.uniq super() end
def message
The error message for the missing dependency, including the specifications
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