alephant-logger-json 0.5.0 → 0.5.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
  SHA1:
3
- metadata.gz: 6716c8a5d3446d582752238b022fe71cb1af5574
4
- data.tar.gz: eddc2df5fa9deb630a92fecc546d575bbf62ea64
3
+ metadata.gz: e7557910ea8991bab9e043bba41a8b4322a52539
4
+ data.tar.gz: 443a2815d5077d97ba7f0501bfa5af0f29238a8f
5
5
  SHA512:
6
- metadata.gz: 36f9a992d64486a1152cc6ef974e4e634d78dee69e5918b7eee6382fcd052280ec86e2db677926bb2851369f2a950a0895c8847c530d16fe685030321eed9bf9
7
- data.tar.gz: 573d6232f79aa04207fb8eb7c1525cc5004ec7728a9c8aa2638798addc1596b6af58c5a703e430571ddc5459c0fd803c7956f7a2a033853b07cc65a4f2cdcbca
6
+ metadata.gz: 2008b4c452e78345f7bab5d5e833ea842a13705ad625da1d01c0f3538d3e5939163cf6b0fdebfe91d974b488670a8f727862b3464c3798b2c18a1f05579e4e7d
7
+ data.tar.gz: ca3eff6995ae5162c9c441a7da83ef928666ac67bc044bb8121ed5f85eb8020bbdcf22b7e2ca317f7e6c31ba1e12bf7ef2e3849c587b65b41ac4773ab8900254
@@ -44,10 +44,7 @@ module Alephant
44
44
  end
45
45
 
46
46
  def writeable?(message_level)
47
- LevelsController.should_log?(
48
- message_level: message_level,
49
- desired_level: @write_level
50
- )
47
+ LevelsController.should_log?(message_level, @write_level)
51
48
  end
52
49
 
53
50
  def flatten_values_to_s(hash)
@@ -1,7 +1,7 @@
1
1
  module Alephant
2
2
  module Logger
3
3
  class JSON
4
- VERSION = '0.5.0'.freeze
4
+ VERSION = '0.5.1'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -1,10 +1,13 @@
1
1
  module Alephant
2
2
  module Logger
3
3
  class LevelsController
4
- LEVELS = %i(debug info warn error).freeze
4
+ # Ruby 1.x syntax used to support JRuby 1.7.x
5
+ # rubocop:disable Style/SymbolArray
6
+ LEVELS = [:debug, :info, :warn, :error].freeze
7
+ # rubocop:enable Style/SymbolArray
5
8
 
6
9
  class << self
7
- def should_log?(message_level:, desired_level:)
10
+ def should_log?(message_level, desired_level)
8
11
  message_level_index = level_index(message_level)
9
12
 
10
13
  return false unless message_level_index
@@ -5,10 +5,7 @@ require_relative 'support/levels_controller_shared_examples'
5
5
  RSpec.describe Alephant::Logger::LevelsController do
6
6
  describe '.should_log?' do
7
7
  subject(:loggable?) do
8
- described_class.should_log?(
9
- message_level: message_level,
10
- desired_level: desired_level
11
- )
8
+ described_class.should_log?(message_level, desired_level)
12
9
  end
13
10
 
14
11
  describe 'Message level' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-logger-json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Arnould
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-15 00:00:00.000000000 Z
11
+ date: 2017-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler