Sha256: 339e31080f19524bd9fdb032e625df8ce20611bbf914bc0c0703498436ff7cae

Contents?: true

Size: 713 Bytes

Versions: 10

Compression:

Stored size: 713 Bytes

Contents

# frozen_string_literal: true

require 'rubygems/command'
require 'rubygems/commands/query_command'

class Gem::Commands::InfoCommand < Gem::Commands::QueryCommand
  def initialize
    super "info", "Show information for the given gem"

    remove_option('--name-matches')
    remove_option('-d')

    defaults[:details] = true
    defaults[:exact] = true
  end

  def description # :nodoc:
    "Info prints information about the gem such as name,"\
    " description, website, license and installed paths"
  end

  def usage # :nodoc:
    "#{program_name} GEMNAME"
  end

  def arguments # :nodoc:
    "GEMNAME        name of the gem to print information about"
  end

  def defaults_str
    "--local"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rubygems-update-3.0.9 lib/rubygems/commands/info_command.rb
rubygems-update-3.0.8 lib/rubygems/commands/info_command.rb
rubygems-update-3.0.7 lib/rubygems/commands/info_command.rb
rubygems-update-3.0.6 lib/rubygems/commands/info_command.rb
rubygems-update-3.0.5 lib/rubygems/commands/info_command.rb
rubygems-update-3.0.4 lib/rubygems/commands/info_command.rb
rubygems-update-3.0.3 lib/rubygems/commands/info_command.rb
rubygems-update-3.0.2 lib/rubygems/commands/info_command.rb
rubygems-update-3.0.1 lib/rubygems/commands/info_command.rb
rubygems-update-3.0.0 lib/rubygems/commands/info_command.rb