ddollar-gem-prune 1.0.3 → 1.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.
@@ -29,7 +29,8 @@ class Gem::Commands::PruneCommand < Gem::Command
29
29
  next
30
30
  end
31
31
  end
32
- rescue Exception
32
+ rescue Exception => ex
33
+ puts "Unhandled Exception: #{ex.message}"
33
34
  end
34
35
 
35
36
  ## commands ##################################################################
@@ -70,6 +71,7 @@ private ######################################################################
70
71
  next if ignore_dependency(dep)
71
72
  next unless gems[dep.name]
72
73
  match = gems[dep.name].versions.sort.reverse.detect { |v| dep =~ v }
74
+ next unless match
73
75
  match.dependants << version
74
76
  version.dependencies << match
75
77
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ddollar-gem-prune
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Dollar