method

get_primary_gems

ruby latest stable - Class: Gem::Commands::CleanupCommand
get_primary_gems()
public

No documentation available.

# File lib/rubygems/commands/cleanup_command.rb, line 136
  def get_primary_gems
    @primary_gems = {}

    Gem::Specification.each do |spec|
      if @primary_gems[spec.name].nil? or
         @primary_gems[spec.name].version < spec.version then
        @primary_gems[spec.name] = spec
      end
    end
  end