lib/gem_leaves.rb
def find_leaves
    ignorable = @configuration['ignore'].map do |k, v|
      Gem::Specification.find_all_by_name k, v
    end.flatten
    @leaves = Gem::Specification.select {|s| s.dependent_gems.empty?} - ignorable
  end
# Looks at the installed gems to find the _leaves_.
Looks at the installed gems to find the _leaves_.
Looks at the installed gems to find the _leaves_ .
def find_leaves
    ignorable = @configuration['ignore'].map do |k, v|
      Gem::Specification.find_all_by_name k, v
    end.flatten
    @leaves = Gem::Specification.select {|s| s.dependent_gems.empty?} - ignorable
  end
def find_leaves ignorable = @configuration [ 'ignore' ] . map do | k , v | Gem :: Specification . find_all_by_name k , v end . flatten @leaves = Gem :: Specification . select { | s | s . dependent_gems . empty? } - ignorable end
Looks at the installed gems to find the _leaves_.
Looks at the installed gems to find the _leaves_ .