fluent-plugin-formatter_sprintf 0.0.2 → 0.0.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
  SHA1:
3
- metadata.gz: 5675b240999ae98824ca04a279b71c761cc7ab1b
4
- data.tar.gz: 9c2cbc6f59ce9b2abdefd0e6cb79b5e6c0791dd7
3
+ metadata.gz: 680811c15a315a52cf2906c81909a4be47fe21e8
4
+ data.tar.gz: 5c26a569349c7525e385ba919eb6979c181f5ddd
5
5
  SHA512:
6
- metadata.gz: 0dfbd9fa5a68e6587818b352b0f63b0b5d73756714ae90f6153314bd2892ec999359f49b9abb2c2d930405d79d0bce5ee792f3bd72acca3debfcc91c6c0c3a8a
7
- data.tar.gz: 21887079b92d92c83f8b426a4b94507ea4117dee35f17f26d938718eb0968f786a37d94803005dcf378ffe0a30748f5e11778659391d1056f4793c24c70ea54a
6
+ metadata.gz: 3d782c2973084909961205d341ab5134e49c529880c8caa98b0bf127b3f5b307cac28e060bbf9d6d649a3f16e9b989556cc5fcd16366ab88df6b4dbc3f7879b1
7
+ data.tar.gz: bae6243e0718c75c6056d939ed7ec0498d96f4d9d863ca37a216f96b630ea0e6e609324a1844e2ac0e8ad66f41c52b89eb53168592f084c554e188150383d0b3
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "fluent-plugin-formatter_sprintf"
6
- s.version = "0.0.2"
6
+ s.version = "0.0.3"
7
7
  s.authors = ["Hiroshi Toyama"]
8
8
  s.email = ["toyama0919@gmail.com"]
9
9
  s.homepage = "https://github.com/toyama0919/fluent-plugin-formatter_sprintf"
@@ -46,7 +46,7 @@ module Fluent
46
46
  elsif key == 'time'
47
47
  Time.at(time).strftime(@time_format)
48
48
  else
49
- record[key] || @sprintf_blank_string
49
+ (record[key].nil? || record[key].empty?) ? @sprintf_blank_string : record[key]
50
50
  end
51
51
  }
52
52
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-formatter_sprintf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi Toyama