summaryrefslogtreecommitdiffstats
path: root/lib/rubygems/commands/specification_command.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-25 10:13:50 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-25 10:13:50 +0000
commit6c1b339b1b62084c37a20b2dbaae1c512de0769b (patch)
tree3bfca425683a94d1360ecdf5857d741b8eaac213 /lib/rubygems/commands/specification_command.rb
parent4520ae9543a0d2791dd14772ebd57cff729e3b79 (diff)
downloadruby-6c1b339b1b62084c37a20b2dbaae1c512de0769b.tar.gz
ruby-6c1b339b1b62084c37a20b2dbaae1c512de0769b.tar.xz
ruby-6c1b339b1b62084c37a20b2dbaae1c512de0769b.zip
Update to RubyGems 1.3.0 r1891
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/commands/specification_command.rb')
-rw-r--r--lib/rubygems/commands/specification_command.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/commands/specification_command.rb b/lib/rubygems/commands/specification_command.rb
index 689f2560c..5aaf6d179 100644
--- a/lib/rubygems/commands/specification_command.rb
+++ b/lib/rubygems/commands/specification_command.rb
@@ -40,6 +40,7 @@ class Gem::Commands::SpecificationCommand < Gem::Command
def execute
specs = []
gem = get_one_gem_name
+ dep = Gem::Dependency.new gem, options[:version]
if local? then
if File.exist? gem then
@@ -47,12 +48,11 @@ class Gem::Commands::SpecificationCommand < Gem::Command
end
if specs.empty? then
- specs.push(*Gem.source_index.search(/\A#{gem}\z/, options[:version]))
+ specs.push(*Gem.source_index.search(dep))
end
end
if remote? then
- dep = Gem::Dependency.new gem, options[:version]
found = Gem::SpecFetcher.fetcher.fetch dep
specs.push(*found.map { |spec,| spec })