hourly_logger_rotator 0.2.0 → 0.3.0

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: 37ba72e1b0c1b5517b1681a450164b4c5bb64feefd051a1421eaeea3c3d5844c
4
- data.tar.gz: 4fc662711182b5a7119bdf50074c52d1a6f78e22884acfe6744cd722a941b939
3
+ metadata.gz: 5c88bbd492b4c552b0cb3c4318340a58c97a24667ee3d12e6ad8adae78ed410f
4
+ data.tar.gz: 3c34607445b256f7c9b7e8c823c82fe744ce043e43a8f6e912cc7f7b7c8cd86b
5
5
  SHA512:
6
- metadata.gz: 5e03e918c4ee8756e7d4a47e3fe46b15e64a966b46ba75cb78b09477e5e089c3ea206b2c64218892a718352da8b59fd71e40e5641ce92d453131de35ade83d08
7
- data.tar.gz: 79bd4e3420eb628ddeb953077cbc4328f302de02f3760c7470d18fed666c36b0a89a56a24f5ad13fadb8d68b47aedb826c43a76c4f30ce0b7de46e5097f17b35
6
+ metadata.gz: c462cdd90187eb07c13f73a0811da98a13c93ec67d2ab2f8347b5cea8f813fbae572a653d1995ecb25afb14a2f3c25f3468882617ec9d60f192e4525a0e6577e
7
+ data.tar.gz: 83086c8fdb194197306ca512feff358730dc8f2d61aa514ccd0d291abea0f94838c9b6914d4a97cd7be6ac29227da446e241416e57014135581b4b0fcaad6e00
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
  /log
10
10
  .rspec_status
11
11
  .ruby-version
12
+ Gemfile.lock
data/.travis.yml CHANGED
@@ -1,7 +1,18 @@
1
- sudo: false
2
1
  language: ruby
2
+ sudo: false
3
3
  rvm:
4
+ - 2.2
4
5
  - 2.3
5
6
  - 2.4
6
7
  - 2.5
7
- before_install: gem install bundler -v 1.16.1
8
+ - 2.6
9
+ before_install: gem install bundler -v 1.17.3
10
+ env: SUITE="rspec"
11
+ script: bundle exec $SUITE
12
+ matrix:
13
+ fast_finish: true
14
+ include:
15
+ - rvm: 2.6
16
+ env: SUITE="rubocop"
17
+ allow_failures:
18
+ - rvm: ruby-head
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.3.0] - 2019-02-02
8
+ ### Added
9
+ - Ruby 2.6 support
10
+
7
11
  ## [0.2.0] - 2018-03-12
8
12
  ### Added
9
13
  - Ruby 2.3, 2.4, 2.5 support
data/README.md CHANGED
@@ -1,10 +1,12 @@
1
1
  # HourlyLoggerRotator
2
2
 
3
- Logger class patch for hourly log rotation support
3
+ Logger class patch for hourly log rotation support
4
+
5
+ [![Build Status](https://travis-ci.org/umbrellio/hourly_logger_rotator.svg?branch=master)](https://travis-ci.org/umbrellio/hourly_logger_rotator)
4
6
 
5
7
  ## Requirements
6
8
 
7
- Ruby 2.3, 2.4 or 2.5
9
+ Ruby 2.3, 2.4, 2.5 or 2.6
8
10
 
9
11
  ## Installation
10
12
 
@@ -4,9 +4,7 @@ require "logger"
4
4
 
5
5
  module HourlyLoggerRotator
6
6
  module Patch
7
- # rubocop:disable Naming/ClassAndModuleCamelCase
8
- module Ruby_2_3
9
- # rubocop:enable Naming/ClassAndModuleCamelCase
7
+ module Ruby_2_3 # rubocop:disable Naming/ClassAndModuleCamelCase
10
8
  SiD = Logger::Period::SiD
11
9
 
12
10
  def shift_log_period(period_end)
@@ -2,9 +2,7 @@
2
2
 
3
3
  module HourlyLoggerRotator
4
4
  module Patch
5
- # rubocop:disable Naming/ClassAndModuleCamelCase
6
- module Ruby_2_4
7
- # rubocop:enable Naming/ClassAndModuleCamelCase
5
+ module Ruby_2_4 # rubocop:disable Naming/ClassAndModuleCamelCase
8
6
  SiD = Logger::Period::SiD
9
7
 
10
8
  def initialize(log = nil, shift_age: nil, shift_size: nil, shift_period_suffix: nil)
@@ -4,9 +4,7 @@ require "hourly_logger_rotator/patch/ruby_2_4"
4
4
 
5
5
  module HourlyLoggerRotator
6
6
  module Patch
7
- # rubocop:disable Naming/ClassAndModuleCamelCase
8
- module Ruby_2_5
9
- # rubocop:enable Naming/ClassAndModuleCamelCase
7
+ module Ruby_2_5 # rubocop:disable Naming/ClassAndModuleCamelCase
10
8
  include Ruby_2_4
11
9
  end
12
10
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "hourly_logger_rotator/patch/ruby_2_4"
4
+
5
+ module HourlyLoggerRotator
6
+ module Patch
7
+ module Ruby_2_6 # rubocop:disable Naming/ClassAndModuleCamelCase
8
+ include Ruby_2_4
9
+ end
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HourlyLoggerRotator
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.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.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Gubitskiy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-12 00:00:00.000000000 Z
11
+ date: 2019-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -109,7 +109,6 @@ files:
109
109
  - CODE_OF_CONDUCT.md
110
110
  - CONTRIBUTING.md
111
111
  - Gemfile
112
- - Gemfile.lock
113
112
  - LICENSE.txt
114
113
  - README.md
115
114
  - Rakefile
@@ -119,6 +118,7 @@ files:
119
118
  - lib/hourly_logger_rotator/patch/ruby_2_3.rb
120
119
  - lib/hourly_logger_rotator/patch/ruby_2_4.rb
121
120
  - lib/hourly_logger_rotator/patch/ruby_2_5.rb
121
+ - lib/hourly_logger_rotator/patch/ruby_2_6.rb
122
122
  - lib/hourly_logger_rotator/version.rb
123
123
  homepage: https://github.com/umbrellio/hourly_logger_rotator
124
124
  licenses:
data/Gemfile.lock DELETED
@@ -1,64 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- hourly_logger_rotator (0.2.0)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- ast (2.4.0)
10
- coderay (1.1.2)
11
- diff-lcs (1.3)
12
- method_source (0.9.0)
13
- parallel (1.12.1)
14
- parser (2.4.0.2)
15
- ast (~> 2.3)
16
- powerpack (0.1.1)
17
- pry (0.11.3)
18
- coderay (~> 1.1.0)
19
- method_source (~> 0.9.0)
20
- rainbow (3.0.0)
21
- rake (10.5.0)
22
- rspec (3.7.0)
23
- rspec-core (~> 3.7.0)
24
- rspec-expectations (~> 3.7.0)
25
- rspec-mocks (~> 3.7.0)
26
- rspec-core (3.7.1)
27
- rspec-support (~> 3.7.0)
28
- rspec-expectations (3.7.0)
29
- diff-lcs (>= 1.2.0, < 2.0)
30
- rspec-support (~> 3.7.0)
31
- rspec-mocks (3.7.0)
32
- diff-lcs (>= 1.2.0, < 2.0)
33
- rspec-support (~> 3.7.0)
34
- rspec-support (3.7.1)
35
- rubocop (0.52.1)
36
- parallel (~> 1.10)
37
- parser (>= 2.4.0.2, < 3.0)
38
- powerpack (~> 0.1)
39
- rainbow (>= 2.2.2, < 4.0)
40
- ruby-progressbar (~> 1.7)
41
- unicode-display_width (~> 1.0, >= 1.0.1)
42
- rubocop-config-umbrellio (0.52.1.0)
43
- rubocop (= 0.52.1)
44
- rubocop-rspec (= 1.22.1)
45
- rubocop-rspec (1.22.1)
46
- rubocop (>= 0.52.1)
47
- ruby-progressbar (1.9.0)
48
- timecop (0.9.1)
49
- unicode-display_width (1.3.0)
50
-
51
- PLATFORMS
52
- ruby
53
-
54
- DEPENDENCIES
55
- bundler
56
- hourly_logger_rotator!
57
- pry
58
- rake
59
- rspec
60
- rubocop-config-umbrellio
61
- timecop
62
-
63
- BUNDLED WITH
64
- 1.16.1