fluent-plugin-td 0.9.9 → 0.9.10
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +7 -0
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/fluent-plugin-td.gemspec +5 -5
- data/lib/fluent/plugin/out_tdlog.rb +19 -10
- metadata +7 -7
data/ChangeLog
CHANGED
data/Rakefile
CHANGED
@@ -12,7 +12,7 @@ begin
|
|
12
12
|
#gemspec.homepage = "http://fluent.github.com/"
|
13
13
|
gemspec.has_rdoc = false
|
14
14
|
gemspec.require_paths = ["lib"]
|
15
|
-
gemspec.add_dependency "fluent", "~> 0.9.
|
15
|
+
gemspec.add_dependency "fluent", "~> 0.9.14"
|
16
16
|
gemspec.add_dependency "td-client", "~> 0.8.0"
|
17
17
|
gemspec.test_files = Dir["test/**/*.rb"]
|
18
18
|
gemspec.files = Dir["bin/**/*", "lib/**/*", "test/**/*.rb"] +
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.10
|
data/fluent-plugin-td.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{fluent-plugin-td}
|
8
|
-
s.version = "0.9.
|
8
|
+
s.version = "0.9.10"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Sadayuki Furuhashi"]
|
12
|
-
s.date = %q{2011-09-
|
12
|
+
s.date = %q{2011-09-21}
|
13
13
|
s.extra_rdoc_files = [
|
14
14
|
"ChangeLog",
|
15
15
|
"README.rdoc"
|
@@ -32,14 +32,14 @@ Gem::Specification.new do |s|
|
|
32
32
|
s.specification_version = 3
|
33
33
|
|
34
34
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
35
|
-
s.add_runtime_dependency(%q<fluent>, ["~> 0.9.
|
35
|
+
s.add_runtime_dependency(%q<fluent>, ["~> 0.9.14"])
|
36
36
|
s.add_runtime_dependency(%q<td-client>, ["~> 0.8.0"])
|
37
37
|
else
|
38
|
-
s.add_dependency(%q<fluent>, ["~> 0.9.
|
38
|
+
s.add_dependency(%q<fluent>, ["~> 0.9.14"])
|
39
39
|
s.add_dependency(%q<td-client>, ["~> 0.8.0"])
|
40
40
|
end
|
41
41
|
else
|
42
|
-
s.add_dependency(%q<fluent>, ["~> 0.9.
|
42
|
+
s.add_dependency(%q<fluent>, ["~> 0.9.14"])
|
43
43
|
s.add_dependency(%q<td-client>, ["~> 0.8.0"])
|
44
44
|
end
|
45
45
|
end
|
@@ -24,7 +24,7 @@ class TreasureDataLogOutput < BufferedOutput
|
|
24
24
|
@key_num_limit = 5120 # TODO
|
25
25
|
@record_size_limit = 32*1024*1024 # TODO
|
26
26
|
@table_list = []
|
27
|
-
@auto_create_table =
|
27
|
+
@auto_create_table = true
|
28
28
|
@flush_interval = 300 # overwrite default flush_interval from 1min to 5mins
|
29
29
|
end
|
30
30
|
|
@@ -39,9 +39,24 @@ class TreasureDataLogOutput < BufferedOutput
|
|
39
39
|
raise ConfigError, "'apikey' parameter is required on tdlog output"
|
40
40
|
end
|
41
41
|
|
42
|
-
|
43
|
-
|
44
|
-
|
42
|
+
if auto_create_table = conf['auto_create_table']
|
43
|
+
if auto_create_table.empty?
|
44
|
+
@auto_create_table = true
|
45
|
+
else
|
46
|
+
@auto_create_table = Config.bool_value(auto_create_table)
|
47
|
+
if @auto_create_table == nil
|
48
|
+
raise ConfigError, "'true' or 'false' is required for auto_create_table option on tdlog output"
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
unless @auto_create_table
|
54
|
+
database = conf['database']
|
55
|
+
table = conf['table']
|
56
|
+
|
57
|
+
if !database || !table
|
58
|
+
raise ConfigError, "'database' and 'table' parameter are required on tdlog output"
|
59
|
+
end
|
45
60
|
if !validate_name(database)
|
46
61
|
raise ConfigError, "Invalid database name #{database.inspect}: #{conf}"
|
47
62
|
end
|
@@ -49,12 +64,6 @@ class TreasureDataLogOutput < BufferedOutput
|
|
49
64
|
raise ConfigError, "Invalid table name #{table.inspect}: #{conf}"
|
50
65
|
end
|
51
66
|
@key = "#{database}.#{table}"
|
52
|
-
elsif (database && !table) || (!database && table)
|
53
|
-
raise ConfigError, "'database' and 'table' parameter are required on tdlog output"
|
54
|
-
end
|
55
|
-
|
56
|
-
if conf['auto_create_table']
|
57
|
-
@auto_create_table = true
|
58
67
|
end
|
59
68
|
end
|
60
69
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-td
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 47
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 10
|
10
|
+
version: 0.9.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sadayuki Furuhashi
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-09-
|
18
|
+
date: 2011-09-21 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -26,12 +26,12 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 39
|
30
30
|
segments:
|
31
31
|
- 0
|
32
32
|
- 9
|
33
|
-
-
|
34
|
-
version: 0.9.
|
33
|
+
- 14
|
34
|
+
version: 0.9.14
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|