lenjador 2.3.0 → 2.3.1

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: 8fe741ce777af0426bec161a4c4bdddc3a6272c058289ba3d915dcb751fefeea
4
- data.tar.gz: b68b01d171d613e15d789275e1f6b8666e6a480b2fecd5d23488f53d4f5e4c3a
3
+ metadata.gz: 6e373ec00cf24731fc0611b585db6def15102d206f0072e33a1329c89f550730
4
+ data.tar.gz: c0d90890e56e77fac9f3b6314384b23b06ad4f126bd4261d5bcd6278ce69f2f4
5
5
  SHA512:
6
- metadata.gz: 73e65b430535a9f751746029beb9a7007b93694808543f079ff9732ff2a473824283ad31c6b86310bbd6dc1756de887b4a0575118813c1247afa04f6da950a48
7
- data.tar.gz: a4c2975ac2a4445fcf763eb76eaaa1b7bef46ed8d3e22606d63c2b2d9fb49de74de7c8e5d53607df35667632b1e3446a74ef46934785bfc8dc66e058f49fd1ac
6
+ metadata.gz: 950c7b8956bb45752d81c6f7ca6e33b5f17cfef3f9cd0446844095f554ad5063a660919fb69370187612c0b6dc27dfa0d93c92cf303141eb49b86c8a1bcfa238
7
+ data.tar.gz: c55e96e52bfe7b9b3034067c487aaa7d3db191d8aa876c3eed69410f3091dcfa733e5b87e130a8f2ba03df2f2a4f41937d92d0964a720db8ff2dd021aaafbdf0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lenjador (2.3.0)
4
+ lenjador (2.3.1)
5
5
  lru_redux
6
6
  oj (~> 3.6)
7
7
 
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.3.0'
8
+ gem.version = '2.3.1'
9
9
  gem.authors = ['Salemove']
10
10
  gem.email = ['support@salemove.com']
11
11
  gem.description = "It's lenjadoric"
data/lib/lenjador.rb CHANGED
@@ -29,8 +29,7 @@ class Lenjador
29
29
  end
30
30
 
31
31
  def add(severity, *args, &block)
32
- level = SEV_LABEL.index(severity.to_s)
33
- log(level, *args, &block)
32
+ log(severity, *args, &block)
34
33
  end
35
34
 
36
35
  def debug(*args, &block)
@@ -42,12 +42,14 @@ describe Lenjador do
42
42
  let(:lenjador) { described_class.new(adapter, Lenjador::Severity::INFO, []) }
43
43
 
44
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')
45
+ expect(adapter).to receive(:log).with(Logger::INFO, message: 'info-msg').ordered
46
+ expect(adapter).to receive(:log).with(Logger::WARN, message: 'warn-msg').ordered
47
+ expect(adapter).to receive(:log).with(Logger::UNKNOWN, message: 'unknown-msg').ordered
48
+
49
+ lenjador.add(Logger::DEBUG, 'debug-msg')
50
+ lenjador.add(Logger::INFO, 'info-msg')
51
+ lenjador.add(Logger::WARN, 'warn-msg')
52
+ lenjador.add(Logger::UNKNOWN, 'unknown-msg')
51
53
  end
52
54
  end
53
55
 
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.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Salemove
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-12 00:00:00.000000000 Z
11
+ date: 2024-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lru_redux