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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49b88e1042ae098d5a6f155f43a8b56cf07f3309
4
- data.tar.gz: be9549ae95fe98d1a193bc20883e5a079c07d911
3
+ metadata.gz: 8b3f6cbcdb64131f963a90aa14a2fd38c5461ad1
4
+ data.tar.gz: 7848bc8332e54c26a311e80e6bfa18be2a87d0bd
5
5
  SHA512:
6
- metadata.gz: 7a90c89c3f78075dc68e96f32a82b4c62d777ffb3297ef721f2e61f7ac614f1c9010472aca2a253a0d08fc10c57ef1705690db665c9d11b6c93a843e4bc19bca
7
- data.tar.gz: dc334243bb9fa5d724730599ac9247f5851a111eadb6aec7b272477e21e57fc2a2023e5cd8cb6162395514ab8dad773bcd639658f0a4c2d5c598bf9eae8a4d10
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'] = env['action_dispatch.request_id']
14
- Meter::MDC.data['pid'] = Process.pid
15
- Meter::MDC.data['ip'] = request.ip.presence || '?'
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
@@ -2,7 +2,7 @@ module Meter
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 2
5
- TINY = 1
5
+ TINY = 2
6
6
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
7
7
  end
8
8
  end
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.1
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-01-29 00:00:00.000000000 Z
11
+ date: 2018-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: useragent