bibliotech 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bibliotech/backups/pruner.rb +1 -1
- data/spec/bibliotech/backup_pruner_spec.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9552ff1e32b9c14d8cbde2fe7281c62f52c195d
|
4
|
+
data.tar.gz: 4609e1b88f0e2e79e27b2a0464d46e3b23b8ecf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d056aff58cc52edb9c3bf9384cba9d97b2070d2279ce18af055d340b58c6686e464181ad9784cf00fee5ad00e21fcb42eb027935cf861d160f6635d66aa6cb7
|
7
|
+
data.tar.gz: 9dda9ab623eb889499d02ae8b49ceb5d876ad13ba0d98391d86ecab47fd6439d4d763a7c93042118a60ed991c46145f0fa0a6b428b482281184f3c469bcc54e5
|
@@ -22,6 +22,10 @@ module BiblioTech
|
|
22
22
|
}})
|
23
23
|
end
|
24
24
|
|
25
|
+
it "should generate a filename for current time" do
|
26
|
+
expect(pruner.filename_for(Time.now.utc)).to match(/testing/)
|
27
|
+
end
|
28
|
+
|
25
29
|
context "without existing files" do
|
26
30
|
it "should return true from #backup_needed?" do
|
27
31
|
expect(pruner.backup_needed?(Time.now.utc)).to be_truthy
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bibliotech
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Dorn
|
@@ -128,7 +128,7 @@ rdoc_options:
|
|
128
128
|
- --main
|
129
129
|
- doc/README
|
130
130
|
- --title
|
131
|
-
- bibliotech-0.2.
|
131
|
+
- bibliotech-0.2.5 Documentation
|
132
132
|
require_paths:
|
133
133
|
- lib/
|
134
134
|
required_ruby_version: !ruby/object:Gem::Requirement
|