Skip to content

Commit

Permalink
+ DependencyList.from_source_index deprecated the source_index argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
zenspider committed Apr 16, 2011
1 parent 58ad7cd commit 83c53ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/rubygems/dependency_list.rb
Expand Up @@ -24,10 +24,12 @@ class Gem::DependencyList
##
# Creates a DependencyList from a Gem::SourceIndex +source_index+

def self.from_source_index(source_index)
def self.from_source_index(ignored=nil)
warn "NOTE: DependencyList.from_source_index ignores it's arg" if ignored

list = new

source_index.each do |full_name, spec|
Gem::Specification.each do |spec|
list.add spec
end

Expand Down
2 changes: 1 addition & 1 deletion lib/rubygems/uninstaller.rb
Expand Up @@ -238,7 +238,7 @@ def path_ok?(gem_dir, spec)
def dependencies_ok?(spec)
return true if @force_ignore

deplist = Gem::DependencyList.from_source_index Gem.source_index
deplist = Gem::DependencyList.from_source_index
deplist.ok_to_remove?(spec.full_name)
end

Expand Down

0 comments on commit 83c53ae

Please sign in to comment.