thin_out_backups 0.0.5 → 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 +3 -3
- data/thin_out_backups.gemspec +0 -1
- metadata +3 -19
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
@@ -10,7 +10,7 @@ require 'delegate'
|
|
10
10
|
require 'facets/time'
|
11
11
|
require 'active_support/time'
|
12
12
|
require 'colored'
|
13
|
-
require '
|
13
|
+
require 'active_support/core_ext/module/attribute_accessors'
|
14
14
|
|
15
15
|
class ThinOutBackups::Command
|
16
16
|
#---------------------------------------------------------------------------------------------------------------------------------------------------
|
@@ -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?
|
data/thin_out_backups.gemspec
CHANGED
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
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: quality_extensions
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: activesupport
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -118,12 +104,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
104
|
- !ruby/object:Gem::Version
|
119
105
|
version: '0'
|
120
106
|
requirements: []
|
121
|
-
|
122
|
-
rubygems_version: 2.4.6
|
107
|
+
rubygems_version: 3.3.7
|
123
108
|
signing_key:
|
124
109
|
specification_version: 4
|
125
110
|
summary: Thin out a directory full of backups, only keeping a specified number from
|
126
111
|
each category (weekly, daily, etc.), and deleting the rest.
|
127
112
|
test_files:
|
128
113
|
- spec/thin_out_backups_spec.rb
|
129
|
-
has_rdoc:
|