gem-maintenance 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
data/gem-maintenance.gemspec
CHANGED
@@ -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
|
-
|
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:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Davide D'Agostino
|