meter 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/meter/rails/middleware.rb +6 -3
- data/lib/meter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b3f6cbcdb64131f963a90aa14a2fd38c5461ad1
|
4
|
+
data.tar.gz: 7848bc8332e54c26a311e80e6bfa18be2a87d0bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34552ddfcbd5c87c6fc8422476583723228e6e65bf673e30342c5431fbb9363de0ce62dc145216b639945bc9e4fc6a889b250cefc7ea306db49f91cfdfae7072
|
7
|
+
data.tar.gz: 9cc12d607e86ec1391b77fa3d85665e366986f2787552fb1237aa62c72f9f145ea268921ece814eb9c6cbc8dd3ea25e393541be3f30d7609765b28ce4bf4f96f
|
@@ -10,9 +10,12 @@ module Meter
|
|
10
10
|
|
11
11
|
def call(env)
|
12
12
|
request = Rack::Request.new(env)
|
13
|
-
Meter::MDC.data['request_id']
|
14
|
-
Meter::MDC.data['pid']
|
15
|
-
Meter::MDC.data['ip']
|
13
|
+
Meter::MDC.data['request_id'] = env['action_dispatch.request_id']
|
14
|
+
Meter::MDC.data['pid'] = Process.pid
|
15
|
+
Meter::MDC.data['ip'] = request.ip.presence || '?'
|
16
|
+
Meter::MDC.data['referer'] = request.referer
|
17
|
+
Meter::MDC.data['url'] = request.url
|
18
|
+
Meter::MDC.data['xhr'] = request.xhr
|
16
19
|
|
17
20
|
store_user_agent_data(request)
|
18
21
|
store_geoip_data(request)
|
data/lib/meter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bukowskis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: useragent
|