本文簡要介紹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。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。