fluent-plugin-kafka-enchanced 0.5.28 → 0.5.29

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: 730b11a36a5f9d88aef01009cab3d95429ffb68b
4
- data.tar.gz: e1a71a42d22147d87af619d8313de55b71c52ac2
3
+ metadata.gz: 7cd31dbbc18d707257c8a1ab13ad3f56d589d8d7
4
+ data.tar.gz: 6c2d75ac6896a6313dfb571f5d12deca8f01801b
5
5
  SHA512:
6
- metadata.gz: 231c7c6f8c237960ffdb358711ddb872444c7ef1268fd00215dd33e90bb0506554e72077b084211953f446db707f180dda64081c53b5396620642b7a2f21b5e9
7
- data.tar.gz: 59cb6d56e77ee023dba57ac9239004efe96899015d2e1549cc47d5bd8b68ebc9c6300c5c84bfdad566658b80e06466c3a53b1f9efaaaf620e433eb718206280c
6
+ metadata.gz: c9b105f00d8396dc7775f6ef0fa821ba98734896a8a61b1e2474514652cb38510a4950447b8ad68a13df2d765e41ee71e516fa37ccbf1efcf07361e2c2912f4f
7
+ data.tar.gz: a87b268c1d635cc32cfed91599ebdbb0542ed0402290be549b99cb7c15a8a4e6144f29b6c0fbd11d54f6380cbe463dd35a15c080feb87f9333c68bdcc41287dc
@@ -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.28'
15
+ gem.version = '0.5.29'
16
16
  gem.required_ruby_version = ">= 2.1.0"
17
17
 
18
18
  gem.add_dependency "fluentd", [">= 0.10.58", "< 2"]
@@ -162,7 +162,7 @@ DESC
162
162
  }.to_json
163
163
  schema = Avro::Schema.parse(schema_json)
164
164
  avro = AvroTurf::Messaging.new(registry_url: @schema_registry)
165
- avro.encode(record.map{|key, value| [key, value.to_s]}.to_h, schema: schema, subject: "#{schema_name}-value")
165
+ avro.encode(record, schema: schema, subject: "#{schema_name}-value")
166
166
  end
167
167
  elsif @output_data_type == 'ltsv'
168
168
  require 'ltsv'
@@ -216,7 +216,7 @@ DESC
216
216
  schema = Avro::Schema.parse(schema_json)
217
217
 
218
218
  avro = AvroTurf::Messaging.new(registry_url: @schema_registry)
219
- avro.encode(record.map{|key, value| [key, value.to_s]}.to_h, schema: schema, subject: "#{schema_name}-value")
219
+ avro.encode(record, schema: schema, subject: "#{schema_name}-value")
220
220
  end
221
221
  elsif @output_data_type =~ /^attr:(.*)$/
222
222
  @custom_attributes = $1.split(',').map(&:strip).reject(&:empty?)
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.28
4
+ version: 0.5.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paschenko Konstantin