lumber 0.12.1 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ 0.12.2 (06/01/2012)
2
+ -------------------
3
+
4
+ fix cache attribute name <a55e52a>
5
+ prevent rails from defaulting log_level to debug when it is set to empty string <3bbb734>
6
+
1
7
  0.12.1 (05/31/2012)
2
8
  -------------------
3
9
 
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
- LevelUtil.cache = opts[:monitor_store]
72
+ LevelUtil.cache_provider = opts[:monitor_store]
73
73
  elsif defined?(RAILS_CACHE)
74
- LevelUtil.cache = 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
@@ -18,7 +18,7 @@ module Lumber
18
18
  app.config.logger = Log4r::Logger[Lumber::BASE_LOGGER]
19
19
 
20
20
  config_level = app.config.log_level
21
- if config_level
21
+ if config_level.present?
22
22
  level_str = config_level.to_s.upcase
23
23
  level = Log4r::LNAMES.index(level_str)
24
24
  raise "Invalid log level: #{config_level}" unless level
@@ -1,3 +1,3 @@
1
1
  module Lumber
2
- VERSION = "0.12.1"
2
+ VERSION = "0.12.2"
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.12.1
4
+ version: 0.12.2
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-05-31 00:00:00.000000000 Z
12
+ date: 2012-06-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: log4r