ddollar-gem-prune 1.4.0 → 1.4.1

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.
@@ -13,8 +13,10 @@ class Gem::Commands::PruneCommand < Gem::Command
13
13
  def execute
14
14
  return if leaves.empty?
15
15
  leaves.each do |name, versions|
16
+ leaf_versions = versions.map { |v| v.version }.join(', ')
17
+ kept_versions = (gems[name].versions - versions).map { |v| v.version }.join(', ')
16
18
  begin
17
- question = "#{name} (#{versions.map { |v| v.version }.join(', ')})\n"
19
+ question = "#{name} (#{leaf_versions}) keeping (#{kept_versions})\n"
18
20
  question << " [k] keep this gem\n"
19
21
  question << " [u] uninstall this gem\n"
20
22
  question << " [s] skip (default)\n"
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.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Dollar
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-15 00:00:00 -07:00
12
+ date: 2009-06-18 00:00:00 -07:00
13
13
  default_executable: gem-prune
14
14
  dependencies: []
15
15