null-logger 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.coditsu/ci.yml +3 -0
- data/.github/FUNDING.yml +1 -0
- data/.github/workflows/ci.yml +43 -0
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +13 -3
- data/Gemfile +1 -1
- data/Gemfile.lock +17 -19
- data/README.md +4 -4
- data/certs/mensfeld.pem +25 -0
- data/lib/null_logger.rb +1 -1
- data/lib/null_logger/version.rb +1 -1
- data/null-logger.gemspec +6 -1
- metadata +35 -7
- metadata.gz.sig +0 -0
- data/.travis.yml +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50e506de3f5e7c4f7a17394e1f63df5713f450d9fbea8e55718dc1baa0e4ad26
|
4
|
+
data.tar.gz: 5c2c51cc6c6c3cda1f5932d1dc4aa9cae4cf081818bb88f9043bcb3bf5474eb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45ebf3958c153ad5f76577d678411bc21a7264d995315e750e4a2db4011b633681c740f9a43865ff2078143e96a1e18555f02e70abb693abf6fdd784e0428bc8
|
7
|
+
data.tar.gz: e9c1bba42bb75f9067d2acc824031f2b599e74872aa7d135e7b75d66b2f6bbd9e28b5b9ab8c10a009bf0b16236c6792c8d9c52d49c88c0fa0f919cf3867dbbb2
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
Binary file
|
data/.coditsu/ci.yml
ADDED
data/.github/FUNDING.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
open_collective: karafka
|
@@ -0,0 +1,43 @@
|
|
1
|
+
name: ci
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
paths:
|
6
|
+
- '**'
|
7
|
+
schedule:
|
8
|
+
- cron: '0 1 * * *'
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
specs:
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
strategy:
|
14
|
+
fail-fast: false
|
15
|
+
matrix:
|
16
|
+
ruby:
|
17
|
+
- "2.7"
|
18
|
+
- "2.6"
|
19
|
+
- "2.5"
|
20
|
+
steps:
|
21
|
+
- uses: actions/checkout@v1
|
22
|
+
- name: Install package dependencies
|
23
|
+
run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"
|
24
|
+
- name: Set up Ruby
|
25
|
+
uses: ruby/setup-ruby@v1
|
26
|
+
with:
|
27
|
+
ruby-version: ${{matrix.ruby}}
|
28
|
+
- name: Install latest bundler
|
29
|
+
run: |
|
30
|
+
gem install bundler --no-document
|
31
|
+
bundle config set without 'tools benchmarks docs'
|
32
|
+
- name: Bundle install
|
33
|
+
run: bundle install --jobs 4 --retry 3
|
34
|
+
- name: Run all tests
|
35
|
+
run: bundle exec rspec
|
36
|
+
coditsu:
|
37
|
+
runs-on: ubuntu-latest
|
38
|
+
strategy:
|
39
|
+
fail-fast: false
|
40
|
+
steps:
|
41
|
+
- uses: actions/checkout@v1
|
42
|
+
- name: Run Coditsu
|
43
|
+
run: \curl -sSL https://api.coditsu.io/run/ci | bash
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.1
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,19 @@
|
|
1
1
|
# Null-Logger changelog
|
2
2
|
|
3
|
-
## 0.1.
|
4
|
-
-
|
3
|
+
## 0.1.6 (2020-04-22)
|
4
|
+
- drop jruby support
|
5
|
+
- drop ruby 2.2 support
|
6
|
+
- drop ruby 2.3 support
|
7
|
+
- drop ruby 2.4 support
|
5
8
|
- #5 - Could be faster
|
6
|
-
- Ruby 2.5.
|
9
|
+
- Ruby 2.5.5 support
|
10
|
+
- Ruby 2.6.5 support
|
11
|
+
- Ruby 2.7.1 support
|
12
|
+
- Replace travis with GH actions
|
13
|
+
- Support signing the releases
|
14
|
+
|
15
|
+
## 0.1.5
|
16
|
+
- Define the methods to quack like a logger
|
7
17
|
|
8
18
|
## 0.1.4
|
9
19
|
- Ruby 2.4.1 as default
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,32 +1,30 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
null-logger (0.1.
|
4
|
+
null-logger (0.1.6)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
diff-lcs (1.3)
|
10
|
-
docile (1.3.
|
11
|
-
|
12
|
-
|
13
|
-
rspec-
|
14
|
-
rspec-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
rspec-expectations (3.7.0)
|
10
|
+
docile (1.3.2)
|
11
|
+
rspec (3.9.0)
|
12
|
+
rspec-core (~> 3.9.0)
|
13
|
+
rspec-expectations (~> 3.9.0)
|
14
|
+
rspec-mocks (~> 3.9.0)
|
15
|
+
rspec-core (3.9.1)
|
16
|
+
rspec-support (~> 3.9.1)
|
17
|
+
rspec-expectations (3.9.1)
|
19
18
|
diff-lcs (>= 1.2.0, < 2.0)
|
20
|
-
rspec-support (~> 3.
|
21
|
-
rspec-mocks (3.
|
19
|
+
rspec-support (~> 3.9.0)
|
20
|
+
rspec-mocks (3.9.1)
|
22
21
|
diff-lcs (>= 1.2.0, < 2.0)
|
23
|
-
rspec-support (~> 3.
|
24
|
-
rspec-support (3.
|
25
|
-
simplecov (0.
|
22
|
+
rspec-support (~> 3.9.0)
|
23
|
+
rspec-support (3.9.2)
|
24
|
+
simplecov (0.18.5)
|
26
25
|
docile (~> 1.1)
|
27
|
-
|
28
|
-
|
29
|
-
simplecov-html (0.10.2)
|
26
|
+
simplecov-html (~> 0.11)
|
27
|
+
simplecov-html (0.12.2)
|
30
28
|
|
31
29
|
PLATFORMS
|
32
30
|
ruby
|
@@ -37,4 +35,4 @@ DEPENDENCIES
|
|
37
35
|
simplecov
|
38
36
|
|
39
37
|
BUNDLED WITH
|
40
|
-
1.
|
38
|
+
2.1.4
|
data/README.md
CHANGED
@@ -8,20 +8,20 @@ A simple logger that does not log anything. It can be used for defining an inter
|
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
11
|
-
Add gem to your Gemfile
|
11
|
+
Add the gem to your Gemfile
|
12
12
|
```ruby
|
13
13
|
gem 'null-logger', require: 'null_logger'
|
14
14
|
```
|
15
15
|
|
16
16
|
## Usage
|
17
|
-
On NullLogger instance you can call methods which
|
17
|
+
On NullLogger instance you can call methods which correspond to Ruby Logger log levels (unknown, fatal, error, warn, info, debug), ex:
|
18
18
|
|
19
19
|
```ruby
|
20
20
|
NullLogger.new.fatal # return nil
|
21
21
|
NullLogger.new.wrong_method # raise NoMethodError
|
22
22
|
```
|
23
23
|
|
24
|
-
NullLogger
|
24
|
+
NullLogger defines an interface for real logger instance, ex:
|
25
25
|
|
26
26
|
```ruby
|
27
27
|
class Worker
|
@@ -53,7 +53,7 @@ NullLogger define interface for real logger instance, ex:
|
|
53
53
|
|
54
54
|
First, thank you for considering contributing to NullLogger! It's people like you that make the open source community such a great community!
|
55
55
|
|
56
|
-
Each pull request must pass all the
|
56
|
+
Each pull request must pass all the RSpec specs and meet our quality requirements.
|
57
57
|
|
58
58
|
To check if everything is as it should be, we use [Coditsu](https://coditsu.io) that combines multiple linters and code analyzers for both code and documentation. Once you're done with your changes, submit a pull request.
|
59
59
|
|
data/certs/mensfeld.pem
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIEODCCAqCgAwIBAgIBATANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhtYWNp
|
3
|
+
ZWovREM9bWVuc2ZlbGQvREM9cGwwHhcNMTkwNzMwMTQ1ND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5eE1gkxY5LfExUtK3b2wPqfmo7mZgfcsMwfYg/tUXw1WpBCnrhAJodpGH6SXmp
|
19
|
+
A40qFUZst0vjiOoO+aTblIHPmMJXoZ3K42dTlNKlEiDKUWMRKSgpjjYGEYalFNWI
|
20
|
+
hHfCz2r8L2t+dYdMZg1JGbEkq4ADGsAA8ioZIpJd7V4hI17u5TCdi7X5wh/0gN0E
|
21
|
+
CgP+nLox3D+l2q0QuQEkayr+auFYkzTCkF+BmEk1D0Ru4mcf3F4CJvEmW4Pzbjqt
|
22
|
+
i1tsCWPtJ4E/UUKnKaWKqGbjrjHJ0MuShYzHkodox5IOiCXIQg+1+YSzfXUV6WEK
|
23
|
+
KJG/fhg1JV5vVDdVy6x+tv5SQ5ctU0feCsVfESi3rE3zRd+nvzE9HcZ5aXeL1UtJ
|
24
|
+
nT5Xrioegu2w1jPyVEgyZgTZC5rvD0nNS5sFNQ==
|
25
|
+
-----END CERTIFICATE-----
|
data/lib/null_logger.rb
CHANGED
data/lib/null_logger/version.rb
CHANGED
data/null-logger.gemspec
CHANGED
@@ -15,8 +15,13 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.homepage = 'https://github.com/karafka/null-logger'
|
16
16
|
spec.license = 'MIT'
|
17
17
|
|
18
|
-
spec.required_ruby_version = '>= 2.
|
18
|
+
spec.required_ruby_version = '>= 2.5.0'
|
19
19
|
|
20
|
+
if $PROGRAM_NAME.end_with?('gem')
|
21
|
+
spec.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
|
22
|
+
end
|
23
|
+
|
24
|
+
spec.cert_chain = %w[certs/mensfeld.pem]
|
20
25
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
|
21
26
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
22
27
|
spec.require_paths = %w[lib]
|
metadata
CHANGED
@@ -1,15 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: null-logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maciej Mensfeld
|
8
8
|
- Adam Gwozdowski
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
|
-
cert_chain:
|
12
|
-
|
11
|
+
cert_chain:
|
12
|
+
- |
|
13
|
+
-----BEGIN CERTIFICATE-----
|
14
|
+
MIIEODCCAqCgAwIBAgIBATANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhtYWNp
|
15
|
+
ZWovREM9bWVuc2ZlbGQvREM9cGwwHhcNMTkwNzMwMTQ1NDU0WhcNMjAwNzI5MTQ1
|
16
|
+
NDU0WjAjMSEwHwYDVQQDDBhtYWNpZWovREM9bWVuc2ZlbGQvREM9cGwwggGiMA0G
|
17
|
+
CSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC9fCwtaHZG2SyyNXiH8r0QbJQx/xxl
|
18
|
+
dkvwWz9QGJO+O8rEx20FB1Ab+MVkfOscwIv5jWpmk1U9whzDPl1uFtIbgu+sk+Zb
|
19
|
+
uQlZyK/DPN6c+/BbBL+RryTBRyvkPLoCVwm7uxc/JZ1n4AI6eF4cCZ2ieZ9QgQbU
|
20
|
+
MQs2QPqs9hT50Ez/40GnOdadVfiDDGz+NME2C4ms0BriXwZ1tcRTfJIHe2xjIbbb
|
21
|
+
y5qRGfsLKcgMzvLQR24olixyX1MR0s4+Wveq3QL/gBhL4veUcv+UABJA8IJR0kyB
|
22
|
+
seHHutusiwZ1v3SjjjW1xLLrc2ARV0mgCb0WaK2T4iA3oFTGLh6Ydz8LNl31KQFv
|
23
|
+
94nRd8IhmJxrhQ6dQ/WT9IXoa5S9lfT5lPJeINemH4/6QPABzf9W2IZlCdI9wCdB
|
24
|
+
TBaw57MKneGAYZiKjw6OALSy2ltQUCl3RqFl3VP7n8uFy1U987Q5VIIQ3O1UUsQD
|
25
|
+
Oe/h+r7GUU4RSPKgPlrwvW9bD/UQ+zF51v8CAwEAAaN3MHUwCQYDVR0TBAIwADAL
|
26
|
+
BgNVHQ8EBAMCBLAwHQYDVR0OBBYEFJNIBHdfEUD7TqHqIer2YhWaWhwcMB0GA1Ud
|
27
|
+
EQQWMBSBEm1hY2llakBtZW5zZmVsZC5wbDAdBgNVHRIEFjAUgRJtYWNpZWpAbWVu
|
28
|
+
c2ZlbGQucGwwDQYJKoZIhvcNAQELBQADggGBAKA4eqko6BTNhlysip6rfBkVTGri
|
29
|
+
ZXsL+kRb2hLvsQJS/kLyM21oMlu+LN0aPj3qEFR8mE/YeDD8rLAfruBRTltPNbR7
|
30
|
+
xA5eE1gkxY5LfExUtK3b2wPqfmo7mZgfcsMwfYg/tUXw1WpBCnrhAJodpGH6SXmp
|
31
|
+
A40qFUZst0vjiOoO+aTblIHPmMJXoZ3K42dTlNKlEiDKUWMRKSgpjjYGEYalFNWI
|
32
|
+
hHfCz2r8L2t+dYdMZg1JGbEkq4ADGsAA8ioZIpJd7V4hI17u5TCdi7X5wh/0gN0E
|
33
|
+
CgP+nLox3D+l2q0QuQEkayr+auFYkzTCkF+BmEk1D0Ru4mcf3F4CJvEmW4Pzbjqt
|
34
|
+
i1tsCWPtJ4E/UUKnKaWKqGbjrjHJ0MuShYzHkodox5IOiCXIQg+1+YSzfXUV6WEK
|
35
|
+
KJG/fhg1JV5vVDdVy6x+tv5SQ5ctU0feCsVfESi3rE3zRd+nvzE9HcZ5aXeL1UtJ
|
36
|
+
nT5Xrioegu2w1jPyVEgyZgTZC5rvD0nNS5sFNQ==
|
37
|
+
-----END CERTIFICATE-----
|
38
|
+
date: 2020-04-22 00:00:00.000000000 Z
|
13
39
|
dependencies: []
|
14
40
|
description: It can be used for defining an interface for other loggers
|
15
41
|
email:
|
@@ -19,16 +45,19 @@ executables: []
|
|
19
45
|
extensions: []
|
20
46
|
extra_rdoc_files: []
|
21
47
|
files:
|
48
|
+
- ".coditsu/ci.yml"
|
49
|
+
- ".github/FUNDING.yml"
|
50
|
+
- ".github/workflows/ci.yml"
|
22
51
|
- ".gitignore"
|
23
52
|
- ".rspec"
|
24
53
|
- ".ruby-gemset"
|
25
54
|
- ".ruby-version"
|
26
|
-
- ".travis.yml"
|
27
55
|
- CHANGELOG.md
|
28
56
|
- Gemfile
|
29
57
|
- Gemfile.lock
|
30
58
|
- MIT-LICENCE
|
31
59
|
- README.md
|
60
|
+
- certs/mensfeld.pem
|
32
61
|
- lib/null_logger.rb
|
33
62
|
- lib/null_logger/version.rb
|
34
63
|
- null-logger.gemspec
|
@@ -44,15 +73,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
44
73
|
requirements:
|
45
74
|
- - ">="
|
46
75
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.
|
76
|
+
version: 2.5.0
|
48
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
78
|
requirements:
|
50
79
|
- - ">="
|
51
80
|
- !ruby/object:Gem::Version
|
52
81
|
version: '0'
|
53
82
|
requirements: []
|
54
|
-
|
55
|
-
rubygems_version: 2.7.6
|
83
|
+
rubygems_version: 3.1.2
|
56
84
|
signing_key:
|
57
85
|
specification_version: 4
|
58
86
|
summary: A simple logger that does not log anything.
|
metadata.gz.sig
ADDED
Binary file
|
data/.travis.yml
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
sudo: false
|
3
|
-
rvm:
|
4
|
-
- 2.3.0
|
5
|
-
- 2.3.1
|
6
|
-
- 2.3.2
|
7
|
-
- 2.3.3
|
8
|
-
- 2.3.4
|
9
|
-
- 2.4.0
|
10
|
-
- 2.4.1
|
11
|
-
- 2.4.2
|
12
|
-
- 2.5.0
|
13
|
-
- jruby-head
|
14
|
-
script: bundle exec rspec spec/
|
15
|
-
env:
|
16
|
-
global:
|
17
|
-
- JRUBY_OPTS='--debug'
|
18
|
-
install: bundle install --jobs=3 --retry=3
|