ruby/lib/rubygems/specification.rb
##
# Return a list of all gems that have a dependency on this gemspec.  The
# list is structured with entries that conform to:
#
#   [depending_gem, dependency, [list_of_gems_that_satisfy_dependency]]
Return a list of all gems that have a dependency on this gemspec.  The
list is structured with entries that conform to.


Return a list of all gems that have a dependency on this gemspec . The list is structured with entries that conform to .
def dependent_gems
    out = []
    Gem::Specification.each do |spec|
      spec.dependencies.each do |dep|
        if self.satisfies_requirement?(dep) then
          sats = []
          find_all_satisfiers(dep) do |sat|
            sats << sat
          end
          out << [spec, dep, sats]
        end
      end
    end
    out
  end
def dependent_gems out = [ ] Gem :: Specification . each do | spec | spec . dependencies . each do | dep | if self . satisfies_requirement? ( dep ) then 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.
Return a list of all gems that have a dependency on this gemspec .