mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 13:34:17 +02:00
Fix RubyGems for 1.9, r1780
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9d4f37f51f
commit
215fbc639f
10 changed files with 86 additions and 90 deletions
|
@ -300,14 +300,12 @@ class Gem::SourceIndex
|
|||
outdateds = []
|
||||
|
||||
latest_specs.each do |local|
|
||||
name = local.name
|
||||
|
||||
dependency = Gem::Dependency.new name, ">= #{local.version}"
|
||||
dependency = Gem::Dependency.new local.name, ">= #{local.version}"
|
||||
|
||||
begin
|
||||
fetcher = Gem::SpecFetcher.fetcher
|
||||
remotes = fetcher.find_matching dependency
|
||||
remotes = remotes.map { |(name, version,),| version }
|
||||
remotes = remotes.map { |(name, version,_),_| version }
|
||||
rescue Gem::RemoteFetcher::FetchError => e
|
||||
raise unless fetcher.warn_legacy e do
|
||||
require 'rubygems/source_info_cache'
|
||||
|
@ -320,7 +318,7 @@ class Gem::SourceIndex
|
|||
|
||||
latest = remotes.sort.last
|
||||
|
||||
outdateds << name if latest and local.version < latest
|
||||
outdateds << local.name if latest and local.version < latest
|
||||
end
|
||||
|
||||
outdateds
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue