Sha256: fce6d5c537263b6732c5820d99fc4784173faffb164721de7766792629f58f3c

Contents?: true

Size: 855 Bytes

Versions: 79

Compression:

Stored size: 855 Bytes

Contents

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

class Gem::Commands::SearchCommand < Gem::Commands::QueryCommand

  def initialize
    super 'search', 'Display remote gems whose name matches REGEXP'

    remove_option '--name-matches'

    defaults[:domain] = :remote
  end

  def arguments # :nodoc:
    "REGEXP        regexp to search for in gem name"
  end

  def defaults_str # :nodoc:
    "--remote --no-details"
  end

  def description # :nodoc:
    <<-EOF
The search command displays remote gems whose name matches the given
regexp.

The --details option displays additional details from the gem but will
take a little longer to complete as it must download the information
individually from the index.

To list local gems use the list command.
    EOF
  end

  def usage # :nodoc:
    "#{program_name} [REGEXP]"
  end

end

Version data entries

79 entries across 51 versions & 4 rubygems

Version Path
rb2exe-0.1.43 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/search_command.rb
rb2exe-0.1.40 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/search_command.rb
rb2exe-0.1.39 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/search_command.rb
rb2exe-0.1.38 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/search_command.rb
rb2exe-0.1.29 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/search_command.rb
rb2exe-0.1.14 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/search_command.rb
rb2exe-0.1.12 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/rubygems/commands/search_command.rb
rubygems-update-2.5.1 lib/rubygems/commands/search_command.rb
rubygems-update-2.5.0 lib/rubygems/commands/search_command.rb
rubygems-update-2.4.8 lib/rubygems/commands/search_command.rb
rubygems-update-2.4.7 lib/rubygems/commands/search_command.rb
rubygems-update-2.4.6 lib/rubygems/commands/search_command.rb
rubygems-update-2.4.5 lib/rubygems/commands/search_command.rb
rubygems-update-2.4.4 lib/rubygems/commands/search_command.rb
rubygems-update-2.4.3 lib/rubygems/commands/search_command.rb
rubygems-update-2.4.2 lib/rubygems/commands/search_command.rb
rubygems-update-2.4.1 lib/rubygems/commands/search_command.rb
rubygems-update-2.4.0 lib/rubygems/commands/search_command.rb
rubygems-update-2.3.0 lib/rubygems/commands/search_command.rb