lib/rubygems/source_index.rb in rubygems-update-0.9.1 vs lib/rubygems/source_index.rb in rubygems-update-0.9.2
- old
+ new
@@ -224,18 +224,16 @@
# Returns an Array of Gem::Specifications that are not up to date.
#
def outdated
remotes = Gem::SourceInfoCache.search(//)
outdateds = []
-
latest_specs.each do |_, local|
name = local.name
remote = remotes.select { |spec| spec.name == name }.
sort_by { |spec| spec.version }.
last
outdateds << name if remote and local.version < remote.version
end
-
outdateds
end
def update(source_uri)
use_incremental = false