Permalink
Browse files

Use of Specification.all is discouraged.

  • Loading branch information...
1 parent 5776919 commit 631c101d57494638ba80c4b7aa6a30d75fa911d9 @sakuro committed May 7, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rubygems/commands/orphan_command.rb
@@ -8,8 +8,8 @@ def initialize
end
def execute
- if Gem::Specification.respond_to?(:all)
- specs = Gem::Specification.all
+ if Gem::Specification.respond_to?(:to_a)
+ specs = Gem::Specification.to_a
else
index = Gem::SourceIndex.from_installed_gems
specs = index.map {|name, spec| spec }

0 comments on commit 631c101

Please sign in to comment.