1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rubygems: Update to RubyGems 2.0.4. See

https://github.com/rubygems/rubygems/blob/2.0/History.txt for changes


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2013-07-08 22:41:03 +00:00
parent fa343a796f
commit 7083cebeae
32 changed files with 306 additions and 111 deletions

View file

@ -7,9 +7,8 @@ require 'rubygems/commands/query_command'
class Gem::Commands::ListCommand < Gem::Commands::QueryCommand
def initialize(name = 'list',
summary = 'Display gems whose name starts with STRING')
super name, summary
def initialize
super 'list', 'Display gems whose name starts with STRING'
remove_option('--name-matches')
end
@ -27,9 +26,8 @@ class Gem::Commands::ListCommand < Gem::Commands::QueryCommand
end
def execute
name = get_one_optional_argument || ''
options[:name] = /^#{name}/i
string = get_one_optional_argument || ''
options[:name] = /^#{string}/i
super
end