loog 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a43533fac4d3e0415c069e48538b8b7c6164d4c7f1c862a230b7ee7103bf30b2
4
- data.tar.gz: b2790039c60cb026cbf71a79d5615a6b8bafc0ecfa93ef6b48441f52d482ae78
3
+ metadata.gz: ff39830a0294bd0cbedcb2cf613e0fdf8ec6985cd0618cda087ff637c1f3b4fc
4
+ data.tar.gz: 638ccfc03eeffd5297001a9f83c6f108d2910d21ac59212ec57cace1f06952ea
5
5
  SHA512:
6
- metadata.gz: 695187968a48b9ff951236b62b0955ea5bf785eb65207013acc321e5c5aa68d48932fe5bb085932d44f69bf7a611429789601d82d0ba32f8d84ebcf34309c73a
7
- data.tar.gz: '08a4e134e351947354248eb8925fd9a7bb7f9c392001f071ea5d696c60592fdda4a3a0b694f6796eaa9934d8f105cfa8d61c7d6e8b6231a70af454a83c916680'
6
+ metadata.gz: 02d8f0c27262e051c8e22afb506e90dcc1d719f188fba1fcd28f27a1e996bffd2229636d59bc21eb8c48374ff5703c44ae3f4aea9f49077dc36e296fc66476bf
7
+ data.tar.gz: bc0e4ddefcb55a3f041b3e4ce37f7ab6840531cdbcaa38d25d0eec3f1e6190062f585f9744356175a587a5b5d714b3e49f763644dc427d766d0eca6b861061cd
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: codecov
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ jobs:
8
+ codecov:
9
+ runs-on: ubuntu-20.04
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ - uses: actions/setup-ruby@v1
13
+ with:
14
+ ruby-version: 2.7
15
+ - run: bundle update
16
+ - run: bundle exec rake
17
+ - uses: codecov/codecov-action@v3
18
+ with:
19
+ file: coverage/.resultset.json
20
+ fail_ci_if_error: true
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: pdd
3
+ "on":
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ branches:
9
+ - master
10
+ jobs:
11
+ pdd:
12
+ runs-on: ubuntu-20.04
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - uses: g4s8/pdd-action@master
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: rake
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ branches:
9
+ - master
10
+ jobs:
11
+ test:
12
+ name: test
13
+ strategy:
14
+ matrix:
15
+ os: [ubuntu-20.04]
16
+ ruby: [2.6]
17
+ runs-on: ${{ matrix.os }}
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+ - uses: ruby/setup-ruby@v1
21
+ with:
22
+ ruby-version: ${{ matrix.ruby }}
23
+ - run: bundle update
24
+ - run: bundle exec rake
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: xcop
3
+ "on":
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ branches:
9
+ - master
10
+ jobs:
11
+ xcop:
12
+ runs-on: ubuntu-20.04
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - uses: g4s8/xcop-action@master
16
+ with:
17
+ files: '**/*.xml'
data/.rultor.yml CHANGED
@@ -1,14 +1,12 @@
1
+ docker:
2
+ image: yegor256/rultor-image:1.9.1
1
3
  assets:
2
4
  rubygems.yml: yegor256/home#assets/rubygems.yml
3
- s3cfg: yegor256/home#assets/s3cfg
4
5
  install: |
5
- export GEM_HOME=~/.ruby
6
- export GEM_PATH=$GEM_HOME:$GEM_PATH
7
- sudo apt-get -y update
8
- sudo gem install pdd -v 0.20.5
6
+ pdd -f /dev/null
7
+ sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"
9
8
  release:
10
9
  script: |-
11
- bundle install
12
10
  bundle exec rake
13
11
  rm -rf *.gem
14
12
  sed -i "s/0\.0\.0/${tag}/g" loog.gemspec
@@ -17,16 +15,6 @@ release:
17
15
  gem build loog.gemspec
18
16
  chmod 0600 ../rubygems.yml
19
17
  gem push *.gem --config-file ../rubygems.yml
20
- commanders:
21
- - yegor256
22
- architect:
23
- - yegor256
24
18
  merge:
25
19
  script: |-
26
- bundle install
27
20
  bundle exec rake
28
- pdd
29
- deploy:
30
- script: |-
31
- echo "There is nothing to deploy"
32
- exit -1
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2018 Yegor Bugayenko
3
+ # Copyright (c) 2018-2023 Yegor Bugayenko
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,15 +1,14 @@
1
1
  <img src="/logo.svg" width="64px" height="64px"/>
2
2
 
3
+ [![Managed by Zerocracy](https://www.0crat.com/badge/C3RFVLU72.svg)](https://www.0crat.com/p/C3RFVLU72)
3
4
  [![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
4
5
  [![DevOps By Rultor.com](http://www.rultor.com/b/yegor256/loog)](http://www.rultor.com/p/yegor256/loog)
5
6
  [![We recommend RubyMine](https://www.elegantobjects.org/rubymine.svg)](https://www.jetbrains.com/ruby/)
6
7
 
7
- [![Build Status](https://travis-ci.org/yegor256/loog.svg)](https://travis-ci.org/yegor256/loog)
8
- [![Build status](https://ci.appveyor.com/api/projects/status/4wypa4uq4anp155x?svg=true)](https://ci.appveyor.com/project/yegor256/loog)
8
+ [![rake](https://github.com/yegor256/loog/actions/workflows/rake.yml/badge.svg)](https://github.com/yegor256/loog/actions/workflows/rake.yml)
9
9
  [![Gem Version](https://badge.fury.io/rb/loog.svg)](http://badge.fury.io/rb/loog)
10
10
  [![Maintainability](https://api.codeclimate.com/v1/badges/4346229c7af42b820e84/maintainability)](https://codeclimate.com/github/yegor256/loog/maintainability)
11
11
  [![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/github/yegor256/loog/master/frames)
12
-
13
12
  [![Test Coverage](https://img.shields.io/codecov/c/github/yegor256/loog.svg)](https://codecov.io/github/yegor256/loog?branch=master)
14
13
  [![Hits-of-Code](https://hitsofcode.com/github/yegor256/loog)](https://hitsofcode.com/view/github/yegor256/loog)
15
14
 
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2018 Yegor Bugayenko
3
+ # Copyright (c) 2018-2023 Yegor Bugayenko
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/lib/loog/tee.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # (The MIT License)
4
4
  #
5
- # Copyright (c) 2018 Yegor Bugayenko
5
+ # Copyright (c) 2018-2023 Yegor Bugayenko
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the 'Software'), to deal
@@ -33,7 +33,7 @@ require_relative '../loog'
33
33
  # This way you can log to console and to the file at the same time.
34
34
  #
35
35
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
36
- # Copyright:: Copyright (c) 2018 Yegor Bugayenko
36
+ # Copyright:: Copyright (c) 2018-2023 Yegor Bugayenko
37
37
  # License:: MIT
38
38
  class Loog::Tee
39
39
  # Makes an instance.
data/lib/loog.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # (The MIT License)
4
4
  #
5
- # Copyright (c) 2018 Yegor Bugayenko
5
+ # Copyright (c) 2018-2023 Yegor Bugayenko
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the 'Software'), to deal
@@ -34,7 +34,7 @@ require 'logger'
34
34
  # {README}[https://github.com/yegor256/loog/blob/master/README.md] file.
35
35
  #
36
36
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
37
- # Copyright:: Copyright (c) 2018 Yegor Bugayenko
37
+ # Copyright:: Copyright (c) 2018-2023 Yegor Bugayenko
38
38
  # License:: MIT
39
39
  module Loog
40
40
  # Compact formatter
data/loog.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # (The MIT License)
4
4
  #
5
- # Copyright (c) 2018 Yegor Bugayenko
5
+ # Copyright (c) 2018-2023 Yegor Bugayenko
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the 'Software'), to deal
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
31
31
  s.rubygems_version = '2.3.3'
32
32
  s.required_ruby_version = '>=2.3'
33
33
  s.name = 'loog'
34
- s.version = '0.2.1'
34
+ s.version = '0.3.0'
35
35
  s.license = 'MIT'
36
36
  s.summary = 'Object-oriented logging wrapper'
37
37
  s.description = 'Object-oriented wrapper for Ruby default logging facility'
@@ -42,7 +42,7 @@ Gem::Specification.new do |s|
42
42
  s.test_files = s.files.grep(%r{^(test)/})
43
43
  s.rdoc_options = ['--charset=UTF-8']
44
44
  s.extra_rdoc_files = ['README.md']
45
- s.add_development_dependency 'codecov', '0.1.10'
45
+ s.add_development_dependency 'codecov', '0.6.0'
46
46
  s.add_development_dependency 'minitest', '5.11.3'
47
47
  s.add_development_dependency 'rake', '12.0.0'
48
48
  s.add_development_dependency 'rdoc', '4.3.0'
data/renovate.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": [
4
+ "config:base"
5
+ ]
6
+ }
data/test/test_loog.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # (The MIT License)
4
4
  #
5
- # Copyright (c) 2018 Yegor Bugayenko
5
+ # Copyright (c) 2018-2023 Yegor Bugayenko
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the 'Software'), to deal
@@ -27,7 +27,7 @@ require_relative '../lib/loog'
27
27
 
28
28
  # Loog test.
29
29
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
30
- # Copyright:: Copyright (c) 2018 Yegor Bugayenko
30
+ # Copyright:: Copyright (c) 2018-2023 Yegor Bugayenko
31
31
  # License:: MIT
32
32
  class LoogTest < Minitest::Test
33
33
  def test_simple_logging
data/test/test_tee.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # (The MIT License)
4
4
  #
5
- # Copyright (c) 2018 Yegor Bugayenko
5
+ # Copyright (c) 2018-2023 Yegor Bugayenko
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the 'Software'), to deal
@@ -28,7 +28,7 @@ require_relative '../lib/loog/tee'
28
28
 
29
29
  # Loog::Tee test.
30
30
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
31
- # Copyright:: Copyright (c) 2018 Yegor Bugayenko
31
+ # Copyright:: Copyright (c) 2018-2023 Yegor Bugayenko
32
32
  # License:: MIT
33
33
  class TeeTest < Minitest::Test
34
34
  def test_simple_logging
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-18 00:00:00.000000000 Z
11
+ date: 2023-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: codecov
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.10
19
+ version: 0.6.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.10
26
+ version: 0.6.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -103,6 +103,10 @@ extra_rdoc_files:
103
103
  files:
104
104
  - ".0pdd.yml"
105
105
  - ".gitattributes"
106
+ - ".github/workflows/codecov.yml"
107
+ - ".github/workflows/pdd.yml"
108
+ - ".github/workflows/rake.yml"
109
+ - ".github/workflows/xcop.yml"
106
110
  - ".gitignore"
107
111
  - ".pdd"
108
112
  - ".rubocop.yml"
@@ -118,6 +122,7 @@ files:
118
122
  - lib/loog/tee.rb
119
123
  - logo.svg
120
124
  - loog.gemspec
125
+ - renovate.json
121
126
  - test/test__helper.rb
122
127
  - test/test_loog.rb
123
128
  - test/test_tee.rb
@@ -141,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
146
  - !ruby/object:Gem::Version
142
147
  version: '0'
143
148
  requirements: []
144
- rubygems_version: 3.0.1
149
+ rubygems_version: 3.1.2
145
150
  signing_key:
146
151
  specification_version: 2
147
152
  summary: Object-oriented logging wrapper