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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52f2f551d156ddf2cac81cc1fd65175a58e6cb57
4
- data.tar.gz: 24d93d72aa28bf70a8b56be3996f00a7b3354d31
3
+ metadata.gz: 1c8902471a988520ff9f66e8b6d83ee60765d0fd
4
+ data.tar.gz: 534b54871782a8a75193454433931e330622e6a7
5
5
  SHA512:
6
- metadata.gz: 04fea1c9766af3d4e05a8fc87dd00fd9337f77901475947c3860d686fe5fbe1373ac85d69955357d54d3e3bfc00e05caa6db3f5696e9dd125d23763b9b862b28
7
- data.tar.gz: 8574b553f1ed8f1d77e6facd45d5a9ac3820272430116333552fe3b638e4d7901a6051bee9048c6747255569c9fb886b753329322f97603bac017a27865c0baa
6
+ metadata.gz: dfe083431402148573389d79bff9688de0419297ecd4120b8a145c47d7bdbd8be11faa6829213ce51a52f1b3f836a686085f3fe57fb1f790932e2edaa0dcf7a1
7
+ data.tar.gz: 91833cd5e0327f1c247b0d823c29c7cdc3f7bce9cb64fd56dd560c72be96135cc8b5744daf7327cabae4f0dd061ec48a9526034138c7222c6a5cfd4bb4412532
@@ -3,8 +3,12 @@ rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
5
  - jruby-19mode # JRuby in 1.9 mode
6
- - rbx-19mode
6
+ - rbx
7
7
  before_script:
8
8
  - "export DISPLAY=:99.0"
9
9
  - "sh -e /etc/init.d/xvfb start"
10
10
  script: bundle exec rspec spec
11
+
12
+ matrix:
13
+ allow_failures:
14
+ - rvm: rbx
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Lumber
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
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.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-25 00:00:00.000000000 Z
11
+ date: 2013-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: log4r