tarsnap_pruner 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,7 @@ module TarsnapPruner
29
29
  end
30
30
 
31
31
  def weeklies_to_keep
32
- weeklies.group_by { |a| "#{a.date.year}-#{a.date.cweek}" }.values.map(&:last)
32
+ weeklies.group_by { |a| [a.date.year, a.date.cweek] }.values.map(&:last)
33
33
  end
34
34
 
35
35
  def weeklies_to_prune
@@ -1,3 +1,3 @@
1
1
  module TarsnapPruner
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tarsnap_pruner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Scott Woods
@@ -13,20 +14,23 @@ dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: dotenv
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: bundler
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ~>
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ~>
39
44
  - !ruby/object:Gem::Version
@@ -41,6 +46,7 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: rake
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ~>
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ~>
53
60
  - !ruby/object:Gem::Version
@@ -55,29 +62,33 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: rspec
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - '>='
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - '>='
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: timecop
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - '>='
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - '>='
91
+ - - ! '>='
81
92
  - !ruby/object:Gem::Version
82
93
  version: '0'
83
94
  description: The Tarsnap backup service charges based on storage and bandwith. This
@@ -113,25 +124,26 @@ files:
113
124
  homepage: https://github.com/westarete/tarsnap_pruner
114
125
  licenses:
115
126
  - MIT
116
- metadata: {}
117
127
  post_install_message:
118
128
  rdoc_options: []
119
129
  require_paths:
120
130
  - lib
121
131
  required_ruby_version: !ruby/object:Gem::Requirement
132
+ none: false
122
133
  requirements:
123
- - - '>='
134
+ - - ! '>='
124
135
  - !ruby/object:Gem::Version
125
136
  version: '0'
126
137
  required_rubygems_version: !ruby/object:Gem::Requirement
138
+ none: false
127
139
  requirements:
128
- - - '>='
140
+ - - ! '>='
129
141
  - !ruby/object:Gem::Version
130
142
  version: '0'
131
143
  requirements: []
132
144
  rubyforge_project:
133
- rubygems_version: 2.0.14
145
+ rubygems_version: 1.8.23
134
146
  signing_key:
135
- specification_version: 4
147
+ specification_version: 3
136
148
  summary: A method of deleting old tarsnap backups.
137
149
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 3c90acbb14d7f7540292a0eae232b36c1bea975e
4
- data.tar.gz: 69310031a58f96f3c91cd1ce8db507df57934e3d
5
- SHA512:
6
- metadata.gz: 30e41819ddc878e8073ccac5577d212065f49a5f33699ce7d9229e9b1849050a6fcafd790802eea126ef92cd1a565e5add5241f7a0d9e1ab8beda34dc56cfd60
7
- data.tar.gz: 0e39751b7983a7882e0994feb6dc62a239fb2f7e4653802bc37906ecbf9fd5f44f2d229ad2c307453c8c4a51091899641bb8dd2352552ad2fd8ff566dc04c491