gem-prune 2.1.1 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -56,7 +56,14 @@ private ######################################################################
56
56
 
57
57
  def mark_kept_versions
58
58
  gems.each do |name, gem|
59
- mark_kept(gem.versions.sort.last)
59
+ gems_versions = gems_to_keep.detect { |g| g.first == name }
60
+ versions = gems_versions ? gems_versions.last : []
61
+ if versions.include?("^")
62
+ puts "weee"
63
+ versions.delete("^")
64
+ else
65
+ mark_kept(gem.versions.sort.last)
66
+ end
60
67
  end
61
68
  gems_to_keep.each do |name, keep|
62
69
  keep = [">= 0"] if keep.empty?
data/lib/gem_prune.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module GemPrune
2
- VERSION = "2.1.1"
2
+ VERSION = "2.2.0"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-prune
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
- - 1
9
- - 1
10
- version: 2.1.1
8
+ - 2
9
+ - 0
10
+ version: 2.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - |