Class: Pod::Resolver
- Inherits:
-
Object
- Object
- Pod::Resolver
- Defined in:
- lib/cocoapods-whitelist/hook/resolver.rb
Instance Method Summary collapse
- #original_search_for ⇒ Object
-
#search_for(dependency) ⇒ Object
Filter specifications.
Instance Method Details
#original_search_for ⇒ Object
7 |
# File 'lib/cocoapods-whitelist/hook/resolver.rb', line 7 alias original_search_for search_for |
#search_for(dependency) ⇒ Object
Filter specifications
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/cocoapods-whitelist/hook/resolver.rb', line 9 def search_for(dependency) ## If you have a dependency problem, then no specification is returned from :search_for specifications = original_search_for(dependency) valid_specifications = validate_dependency(dependency, specifications) ## If we have removed some specifications due to dependency injection, inform the user once. if valid_specifications.size != specifications.size and !informed_di_set.include?(dependency.root_name) Pod::UI.puts "WARNING: More than 1 specification for dependency #{dependency.root_name} was found. Using private source.".yellow informed_di_set.add(dependency.root_name) end valid_specifications end |