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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d1935f0cbadf7d09217450c1d40688017c76a35
4
- data.tar.gz: c1b572a957e544963cf3feb8a2de592f76551912
3
+ metadata.gz: 1161dbc355e76b71d88cc9a61565f377ce4acc3f
4
+ data.tar.gz: 584941ca6c683534963f63de3503261220cbfa58
5
5
  SHA512:
6
- metadata.gz: 7fc182f3b9be3fc86ae3d2e1f26a54e4c7a9e6a7dfd1fd8d41baf1e924ba07fe4fb7ec04cba526498549102c3b8ec18b0d20a8d40199160510aceec5234156b9
7
- data.tar.gz: 92ebc2f8ab65732399254a161388aaf2ba133dc72d0295b8318cd55c0f7c26ae1ef70b53bdf9ba8c36c54b3b5ce15c05adbda22f1cb1fa896831bc7be430bb45
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+\z/ && old_enough
19
+ if entry.basename.to_s =~ /\.log\.\d+(?:\.gz)?\z/ && old_enough
20
20
  entry.delete
21
21
  end
22
22
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Yologga
4
- VERSION = "0.3.2"
4
+ VERSION = "0.3.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yologga
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Gubitskiy