lib/solve/ruby_solver.rb
# Callback required by Molinillo
# Search for the specifications that match the given dependency.
# The specifications in the returned array will be considered in reverse
# order, so the latest version ought to be last.
# @note This method should be 'pure', i.e. the return value should depend
#   only on the `dependency` parameter.
#
# @param [Object] dependency
# @return [Array<Solve::Artifact>] the artifacts that match the dependency.
Callback required by Molinillo
Search for the specifications that match the given dependency.
The specifications in the returned array will be considered in reverse
order, so the latest version ought to be last.
Callback required by Molinillo Search for the specifications that match the given dependency . The specifications in the returned array will be considered in reverse order so the latest version ought to be last .
def search_for(dependency)
      graph.versions(dependency.name, dependency.constraint).sort
    end
def search_for ( dependency ) graph . versions ( dependency . name , dependency . constraint ) . sort end
Callback required by Molinillo
Search for the specifications that match the given dependency.
Callback required by Molinillo Search for the specifications that match the given dependency .
# This array gets mutated by Molinillo; it's okay because sort returns a # new array.
the artifacts that match the dependency.
the artifacts that match the dependency .
Array<Solve::Artifact>
dependency
<not_specific>
<not_specific>
None
note
This method should be 'pure', i.e. the return value should depend only on the `dependency` parameter.
This method should be ' pure ' i . e . the return value should depend only on the ` dependency ` parameter .