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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a67cb72bd5b738b248a608ee86b8a9faf3a623b8db7a60fcee4184bd5422357e
4
- data.tar.gz: b9a1b7cf1dffd6b1e5594070e9cbd3a55416ab39f8029396ccd55d8974fcfb28
3
+ metadata.gz: 3ee42643eb743d335c619ce732697d1046732956deb70e15a6926094b0287bb6
4
+ data.tar.gz: 328b1e4a1b26d691490bf748698cff775c08e1bd91f14d2b3f224a88a9a84af1
5
5
  SHA512:
6
- metadata.gz: 3b9a3917fdb67e8e95ed36db7e6d96259bb548c5d0a940739a2a7cdce449a3f364d86e59a9f742b352cff6920102cb68ece1af07398ec0858ca93559e64104d0
7
- data.tar.gz: fcd3f12f45d8ad735147767a7518658aaf268a3d2fc076ee18458358b26e54dd2c73dbbf1199a084c34faa5171d7fcdc160f98c3f2deb69c884da6d8564cb61e
6
+ metadata.gz: a35cafc29459c89de4170074b7ebcf76f07623cce162974f5d819d97017e2ce9f2154b2c07d201847f05a3457b85e696b26a1e313c3510a1e45afee4afbe5918
7
+ data.tar.gz: 27160ddbdfd1453011bb2b54cb557d3785d85b85658dc2440cc86a80f86cc0828ea303eb9078ec99ba2845511ba9584684860fa7278bf8dc5db2249bb2b92972
@@ -7,6 +7,7 @@ rvm:
7
7
  - 2.4
8
8
  - 2.5
9
9
  - 2.6
10
+ - 2.7
10
11
  - ruby-head
11
12
 
12
13
  before_install: gem install bundler
@@ -1,8 +1,9 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
- and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
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
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018-2019 Dmitry Gubitskiy
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
@@ -4,7 +4,7 @@ Logger class patch for hourly log rotation support
4
4
 
5
5
  ## Requirements
6
6
 
7
- Ruby 2.3, 2.4, 2.5 or 2.6
7
+ Ruby 2.3, 2.4, 2.5, 2.6 or 2.7
8
8
 
9
9
  ## Installation
10
10
 
@@ -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
- def initialize(log = nil, shift_age: nil, shift_size: nil, shift_period_suffix: nil)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HourlyLoggerRotator
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  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.3.0.54
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: 2019-08-19 00:00:00.000000000 Z
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: