yologga 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yologga/logs_lifetime.rb +1 -1
- data/lib/yologga/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1161dbc355e76b71d88cc9a61565f377ce4acc3f
|
4
|
+
data.tar.gz: 584941ca6c683534963f63de3503261220cbfa58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aeb8fbd4337091deda4f19861f93f3a26498a5ae1662b244790473b76c0e90c95a55bfbb3b87278e9dac06b333f5568adc1e6d6f2e51365f333fd89df836f5bb
|
7
|
+
data.tar.gz: deb38c4e835f51b6d8953d1879a9188a2464467c502764d7352461779381039c61d7cee0d3c6e1fcac93c5b2743c2b2459e53bb96d2d01842c20d38e2837d09f
|
@@ -16,7 +16,7 @@ class Yologga::LogsLifetime
|
|
16
16
|
next unless entry.file?
|
17
17
|
old_enough = entry.mtime < (Time.now - Yologga.logs_lifetime)
|
18
18
|
|
19
|
-
if entry.basename.to_s =~ /\.log\.\d
|
19
|
+
if entry.basename.to_s =~ /\.log\.\d+(?:\.gz)?\z/ && old_enough
|
20
20
|
entry.delete
|
21
21
|
end
|
22
22
|
end
|
data/lib/yologga/version.rb
CHANGED