thin_out_backups 0.0.6 → 0.0.7
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.
- checksums.yaml +5 -5
- data/lib/thin_out_backups/version.rb +1 -1
- data/lib/thin_out_backups.rb +2 -2
- metadata +3 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: e80968eaf01eaf6a957e6e7a9a9861729e8edf7d4e59b922c4ee1eb4e8d07257
|
|
4
|
+
data.tar.gz: e4c3c24943da7ba7d050e1b524dd8b336b163dfbdfc1468c3815af1d6561c1bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 66ab9f66ce03dbd2d4888a1e976e6e60e037f078bfbbc4520e9cbcec8e530c619d1f75180a0214eae7e083c310b3b9d1e7f9a1660ae01358593f4e5bd1ae260c
|
|
7
|
+
data.tar.gz: 8330c192dcb242366c66cbae5c427747fff1834643ba204f7e150e62fccfbf74e4b34c2421861918bf41d4b5aa4e842c8389d4a582ef5153961a32b2ca45f91b
|
data/lib/thin_out_backups.rb
CHANGED
|
@@ -61,7 +61,7 @@ class ThinOutBackups::Command
|
|
|
61
61
|
@parent = parent
|
|
62
62
|
@name = name
|
|
63
63
|
(
|
|
64
|
-
raise "Invalid quota '#{quota}'" unless quota.is_a?(
|
|
64
|
+
raise "Invalid quota '#{quota}'" unless quota.is_a?(Integer) || quota =~ @@quota_format
|
|
65
65
|
@quota = quota
|
|
66
66
|
)
|
|
67
67
|
@keepers = []
|
|
@@ -117,7 +117,7 @@ class ThinOutBackups::Command
|
|
|
117
117
|
end
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
-
def keep_all?; quota =~ /\*/ end
|
|
120
|
+
def keep_all?; quota.to_s =~ /\*/ end
|
|
121
121
|
|
|
122
122
|
def satisfied?
|
|
123
123
|
if keep_all?
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: thin_out_backups
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tyler Rick
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-08-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: facets
|
|
@@ -104,12 +104,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
104
104
|
- !ruby/object:Gem::Version
|
|
105
105
|
version: '0'
|
|
106
106
|
requirements: []
|
|
107
|
-
|
|
108
|
-
rubygems_version: 2.4.6
|
|
107
|
+
rubygems_version: 3.3.7
|
|
109
108
|
signing_key:
|
|
110
109
|
specification_version: 4
|
|
111
110
|
summary: Thin out a directory full of backups, only keeping a specified number from
|
|
112
111
|
each category (weekly, daily, etc.), and deleting the rest.
|
|
113
112
|
test_files:
|
|
114
113
|
- spec/thin_out_backups_spec.rb
|
|
115
|
-
has_rdoc:
|