Method: Gem::DependencyList#remove_specs_unsatisfied_by
- Defined in:
- lib/rubygems/dependency_list.rb
#remove_specs_unsatisfied_by(dependencies) ⇒ Object
Remove everything in the DependencyList that matches but doesn’t satisfy items in dependencies (a hash of gem names to arrays of dependencies).
176 177 178 179 180 181 |
# File 'lib/rubygems/dependency_list.rb', line 176 def remove_specs_unsatisfied_by(dependencies) specs.reject! do |spec| dep = dependencies[spec.name] dep && !dep.requirement.satisfied_by?(spec.version) end end |