End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Specification#dependent_gems
dependent_gems(check_dev=true)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/specification.rb, line 1793
def dependent_gems(check_dev=true)
out = []
Gem::Specification.each do |spec|
deps = check_dev ? spec.dependencies : spec.runtime_dependencies
deps.each do |dep|
if self.satisfies_requirement?(dep)
sats = []
find_all_satisfiers(dep) do |sat|
sats << sat
end
out << [spec, dep, sats]
end
end
end
out
end
Return a list of all gems that have a dependency on this gemspec. The list is structured with entries that conform to:
Example
[depending_gem, dependency, [list_of_gems_that_satisfy_dependency]]
See also
#dependencies
#dependent_specs
#default_value
#description=
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0