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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f20806b378add5ce416a56101a4e38a7fc13620
4
- data.tar.gz: bfb94bc29dfcdfa257a3a7c313ba2c740b9ae2c2
3
+ metadata.gz: d6407849af1c1881162cdce67e8312ad543f5b80
4
+ data.tar.gz: fa1d01ec1165d160b643671a719bebb49cba93f0
5
5
  SHA512:
6
- metadata.gz: a0974d13a8eb896be8070eb68e0e5f7610b0b571a027144ca4f7e597939ee1eeee78245ddf04cc8305adb1aca607070b586527d42c78a3be4e3c2dce6fdfa7ce
7
- data.tar.gz: db93259f92f1e539ad1c6e7c5683dedd1d30da7071e7a2f747b26205935ef746668d6ee6314e5fa400f7bfa5aadab9ef8c5808bd8d63fa86d65c44dca8f31c66
6
+ metadata.gz: e8a4f249629869ce532e457c8f9878db2915eadb99ba5acbfde9ae01d93197102badaa2d0ae98c5ab34b39b1c4bc6b6f005b8a38ee132fcec2d96ce1914e1280
7
+ data.tar.gz: 00a927b247a787b915f940c95b867c7bff45809997e947426d26e7574c0387b16893d210bf57c0c35183ac4e9dcc4a5051063f9fe0c5a09303e8a0aa6d77d581
@@ -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
- severity = color(severity, severity)
15
- end
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
@@ -1 +1 @@
1
- 1.0.0.beta17
1
+ 1.0.0.beta18
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta17
4
+ version: 1.0.0.beta18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai