gem-maintenance 0.1.0 → 0.1.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.
@@ -9,5 +9,5 @@ Gem::Specification.new do |gem|
9
9
  gem.files = `git ls-files`.split("\n")
10
10
  gem.name = "gem-maintenance"
11
11
  gem.require_paths = ["lib"]
12
- gem.version = '0.1.0'
12
+ gem.version = '0.1.1'
13
13
  end
@@ -30,7 +30,8 @@ class Gem::Commands::CleanstaleCommand < Gem::Command
30
30
  gem_to_atime.sort_by { |_, atime| atime }.each do |spec, atime|
31
31
  break unless (Time.now.to_i-atime.to_i) > 3600 * 24 * days.to_i
32
32
  say "#{spec[:name]} #{spec[:version]} last access was on #{atime.strftime '%d/%m/%Y at %H:%M'}"
33
- system "gem uninstall #{spec[:name]} #{spec[:version]}"
33
+ cmd = "gem uninstall #{spec[:name]} -v #{spec[:version]}"
34
+ system cmd
34
35
  end
35
36
  end
36
37
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-maintenance
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Davide D'Agostino