Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use of Specification.all is discouraged.

  • Loading branch information...
commit 631c101d57494638ba80c4b7aa6a30d75fa911d9 1 parent 5776919
@sakuro authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rubygems/commands/orphan_command.rb
View
4 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 }
Please sign in to comment.
Something went wrong with that request. Please try again.