fluent-plugin-td 0.10.22 → 0.10.23

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: 7e4943818798256c0ec07e3db957ccd6edeb0de9
4
- data.tar.gz: 50ca2274ebc97ad068189ca892fde5d7676d23af
3
+ metadata.gz: bea1cedfa710605a41e6621d3c1a5e735d30d41b
4
+ data.tar.gz: e674f3cc8a8f4ea2901b8232266bfe7cbbada432
5
5
  SHA512:
6
- metadata.gz: 45e450f1c6f593bf2a16607d07ed3d378cdb1f29c3b5e4f8058a319ae814f385b40692151b8e6a26344307f257baf310240421fa536885a78a90725a2a7fa407
7
- data.tar.gz: 97abcbc88c894038e0f137c689030dffcae5d4a680560f382fe24a77177cfd709d9cbd44893c3f330389bbd30ffe0e973b0f0210c92c97fc1b878d542e1e45cd
6
+ metadata.gz: 256e1e8db03e0e8271a55e4d138d40d0c2af9f94cd9712d357625fd62bc87becbad890ec01ec649a90cd0390e103275a426a1b853e1d40c1fd5637ae88ab9f58
7
+ data.tar.gz: 02fb8daa4050de87b6ca2f2e7d87d5c732e9c75040c3588e893bd93255ae509dfa2fb48ed9850479c549b4ef55e85c8aa139d228a8237c7d06003145c69204c7
data/.travis.yml CHANGED
@@ -1,5 +1,4 @@
1
1
  rvm:
2
- - 1.9.2
3
2
  - 1.9.3
4
3
  - 2.0.0
5
4
  - 2.1.0
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ Release 0.10.23 - 2014/12/08
2
+
3
+ * Relax fluentd version restriction
4
+
5
+
1
6
  Release 0.10.22 - 2014/10/17
2
7
 
3
8
  * Remove :time key from a record
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
18
  gem.require_paths = ['lib']
19
19
 
20
- gem.add_dependency "fluentd", "~> 0.10.27"
20
+ gem.add_dependency "fluentd", [">= 0.10.27", "< 2"]
21
21
  gem.add_dependency "td-client", "~> 0.8.66"
22
22
  gem.add_development_dependency "rake", ">= 0.9.2"
23
23
  gem.add_development_dependency "webmock", "~> 1.16"
@@ -66,8 +66,11 @@ module Fluent
66
66
  define_method(:log) { $log }
67
67
  end
68
68
 
69
- config_param :endpoint, :string, :default => TreasureData::API::NEW_DEFAULT_ENDPOINT
69
+ config_param :apikey, :string
70
+ config_param :auto_create_table, :bool, :default => true
70
71
 
72
+ config_param :endpoint, :string, :default => TreasureData::API::NEW_DEFAULT_ENDPOINT
73
+ config_param :use_ssl, :bool, :default => true
71
74
  config_param :connect_timeout, :integer, :default => nil
72
75
  config_param :read_timeout, :integer, :default => nil
73
76
  config_param :send_timeout, :integer, :default => nil
@@ -86,13 +89,10 @@ module Fluent
86
89
  require 'stringio'
87
90
  super
88
91
  @tmpdir = nil
89
- @apikey = nil
90
92
  @key = nil
91
93
  @key_num_limit = 512 # TODO: Our one-time import has the restriction about the number of record keys.
92
94
  @record_size_limit = 32 * 1024 * 1024 # TODO
93
95
  @table_list = {}
94
- @auto_create_table = true
95
- @use_ssl = true
96
96
  @empty_gz_data = TreasureData::API.create_empty_gz_data
97
97
  @user_agent = "fluent-plugin-td: #{TreasureDataPlugin::VERSION}".freeze
98
98
  end
@@ -101,7 +101,7 @@ module Fluent
101
101
  super
102
102
 
103
103
  # overwrite default value of buffer_chunk_limit
104
- if @buffer.respond_to?(:buffer_chunk_limit=) && !conf['buffer_chunk_limit']
104
+ if !conf['buffer_chunk_limit']
105
105
  @buffer.buffer_chunk_limit = IMPORT_SIZE_LIMIT
106
106
  end
107
107
 
@@ -110,33 +110,6 @@ module Fluent
110
110
  FileUtils.mkdir_p(@tmpdir)
111
111
  end
112
112
 
113
- @apikey = conf['apikey']
114
- unless @apikey
115
- raise ConfigError, "'apikey' parameter is required on tdlog output"
116
- end
117
-
118
- if auto_create_table = conf['auto_create_table']
119
- if auto_create_table.empty?
120
- @auto_create_table = true
121
- else
122
- @auto_create_table = Config.bool_value(auto_create_table)
123
- if @auto_create_table == nil
124
- raise ConfigError, "'true' or 'false' is required for auto_create_table option on tdlog output"
125
- end
126
- end
127
- end
128
-
129
- if use_ssl = conf['use_ssl']
130
- if use_ssl.empty?
131
- @use_ssl = true
132
- else
133
- @use_ssl = Config.bool_value(use_ssl)
134
- if @use_ssl == nil
135
- raise ConfigError, "'true' or 'false' is required for use_ssl option on tdlog output"
136
- end
137
- end
138
- end
139
-
140
113
  database = conf['database']
141
114
  table = conf['table']
142
115
  if database && table
@@ -1,5 +1,5 @@
1
1
  module Fluent
2
2
  module TreasureDataPlugin
3
- VERSION = '0.10.22'
3
+ VERSION = '0.10.23'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-td
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.22
4
+ version: 0.10.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Treasure Data, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-17 00:00:00.000000000 Z
11
+ date: 2014-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.10.27
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: 0.10.27
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: td-client
29
35
  requirement: !ruby/object:Gem::Requirement