itamae 1.0.0.beta17 → 1.0.0.beta18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/itamae/logger.rb +5 -4
- data/lib/itamae/version.txt +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: d6407849af1c1881162cdce67e8312ad543f5b80
|
4
|
+
data.tar.gz: fa1d01ec1165d160b643671a719bebb49cba93f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8a4f249629869ce532e457c8f9878db2915eadb99ba5acbfde9ae01d93197102badaa2d0ae98c5ab34b39b1c4bc6b6f005b8a38ee132fcec2d96ce1914e1280
|
7
|
+
data.tar.gz: 00a927b247a787b915f940c95b867c7bff45809997e947426d26e7574c0387b16893d210bf57c0c35183ac4e9dcc4a5051063f9fe0c5a09303e8a0aa6d77d581
|
data/lib/itamae/logger.rb
CHANGED
@@ -8,11 +8,12 @@ module Itamae
|
|
8
8
|
attr_accessor :colored
|
9
9
|
|
10
10
|
def call(severity, datetime, progname, msg)
|
11
|
-
severity = "%5s" % severity
|
12
11
|
|
13
|
-
if colored
|
14
|
-
|
15
|
-
|
12
|
+
severity = if colored
|
13
|
+
color("%5s" % severity, severity)
|
14
|
+
else
|
15
|
+
"%5s" % severity
|
16
|
+
end
|
16
17
|
|
17
18
|
"[%s] %s : %s\n" % [format_datetime(datetime), severity, msg2str(msg)]
|
18
19
|
end
|
data/lib/itamae/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.
|
1
|
+
1.0.0.beta18
|