logjam_agent 0.25.2 → 0.25.3

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: fb26401cc2080361652e92fac311ca9d16d374b2
4
- data.tar.gz: 9201694660e87e2f1cc95f127dfdf918dc49db44
3
+ metadata.gz: cb8308e2189c845b7b6cbbc7d9935a46332aba00
4
+ data.tar.gz: 7e4946075f1fe8b79cc9345cdbd2cb1f2f8f5d25
5
5
  SHA512:
6
- metadata.gz: fd392795d204ef53aae0366de91021a61ea021e7737f78fe8cce6dd657bbdd2b818d01af9f05235a8fe50820a26acdddedd7fbb08828966f186e029cc2fac21f
7
- data.tar.gz: ded4f17f6ec2cd4228d306268a755e49ed76c609fd20af0678b890107a737e77915d438f677a203c62d2f7a44f814145121c73db0241694df931bf113f8f6bb1
6
+ metadata.gz: dee4d147950f1fc76ad97db7383849147fca8c12139c2636fc43b1d8578f00145a6ef314990306e37e51c3d74482279fcca88b2e7e3fb606d9721be75db2dcd0
7
+ data.tar.gz: c5dbbb45fdda7b68636680c10a742d5c35ac0f13e1dd7c784e49d8090f4e26ed1902c3b96813c58b9411c8924d64ed49468a4b1f30e192b4bcafa22f72d2a436
@@ -49,7 +49,11 @@ module LogjamAgent
49
49
  app.config.middleware.insert_before(LogjamAgent::Rack::Logger, LogjamAgent::Middleware)
50
50
 
51
51
  if defined?(::ActionDispatch::RemoteIp)
52
- app.config.middleware.delete ::ActionDispatch::RemoteIp
52
+ # see https://github.com/rails/rails/issues/26303
53
+ class DummyMiddleware < Rails::Railtie; end
54
+ app.config.middleware.swap ::ActionDispatch::RemoteIp, DummyMiddleware
55
+ app.config.middleware.delete DummyMiddleware
56
+
53
57
  app.config.middleware.insert_before LogjamAgent::Middleware, ::ActionDispatch::RemoteIp, app.config.action_dispatch.ip_spoofing_check, app.config.action_dispatch.trusted_proxies
54
58
  else
55
59
  require 'logjam_agent/actionpack/lib/action_dispatch/middleware/remote_ip'
@@ -1,3 +1,3 @@
1
1
  module LogjamAgent
2
- VERSION = "0.25.2"
2
+ VERSION = "0.25.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logjam_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.2
4
+ version: 0.25.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Kaes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-27 00:00:00.000000000 Z
11
+ date: 2017-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  version: '0'
186
186
  requirements: []
187
187
  rubyforge_project: logjam_agent
188
- rubygems_version: 2.6.10
188
+ rubygems_version: 2.6.12
189
189
  signing_key:
190
190
  specification_version: 4
191
191
  summary: Logjam client library to be used with logjam