null-logger 0.1.1 → 0.1.3

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
  SHA1:
3
- metadata.gz: d667c1b77825d97bb42eaba45497a88187814aec
4
- data.tar.gz: 39662e6b07fadb40b8b59319274f501f4b24768d
3
+ metadata.gz: 5f3bb04ee8d9ae615202464d4c2a13546cd46c9b
4
+ data.tar.gz: 94e561ade05f5cce29f53a62a5744f853a652843
5
5
  SHA512:
6
- metadata.gz: 69a47ec56ad94d6900fe92711edb796c9996000b86fb8acc9053e3a7456e8ea8214ff27a7c1c64114eb8318351aad4957f6ec39e98f0ca122fe23ea2774360b7
7
- data.tar.gz: 0cc387eea0b8874989d811231795a763cd7de9ab35e03650bedccd240360eaa36fd1b123111de8d3862fd596f0d4a2e2ac6ffad25b174699747b96aa560a6e5f
6
+ metadata.gz: cebe44503b6a51f24010e6a41cbb99398baa6bb670b637f736d2f08be1a188507d11b02a9519173bdb3c33607cc20fa235a54b8ee414a2893b9c7ce25b6736c2
7
+ data.tar.gz: 21d48bb84fbdc26f793176b19282e39b9cd36ee6ed4e09f7e24df94534e4dde3c8f0ed3efde3628be7e156793b90c2c311de8a597c61bd64325325b11c9d6d19
@@ -1 +1 @@
1
- 2.3.0
1
+ 2.3.1
@@ -1,7 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.7
4
3
  - 2.2.3
5
4
  - 2.3.0
5
+ - 2.3.1
6
6
  script:
7
7
  - bundle exec rake
@@ -1,5 +1,16 @@
1
1
  # Null-Logger changelog
2
2
 
3
- ## 0.1.0
3
+ ## 0.1.3
4
+ - Ruby 2.1.* support dropped
5
+ - Ruby 2.3.1 as default
6
+ - Gem dump
7
+ - Rubocop fixes
8
+ - Added #respond_to_method_missing?
9
+
10
+ ## 0.1.2
11
+ - Dev tools update
12
+ - Specs update
13
+ - Gems dump
4
14
 
15
+ ## 0.1.0
5
16
  - Initial released version
data/Gemfile CHANGED
@@ -5,4 +5,3 @@ gemspec
5
5
  group :development, :test do
6
6
  gem 'polishgeeks-dev-tools'
7
7
  end
8
-
@@ -1,198 +1,152 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- null-logger (0.1.1)
4
+ null-logger (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- abstract_type (0.0.7)
10
- activemodel (4.2.5)
11
- activesupport (= 4.2.5)
12
- builder (~> 3.1)
13
- activesupport (4.2.5)
9
+ activesupport (5.0.0)
10
+ concurrent-ruby (~> 1.0, >= 1.0.2)
14
11
  i18n (~> 0.7)
15
- json (~> 1.7, >= 1.7.7)
16
12
  minitest (~> 5.1)
17
- thread_safe (~> 0.3, >= 0.3.4)
18
13
  tzinfo (~> 1.1)
19
- adamantium (0.2.0)
20
- ice_nine (~> 0.11.0)
21
- memoizable (~> 0.4.0)
22
- ast (2.2.0)
23
- astrolabe (1.3.1)
24
- parser (~> 2.2)
14
+ addressable (2.4.0)
15
+ ast (2.3.0)
25
16
  axiom-types (0.1.1)
26
17
  descendants_tracker (~> 0.0.4)
27
18
  ice_nine (~> 0.11.0)
28
19
  thread_safe (~> 0.3, >= 0.3.1)
29
- brakeman (3.1.4)
30
- erubis (~> 2.6)
31
- fastercsv (~> 1.5)
32
- haml (>= 3.0, < 5.0)
33
- highline (>= 1.6.20, < 2.0)
34
- multi_json (~> 1.2)
35
- ruby2ruby (>= 2.1.1, < 2.3.0)
36
- ruby_parser (~> 3.7.0)
37
- safe_yaml (>= 1.0)
38
- sass (~> 3.0)
39
- slim (>= 1.3.6, < 4.0)
40
- terminal-table (~> 1.4)
41
- bson (4.0.0)
42
- builder (3.2.2)
43
- codeclimate-engine-rb (0.1.0)
20
+ brakeman (3.3.3)
21
+ bundler-audit (0.5.0)
22
+ bundler (~> 1.2)
23
+ thor (~> 0.18)
24
+ codeclimate-engine-rb (0.3.1)
44
25
  virtus (~> 1.0)
45
- coderay (1.1.0)
26
+ coderay (1.1.1)
46
27
  coercible (1.0.0)
47
28
  descendants_tracker (~> 0.0.1)
48
- concord (0.1.5)
49
- adamantium (~> 0.2.0)
50
- equalizer (~> 0.0.9)
29
+ colorize (0.8.1)
30
+ concurrent-ruby (1.0.2)
51
31
  descendants_tracker (0.0.4)
52
32
  thread_safe (~> 0.3, >= 0.3.1)
53
33
  diff-lcs (1.2.5)
54
34
  docile (1.1.5)
55
35
  equalizer (0.0.11)
56
36
  erubis (2.7.0)
57
- faker (1.6.1)
37
+ faker (1.6.6)
58
38
  i18n (~> 0.5)
59
- fastercsv (1.5.5)
60
- flay (2.6.1)
39
+ flay (2.8.0)
40
+ erubis (~> 2.7.0)
41
+ path_expander (~> 1.0)
61
42
  ruby_parser (~> 3.0)
62
43
  sexp_processor (~> 4.0)
63
- flog (4.3.2)
44
+ flog (4.4.0)
45
+ path_expander (~> 1.0)
64
46
  ruby_parser (~> 3.1, > 3.1.0)
65
47
  sexp_processor (~> 4.4)
66
48
  haml (4.0.7)
67
49
  tilt
68
- haml-lint (0.13.0)
50
+ haml_lint (0.18.1)
69
51
  haml (~> 4.0)
70
- rubocop (>= 0.25.0)
52
+ rake (>= 10, < 12)
53
+ rubocop (>= 0.36.0)
71
54
  sysexits (~> 1.1)
72
- highline (1.7.8)
73
55
  i18n (0.7.0)
74
- ice_nine (0.11.1)
75
- json (1.8.3)
76
- memoizable (0.4.2)
77
- thread_safe (~> 0.3, >= 0.3.1)
56
+ ice_nine (0.11.2)
57
+ json (2.0.2)
58
+ launchy (2.4.3)
59
+ addressable (~> 2.3)
78
60
  method_source (0.8.2)
79
- minitest (5.8.3)
80
- mongo (2.2.1)
81
- bson (~> 4.0)
82
- mongoid (5.0.2)
83
- activemodel (~> 4.0)
84
- mongo (~> 2.1)
85
- origin (~> 2.1)
86
- tzinfo (>= 0.3.37)
87
- mongoid-rspec (3.0.0)
88
- mongoid (~> 5.0)
89
- rake
90
- rspec (~> 3.3)
91
- multi_json (1.11.2)
92
- origin (2.1.1)
93
- parser (2.2.3.0)
94
- ast (>= 1.1, < 3.0)
95
- polishgeeks-dev-tools (1.2.1)
61
+ minitest (5.9.0)
62
+ parser (2.3.1.2)
63
+ ast (~> 2.2)
64
+ path_expander (1.0.0)
65
+ polishgeeks-dev-tools (1.3.2)
96
66
  brakeman
67
+ bundler-audit
97
68
  faker
98
- haml-lint
99
- mongoid-rspec
69
+ haml_lint
100
70
  pry
101
71
  rspec
102
72
  rubocop
73
+ rubocop-rspec
103
74
  rubycritic
104
75
  shoulda
105
76
  simplecov
106
77
  timecop
107
78
  yard
108
79
  powerpack (0.1.1)
109
- private_attr (1.1.0)
110
- procto (0.0.2)
111
- pry (0.10.3)
80
+ pry (0.10.4)
112
81
  coderay (~> 1.1.0)
113
82
  method_source (~> 0.8.1)
114
83
  slop (~> 3.4)
115
- rainbow (2.0.0)
116
- rake (10.4.2)
117
- reek (3.7.1)
118
- codeclimate-engine-rb (~> 0.1.0)
119
- parser (~> 2.2, >= 2.2.2.5)
120
- private_attr (~> 1.1)
84
+ rainbow (2.1.0)
85
+ rake (11.2.2)
86
+ reek (4.1.0)
87
+ codeclimate-engine-rb (~> 0.3.1)
88
+ parser (~> 2.3.1, >= 2.3.1.2)
121
89
  rainbow (~> 2.0)
122
- unparser (~> 0.2.2)
123
- rspec (3.4.0)
124
- rspec-core (~> 3.4.0)
125
- rspec-expectations (~> 3.4.0)
126
- rspec-mocks (~> 3.4.0)
127
- rspec-core (3.4.1)
128
- rspec-support (~> 3.4.0)
129
- rspec-expectations (3.4.0)
90
+ rspec (3.5.0)
91
+ rspec-core (~> 3.5.0)
92
+ rspec-expectations (~> 3.5.0)
93
+ rspec-mocks (~> 3.5.0)
94
+ rspec-core (3.5.1)
95
+ rspec-support (~> 3.5.0)
96
+ rspec-expectations (3.5.0)
130
97
  diff-lcs (>= 1.2.0, < 2.0)
131
- rspec-support (~> 3.4.0)
132
- rspec-mocks (3.4.0)
98
+ rspec-support (~> 3.5.0)
99
+ rspec-mocks (3.5.0)
133
100
  diff-lcs (>= 1.2.0, < 2.0)
134
- rspec-support (~> 3.4.0)
135
- rspec-support (3.4.1)
136
- rubocop (0.35.1)
137
- astrolabe (~> 1.3)
138
- parser (>= 2.2.3.0, < 3.0)
101
+ rspec-support (~> 3.5.0)
102
+ rspec-support (3.5.0)
103
+ rubocop (0.42.0)
104
+ parser (>= 2.3.1.1, < 3.0)
139
105
  powerpack (~> 0.1)
140
106
  rainbow (>= 1.99.1, < 3.0)
141
107
  ruby-progressbar (~> 1.7)
142
- tins (<= 1.6.0)
143
- ruby-progressbar (1.7.5)
144
- ruby2ruby (2.2.0)
145
- ruby_parser (~> 3.1)
146
- sexp_processor (~> 4.0)
147
- ruby_parser (3.7.2)
108
+ unicode-display_width (~> 1.0, >= 1.0.1)
109
+ rubocop-rspec (1.5.1)
110
+ rubocop (>= 0.41.2)
111
+ ruby-progressbar (1.8.1)
112
+ ruby_parser (3.8.2)
148
113
  sexp_processor (~> 4.1)
149
- rubycritic (2.4.0)
150
- flay (= 2.6.1)
151
- flog (= 4.3.2)
152
- parser (>= 2.2.0, < 3.0)
153
- reek (= 3.7.1)
114
+ rubycritic (2.9.2)
115
+ colorize
116
+ flay (= 2.8.0)
117
+ flog (= 4.4.0)
118
+ launchy (= 2.4.3)
119
+ parser (= 2.3.1.2)
120
+ reek (= 4.1.0)
121
+ ruby_parser (~> 3.8)
154
122
  virtus (~> 1.0)
155
- safe_yaml (1.0.4)
156
- sass (3.4.20)
157
- sexp_processor (4.6.0)
123
+ sexp_processor (4.7.0)
158
124
  shoulda (3.5.0)
159
125
  shoulda-context (~> 1.0, >= 1.0.1)
160
126
  shoulda-matchers (>= 1.4.1, < 3.0)
161
127
  shoulda-context (1.2.1)
162
128
  shoulda-matchers (2.8.0)
163
129
  activesupport (>= 3.0.0)
164
- simplecov (0.11.1)
130
+ simplecov (0.12.0)
165
131
  docile (~> 1.1.0)
166
- json (~> 1.8)
132
+ json (>= 1.8, < 3)
167
133
  simplecov-html (~> 0.10.0)
168
134
  simplecov-html (0.10.0)
169
- slim (3.0.6)
170
- temple (~> 0.7.3)
171
- tilt (>= 1.3.3, < 2.1)
172
135
  slop (3.6.0)
173
136
  sysexits (1.2.0)
174
- temple (0.7.6)
175
- terminal-table (1.5.2)
137
+ thor (0.19.1)
176
138
  thread_safe (0.3.5)
177
- tilt (2.0.1)
178
- timecop (0.8.0)
179
- tins (1.6.0)
139
+ tilt (2.0.5)
140
+ timecop (0.8.1)
180
141
  tzinfo (1.2.2)
181
142
  thread_safe (~> 0.1)
182
- unparser (0.2.4)
183
- abstract_type (~> 0.0.7)
184
- adamantium (~> 0.2.0)
185
- concord (~> 0.1.5)
186
- diff-lcs (~> 1.2.5)
187
- equalizer (~> 0.0.9)
188
- parser (~> 2.2.2)
189
- procto (~> 0.0.2)
143
+ unicode-display_width (1.1.0)
190
144
  virtus (1.0.5)
191
145
  axiom-types (~> 0.1)
192
146
  coercible (~> 1.0)
193
147
  descendants_tracker (~> 0.0, >= 0.0.3)
194
148
  equalizer (~> 0.0, >= 0.0.9)
195
- yard (0.8.7.6)
149
+ yard (0.9.5)
196
150
 
197
151
  PLATFORMS
198
152
  ruby
@@ -202,4 +156,4 @@ DEPENDENCIES
202
156
  polishgeeks-dev-tools
203
157
 
204
158
  BUNDLED WITH
205
- 1.11.2
159
+ 1.12.5
data/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  [![Build Status](https://travis-ci.org/karafka/null-logger.svg?branch=master)](https://travis-ci.org/karafka/null-logger)
4
4
  [![Code Climate](https://codeclimate.com/github/karafka/null-logger/badges/gpa.svg)](https://codeclimate.com/github/karafka/null-logger)
5
5
  [![Gem Version](https://badge.fury.io/rb/null-logger.svg)](http://badge.fury.io/rb/null-logger)
6
+ [![Join the chat at https://gitter.im/karafka/karafka](https://badges.gitter.im/karafka/karafka.svg)](https://gitter.im/karafka/karafka?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
6
7
 
7
8
  A simple logger that does not log anything. It can be used for defining an interface for other loggers.
8
9
 
@@ -2,7 +2,21 @@
2
2
  # Is used when logger is not defined
3
3
  class NullLogger
4
4
  # Possible log levels from ruby Logger::Severity class
5
- LOG_LEVELS = %w( unknown fatal error warn info debug )
5
+ LOG_LEVELS = %w(
6
+ unknown
7
+ fatal
8
+ error
9
+ warn
10
+ info
11
+ debug
12
+ ).freeze
13
+
14
+ # @return [Boolean] true if we can handle this missing method, otherwise false
15
+ # @param method_name [String, Symbol] method name
16
+ # @param include_private [Boolean] should we include private methods as well
17
+ def respond_to_missing?(method_name, include_private = false)
18
+ LOG_LEVELS.include?(method_name.to_s) || super
19
+ end
6
20
 
7
21
  # Returns nil for any method call from LOG_LEVELS array
8
22
  # Instead raise NoMethodError
@@ -11,6 +25,6 @@ class NullLogger
11
25
  # NullLogger.new.wrong_method -> raise NoMethodError
12
26
  def method_missing(method_name, *args, &block)
13
27
  return nil if LOG_LEVELS.include?(method_name.to_s)
14
- super(method_name, *args, &block)
28
+ super
15
29
  end
16
30
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  class NullLogger
3
3
  # null-logger gem Version
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.3'
5
5
  end
@@ -1,7 +1,7 @@
1
1
  lib = File.expand_path('../lib', __FILE__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
- require 'version'
4
+ require 'null_logger/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "null-logger"
@@ -13,6 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.description = 'It can be used for defining an interface for other loggers'
14
14
  spec.homepage = 'https://github.com/karafka/null-logger'
15
15
  spec.license = 'MIT'
16
+ spec.required_ruby_version = '>= 2.2.0'
16
17
 
17
18
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
18
19
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: null-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-26 00:00:00.000000000 Z
12
+ date: 2016-07-28 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: It can be used for defining an interface for other loggers
15
15
  email:
@@ -30,7 +30,7 @@ files:
30
30
  - README.md
31
31
  - Rakefile
32
32
  - lib/null_logger.rb
33
- - lib/version.rb
33
+ - lib/null_logger/version.rb
34
34
  - null-logger.gemspec
35
35
  homepage: https://github.com/karafka/null-logger
36
36
  licenses:
@@ -44,7 +44,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 2.2.0
48
48
  required_rubygems_version: !ruby/object:Gem::Requirement
49
49
  requirements:
50
50
  - - ">="
@@ -57,4 +57,3 @@ signing_key:
57
57
  specification_version: 4
58
58
  summary: A simple logger that does not log anything.
59
59
  test_files: []
60
- has_rdoc: