gem-orphan 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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.3'
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?(:all)
12
- specs = Gem::Specification.all
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 }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-orphan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: