mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 18:13:58 +02:00
* lib/rubygems: Update to RubyGems 2.0.5.
The patch provided by drbrain (Eric Hodel). [ruby-core:55896] [Backport #8617] * test/rubygems: Tests for the above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@42117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
65dc7d004e
commit
b264a7ac99
37 changed files with 362 additions and 116 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue