lenjador 2.2.2 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lenjador.gemspec +1 -1
- data/lib/lenjador.rb +5 -0
- data/spec/lenjador_spec.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fe741ce777af0426bec161a4c4bdddc3a6272c058289ba3d915dcb751fefeea
|
4
|
+
data.tar.gz: b68b01d171d613e15d789275e1f6b8666e6a480b2fecd5d23488f53d4f5e4c3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73e65b430535a9f751746029beb9a7007b93694808543f079ff9732ff2a473824283ad31c6b86310bbd6dc1756de887b4a0575118813c1247afa04f6da950a48
|
7
|
+
data.tar.gz: a4c2975ac2a4445fcf763eb76eaaa1b7bef46ed8d3e22606d63c2b2d9fb49de74de7c8e5d53607df35667632b1e3446a74ef46934785bfc8dc66e058f49fd1ac
|
data/Gemfile.lock
CHANGED
data/lenjador.gemspec
CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
7
|
gem.name = 'lenjador'
|
8
|
-
gem.version = '2.
|
8
|
+
gem.version = '2.3.0'
|
9
9
|
gem.authors = ['Salemove']
|
10
10
|
gem.email = ['support@salemove.com']
|
11
11
|
gem.description = "It's lenjadoric"
|
data/lib/lenjador.rb
CHANGED
data/spec/lenjador_spec.rb
CHANGED
@@ -37,6 +37,20 @@ describe Lenjador do
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
+
describe '#add' do
|
41
|
+
let(:adapter) { double }
|
42
|
+
let(:lenjador) { described_class.new(adapter, Lenjador::Severity::INFO, []) }
|
43
|
+
|
44
|
+
it 'logs with severity' do
|
45
|
+
expect(adapter).to receive(:log).with(described_class::Severity::INFO, message: 'info-msg').ordered
|
46
|
+
expect(adapter).to receive(:log).with(described_class::Severity::WARN, message: 'warn-msg').ordered
|
47
|
+
|
48
|
+
lenjador.add('debug', 'debug-msg')
|
49
|
+
lenjador.add('info', 'info-msg')
|
50
|
+
lenjador.add('warn', 'warn-msg')
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
40
54
|
context 'when preprocessor defined' do
|
41
55
|
let(:lenjador) { described_class.new(adapter, level, [preprocessor]) }
|
42
56
|
let(:adapter) { double }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lenjador
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Salemove
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lru_redux
|