fluent-plugin-tail-ex-asis 0.1.3 → 0.1.4

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: c57128e4035ae707975c2cd217cb98d1fdd04eb9
4
- data.tar.gz: 6186e02438b32f27ffc98dff95ba61cec1e39acc
3
+ metadata.gz: 1ff86105ce4ec4d3140233f997dbea4f2d04e3e7
4
+ data.tar.gz: 2c767d61e9d7025394a3afce0f255d265f73afb5
5
5
  SHA512:
6
- metadata.gz: 9661f52448fecd1a1731da0eab81f17f4730ec1449b1d6fd9c99ae78b6fedfbf63867b8f714377336681eb0e3087fc0f5af07f172e34bbb29ae5ccfd8c592e2f
7
- data.tar.gz: d1461953b8e5b905fde78f22798e65afbca2e96c38274b03a2c7ce1350f9dd35a9f2bbde3aeab2e4d0eaaa971a785e052f2ee9c610174bd9a467cfcb4d462daa
6
+ metadata.gz: 01f983b24a0083c0948cda0ef9ee7e9b8d1b7eabf1d6fa82b74c8921751e4aa54cd0b5ee2d0bf1bbb5decb0aa3826e49de705b16cd10eee2e1fc82d9a8dc9732
7
+ data.tar.gz: a2b77cab79e3698f2e94a9696bf3ec1216ca788b8cd5f1dd9ef9a79b2b18dd9c0a8a7fda14e550da8782a970d3160cdc1c422e98a38e0212648127a8dbdc8868
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
14
14
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
15
15
  gem.name = "fluent-plugin-tail-ex-asis"
16
16
  gem.require_paths = ["lib"]
17
- gem.version = "0.1.3"
17
+ gem.version = "0.1.4"
18
18
 
19
19
  #requires = ['fluentd', 'fluent-mixin-config-placeholders']
20
20
  #requires.each {|name| gem.add_runtime_dependency name}
@@ -8,7 +8,8 @@ module Fluent
8
8
  config_param :expand_date, :bool, :default => true
9
9
  config_param :read_all, :bool, :default => true
10
10
  config_param :refresh_interval, :integer, :default => 3600
11
-
11
+ config_param :asis_key, :string, :default => 'message'
12
+ include Configurable
12
13
  include Fluent::Mixin::ConfigPlaceholders
13
14
 
14
15
  def initialize
@@ -16,9 +17,19 @@ module Fluent
16
17
  @ready = false
17
18
  @parser = nil
18
19
  end
19
-
20
+ class AsisParser
21
+ include Configurable
22
+
23
+ config_param :asis_key, :string, :default => 'message'
24
+
25
+ def parse(text)
26
+ record = {}
27
+ record[@asis_key] = text
28
+ return Engine.now, record
29
+ end
30
+ end
20
31
  def configure_parser(conf)
21
- @parser = AsisParser.new
32
+ @parser = TailExAsisInput::AsisParser.new
22
33
  @parser.configure(conf)
23
34
  end
24
35
 
@@ -146,14 +157,5 @@ module Fluent
146
157
  $log.info "stop following of #{@path}"
147
158
  end
148
159
  end
149
- class AsisParser
150
- include Configurable
151
- config_param :asis_key, :string, :default => 'message'
152
- def parse(text)
153
- record = {}
154
- record[@asis_key] = text
155
- return Engine.now, record
156
- end
157
- end
158
160
  end
159
161
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-tail-ex-asis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshihisa Tanaka