pretty_logger 1.3.0 → 1.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: a22a9e42e046d57b54de0ea5f42eed2258843cfe6aa5e946692db317b3737418
4
- data.tar.gz: 141180fbc2a6614c08a8ddb929d09f191fb367c292fc22335708b13a87dd37cd
3
+ metadata.gz: caa795717544b44795de0d34e773af0f5023b4c915d77dffa17b845213102598
4
+ data.tar.gz: 9c625f238d6a4439b9eecc9001a20a9547478d1cb7019e0f4a4a73383ed914cb
5
5
  SHA512:
6
- metadata.gz: ea715b57ed726091dd9bed662e3916d8ef0a55d1a0d80b91626de56f94c701e914c0efb9003e0579959a954d0df0b7ec9828dda84846af85515a9bdf3b0f528f
7
- data.tar.gz: 5ec7936a4569ca088ef2e4887a2ed931a71f7913aca640e531d7af191ad9d2f77d198f79e68f36cb851344bb84df4fb8e5c09ebb2f4b8172c6fd0f1c57d9a2e2
6
+ metadata.gz: 4ec4437e5e2e606379d78a2ff204df9496afaf57defad36ccd041ce3c09416509185c7798bf3cf295322fa81e0415cc834f22282a436ae1581709f44e0f19cdc
7
+ data.tar.gz: b05e4b0f64a9be090e4850f99925782ee96746286ff3c16036b88eb4c104700b5291b9e25b87597ee7904a8adf62f4055d917e7eceafb229c3338384669bb7f0
@@ -23,11 +23,14 @@ module PrettyLogger
23
23
  /\e\[36m:(\w+)\e\[0m=>/i, ("\e[36m" + '\1: ' + "\e[0m") # hashrocket(sym) to colon(sym)
24
24
  ).gsub(
25
25
  /\e\[0m=>/, "\e[0m: " # all hashrockets to colons
26
+ ).gsub(
27
+ # grey out nils
28
+ "\e[1;36mnil\e[0m", "\e[1;90mnil\e[0m"
26
29
  )
27
30
  end
28
31
 
29
32
  def pretty_log(level, *messages)
30
- message = messages.map { |m| pretty_message(m) }.join("\n")
33
+ message = messages.compact.map { |m| pretty_message(m) }.join("\n")
31
34
  instance.send(level, "\e[90m#{timestamp}#{COLORS[level]}[#{level.to_s[0].upcase}]\e[0m #{message}")
32
35
  end
33
36
 
@@ -1,3 +1,3 @@
1
1
  module PrettyLogger
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pretty_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rocco Nicholls
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-24 00:00:00.000000000 Z
11
+ date: 2024-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coderay