fluent-plugin-scribe 0.10.14 → 1.0.0

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: fed484e3b03389ad95949efadb75469f0db8fb26
4
- data.tar.gz: 8c7b0a17acf583b92e5aa9ec80b5316a8c5b7685
3
+ metadata.gz: eac558aa73acb3487d8a2b1cb10259f4eb0fa5dc
4
+ data.tar.gz: c9a0832d667d470b557e26416923959509a423d1
5
5
  SHA512:
6
- metadata.gz: aa5bfa8ea262f65bf992283afccfc9708efb866ec3762f2b7250b77b17fff2c4a27b95a3aee4b31a46d89a30c6225fc42ff530772c9d4dd76a4ad35ba2e67ad3
7
- data.tar.gz: 667cebaad66f654b2999dfd6866eab4598c9eb80f224f6b001b1622251e92a94aa0a84343142a2268a4a777ad2e58e3b989d723c89ac969e052d633c7d425aa9
6
+ metadata.gz: 928efb7d9b432ee2677825614c142692a0a264ea0b385c0e9ca01a708ecfab24e77d532cc3f72eb709e8caac582411c60cba2ca052b13e838eac23b2c84e5295
7
+ data.tar.gz: 7ea5e33f4a82c1ec5e52c2e5ca0a7704371f6b293e9bd9baf372ef9972eeab8c243209b89493331d62c3c0d6b4f08905825746a63ed601b4c449d64c1179fb6a
@@ -1,8 +1,11 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - 1.9.3
5
- - 2.0.0
4
+ - 2.1.10
5
+ - 2.2.9
6
+ - 2.3.6
7
+ - 2.4.3
8
+ - 2.5.0
6
9
 
7
10
  branches:
8
11
  only:
data/ChangeLog CHANGED
@@ -1,3 +1,6 @@
1
+ Release 1.0.0 - 2018/12/11
2
+ * Use fluentd v1 API
3
+
1
4
  Release 0.10.14 - 2014/12/19
2
5
  * add ignore_invalid_record to out_scribe
3
6
  * improve input performance by reducing the times of emit
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "fluent-plugin-scribe"
5
- gem.version = "0.10.14"
5
+ gem.version = "1.0.0"
6
6
 
7
7
  gem.authors = ["Kazuki Ohta", "TAGOMORI Satoshi"]
8
8
  gem.email = ["kazuki.ohta@gmail.com", "tagomoris@gmail.com"]
@@ -15,8 +15,11 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
+
19
+ require 'fluent/plugin/input'
20
+
18
21
  module Fluent
19
- class ScribeInput < Input
22
+ class ScribeInput < ::Fluent::Plugin::Input
20
23
  Plugin.register_input('scribe', self)
21
24
 
22
25
  SUPPORTED_FORMAT = {
@@ -70,6 +73,7 @@ module Fluent
70
73
  handler.msg_format = @msg_format
71
74
  handler.ignore_invalid_record = @ignore_invalid_record
72
75
  handler.logger = log
76
+ handler.router = router
73
77
  processor = Scribe::Processor.new handler
74
78
 
75
79
  @transport = Thrift::ServerSocket.new @bind, @port
@@ -125,6 +129,7 @@ module Fluent
125
129
  attr_accessor :msg_format
126
130
  attr_accessor :ignore_invalid_record
127
131
  attr_accessor :logger # Use logger instead of log to avoid confusion with Log method
132
+ attr_accessor :router
128
133
 
129
134
  def Log(msgs)
130
135
  bucket = {} # tag -> events(array of [time,record])
@@ -154,7 +159,7 @@ module Fluent
154
159
 
155
160
  begin
156
161
  bucket.each do |tag,events|
157
- Engine.emit_array(tag, events)
162
+ router.emit_array(tag, events)
158
163
  end
159
164
  return ResultCode::OK
160
165
  rescue => e
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-scribe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.14
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuki Ohta
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-19 00:00:00.000000000 Z
12
+ date: 2018-12-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  requirements: []
121
121
  rubyforge_project:
122
- rubygems_version: 2.2.2
122
+ rubygems_version: 2.6.14.1
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Scribe Input/Output plugin for Fluentd event collector