mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import rubygems 1.8.5 (released @ 137c80f)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4752539e3f
commit
d22130922e
103 changed files with 4890 additions and 3599 deletions
|
@ -22,10 +22,8 @@ class Gem::Commands::OutdatedCommand < Gem::Command
|
|||
end
|
||||
|
||||
def execute
|
||||
locals = Gem::SourceIndex.from_installed_gems
|
||||
|
||||
locals.outdated.sort.each do |name|
|
||||
local = locals.find_name(name).last
|
||||
Gem::Specification.outdated.sort.each do |name|
|
||||
local = Gem::Specification.find_all_by_name(name).max
|
||||
dep = Gem::Dependency.new local.name, ">= #{local.version}"
|
||||
remotes = Gem::SpecFetcher.fetcher.fetch dep
|
||||
|
||||
|
@ -35,6 +33,4 @@ class Gem::Commands::OutdatedCommand < Gem::Command
|
|||
say "#{local.name} (#{local.version} < #{remote.version})"
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue