lumber 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -1
- data/CHANGELOG +7 -0
- data/lib/lumber/railtie.rb +8 -6
- data/lib/lumber/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c8902471a988520ff9f66e8b6d83ee60765d0fd
|
4
|
+
data.tar.gz: 534b54871782a8a75193454433931e330622e6a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfe083431402148573389d79bff9688de0419297ecd4120b8a145c47d7bdbd8be11faa6829213ce51a52f1b3f836a686085f3fe57fb1f790932e2edaa0dcf7a1
|
7
|
+
data.tar.gz: 91833cd5e0327f1c247b0d823c29c7cdc3f7bce9cb64fd56dd560c72be96135cc8b5744daf7327cabae4f0dd061ec48a9526034138c7222c6a5cfd4bb4412532
|
data/.travis.yml
CHANGED
data/CHANGELOG
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
1.1.2 (12/17/2013)
|
2
|
+
------------------
|
3
|
+
|
4
|
+
Ensure Rails.config.log_level is always set <2a45c39> [Danny Guinther]
|
5
|
+
allow travis failures for rbx <80932a3> [Matt Conway]
|
6
|
+
use latest released rbx <8d7bbc7> [Matt Conway]
|
7
|
+
|
1
8
|
1.1.1 (11/25/2013)
|
2
9
|
------------------
|
3
10
|
|
data/lib/lumber/railtie.rb
CHANGED
@@ -3,9 +3,9 @@ require 'rails'
|
|
3
3
|
module Lumber
|
4
4
|
|
5
5
|
class Railtie < Rails::Railtie
|
6
|
-
|
6
|
+
|
7
7
|
config.lumber = ActiveSupport::OrderedOptions.new
|
8
|
-
|
8
|
+
|
9
9
|
initializer "lumber.initialize_logger", :before => :initialize_logger do |app|
|
10
10
|
if app.config.lumber.enabled
|
11
11
|
opts = {:root => Rails.root.to_s, :env => Rails.env}.merge(app.config.lumber)
|
@@ -13,20 +13,22 @@ module Lumber
|
|
13
13
|
unless opts[:disable_auto_loggers]
|
14
14
|
Lumber.setup_logger_hierarchy("ActiveRecord::Base", "rails::models")
|
15
15
|
Lumber.setup_logger_hierarchy("ActionController::Base", "rails::controllers")
|
16
|
-
Lumber.setup_logger_hierarchy("ActionMailer::Base", "rails::mailers")
|
16
|
+
Lumber.setup_logger_hierarchy("ActionMailer::Base", "rails::mailers")
|
17
17
|
end
|
18
18
|
app.config.logger = Lumber.find_or_create_logger(Lumber::BASE_LOGGER)
|
19
|
-
|
19
|
+
|
20
20
|
config_level = app.config.log_level
|
21
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
|
25
25
|
app.config.logger.level = level
|
26
|
+
else
|
27
|
+
app.config.log_level = Log4r::LNAMES[app.config.logger.level]
|
26
28
|
end
|
27
29
|
end
|
28
30
|
end
|
29
|
-
|
31
|
+
|
30
32
|
initializer "lumber.initialize_cache", :after => :initialize_cache do |app|
|
31
33
|
# Only set the cache to Rails.cache if the user hasn't
|
32
34
|
# specified a different monitor_store
|
@@ -38,7 +40,7 @@ module Lumber
|
|
38
40
|
end
|
39
41
|
end
|
40
42
|
end
|
41
|
-
|
43
|
+
|
42
44
|
end
|
43
45
|
|
44
46
|
end
|
data/lib/lumber/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Conway
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: log4r
|