pretty_logger 1.4.1 → 1.4.3

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: d576e9dc2c81a5f6c33f54687f5056d19e89435d81111a8257218a9037c0e6c3
4
- data.tar.gz: 427bda9427583eee90548fee767fc63ce32c74a7f685553384b14318f0967eeb
3
+ metadata.gz: d06c1ab620fc2fab430aa027491a60f36dec6897d7b4c2962ba526b2b2a32dc8
4
+ data.tar.gz: 2498c20cd3ee75bd5ff6c7cbdab3890e95134d9056851aab55226e37d081bd1c
5
5
  SHA512:
6
- metadata.gz: c8ff7dd8371fb1b00f69a0f3d914c22bec116f1127c73c8554f0af9519aaa2c81ccaa7790fba135afcdf45c4a981d88fa2cfeeb5359244dea378dddb7dde0c69
7
- data.tar.gz: 79a2bddbe9aa46b88725d233f5a91a5fa9c8df27624126fc9d22e50c56bb4a9c6799a94af735aa7b30b20a6516444687ba0932d1903c383d9a0c761b50275cff
6
+ metadata.gz: 3e808a988b8182bf335b3509bdaa29a4cc41c235c7a4e6eaefd8b6313f50b1ca77b70791a2ed7219dd01335a9811ac92aa6dccd0feeebacce24c45b3ab016d34
7
+ data.tar.gz: c8e7a558e6bea86ef21998f1959cfd3d38b29ea43092b3b8aaad306b5f034fa8ade2f0d25d5fcbb5449dc702588c30f5b146f6ff0d0a94f9f2064d00b3bd94f4
@@ -31,7 +31,8 @@ module PrettyLogger
31
31
 
32
32
  def pretty_log(level, *messages)
33
33
  message = messages.compact.map { |m| pretty_message(m) }.join("\n")
34
- instance.send(level, "\e[90m#{timestamp}#{COLORS[level]}[#{level.to_s.upcase}]\e[0m#{message}")
34
+ colorcode = level.presence && COLORS[level]
35
+ instance.send(level, "\e[90m#{timestamp}#{colorcode}[#{level.to_s.upcase}]\e[0m#{message}")
35
36
  end
36
37
 
37
38
  def debug(*messages)
@@ -1,3 +1,3 @@
1
1
  module PrettyLogger
2
- VERSION = "1.4.1"
2
+ VERSION = "1.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pretty_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rocco Nicholls