fluent-plugin-parser 0.4.1 → 0.5.0

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: 7a7890c46c538f109454bf0442db0dcd2a4f75b0
4
- data.tar.gz: f50a1814587e4702f3ae47eef54f6a4208ecd4ad
3
+ metadata.gz: cd40a834ddb84cf70b817ca1eeb890549786afdf
4
+ data.tar.gz: ec978eccafdcbde7569284036ef907b53cd0f2b9
5
5
  SHA512:
6
- metadata.gz: 37956f2b75dc8aed2f471ea321afbea843f97ca568a09e3cf169bb159f38c8d481e431c30141611cb909d8a7dfb712856aec4fd24d5937edb9610c1576fc85af
7
- data.tar.gz: 5e8af5d4544c7cd879345c06a10d28210974f2de34cd1a75ad1e63232739269b32e6e0eedd5ffc13ee740ec2fadd10fefe385bdfa1186b76be266f0399027b59
6
+ metadata.gz: 5b8098ed0973e33d060dcdc6e07251d462cb70d79795b9abf1b294c89e7db4c9ac48ac5f2df11fa4df7c5fc521c6f6443aeae355cd5255bdd405be435430ceb2
7
+ data.tar.gz: a055940d6a07d97ba4e5438af542fb9cdf400f46115ce568eccdcb23497c3fcbf19bade3fae1a2e93e55f9c5f60d6073f2ea872a9c8947c3ca2642cce663d301
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |gem|
3
3
  gem.name = "fluent-plugin-parser"
4
- gem.version = "0.4.1"
4
+ gem.version = "0.5.0"
5
5
  gem.authors = ["TAGOMORI Satoshi"]
6
6
  gem.email = ["tagomoris@gmail.com"]
7
7
  gem.description = %q{fluentd plugin to parse single field, or to combine log structure into single field}
@@ -16,5 +16,5 @@ Gem::Specification.new do |gem|
16
16
 
17
17
  gem.add_development_dependency "test-unit"
18
18
  gem.add_development_dependency "rake"
19
- gem.add_runtime_dependency "fluentd", ">= 0.10.54"
19
+ gem.add_runtime_dependency "fluentd", "~> 0.12.0"
20
20
  end
@@ -13,7 +13,7 @@ class Fluent::DeparserOutput < Fluent::Output
13
13
  es.each {|time,record|
14
14
  keys = record.keys.shuffle
15
15
  new_record = {@key_name => keys.map{|k| record[k]}.join(' ')}
16
- Fluent::Engine.emit(@tag, time, new_record)
16
+ router.emit(@tag, time, new_record)
17
17
  }
18
18
  chain.next
19
19
  end
@@ -68,8 +68,8 @@ class Fluent::DeparserOutput < Fluent::Output
68
68
  if @remove_prefix and
69
69
  ( (tag.start_with?(@removed_prefix_string) and tag.length > @removed_length) or tag == @remove_prefix)
70
70
  tag = tag[@removed_length..-1]
71
- end
72
- if @add_prefix
71
+ end
72
+ if @add_prefix
73
73
  tag = if tag and tag.length > 0
74
74
  @added_prefix_string + tag
75
75
  else
@@ -81,12 +81,12 @@ class Fluent::DeparserOutput < Fluent::Output
81
81
  if @reserve_data
82
82
  es.each {|time,record|
83
83
  record.update({@key_name => (@format % @format_key_names.map{|k| record[k]})})
84
- Fluent::Engine.emit(tag, time, record)
84
+ router.emit(tag, time, record)
85
85
  }
86
86
  else
87
87
  es.each {|time,record|
88
88
  new_record = {@key_name => (@format % @format_key_names.map{|k| record[k]})}
89
- Fluent::Engine.emit(tag, time, new_record)
89
+ router.emit(tag, time, new_record)
90
90
  }
91
91
  end
92
92
  chain.next
@@ -127,7 +127,7 @@ class Fluent::ParserOutput < Fluent::Output
127
127
  if @reserve_data
128
128
  r = r ? record.merge(r) : record
129
129
  end
130
- Fluent::Engine.emit(tag, t, r)
130
+ router.emit(tag, t, r)
131
131
  end
132
132
 
133
133
  def replace_invalid_byte(string)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAGOMORI Satoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-20 00:00:00.000000000 Z
11
+ date: 2015-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: fluentd
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.10.54
47
+ version: 0.12.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.10.54
54
+ version: 0.12.0
55
55
  description: fluentd plugin to parse single field, or to combine log structure into
56
56
  single field
57
57
  email: