End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::DependencyList#spec_predecessors
spec_predecessors
lib/rubygems/dependency_list.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/dependency_list.rb, line 193
def spec_predecessors
result = Hash.new {|h,k| h[k] = [] }
specs = @specs.sort.reverse
specs.each do |spec|
specs.each do |other|
next if spec == other
other.dependencies.each do |dep|
if spec.satisfies_requirement? dep
result[spec] << other
end
end
end
end
result
end
Return a hash of predecessors. result[spec] is an Array of gemspecs that have a dependency satisfied by the named gemspec.
See also
#remove_specs_unsatisfied_by
#tsort_each_child
#remove_by_name
#tsort_each_node
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0