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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 99e17305b9bb4522fd1de7f2eea19fe63e654f08
4
- data.tar.gz: 29c4b9715203c0305fe6b0547264b5b2065454e0
2
+ SHA256:
3
+ metadata.gz: e80968eaf01eaf6a957e6e7a9a9861729e8edf7d4e59b922c4ee1eb4e8d07257
4
+ data.tar.gz: e4c3c24943da7ba7d050e1b524dd8b336b163dfbdfc1468c3815af1d6561c1bc
5
5
  SHA512:
6
- metadata.gz: 77e8718064a413af04740e236a908b150c4c9d0ac8c7c055ee1abe232b8d95a301b8da9994ed9648316c2f5f99445c36cbbabdebebbd8b5ab862635055465492
7
- data.tar.gz: e09e4a49587f61eab964303c3fbf7d8fa55e40d71ea177a2aaa3e3041785e5287f980c5c2a64f3dbdae3a3affb6c233cd99cf8e0889835cdbe31be40b87b3b30
6
+ metadata.gz: 66ab9f66ce03dbd2d4888a1e976e6e60e037f078bfbbc4520e9cbcec8e530c619d1f75180a0214eae7e083c310b3b9d1e7f9a1660ae01358593f4e5bd1ae260c
7
+ data.tar.gz: 8330c192dcb242366c66cbae5c427747fff1834643ba204f7e150e62fccfbf74e4b34c2421861918bf41d4b5aa4e842c8389d4a582ef5153961a32b2ca45f91b
@@ -1,3 +1,3 @@
1
1
  module ThinOutBackups
2
- Version = "0.0.6"
2
+ Version = "0.0.7"
3
3
  end
@@ -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?(Fixnum) || quota =~ @@quota_format
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.6
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: 2016-07-25 00:00:00.000000000 Z
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
- rubyforge_project:
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: