td-logger 0.3.18 → 0.3.19

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ == 2013-02-13 version 0.3.19
2
+
3
+ * Add :use_ssl option for uploading the events over SSL connection.
4
+
5
+
1
6
  == 2012-12-26 version 0.3.18
2
7
 
3
8
  * Change msgpack dependency version == 0.4.7 for avoding 0.4.8 yanked issue.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.18
1
+ 0.3.19
@@ -37,7 +37,7 @@ class TreasureDataLogger < Fluent::Logger::LoggerBase
37
37
  @logger.level = ::Logger::INFO
38
38
  end
39
39
 
40
- @client = TreasureData::Client.new(apikey)
40
+ @client = TreasureData::Client.new(apikey, :ssl => !!options[:use_ssl])
41
41
 
42
42
  @mutex = Mutex.new
43
43
  @cond = ConditionVariable.new
@@ -1,7 +1,7 @@
1
1
  module TreasureData
2
2
  module Logger
3
3
 
4
- VERSION = '0.3.18'
4
+ VERSION = '0.3.19'
5
5
 
6
6
  end
7
7
  end
@@ -3,6 +3,18 @@ require 'spec_helper'
3
3
 
4
4
  describe TreasureData::Logger::TreasureDataLogger do
5
5
  context 'init' do
6
+ it 'with apikey' do
7
+ td = TreasureData::Logger::TreasureDataLogger.new('db1', :apikey=>'test_1')
8
+ td.instance_variable_get(:@client).api.apikey.should == 'test_1'
9
+ td.instance_variable_get(:@client).api.instance_variable_get(:@ssl).should be_false
10
+ end
11
+
12
+ it 'with apikey and use_ssl' do
13
+ td = TreasureData::Logger::TreasureDataLogger.new('db1', :apikey=>'test_1', :use_ssl => true)
14
+ td.instance_variable_get(:@client).api.apikey.should == 'test_1'
15
+ td.instance_variable_get(:@client).api.instance_variable_get(:@ssl).should be_true
16
+ end
17
+
6
18
  it 'db config' do
7
19
  td = TreasureData::Logger::TreasureDataLogger.new('db1', :apikey=>'test_1')
8
20
  time = Time.now
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: td-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.18
4
+ version: 0.3.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-25 00:00:00.000000000 Z
12
+ date: 2013-02-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: msgpack
@@ -131,12 +131,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
131
  - - ! '>='
132
132
  - !ruby/object:Gem::Version
133
133
  version: '0'
134
+ segments:
135
+ - 0
136
+ hash: -1316204649964571455
134
137
  required_rubygems_version: !ruby/object:Gem::Requirement
135
138
  none: false
136
139
  requirements:
137
140
  - - ! '>='
138
141
  - !ruby/object:Gem::Version
139
142
  version: '0'
143
+ segments:
144
+ - 0
145
+ hash: -1316204649964571455
140
146
  requirements: []
141
147
  rubyforge_project:
142
148
  rubygems_version: 1.8.23