method
sort_dependencies
ruby latest stable - Class:
Gem::Resolver::Molinillo::SpecificationProvider
sort_dependencies(dependencies, activated, conflicts)public
Sort dependencies so that the ones that are easiest to resolve are first. Easiest to resolve is (usually) defined by:
1) Is this dependency already activated? 2) How relaxed are the requirements? 3) Are there any conflicts for this dependency? 4) How many possibilities are there to satisfy this dependency?
@param [Array dependencies @param [DependencyGraph] activated the current dependency graph in the
resolution process.
@param [{String => Array