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 +4 -4
- data/.github/workflows/codecov.yml +20 -0
- data/.github/workflows/pdd.yml +15 -0
- data/.github/workflows/rake.yml +24 -0
- data/.github/workflows/xcop.yml +17 -0
- data/.rultor.yml +4 -16
- data/Gemfile +1 -1
- data/README.md +2 -3
- data/Rakefile +1 -1
- data/lib/loog/tee.rb +2 -2
- data/lib/loog.rb +2 -2
- data/loog.gemspec +3 -3
- data/renovate.json +6 -0
- data/test/test_loog.rb +2 -2
- data/test/test_tee.rb +2 -2
- metadata +10 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff39830a0294bd0cbedcb2cf613e0fdf8ec6985cd0618cda087ff637c1f3b4fc
|
4
|
+
data.tar.gz: 638ccfc03eeffd5297001a9f83c6f108d2910d21ac59212ec57cace1f06952ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,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
|
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
|
-
|
6
|
-
|
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
|
+
[](https://www.0crat.com/p/C3RFVLU72)
|
3
4
|
[](https://www.elegantobjects.org)
|
4
5
|
[](http://www.rultor.com/p/yegor256/loog)
|
5
6
|
[](https://www.jetbrains.com/ruby/)
|
6
7
|
|
7
|
-
[](https://ci.appveyor.com/project/yegor256/loog)
|
8
|
+
[](https://github.com/yegor256/loog/actions/workflows/rake.yml)
|
9
9
|
[](http://badge.fury.io/rb/loog)
|
10
10
|
[](https://codeclimate.com/github/yegor256/loog/maintainability)
|
11
11
|
[](http://rubydoc.info/github/yegor256/loog/master/frames)
|
12
|
-
|
13
12
|
[](https://codecov.io/github/yegor256/loog?branch=master)
|
14
13
|
[](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.
|
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.
|
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
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.
|
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:
|
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.
|
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.
|
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.
|
149
|
+
rubygems_version: 3.1.2
|
145
150
|
signing_key:
|
146
151
|
specification_version: 2
|
147
152
|
summary: Object-oriented logging wrapper
|