fluent-plugin-buffered-stdout 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4f1cfed4d65733a22c1724f913d2908cccba160
4
- data.tar.gz: e8e3a855c629a9e387f3cb0e9853ef7cf30efff3
3
+ metadata.gz: 393e274abcd42528ec8f2691bcbe7bde83dca8ac
4
+ data.tar.gz: fc06edbbc42e58ec701c020f5f4a868d45385ab7
5
5
  SHA512:
6
- metadata.gz: 343d37ac6c27f72cfc02aba0a80c3528c8b6fadc94f2226925cd796f297f0bfa29ff65b2e3fe7b941389b1db10eecefcd789a3663097cbc0162fd54ee2e3951a
7
- data.tar.gz: eaa804008c577faf2c13f58e9687fa5cda1f5af4432281cbbef8cbc441c6b75923bbbf1a006506a6db7c8524e062ab1b6b5ab281887512d90cd4d77e3ddf7c84
6
+ metadata.gz: 6e21e2ec63b85934c4e3eb5d1019a798b7755014088f13dff923741db531896c942fd29d5b06d1b7fb3889a3a09fbbca19ca228827e0473b2da0ac8724821fd8
7
+ data.tar.gz: e81c51b9efe4ecada693640595a46dacbf0538f7de70ab078c7a232d011a70c9bd5666f9881901a4bcc7780bf871ef6fa6ce23b2fcbf458e31fbcc675390a53b
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # fluent-plugin-buffered-stdout
2
2
 
3
- Fluentd STDOUT output plugin with buffering. This plugin is for testing of buffer plugins only.
3
+ [Fluentd](http://fluentd.org) STDOUT output plugin with buffering. This plugin is for testing of buffer plugins only.
4
4
 
5
5
  ## Configuration
6
6
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "fluent-plugin-buffered-stdout"
5
- spec.version = "0.0.1"
5
+ spec.version = "0.0.2"
6
6
  spec.authors = ["TAGOMORI Satoshi"]
7
7
  spec.email = ["tagomoris@gmail.com"]
8
8
  spec.description = %q{Fluentd STDOUT output plugin with buffering, for buffer plugin tests only}
@@ -18,6 +18,11 @@ module Fluent
18
18
  end
19
19
  end
20
20
 
21
+ # Define `log` method for v0.10.42 or earlier
22
+ unless method_defined?(:log)
23
+ define_method("log") { $log }
24
+ end
25
+
21
26
  def configure(conf)
22
27
  super
23
28
  @output_proc = OUTPUT_PROCS[@output_type]
@@ -26,9 +31,9 @@ module Fluent
26
31
  def write_objects(tag, es)
27
32
  now = Time.now
28
33
  es.each {|time,record|
29
- $log.write "#{now.localtime} #{Time.at(time).localtime} #{tag}: #{@output_proc.call(record)}\n"
34
+ log.write "#{now.localtime} #{Time.at(time).localtime} #{tag}: #{@output_proc.call(record)}\n"
30
35
  }
31
- $log.flush
36
+ log.flush
32
37
  end
33
38
  end
34
39
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-buffered-stdout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAGOMORI Satoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-29 00:00:00.000000000 Z
11
+ date: 2014-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: fluentd
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '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
54
  version: '0'
55
55
  description: Fluentd STDOUT output plugin with buffering, for buffer plugin tests
@@ -60,7 +60,7 @@ executables: []
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
- - .gitignore
63
+ - ".gitignore"
64
64
  - Gemfile
65
65
  - LICENSE.txt
66
66
  - README.md
@@ -77,19 +77,18 @@ require_paths:
77
77
  - lib
78
78
  required_ruby_version: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - '>='
85
+ - - ">="
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
89
89
  rubyforge_project:
90
- rubygems_version: 2.0.3
90
+ rubygems_version: 2.2.2
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Buffered stdout output plugin for Fluentd
94
94
  test_files: []
95
- has_rdoc: