synco 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da5a7f24a7cfc1a7c61e00922ac6ea192cbffc8d
4
- data.tar.gz: 08c0df422ecbce6b72fb77f13d44ec0247659249
3
+ metadata.gz: c010b88d796296e7d601db57d7668bea27452bf4
4
+ data.tar.gz: 38defa9392d35ccdf751bf407a003492447ba8fc
5
5
  SHA512:
6
- metadata.gz: 305a2411056a394005ab68d53781ba6b0bfcc0cb475a753404c0af5b1ce1f9b7c031932ca7ad829e38be2981a07a7b96f043a87f9996dc8c3889fdf502985c1b
7
- data.tar.gz: 128b3893bc41b338b6647e87af7a73d2164a49bec2c0d045fa3c13ba0c91079a713b5383246315c883bae2d8b566c5807b03d1d2e2fca03ee9751550f9ef6f93
6
+ metadata.gz: 48ced35efeb57e29b8f9e063f171f08af459e58aa1d9f12f16edd59c5dee5b015e6820549ba646e2235b24153d3f46e7ee542377723a489861e0b3f71193febe
7
+ data.tar.gz: 7868549488bc957338966e87f1d676e70e064012f47060c6e057fbab3bef12d71206b052cad4431a308bb7c81b452136ab125d9dd8d333b6fbeff39b0efc6641
@@ -69,12 +69,12 @@ module Synco
69
69
  self.description = "Prune old backups to reduce disk usage according to a given policy."
70
70
 
71
71
  options do
72
- option "--hourly <count>", "Set the number of hourly backups to keep.", default: 24
73
- option "--daily <count>", "Set the number of daily backups to keep.", default: 7*4
74
- option "--weekly <count>", "Set the number of weekly backups to keep.", default: 52
75
- option "--monthly <count>", "Set the number of monthly backups to keep.", default: 12*3
76
- option "--quarterly <count>", "Set the number of quaterly backups to keep.", default: 4*10
77
- option "--yearly <count>", "Set the number of yearly backups to keep.", default: 20
72
+ option "--hourly <count>", "Set the number of hourly backups to keep.", default: 24, type: Integer
73
+ option "--daily <count>", "Set the number of daily backups to keep.", default: 7*4, type: Integer
74
+ option "--weekly <count>", "Set the number of weekly backups to keep.", default: 52, type: Integer
75
+ option "--monthly <count>", "Set the number of monthly backups to keep.", default: 12*3, type: Integer
76
+ option "--quarterly <count>", "Set the number of quaterly backups to keep.", default: 4*10, type: Integer
77
+ option "--yearly <count>", "Set the number of yearly backups to keep.", default: 20, type: Integer
78
78
 
79
79
  option "--format <name>", "Set the name of the backup rotations, including strftime expansions.", default: BACKUP_NAME
80
80
  option "--latest <name>", "The name of the latest backup symlink.", default: LATEST_NAME
@@ -157,7 +157,7 @@ module Synco
157
157
 
158
158
  if dry?
159
159
  print_rotation(retain, erase)
160
- else
160
+ elsif erase.any?
161
161
  perform_rotation(retain, erase)
162
162
  end
163
163
  end
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Synco
22
- VERSION = "1.0.1"
22
+ VERSION = "1.1.0"
23
23
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.require_paths = ["lib"]
19
19
 
20
20
  spec.add_dependency("periodical", "~> 1.1")
21
- spec.add_dependency("samovar", "~> 1.2")
21
+ spec.add_dependency("samovar", "~> 1.3")
22
22
  spec.add_dependency("fingerprint", "~> 2.0")
23
23
  spec.add_dependency("mapping", "~> 1.0")
24
24
  spec.add_dependency("build-files", "~> 1.0")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synco
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-23 00:00:00.000000000 Z
11
+ date: 2016-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: periodical
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.2'
33
+ version: '1.3'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.2'
40
+ version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: fingerprint
43
43
  requirement: !ruby/object:Gem::Requirement