fluent-plugin-text_to_json 0.1.51 → 0.1.52

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: d269820f2c46a79af1fac4e547776f1b62c18f58
4
- data.tar.gz: 55ddfdb0a528a81b478ee26ea5864b3ddf90c599
3
+ metadata.gz: 075ff842367471a91a10be8d2f474ac245eb32d3
4
+ data.tar.gz: 04006ab6154ba69463a8e19b075f93407ae287b6
5
5
  SHA512:
6
- metadata.gz: d61987b241f2647b8ae4377893399d869d3818480036fa92247e87b48056708edcb76db0a883de5e66b81d4ad7fe0ed8110891a08b115bc9775183c3b3e3006b
7
- data.tar.gz: 05d2c6e60020522221dfc533e3987628395a041d7a88f2150c11f2463d02f9109e1b1e11dde170705ea137f9468b0c1d0aafeb12876b02553f15d9651714c9c3
6
+ metadata.gz: 8b1eb2b6b34c355f68ccfdadb34e52be075bf3d6d361b219c02454b0fb592f8f074e70fbf94a64552e1889ebf2e3224b65a77c701d05391d84701b23c57e5b4a
7
+ data.tar.gz: e867da9814294d25f15443dfde1cfe06b57310e019bfc9a500f3393a5aba9acacd65c54c060b733ccbfc95cb72a640b6d21518a377a326abbc261fc362dba88b
@@ -24,10 +24,12 @@ module Fluent
24
24
  #sdr parameters to json format
25
25
  tmp_field[0] = tmp_field[0].split("\\n")
26
26
  tmp_field[0] = tmp_field[0].map{|value| (value == "")? nil:value} # HBase plugin ignores nil values
27
- tmp_field[0] = tmp_field[0].map{|value| (value == nil)? "null":"\""+value+"\""}
27
+ tmp_field[0] = tmp_field[0].map{|value| (value == nil)? nil:"\""+value+"\""}
28
28
 
29
29
  tmp_field[0] = @fields[2,14].zip(tmp_field[0])
30
- tmp_field[0] = tmp_field[0].map{|x| x.join(":")}.join(",")
30
+ tmp_field[0] = tmp_field[0].map{|field, value|
31
+ new_value = (value==nil)? "null":value
32
+ fielt+":"+new_value}.join(",")
31
33
 
32
34
 
33
35
  #factor paramters to json format
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-text_to_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.51
4
+ version: 0.1.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - minwoo lee