fluent-mixin-type-converter 0.0.1 → 0.0.2

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.
data/README.md CHANGED
@@ -85,7 +85,7 @@ this is required if you will use kind of 'remove_tag_prefix' option together
85
85
  ##### implement example for input plugin
86
86
 
87
87
  ```ruby
88
- require 'fluent/mixin/type_converter
88
+ require 'fluent/mixin/type_converter'
89
89
 
90
90
  module Fluent
91
91
  class FooBarInput < Fluent::Input
@@ -115,7 +115,7 @@ end
115
115
  ##### implement example for output plugin
116
116
 
117
117
  ```ruby
118
- require 'fluent/mixin/type_converter
118
+ require 'fluent/mixin/type_converter'
119
119
 
120
120
  class Fluent
121
121
  class FooBarOutput < Fluent::Output
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-mixin-type-converter"
7
- spec.version = "0.0.1"
7
+ spec.version = "0.0.2"
8
8
  spec.authors = ["Kentaro Yoshida"]
9
9
  spec.email = ["y.ken.studio@gmail.com"]
10
10
  spec.summary = %q{Fluentd mixin plugin to provides type conversion function as like as in_tail plugin. It acts calling Fluent::TextParser::TypeConverter as mixin. It will let you get easy to implement type conversion for your own plugins.}
@@ -10,6 +10,17 @@ module Fluent
10
10
  def configure(conf)
11
11
  super
12
12
 
13
+ if types = conf['types']
14
+ @types = types
15
+ end
16
+
17
+ if types_delimiter = conf['types_delimiter']
18
+ @types_delimiter = types_delimiter
19
+ end
20
+
21
+ if types_label_delimiter = conf['types_label_delimiter']
22
+ @types_label_delimiter = types_label_delimiter
23
+ end
13
24
  end
14
25
 
15
26
  def filter_record(tag, time, record)
@@ -25,7 +36,6 @@ module Fluent
25
36
  }
26
37
  self
27
38
  end
28
-
29
39
  end
30
40
  end
31
41
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-mixin-type-converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: