hourly_logger_rotator 0.3.0.54 → 0.4.0.60
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +3 -2
- data/LICENSE.txt +1 -1
- data/README.md +1 -1
- data/lib/hourly_logger_rotator/patch/ruby_2_4.rb +9 -1
- data/lib/hourly_logger_rotator/patch/ruby_2_7.rb +13 -0
- data/lib/hourly_logger_rotator/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ee42643eb743d335c619ce732697d1046732956deb70e15a6926094b0287bb6
|
4
|
+
data.tar.gz: 328b1e4a1b26d691490bf748698cff775c08e1bd91f14d2b3f224a88a9a84af1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a35cafc29459c89de4170074b7ebcf76f07623cce162974f5d819d97017e2ce9f2154b2c07d201847f05a3457b85e696b26a1e313c3510a1e45afee4afbe5918
|
7
|
+
data.tar.gz: 27160ddbdfd1453011bb2b54cb557d3785d85b85658dc2440cc86a80f86cc0828ea303eb9078ec99ba2845511ba9584684860fa7278bf8dc5db2249bb2b92972
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
## [0.4.0] - 2020-01-24
|
5
|
+
### Added
|
6
|
+
- Support for Ruby 2.7
|
6
7
|
|
7
8
|
## [0.3.0] - 2019-02-02
|
8
9
|
### Added
|
data/LICENSE.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2018-
|
3
|
+
Copyright (c) 2018-2020 Dmitry Gubitskiy
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
@@ -5,7 +5,14 @@ module HourlyLoggerRotator
|
|
5
5
|
module Ruby_2_4 # rubocop:disable Naming/ClassAndModuleCamelCase
|
6
6
|
SiD = Logger::Period::SiD
|
7
7
|
|
8
|
-
|
8
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
9
|
+
def initialize(
|
10
|
+
log = nil,
|
11
|
+
shift_age: nil,
|
12
|
+
shift_size: nil,
|
13
|
+
shift_period_suffix: nil,
|
14
|
+
binmode: nil
|
15
|
+
)
|
9
16
|
@dev = @filename = @shift_age = @shift_size = @shift_period_suffix = nil
|
10
17
|
mon_initialize
|
11
18
|
set_dev(log)
|
@@ -21,6 +28,7 @@ module HourlyLoggerRotator
|
|
21
28
|
end
|
22
29
|
end
|
23
30
|
end
|
31
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
24
32
|
|
25
33
|
def next_rotate_time(now, shift_age)
|
26
34
|
case shift_age
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "hourly_logger_rotator/patch/ruby_2_4"
|
4
|
+
|
5
|
+
module HourlyLoggerRotator
|
6
|
+
module Patch
|
7
|
+
# rubocop:disable Naming/ClassAndModuleCamelCase
|
8
|
+
module Ruby_2_7
|
9
|
+
# rubocop:enable Naming/ClassAndModuleCamelCase
|
10
|
+
include Ruby_2_4
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hourly_logger_rotator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0.60
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Gubitskiy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -148,6 +148,7 @@ files:
|
|
148
148
|
- lib/hourly_logger_rotator/patch/ruby_2_4.rb
|
149
149
|
- lib/hourly_logger_rotator/patch/ruby_2_5.rb
|
150
150
|
- lib/hourly_logger_rotator/patch/ruby_2_6.rb
|
151
|
+
- lib/hourly_logger_rotator/patch/ruby_2_7.rb
|
151
152
|
- lib/hourly_logger_rotator/version.rb
|
152
153
|
homepage: https://github.com/umbrellio/hourly_logger_rotator
|
153
154
|
licenses:
|