fluent-plugin-mysql-prepared-statement 0.0.3 → 0.0.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c063ac9d8ffe56e3e9f8ecf74b60bb791f2d9133
|
4
|
+
data.tar.gz: e114993357f77321bb88fd3e45408c763295839d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a981b18312bb9ecc53bb31edcf7f948c763cbc01b93130b387e614d3cdb2c0c8742b69c561aa0811e35bd10b614338512a29d2c06b1d1a90826efff303388156
|
7
|
+
data.tar.gz: 2a51f6af8e998323b5969358bca5c96162df1d6a1a5ad54813041bed78c4cfb81089fd1159093e89a731d586dab194ce3ac34e0df731915edb2657bf1e012608
|
data/.gitignore
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.name = "fluent-plugin-mysql-prepared-statement"
|
4
|
-
gem.version = "0.0.
|
4
|
+
gem.version = "0.0.4"
|
5
5
|
gem.authors = ["Hiroshi Toyama"]
|
6
6
|
gem.email = ["toyama0919@gmail.com"]
|
7
7
|
gem.description = %q{fluent plugin mysql prepared statement}
|
@@ -15,8 +15,8 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
16
16
|
gem.require_paths = ["lib"]
|
17
17
|
|
18
|
-
gem.add_runtime_dependency "fluentd"
|
19
18
|
gem.add_runtime_dependency "mysql2-cs-bind"
|
19
|
+
gem.add_development_dependency "fluentd"
|
20
20
|
gem.add_development_dependency "bundler", "~> 1.3"
|
21
21
|
gem.add_development_dependency "rake"
|
22
22
|
gem.add_development_dependency "rspec"
|
@@ -3,6 +3,11 @@ module Fluent
|
|
3
3
|
class Fluent::MysqlPreparedStatementOutput < Fluent::BufferedOutput
|
4
4
|
Fluent::Plugin.register_output('mysql_prepared_statement', self)
|
5
5
|
|
6
|
+
# Define `router` method of v0.12 to support v0.10 or earlier
|
7
|
+
unless method_defined?(:router)
|
8
|
+
define_method("router") { Fluent::Engine }
|
9
|
+
end
|
10
|
+
|
6
11
|
config_param :host, :string, :default => "127.0.0.1"
|
7
12
|
config_param :output_tag, :string
|
8
13
|
config_param :port, :integer, :default => 3306
|
@@ -72,7 +77,7 @@ module Fluent
|
|
72
77
|
chunk.msgpack_each { |tag, time, data|
|
73
78
|
results = get_exec_result(data)
|
74
79
|
results.each{|result|
|
75
|
-
|
80
|
+
router.emit(@output_tag, Fluent::Engine.now, result)
|
76
81
|
}
|
77
82
|
}
|
78
83
|
@handler.close
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-mysql-prepared-statement
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroshi Toyama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: mysql2-cs-bind
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -25,13 +25,13 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: fluentd
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
|
-
type: :
|
34
|
+
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
@@ -145,10 +145,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
147
|
rubyforge_project:
|
148
|
-
rubygems_version: 2.
|
148
|
+
rubygems_version: 2.4.2
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: fluent plugin mysql prepared statement
|
152
152
|
test_files:
|
153
153
|
- test/helper.rb
|
154
154
|
- test/plugin/test_out_mysql_prepared_statement.rb
|
155
|
+
has_rdoc: false
|