td-logger 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,4 +1,10 @@
1
1
 
2
+ == 2012-03-05 version 0.3.9
3
+
4
+ * Fixed 'ConditionVariable' is not defined problem
5
+ * Fixed Event.use feature
6
+
7
+
2
8
  == 2012-02-24 version 0.3.8
3
9
 
4
10
  * Supports for EngineYard Add-on users
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.8
1
+ 0.3.9
@@ -104,9 +104,9 @@ module Agent::Rails
104
104
  return nil
105
105
  end
106
106
 
107
- apikey = env_conf['td']['TREASURE_DATA_API_KEY'] if env_conf.is_a?(Hash)
107
+ apikey = env_conf['td']['TREASURE_DATA_API_KEY'] if env_conf.is_a?(Hash) and env_conf['td'].is_a?(Hash)
108
108
  unless apikey
109
- logger.warn "WARNING: #{path} does not exist."
109
+ logger.warn "WARNING: #{path} does not have a configuration of API key."
110
110
  logger.warn "WARNING: Disabling Treasure Data event logger."
111
111
  return nil
112
112
  end
@@ -271,6 +271,7 @@ class TreasureDataLogger < Fluent::Logger::LoggerBase
271
271
  close
272
272
  end
273
273
 
274
+ require 'thread' # ConditionVariable
274
275
  if ConditionVariable.new.method(:wait).arity == 1
275
276
  # "WARNING: Running on Ruby 1.8. Ruby 1.9 is recommended."
276
277
  require 'timeout'
@@ -1,7 +1,7 @@
1
1
  module TreasureData
2
2
  module Logger
3
3
 
4
- VERSION = '0.3.8'
4
+ VERSION = '0.3.9'
5
5
 
6
6
  end
7
7
  end
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.8
4
+ version: 0.3.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-24 00:00:00.000000000Z
12
+ date: 2012-03-05 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: msgpack
16
- requirement: &20688200 !ruby/object:Gem::Requirement
16
+ requirement: &70209063366040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.4.4
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *20688200
24
+ version_requirements: *70209063366040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: td-client
27
- requirement: &20686380 !ruby/object:Gem::Requirement
27
+ requirement: &70209063365440 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.8.4
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *20686380
35
+ version_requirements: *70209063365440
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: fluent-logger
38
- requirement: &20685280 !ruby/object:Gem::Requirement
38
+ requirement: &70209063364980 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.4.1
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *20685280
46
+ version_requirements: *70209063364980
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
- requirement: &20684180 !ruby/object:Gem::Requirement
49
+ requirement: &70209063364500 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.9.2
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *20684180
57
+ version_requirements: *70209063364500
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec
60
- requirement: &20630960 !ruby/object:Gem::Requirement
60
+ requirement: &70209063363940 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: 2.7.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *20630960
68
+ version_requirements: *70209063363940
69
69
  description: Treasure Data logging library for Rails
70
70
  email:
71
71
  executables: []
@@ -113,8 +113,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubyforge_project:
116
- rubygems_version: 1.8.10
116
+ rubygems_version: 1.8.12
117
117
  signing_key:
118
118
  specification_version: 3
119
119
  summary: Treasure Data logging library for Rails
120
- test_files: []
120
+ test_files:
121
+ - spec/event_spec.rb
122
+ - spec/rails_config_spec.rb
123
+ - spec/spec_helper.rb
124
+ - spec/td_logger_spec.rb
125
+ has_rdoc: