lumber 0.13.4 → 0.13.5

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
+ 0.13.5 (08/08/2013)
2
+ -------------------
3
+
4
+ fix rails 4 deprecation <ac7f796> [Matt Conway]
5
+
1
6
  0.13.4 (01/02/2013)
7
+ -------------------
2
8
 
3
9
  Fixed bad reference that was killing the monitor thread early. <a35520>
4
10
 
data/lib/lumber/lumber.rb CHANGED
@@ -69,9 +69,9 @@ module Lumber
69
69
  self.register_inheritance_handler()
70
70
 
71
71
  if opts[:monitor_store]
72
+ # Setting to Rails.cache handled by a post initialize_cache rails initializer
73
+ # since Rails.cache is not available when lumber is initialized
72
74
  LevelUtil.cache_provider = opts[:monitor_store]
73
- elsif defined?(RAILS_CACHE)
74
- LevelUtil.cache_provider = RAILS_CACHE
75
75
  end
76
76
  LevelUtil.start_monitor(opts[:monitor_interval]) if opts[:monitor_enabled]
77
77
  end
@@ -28,8 +28,14 @@ module Lumber
28
28
  end
29
29
 
30
30
  initializer "lumber.initialize_cache", :after => :initialize_cache do |app|
31
- if app.config.lumber.enabled
32
- LevelUtil.cache_provider = Rails.cache unless config.lumber.monitor_store
31
+ # Only set the cache to Rails.cache if the user hasn't
32
+ # specified a different monitor_store
33
+ if app.config.lumber.enabled && ! app.config.lumber.monitor_store
34
+ if defined?(Rails) && Rails.respond_to?(:cache)
35
+ LevelUtil.cache_provider = Rails.cache
36
+ elsif defined?(RAILS_CACHE)
37
+ LevelUtil.cache_provider = RAILS_CACHE
38
+ end
33
39
  end
34
40
  end
35
41
 
@@ -1,3 +1,3 @@
1
1
  module Lumber
2
- VERSION = "0.13.4"
2
+ VERSION = "0.13.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.4
4
+ version: 0.13.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,18 +9,18 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-03 00:00:00.000000000 Z
12
+ date: 2013-08-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- type: :runtime
16
15
  name: log4r
17
- prerelease: false
18
16
  requirement: !ruby/object:Gem::Requirement
19
17
  requirements:
20
18
  - - ~>
21
19
  - !ruby/object:Gem::Version
22
20
  version: 1.1.10
23
21
  none: false
22
+ prerelease: false
23
+ type: :runtime
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - ~>
@@ -28,15 +28,15 @@ dependencies:
28
28
  version: 1.1.10
29
29
  none: false
30
30
  - !ruby/object:Gem::Dependency
31
- type: :runtime
32
31
  name: activesupport
33
- prerelease: false
34
32
  requirement: !ruby/object:Gem::Requirement
35
33
  requirements:
36
34
  - - ! '>='
37
35
  - !ruby/object:Gem::Version
38
36
  version: '0'
39
37
  none: false
38
+ prerelease: false
39
+ type: :runtime
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,15 +44,15 @@ dependencies:
44
44
  version: '0'
45
45
  none: false
46
46
  - !ruby/object:Gem::Dependency
47
- type: :runtime
48
47
  name: sinatra
49
- prerelease: false
50
48
  requirement: !ruby/object:Gem::Requirement
51
49
  requirements:
52
50
  - - ! '>='
53
51
  - !ruby/object:Gem::Version
54
52
  version: '0'
55
53
  none: false
54
+ prerelease: false
55
+ type: :runtime
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ! '>='
@@ -60,15 +60,15 @@ dependencies:
60
60
  version: '0'
61
61
  none: false
62
62
  - !ruby/object:Gem::Dependency
63
- type: :development
64
63
  name: rake
65
- prerelease: false
66
64
  requirement: !ruby/object:Gem::Requirement
67
65
  requirements:
68
66
  - - ! '>='
69
67
  - !ruby/object:Gem::Version
70
68
  version: '0'
71
69
  none: false
70
+ prerelease: false
71
+ type: :development
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,15 +76,15 @@ dependencies:
76
76
  version: '0'
77
77
  none: false
78
78
  - !ruby/object:Gem::Dependency
79
- type: :development
80
79
  name: rspec
81
- prerelease: false
82
80
  requirement: !ruby/object:Gem::Requirement
83
81
  requirements:
84
82
  - - ! '>='
85
83
  - !ruby/object:Gem::Version
86
84
  version: '0'
87
85
  none: false
86
+ prerelease: false
87
+ type: :development
88
88
  version_requirements: !ruby/object:Gem::Requirement
89
89
  requirements:
90
90
  - - ! '>='
@@ -92,15 +92,15 @@ dependencies:
92
92
  version: '0'
93
93
  none: false
94
94
  - !ruby/object:Gem::Dependency
95
- type: :development
96
95
  name: rack-test
97
- prerelease: false
98
96
  requirement: !ruby/object:Gem::Requirement
99
97
  requirements:
100
98
  - - ! '>='
101
99
  - !ruby/object:Gem::Version
102
100
  version: '0'
103
101
  none: false
102
+ prerelease: false
103
+ type: :development
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - ! '>='
@@ -108,15 +108,15 @@ dependencies:
108
108
  version: '0'
109
109
  none: false
110
110
  - !ruby/object:Gem::Dependency
111
- type: :development
112
111
  name: capybara
113
- prerelease: false
114
112
  requirement: !ruby/object:Gem::Requirement
115
113
  requirements:
116
114
  - - ! '>='
117
115
  - !ruby/object:Gem::Version
118
116
  version: '0'
119
117
  none: false
118
+ prerelease: false
119
+ type: :development
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ! '>='
@@ -124,15 +124,15 @@ dependencies:
124
124
  version: '0'
125
125
  none: false
126
126
  - !ruby/object:Gem::Dependency
127
- type: :development
128
127
  name: capybara-webkit
129
- prerelease: false
130
128
  requirement: !ruby/object:Gem::Requirement
131
129
  requirements:
132
130
  - - ! '>='
133
131
  - !ruby/object:Gem::Version
134
132
  version: '0'
135
133
  none: false
134
+ prerelease: false
135
+ type: :development
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - ! '>='
@@ -140,15 +140,15 @@ dependencies:
140
140
  version: '0'
141
141
  none: false
142
142
  - !ruby/object:Gem::Dependency
143
- type: :development
144
143
  name: awesome_print
145
- prerelease: false
146
144
  requirement: !ruby/object:Gem::Requirement
147
145
  requirements:
148
146
  - - ! '>='
149
147
  - !ruby/object:Gem::Version
150
148
  version: '0'
151
149
  none: false
150
+ prerelease: false
151
+ type: :development
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
153
  requirements:
154
154
  - - ! '>='
@@ -156,15 +156,15 @@ dependencies:
156
156
  version: '0'
157
157
  none: false
158
158
  - !ruby/object:Gem::Dependency
159
- type: :development
160
159
  name: sinatra-contrib
161
- prerelease: false
162
160
  requirement: !ruby/object:Gem::Requirement
163
161
  requirements:
164
162
  - - ! '>='
165
163
  - !ruby/object:Gem::Version
166
164
  version: '0'
167
165
  none: false
166
+ prerelease: false
167
+ type: :development
168
168
  version_requirements: !ruby/object:Gem::Requirement
169
169
  requirements:
170
170
  - - ! '>='
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
241
241
  none: false
242
242
  requirements: []
243
243
  rubyforge_project:
244
- rubygems_version: 1.8.23
244
+ rubygems_version: 1.8.25
245
245
  signing_key:
246
246
  specification_version: 3
247
247
  summary: Lumber integrates the log4r logging system within your application.