gray_logger 0.11.8 → 0.11.9

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.
Files changed (2) hide show
  1. data/lib/gray_logger/railtie.rb +4 -4
  2. metadata +3 -3
@@ -6,16 +6,16 @@ module GrayLogger
6
6
  initializer "gray_logger.configure_rails_initialization" do |app|
7
7
  configuration = YAML.load(File.read(Rails.root.join('config/gray_logger.yml')))[Rails.env]
8
8
  ::GrayLogger.configure(configuration)
9
+ ::GrayLogger.proxy.initialize_gray_logger!
10
+
11
+ ActionController::Base.send(:include, ::GrayLogger::HelperMethods)
12
+
9
13
  app.middleware.insert_after "ActionDispatch::ShowExceptions", "Rack::GrayLogger::Middleware"
10
14
  end
11
15
  rescue => e
12
16
  $stderr.puts("GrayLogger not configured. Please add config/gray_logger.yml")
13
17
  end
14
18
 
15
- initializer "gray_logger.include_logger" do |app|
16
- ActionController::Base.send(:include, ::GrayLogger::HelperMethods)
17
- end
18
-
19
19
  end
20
20
 
21
21
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gray_logger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 35
4
+ hash: 33
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 11
9
- - 8
10
- version: 0.11.8
9
+ - 9
10
+ version: 0.11.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Benjamin Behr