fluent-plugin-record_splitter 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 81f8979cfb0a1a5601ebf10c53dae609a7f5efbd
4
- data.tar.gz: d2a4f9aec61dc39824a240dd1340dcfc2a57e7e1
3
+ metadata.gz: a19daed38b9a4be8b90350fd966c7b5c0eba4366
4
+ data.tar.gz: e1fffed00204b7cda4cd9784c0bf62e3e12f782f
5
5
  SHA512:
6
- metadata.gz: 88827c20a5b790ac18ec20fe68e3035222860eb99f48caad6513334dcc92490eed28367bcde918afc583b82309caadbd7feb1a86978abfd9a3228f99f5d06a3d
7
- data.tar.gz: f28d6185d8cef568d537dde2290d7007e8211dd7a075c94b161f7c4964148286b6341bfef6c7412b0ad9371aa56f417b6c2848ff9151ed7dcc235ffe81929dd8
6
+ metadata.gz: 34402e3016d615bd6a390d086e0eb2d5ccdc470b28c2395d97215f4fd2aa83e039cb1e31b6837de00a2bf1a75bdc997a39a827b33f35843081bad42176bea42f
7
+ data.tar.gz: 6ecdc6bdd392aac400b89630c3afa019800e1ae8e4bb82415a6bb14e95696a5182bf2d256714178def64d907fcde96af3fed387fe78dfc39198fa6139a30046a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -37,8 +37,8 @@ module Fluent
37
37
  end
38
38
  end
39
39
 
40
- def emit(tag, input_stream, chain)
41
- output_stream = Fluent::MultiEventStream.new
40
+ def emit(tag, es, chain)
41
+ emit_tag = tag.dup
42
42
  es.each { |time, record|
43
43
  filter_record(emit_tag, time, record)
44
44
  if keep_other_key
@@ -49,11 +49,10 @@ module Fluent
49
49
  if record.key?(@split_key)
50
50
  record[@split_key].each{|v|
51
51
  v.merge!(common) unless common.empty?
52
- output_stream.add(time, v.merge(common))
52
+ router.emit(emit_tag, time, v.merge(common))
53
53
  }
54
54
  end
55
55
  }
56
- router.emit_stream(tag.dup, output_stream)
57
56
  chain.next
58
57
  end
59
58
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-record_splitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuri Odagiri