mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import rubygems 1.6.2 (release candidate @ 2026fbb5)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
08c07a215d
commit
6e5f49770c
24 changed files with 196 additions and 64 deletions
|
@ -25,12 +25,13 @@ class Gem::Commands::OutdatedCommand < Gem::Command
|
|||
locals = Gem::SourceIndex.from_installed_gems
|
||||
|
||||
locals.outdated.sort.each do |name|
|
||||
local = locals.find_name(name).last
|
||||
|
||||
dep = Gem::Dependency.new local.name, ">= #{local.version}"
|
||||
local = locals.find_name(name).last
|
||||
dep = Gem::Dependency.new local.name, ">= #{local.version}"
|
||||
remotes = Gem::SpecFetcher.fetcher.fetch dep
|
||||
remote = remotes.last.first
|
||||
|
||||
next if remotes.empty?
|
||||
|
||||
remote = remotes.last.first
|
||||
say "#{local.name} (#{local.version} < #{remote.version})"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue