timber 2.0.11 → 2.0.12

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: 7c92caecf236aae6f47636ea5646c3822a31fa51
4
- data.tar.gz: df5d9292f27cba1fa0405a919002434eb4d91bdf
3
+ metadata.gz: 8b60ecff54504c00f6f37995ee8801eddccbbf58
4
+ data.tar.gz: 4a390948fa57e7b122e386dd3aa84cfe845e9dca
5
5
  SHA512:
6
- metadata.gz: 8d1617ab8a68cb5ceef91036f196cc1fecd97f09236a2a06319dbb69c1b3e9a9c606ba98a214dc266e73ccc5f277e454939fb2acf2e19da9e6259ad8ce8005aa
7
- data.tar.gz: ed1da42f194b9ce03c5e07c7b073306b1de59e0715e9721f3859efdb2e1a974dcb3de76a86c7271b6f38831eed2036bec52621d4b95f050b6454913f6d3ae11d
6
+ metadata.gz: 4bba01c5be0c74aa21fcba8057577c00e29bba78596f57d6aafa6e55ba524d084a530408ef57ba2dfede1ffaf539d95c3dce85204a65957e96a7d65612c2a8ca
7
+ data.tar.gz: efd3b8afeed2f217b5a1124eb5d72c01c63552c91cc146e322da6f5a6f9363094a01e2b5305b79036d9e6d996f69e4dbbce8fd04c8a6fd113a15b3cb146a3a38
@@ -13,9 +13,15 @@ module Timber
13
13
  logger = Rails.ensure_timber_logger(::Rails.logger)
14
14
  Rails.set_logger(logger)
15
15
 
16
- Rails.configure_middlewares(config.app_middleware)
17
16
  Integrations.integrate!
18
17
  end
18
+
19
+ # Ensures that we insert the middlewares last. We need to insert these last
20
+ # because initializers, such as Omniauth, insert middleware. If we are not
21
+ # after these initializers we will not capture user context, for example.
22
+ initializer(:timber_middlewares, before: :build_middleware_stack) do
23
+ Rails.configure_middlewares(config.app_middleware)
24
+ end
19
25
  end
20
26
 
21
27
  # This builds a new Timber::Logger from an existing logger. This allows us to transparentl
@@ -1,3 +1,3 @@
1
1
  module Timber
2
- VERSION = "2.0.11"
2
+ VERSION = "2.0.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timber
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.11
4
+ version: 2.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timber Technologies, Inc.