mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to RubyGems 1.3.0 r1891
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
788001a9c8
commit
d478c7a734
60 changed files with 2174 additions and 1049 deletions
|
@ -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 })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue