fluent-plugin-kafka-enchanced 0.5.29 → 0.5.30

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: 7cd31dbbc18d707257c8a1ab13ad3f56d589d8d7
4
- data.tar.gz: 6c2d75ac6896a6313dfb571f5d12deca8f01801b
3
+ metadata.gz: 38f6200587dda4cf3b76e1c6b98d0bbdfeb40df8
4
+ data.tar.gz: 9c5404edd306b27b9e1f3225a6df593c1821a3de
5
5
  SHA512:
6
- metadata.gz: c9b105f00d8396dc7775f6ef0fa821ba98734896a8a61b1e2474514652cb38510a4950447b8ad68a13df2d765e41ee71e516fa37ccbf1efcf07361e2c2912f4f
7
- data.tar.gz: a87b268c1d635cc32cfed91599ebdbb0542ed0402290be549b99cb7c15a8a4e6144f29b6c0fbd11d54f6380cbe463dd35a15c080feb87f9333c68bdcc41287dc
6
+ metadata.gz: 54c8c4b8a1319522bf06200a9f19b142e7f0951df5877b976071fa6a6aa272b7ddd1fe4ce75c60f7ec93a0500fad678b76ae231f394ae9390607ae8ea1248a73
7
+ data.tar.gz: 25ef86c883b9a1cb2de5a1321d7bf534c0ce95c78036e31caa5b51abfe958a9822fd5fb779d7d0573d670ced91bd6f35b1ee983b47d40df27dcfdd4079e7bd24
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
12
12
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
13
13
  gem.name = "fluent-plugin-kafka-enchanced"
14
14
  gem.require_paths = ["lib"]
15
- gem.version = '0.5.29'
15
+ gem.version = '0.5.30'
16
16
  gem.required_ruby_version = ">= 2.1.0"
17
17
 
18
18
  gem.add_dependency "fluentd", [">= 0.10.58", "< 2"]
@@ -147,7 +147,7 @@ DESC
147
147
  require 'avro_turf/messaging'
148
148
  require "avro/builder"
149
149
  Proc.new do |tag, time, record|
150
- record = record.select{|key, value| !key.nil? && !key.empty?}.map{|k, v| [k.tr('[]-', '_').delete('$'), ((v.is_a?(String) || v.nil? || v.to_s.empty?) ? v.to_s.force_encoding("UTF-8") : v)]}.to_h
150
+ record = record.select{|key, value| !key.nil? && !key.empty?}.map{|k, v| [k.tr('[]-', '_').delete('$'), ((!v.is_a?(Fixnum) && !v.is_a?(Float)) ? v.to_s.force_encoding("UTF-8") : v)]}.to_h
151
151
  timestamp = Time.new
152
152
  record['enchilada_time_with_format'] = timestamp.strftime("%Y-%m-%dT%H:%M:%S.%LZ")
153
153
 
@@ -200,7 +200,7 @@ DESC
200
200
  require 'avro_turf/messaging'
201
201
  require "avro/builder"
202
202
  Proc.new do |tag, time, record|
203
- record = record.select{|key, value| !key.nil? && !key.empty?}.map{|k, v| [k.tr('[]-', '_').delete('$'), ((v.is_a?(String) || v.nil? || v.to_s.empty?) ? v.to_s.force_encoding("UTF-8") : v)]}.to_h
203
+ record = record.select{|key, value| !key.nil? && !key.empty?}.map{|k, v| [k.tr('[]-', '_').delete('$'), ((!v.is_a?(Fixnum) && !v.is_a?(Float)) ? v.to_s.force_encoding("UTF-8") : v)]}.to_h
204
204
  timestamp = Time.new
205
205
  record['enchilada_time_with_format'] = timestamp.strftime("%Y-%m-%dT%H:%M:%S.%LZ")
206
206
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-kafka-enchanced
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.29
4
+ version: 0.5.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paschenko Konstantin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-27 00:00:00.000000000 Z
11
+ date: 2017-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd