method

spec_for

ruby latest stable - Class: Gem::Commands::ContentsCommand
spec_for(name)
public

No documentation available.

# File lib/rubygems/commands/contents_command.rb, line 169
  def spec_for name
    spec = Gem::Specification.find_all_by_name(name, @version).last

    return spec if spec

    say "Unable to find gem '#{name}' in #{@path_kind}"

    if Gem.configuration.verbose then
      say "\nDirectories searched:"
      @spec_dirs.sort.each { |dir| say dir }
    end

    return nil
  end