fluent-plugin-kafka-enchanced 0.5.27 → 0.5.28

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: d4ff76605df0f4bb8725959c056306081055a170
4
- data.tar.gz: 4343ae4ae67dc35e756eabb7c87d00916dbfacde
3
+ metadata.gz: 730b11a36a5f9d88aef01009cab3d95429ffb68b
4
+ data.tar.gz: e1a71a42d22147d87af619d8313de55b71c52ac2
5
5
  SHA512:
6
- metadata.gz: d216b12deba0fff652359be34152e4525997d0aeec6ffda8e07f374343d6d53af6f028396455df5950dfb98ea65e870d0ea2e2a49b849725b54fc4166fd14366
7
- data.tar.gz: 961f5ea2a58fd5aa34edd82afcadfe314a6883f0cce6ec19e6ec74b3e36d60dc81659f116ad810c91febb2ac93ea0c667a69d2b0bc4be9eb4e6358111cb0dafe
6
+ metadata.gz: 231c7c6f8c237960ffdb358711ddb872444c7ef1268fd00215dd33e90bb0506554e72077b084211953f446db707f180dda64081c53b5396620642b7a2f21b5e9
7
+ data.tar.gz: 59cb6d56e77ee023dba57ac9239004efe96899015d2e1549cc47d5bd8b68ebc9c6300c5c84bfdad566658b80e06466c3a53b1f9efaaaf620e433eb718206280c
@@ -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.27'
15
+ gem.version = '0.5.28'
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.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?(String) || v.nil? || v.to_s.empty?) ? 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.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?(String) || v.nil? || v.to_s.empty?) ? 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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-kafka-enchanced
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.27
4
+ version: 0.5.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paschenko Konstantin