Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::DependencyList#remove_specs_unsatisfied_by
remove_specs_unsatisfied_by(dependencies)
lib/rubygems/dependency_list.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/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
Remove everything in the DependencyList that matches but doesn’t satisfy items in dependencies (a hash of gem names to arrays of dependencies).
See also
#remove_by_name
#spec_predecessors
#ok_to_remove?
#tsort_each_child
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0