fluent-plugin-named_pipe 0.1.0 → 0.1.1

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: eee85e2fbf3e52df81b72475238c435dce417ee7
4
- data.tar.gz: ba29697a82c0f05ad6d55624bd4bd56af36aa410
3
+ metadata.gz: d16d9a96deb7146278d75b3b58658821a8fb72d4
4
+ data.tar.gz: b1ec31b5f1fb0486a2d18d8e55e1bc826b9e7d1e
5
5
  SHA512:
6
- metadata.gz: 9efcfa764c8b4dc21be6d381165b18dead49d2bd7521a9a105c978684a8a6c286cd2f0abd56e120c39c53d6c3317e1bcfe6c4611c5e40b399e494784f56ca625
7
- data.tar.gz: ef59af3499e6116275c6a4fce0347502e818b6ecae1e85d788789d0b356ce679a1b9d9b0b1f1c6f00a95243e5986003abb151ed4f0a8b4e34bf903bcb68fff16
6
+ metadata.gz: 70cd5138408fb62ddbdd07c67d3c151304a3bbb7478f0d0b74f1bbc8514ac6b1d2c0040c118fcdeb2fa7bd049669c38d7bf71d18869d8cd94ecf25a69ff3215c
7
+ data.tar.gz: caef139c6a85578342b2a719987727e444531cbc673cf0b686ba411fab47e196d591ba23311ecf9de22c062245bd0ae004c50991ebdb27850e1e8efdc688e398
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.1.1 (2015/08/04)
2
+
3
+ Changes
4
+
5
+ * Use new formatter and parser plugin API >= fluentd v0.10.58 (thanks to cosmo0920)
6
+
1
7
  ## 0.1.0 (2014/11/22)
2
8
 
3
9
  First version
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "fluent-plugin-named_pipe"
6
- s.version = "0.1.0"
6
+ s.version = "0.1.1"
7
7
  s.authors = ["Naotoshi Seo"]
8
8
  s.email = ["sonots@gmail.com"]
9
9
  s.homepage = "https://github.com/sonots/fluent-plugin-named_pipe"
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
17
  s.require_paths = ["lib"]
18
18
 
19
- s.add_runtime_dependency "fluentd"
19
+ s.add_runtime_dependency "fluentd", ">= 0.10.58"
20
20
  s.add_runtime_dependency "ruby-fifo"
21
21
  if RUBY_PLATFORM =~ /mswin|mingw/i
22
22
  s.add_runtime_dependency "win32-pipe"
@@ -25,12 +25,7 @@ module Fluent
25
25
  raise ConfigError, "#{e.class}: #{e.message}"
26
26
  end
27
27
 
28
- config['format'] = @format
29
- configure_parser(conf)
30
- end
31
-
32
- def configure_parser(conf)
33
- @parser = TextParser.new
28
+ @parser = Plugin.new_parser(@format)
34
29
  @parser.configure(conf)
35
30
  end
36
31
 
@@ -23,8 +23,8 @@ module Fluent
23
23
  raise ConfigError, "#{e.class}: #{e.message}"
24
24
  end
25
25
 
26
- conf['format'] = @format
27
- @formatter = TextFormatter.create(conf)
26
+ @formatter = Plugin.new_formatter(@format)
27
+ @formatter.configure(conf)
28
28
  end
29
29
 
30
30
  def shutdown
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-named_pipe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-21 00:00:00.000000000 Z
11
+ date: 2015-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.10.58
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.10.58
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ruby-fifo
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -116,7 +116,6 @@ extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
118
  - ".gitignore"
119
- - ".rspec"
120
119
  - ".travis.yml"
121
120
  - CHANGELOG.md
122
121
  - Gemfile
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --colour
2
- --format Fuubar