本文简要介绍ruby语言中Gem::Resolver::Molinillo::SpecificationProvider.sort_dependencies
的用法。
用法
sort_dependencies(dependencies, activated, conflicts)
对依赖项进行排序,以便最容易解决的依赖项排在第一位。最容易解决的(通常)定义为:
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<Object>] dependencies @param [DependencyGraph] 激活当前依赖图在
resolution process.
@param [{String => Array
相关用法
- Ruby SpecificationProvider.search_for用法及代码示例
- Ruby SpecificationProvider.requirement_satisfied_by?用法及代码示例
- Ruby SpecificationProvider.dependencies_equal?用法及代码示例
- Ruby SpecificationProvider.name_for_explicit_dependency_source用法及代码示例
- Ruby SpecificationProvider.name_for用法及代码示例
- Ruby SpecificationProvider.dependencies_for用法及代码示例
- Ruby SpecificationProvider.name_for_locking_dependency_source用法及代码示例
- Ruby Specification.file_name用法及代码示例
- Ruby Specification.extra_rdoc_files用法及代码示例
- Ruby Specification.platform=用法及代码示例
- Ruby Specification.license=用法及代码示例
- Ruby Specification.extensions用法及代码示例
- Ruby Specification.name用法及代码示例
- Ruby Specification.homepage用法及代码示例
- Ruby Specification.requirements用法及代码示例
- Ruby Specification.executables用法及代码示例
- Ruby Specification.dependent_gems用法及代码示例
- Ruby Specification.authors=用法及代码示例
- Ruby Specification.description用法及代码示例
- Ruby Specification.rdoc_options用法及代码示例
- Ruby Specification.add_development_dependency用法及代码示例
- Ruby Specification.required_ruby_version用法及代码示例
- Ruby Specification.authors用法及代码示例
- Ruby Specification.author=用法及代码示例
- Ruby Specification.email用法及代码示例
注:本文由纯净天空筛选整理自ruby-lang.org大神的英文原创作品 SpecificationProvider.sort_dependencies。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。