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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 148dcf1f7a434633cc943ac6ee27a1916692cdcd9ecbf04e89b9e04e3b1068ea
4
- data.tar.gz: 45580a1ba4d4e08b90c93fdda96163cf729b9313fb45e12acaa6da83d6003f60
3
+ metadata.gz: 50e506de3f5e7c4f7a17394e1f63df5713f450d9fbea8e55718dc1baa0e4ad26
4
+ data.tar.gz: 5c2c51cc6c6c3cda1f5932d1dc4aa9cae4cf081818bb88f9043bcb3bf5474eb6
5
5
  SHA512:
6
- metadata.gz: 1dee771ad0351a9183a85ecbf81d5bf1401f97245571ad5b5165219172fabd8f1b8ddb32b65e898c8584a7374ee86525461c270bb64ab82fe68e9185e32c3925
7
- data.tar.gz: e952136d3488ff7fe4259c0bc8fa4fb377cf20b59ea6b604e5304f96f7c30f3a08bb2b4fecc8d978e152a315de11ba86323d332e4897cf4254ecba067d849bac
6
+ metadata.gz: 45ebf3958c153ad5f76577d678411bc21a7264d995315e750e4a2db4011b633681c740f9a43865ff2078143e96a1e18555f02e70abb693abf6fdd784e0428bc8
7
+ data.tar.gz: e9c1bba42bb75f9067d2acc824031f2b599e74872aa7d135e7b75d66b2f6bbd9e28b5b9ab8c10a009bf0b16236c6792c8d9c52d49c88c0fa0f919cf3867dbbb2
Binary file
Binary file
@@ -0,0 +1,3 @@
1
+ repository_id: '002acdf9-e0d3-4869-9dcb-61127b85e644'
2
+ api_key: <%= ENV['CODITSU_API_KEY'] %>
3
+ api_secret: <%= ENV['CODITSU_API_SECRET'] %>
@@ -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
@@ -13,6 +13,7 @@ db/*.sqlite3
13
13
  /tmp/*
14
14
  *.gem
15
15
  *.~
16
+ .coditsu/local.yml
16
17
 
17
18
  # various artifacts
18
19
  **.war
@@ -1 +1 @@
1
- 2.5.0
1
+ 2.7.1
@@ -1,9 +1,19 @@
1
1
  # Null-Logger changelog
2
2
 
3
- ## 0.1.5 Unreleased
4
- - Ruby 2.4.2 support
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.0 support
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
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
6
 
7
- group :development, :test do
7
+ group :test do
8
8
  gem 'rspec'
9
9
  gem 'simplecov'
10
10
  end
@@ -1,32 +1,30 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- null-logger (0.1.5)
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.0)
11
- json (2.1.0)
12
- rspec (3.7.0)
13
- rspec-core (~> 3.7.0)
14
- rspec-expectations (~> 3.7.0)
15
- rspec-mocks (~> 3.7.0)
16
- rspec-core (3.7.1)
17
- rspec-support (~> 3.7.0)
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.7.0)
21
- rspec-mocks (3.7.0)
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.7.0)
24
- rspec-support (3.7.1)
25
- simplecov (0.16.1)
22
+ rspec-support (~> 3.9.0)
23
+ rspec-support (3.9.2)
24
+ simplecov (0.18.5)
26
25
  docile (~> 1.1)
27
- json (>= 1.8, < 3)
28
- simplecov-html (~> 0.10.0)
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.16.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 corresponds to Ruby Logger log levels (unknown, fatal, error, warn, info, debug), ex:
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 define interface for real logger instance, ex:
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 rspec specs and meet our quality requirements.
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
 
@@ -0,0 +1,25 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIEODCCAqCgAwIBAgIBATANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhtYWNp
3
+ ZWovREM9bWVuc2ZlbGQvREM9cGwwHhcNMTkwNzMwMTQ1NDU0WhcNMjAwNzI5MTQ1
4
+ NDU0WjAjMSEwHwYDVQQDDBhtYWNpZWovREM9bWVuc2ZlbGQvREM9cGwwggGiMA0G
5
+ CSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC9fCwtaHZG2SyyNXiH8r0QbJQx/xxl
6
+ dkvwWz9QGJO+O8rEx20FB1Ab+MVkfOscwIv5jWpmk1U9whzDPl1uFtIbgu+sk+Zb
7
+ uQlZyK/DPN6c+/BbBL+RryTBRyvkPLoCVwm7uxc/JZ1n4AI6eF4cCZ2ieZ9QgQbU
8
+ MQs2QPq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U0feCsVfESi3rE3zRd+nvzE9HcZ5aXeL1UtJ
24
+ nT5Xrioegu2w1jPyVEgyZgTZC5rvD0nNS5sFNQ==
25
+ -----END CERTIFICATE-----
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Null logger class. This is essentially the same as sending data down the
4
- # `/dev/null` blackhole.
4
+ # `/dev/null` black hole.
5
5
  #
6
6
  # @example Basic Usage
7
7
  #
@@ -2,5 +2,5 @@
2
2
 
3
3
  class NullLogger
4
4
  # null-logger gem Version
5
- VERSION = '0.1.5'
5
+ VERSION = '0.1.6'
6
6
  end
@@ -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.2.0'
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.5
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
- date: 2018-03-23 00:00:00.000000000 Z
11
+ cert_chain:
12
+ - |
13
+ -----BEGIN CERTIFICATE-----
14
+ MIIEODCCAqCgAwIBAgIBATANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhtYWNp
15
+ ZWovREM9bWVuc2ZlbGQvREM9cGw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Xw1WpBCnrhAJodpGH6SXmp
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.2.0
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
- rubyforge_project:
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.
Binary file
@@ -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