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 +4 -4
- data/lib/logjam_agent/railtie.rb +5 -1
- data/lib/logjam_agent/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb8308e2189c845b7b6cbbc7d9935a46332aba00
|
4
|
+
data.tar.gz: 7e4946075f1fe8b79cc9345cdbd2cb1f2f8f5d25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dee4d147950f1fc76ad97db7383849147fca8c12139c2636fc43b1d8578f00145a6ef314990306e37e51c3d74482279fcca88b2e7e3fb606d9721be75db2dcd0
|
7
|
+
data.tar.gz: c5dbbb45fdda7b68636680c10a742d5c35ac0f13e1dd7c784e49d8090f4e26ed1902c3b96813c58b9411c8924d64ed49468a4b1f30e192b4bcafa22f72d2a436
|
data/lib/logjam_agent/railtie.rb
CHANGED
@@ -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
|
-
|
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'
|
data/lib/logjam_agent/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|