lamian 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lamian.rb +2 -2
- data/lib/lamian/logger.rb +2 -2
- data/lib/lamian/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24d1164d3841568b5d07b718edc019cf42f4f313
|
4
|
+
data.tar.gz: 332746b08ccdd3aee52866ce5ad96742691fa553
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4728316cf6c95f5e858da5488557e56176d9ed01df8df086b9f6aa97e68aaa45f309927466621a4ba1091b6d32542c720aa5025def966799148faa3d3a91857
|
7
|
+
data.tar.gz: 835a846f044e921f0b8fbf239a99063c46170812c37fcadc061418bba68c2abe165788fbb76fe58a4d7138df0681b7a37eb11316fc3a7ab7d0653ecbdbd3f91b
|
data/lib/lamian.rb
CHANGED
data/lib/lamian/logger.rb
CHANGED
@@ -27,7 +27,7 @@ module Lamian
|
|
27
27
|
|
28
28
|
def dump(format: nil)
|
29
29
|
result = logdevs[-1].string.dup
|
30
|
-
|
30
|
+
format ? apply_format(format, result) : result
|
31
31
|
end
|
32
32
|
|
33
33
|
private
|
@@ -35,7 +35,7 @@ module Lamian
|
|
35
35
|
attr_accessor :level, :logdevs, :formatter
|
36
36
|
|
37
37
|
def apply_format(_format, result)
|
38
|
-
result.gsub!(/\[\d{1,2}m
|
38
|
+
result.gsub!(/\[\d{1,2}m/, '')
|
39
39
|
result
|
40
40
|
end
|
41
41
|
|
data/lib/lamian/version.rb
CHANGED