gem-orphan 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/gem-orphan.gemspec +1 -1
- data/lib/rubygems/commands/orphan_command.rb +2 -2
- metadata +1 -1
data/gem-orphan.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
gem-orphan is a naive implementation of the 'orphan' subcommand.
|
11
11
|
It finds gems on which no other gems are depending and lists such gems.
|
12
12
|
EOF
|
13
|
-
s.version = '0.0.
|
13
|
+
s.version = '0.0.4'
|
14
14
|
s.files = <<-FILES.split
|
15
15
|
lib/rubygems/commands/orphan_command.rb
|
16
16
|
lib/rubygems_plugin.rb
|
@@ -8,8 +8,8 @@ class Gem::Commands::OrphanCommand < Gem::Command
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def execute
|
11
|
-
if Gem::Specification.respond_to?(:
|
12
|
-
specs = Gem::Specification.
|
11
|
+
if Gem::Specification.respond_to?(:to_a)
|
12
|
+
specs = Gem::Specification.to_a
|
13
13
|
else
|
14
14
|
index = Gem::SourceIndex.from_installed_gems
|
15
15
|
specs = index.map {|name, spec| spec }
|