fluent-plugin-mysql 0.0.7 → 0.0.8

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: ed6ee3d9d928c77a83045aa743632071d1958f2c
4
- data.tar.gz: 8253b438fe433e276e0cb1b1d25b418f9356af17
3
+ metadata.gz: aef912f01a0f6ca0a2907c5f9c5408c4c4ff2159
4
+ data.tar.gz: b262b8918909b2e9c333b1e24c0aaf4241c5cf31
5
5
  SHA512:
6
- metadata.gz: dc6213f47a64d9e9572d2bc61d606861f1d0fcc8b02e89106ee679898222cf886f272bc4e39310389b621cec1b861eb539320c2d7dec573f36c576f7e48f58d8
7
- data.tar.gz: d31c3e4bf58cbc09c9cf0594d5b709177fafbee11464ec3d6d3fce91234a009c694374b13f1c77c022f48fdb83659ca5855afd038449e677599f67610521bae4
6
+ metadata.gz: 4ce9e3cffa7340e9d082c732fb711f7a7e5ce098f6281cac16bc13d6bc1901935dce67a6059b9103c1ffb8ba1471108e8889a19a996dd65340b25dca8ce0bf68
7
+ data.tar.gz: 219b142587cab14566b49793741884fc35a50d7962fb7e474d5e81f609271bcd6cb745024e5d83bc4250aea1a93c2db7d84d8d2ade49e9b22cd68363531e6cba
data/README.md CHANGED
@@ -83,7 +83,7 @@ Or, for json:
83
83
  username root
84
84
 
85
85
  include_time_key yes
86
- utc # with UTC timezome output (default: localtime)
86
+ utc # with UTC timezone output (default: localtime)
87
87
  time_format %Y%m%d-%H%M%S
88
88
  time_key timeattr
89
89
 
@@ -123,6 +123,9 @@ will generate the following insert values:
123
123
 
124
124
  `('2012-12-17T01:23:45Z','test',15,'jsonpath','unit')`
125
125
 
126
+ ## Prerequisites
127
+
128
+ `fluent-plugin-mysql` uses `mysql2` gem, and `mysql2` links against `libmysqlclient`. See [Installing](https://github.com/brianmario/mysql2#installing) for its installation.
126
129
 
127
130
  ## TODO
128
131
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |gem|
3
3
  gem.name = "fluent-plugin-mysql"
4
- gem.version = "0.0.7"
4
+ gem.version = "0.0.8"
5
5
  gem.authors = ["TAGOMORI Satoshi"]
6
6
  gem.email = ["tagomoris@gmail.com"]
7
7
  gem.description = %q{fluent plugin to insert mysql as json(single column) or insert statement}
@@ -18,4 +18,5 @@ Gem::Specification.new do |gem|
18
18
  gem.add_runtime_dependency "mysql2-cs-bind"
19
19
  gem.add_runtime_dependency "jsonpath"
20
20
  gem.add_development_dependency "rake"
21
+ gem.add_development_dependency "test-unit"
21
22
  end
@@ -8,7 +8,7 @@ class Fluent::MysqlOutput < Fluent::BufferedOutput
8
8
  config_param :port, :integer, :default => nil
9
9
  config_param :database, :string
10
10
  config_param :username, :string
11
- config_param :password, :string, :default => ''
11
+ config_param :password, :string, :default => '', :secret => true
12
12
 
13
13
  config_param :key_names, :string, :default => nil # nil allowed for json format
14
14
  config_param :sql, :string, :default => nil
@@ -137,7 +137,7 @@ sql INSERT INTO baz (coltime,coltag,col1,col2,col3,col4) VALUES (?,?,?,?,?,?)
137
137
  ]
138
138
  assert_equal 'INSERT INTO baz (coltime,coltag,col1,col2,col3,col4) VALUES (?,?,?,?,?,?)', d.instance.sql
139
139
 
140
- time = Time.parse('2012-12-17 09:23:45 JST').to_i # JST(+0900)
140
+ time = Time.parse('2012-12-17 09:23:45 +0900').to_i # JST(+0900)
141
141
  record = {'field1'=>'value1','field2'=>'value2','field3'=>'value3','field4'=>'value4'}
142
142
  d.emit(record, time)
143
143
  d.expect_format ['test', time, ['20121217-002345','test','value1','value2','value3','value4']].to_msgpack
@@ -162,7 +162,7 @@ format json
162
162
  ]
163
163
  assert_equal 'INSERT INTO accesslog (jsondata) VALUES (?)', d.instance.sql
164
164
 
165
- time = Time.parse('2012-12-17 09:23:45 JST').to_i # JST(+0900)
165
+ time = Time.parse('2012-12-17 09:23:45 +0900').to_i # JST(+0900)
166
166
  record = {'field1'=>'value1'}
167
167
  d.emit(record, time)
168
168
  # Ruby 1.9.3 Hash saves its key order, so this code is OK.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-mysql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAGOMORI Satoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-07 00:00:00.000000000 Z
11
+ date: 2015-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: test-unit
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  description: fluent plugin to insert mysql as json(single column) or insert statement
70
84
  email:
71
85
  - tagomoris@gmail.com
@@ -102,10 +116,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
116
  version: '0'
103
117
  requirements: []
104
118
  rubyforge_project:
105
- rubygems_version: 2.2.2
119
+ rubygems_version: 2.4.5
106
120
  signing_key:
107
121
  specification_version: 4
108
122
  summary: fluent plugin to insert mysql
109
123
  test_files:
110
124
  - test/helper.rb
111
125
  - test/plugin/test_out_mysql.rb
126
+ has_rdoc: