hourly_logger_rotator 0.3.0 → 0.3.0.52

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: 5c88bbd492b4c552b0cb3c4318340a58c97a24667ee3d12e6ad8adae78ed410f
4
- data.tar.gz: 3c34607445b256f7c9b7e8c823c82fe744ce043e43a8f6e912cc7f7b7c8cd86b
3
+ metadata.gz: 021c0e645176fb39877923555f53f068c594cb51126ce3f77ebd5580faa69da0
4
+ data.tar.gz: 8652f2c6e8f926680012170639abe9d415a7e20f5ba2281279f7aa74aabe8a33
5
5
  SHA512:
6
- metadata.gz: c462cdd90187eb07c13f73a0811da98a13c93ec67d2ab2f8347b5cea8f813fbae572a653d1995ecb25afb14a2f3c25f3468882617ec9d60f192e4525a0e6577e
7
- data.tar.gz: 83086c8fdb194197306ca512feff358730dc8f2d61aa514ccd0d291abea0f94838c9b6914d4a97cd7be6ac29227da446e241416e57014135581b4b0fcaad6e00
6
+ metadata.gz: 5331557a92e8572439d97affe66116de1705c369c7b1224dbcc9991aed0614b72432eedfe2a826abf0c70e94f44611c2d55f8c1b312639d1ce34dbdcc97c7480
7
+ data.tar.gz: 3afd6d7a8d0c0239aa8e929646cd2a60df3c38807321d399ee36a267cd4eba1c079268463286e1f0b8fe595f1c3d0aa04e6c892217f3ee2d1a5a6c358a8046c3
@@ -3,4 +3,4 @@ inherit_gem:
3
3
 
4
4
  AllCops:
5
5
  DisplayCopNames: true
6
- TargetRubyVersion: 2.5
6
+ TargetRubyVersion: 2.3
@@ -1,18 +1,25 @@
1
1
  language: ruby
2
2
  sudo: false
3
- rvm:
4
- - 2.2
5
- - 2.3
6
- - 2.4
7
- - 2.5
8
- - 2.6
9
- before_install: gem install bundler -v 1.17.3
3
+ before_install: gem install bundler
10
4
  env: SUITE="rspec"
11
5
  script: bundle exec $SUITE
12
6
  matrix:
13
7
  fast_finish: true
14
8
  include:
15
- - rvm: 2.6
16
- env: SUITE="rubocop"
9
+ - rvm: 2.3
10
+ - rvm: 2.4
11
+ - rvm: 2.5
12
+ - rvm: 2.6
13
+ - rvm: ruby-head
14
+ - rvm: 2.6
15
+ env: SUITE="rubocop"
17
16
  allow_failures:
18
- - rvm: ruby-head
17
+ - rvm: ruby-head
18
+ deploy:
19
+ api_key:
20
+ secure: KuSLs/hS2gsUmBV0EVb9NDCMU4aUlY52ZXVZD82kKGxZh1fQQe/KZJknQuCd2r9bA9MQBSV1vK0OnmAaWnJqW/IwIt+7RP/LiMm3hZMpiLKzC3IC9bAP4zwHpzJMj95f7K6JSaX3zwH4wY3mcyPEA2qIuu3RDuDsOBBCQwEsyIxnUYGoM7hqJ9anXpf45rUISkGF+mVdQghOybDRVUaxMjaeWzQSpwqS66SxNgsPoABY4OLboM8kJKYG1npBQxxsn/S3tnMTinZaOrY2JyNbLsu741qD+WWRZDPuw9/wQfiWE7au/gVRKW7htwmwkBMfF7OLnM2/bhLhbT7dcf70xHUodoqHcxefo+tq8d4MHnoGMqPPOb9J1L0p9QLALNG7/U9upXlB9n3IBuIcCHXYY2CL7Cf4HYNx4SASndrc5d/iZe4NCdSL06wNdTfxvNHK7JWzHE/lxhQuLyoDIqtSi/L0/VwWAF9OPx+zn1cpR7UrNxcUU+eXuExiGV4AwRhUjsd8JpnW0+fPbnot3jK7eo9JnnbOgY967GHeIyfwLvP2FmtI7Xx/eBrbWLPk+9ZEmCm/+Mlen3b3S0NQW2+6SlmKzje/nggPpgmG6Ln3MHbkPw1EhTislS5w6/hq3j5tPchbQXHOZ5g90ieRe/DvaPYmVAHMmQWMPbBesHAzIJ0=
21
+ gemspec: hourly_logger_rotator.gemspec
22
+ provider: rubygems
23
+ on:
24
+ repo: umbrellio/hourly_logger_rotator
25
+ branch: master
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018 Dmitry Gubitskiy
3
+ Copyright (c) 2018-2019 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
@@ -1,9 +1,7 @@
1
- # HourlyLoggerRotator
1
+ # HourlyLoggerRotator · [![Gem Version](https://badge.fury.io/rb/hourly_logger_rotator.svg)](https://badge.fury.io/rb/hourly_logger_rotator) [![Build Status](https://travis-ci.org/umbrellio/hourly_logger_rotator.svg?branch=master)](https://travis-ci.org/umbrellio/hourly_logger_rotator) [![Coverage Status](https://coveralls.io/repos/github/umbrellio/hourly_logger_rotator/badge.svg?branch=master)](https://coveralls.io/github/umbrellio/hourly_logger_rotator?branch=master)
2
2
 
3
3
  Logger class patch for hourly log rotation support
4
4
 
5
- [![Build Status](https://travis-ci.org/umbrellio/hourly_logger_rotator.svg?branch=master)](https://travis-ci.org/umbrellio/hourly_logger_rotator)
6
-
7
5
  ## Requirements
8
6
 
9
7
  Ruby 2.3, 2.4, 2.5 or 2.6
data/Rakefile CHANGED
@@ -2,7 +2,19 @@
2
2
 
3
3
  require "bundler/gem_tasks"
4
4
  require "rspec/core/rake_task"
5
+ require "rubocop"
6
+ require "rubocop-rspec"
7
+ require "rubocop-performance"
8
+ require "rubocop/rake_task"
5
9
 
6
- RSpec::Core::RakeTask.new(:spec)
10
+ RuboCop::RakeTask.new(:rubocop) do |t|
11
+ config_path = File.expand_path(File.join(".rubocop.yml"), __dir__)
7
12
 
8
- task default: :spec
13
+ t.options = ["--config", config_path]
14
+ t.requires << "rubocop-rspec"
15
+ t.requires << "rubocop-performance"
16
+ end
17
+
18
+ RSpec::Core::RakeTask.new(:rspec)
19
+
20
+ task default: :rspec
@@ -1,26 +1,33 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path("../lib", __FILE__)
3
+ lib = File.expand_path("lib", __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require "hourly_logger_rotator/version"
6
6
 
7
7
  Gem::Specification.new do |spec|
8
- spec.name = "hourly_logger_rotator"
9
- spec.version = HourlyLoggerRotator::VERSION
10
- spec.authors = ["Dmitry Gubitskiy"]
11
- spec.email = ["d.gubitskiy@gmail.com"]
8
+ spec.required_ruby_version = ">= 2.3.8"
12
9
 
13
- spec.summary = "Ruby Logger patch for hourly log rotation"
14
- spec.homepage = "https://github.com/umbrellio/hourly_logger_rotator"
15
- spec.license = "MIT"
10
+ gem_version = HourlyLoggerRotator::VERSION
11
+ release_version = ENV["TRAVIS"] ? "#{gem_version}.#{ENV["TRAVIS_BUILD_NUMBER"]}" : gem_version
16
12
 
17
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^spec/}) }
13
+ spec.name = "hourly_logger_rotator"
14
+ spec.version = release_version
15
+ spec.authors = ["Dmitry Gubitskiy"]
16
+ spec.email = ["d.gubitskiy@gmail.com", "oss@umbrellio.biz"]
17
+
18
+ spec.summary = "Ruby Logger patch for hourly log rotation"
19
+ spec.homepage = "https://github.com/umbrellio/hourly_logger_rotator"
20
+ spec.license = "MIT"
21
+
22
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^spec/}) }
18
23
  spec.require_paths = ["lib"]
19
24
 
20
25
  spec.add_development_dependency "bundler"
26
+ spec.add_development_dependency "coveralls"
21
27
  spec.add_development_dependency "pry"
22
28
  spec.add_development_dependency "rake"
23
29
  spec.add_development_dependency "rspec"
24
30
  spec.add_development_dependency "rubocop-config-umbrellio"
31
+ spec.add_development_dependency "simplecov"
25
32
  spec.add_development_dependency "timecop"
26
33
  end
@@ -34,11 +34,12 @@ module HourlyLoggerRotator
34
34
  return @mixin if defined?(@mixin)
35
35
 
36
36
  mixin_name = "HourlyLoggerRotator::Patch::Ruby_#{RUBY_VERSION.split('.').first(2).join('_')}"
37
- @mixin = begin
38
- Module.const_get(mixin_name)
39
- rescue NameError
40
- nil
41
- end
37
+ @mixin =
38
+ begin
39
+ Module.const_get(mixin_name)
40
+ rescue NameError
41
+ nil
42
+ end
42
43
  end
43
44
 
44
45
  def unsupported_warning
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
4
+ version: 0.3.0.52
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-02-04 00:00:00.000000000 Z
11
+ date: 2019-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: coveralls
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: pry
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -80,6 +94,20 @@ dependencies:
80
94
  - - ">="
81
95
  - !ruby/object:Gem::Version
82
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
83
111
  - !ruby/object:Gem::Dependency
84
112
  name: timecop
85
113
  requirement: !ruby/object:Gem::Requirement
@@ -97,6 +125,7 @@ dependencies:
97
125
  description:
98
126
  email:
99
127
  - d.gubitskiy@gmail.com
128
+ - oss@umbrellio.biz
100
129
  executables: []
101
130
  extensions: []
102
131
  extra_rdoc_files: []
@@ -132,7 +161,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
132
161
  requirements:
133
162
  - - ">="
134
163
  - !ruby/object:Gem::Version
135
- version: '0'
164
+ version: 2.3.8
136
165
  required_rubygems_version: !ruby/object:Gem::Requirement
137
166
  requirements:
138
167
  - - ">="
@@ -140,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
169
  version: '0'
141
170
  requirements: []
142
171
  rubyforge_project:
143
- rubygems_version: 2.7.5
172
+ rubygems_version: 2.7.7
144
173
  signing_key:
145
174
  specification_version: 4
146
175
  summary: Ruby Logger patch for hourly log rotation