meter 1.3.0 → 1.4.0
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 +0 -9
- data/lib/meter/version.rb +1 -1
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19cc77079be1f07e3b3f1a9f8d1111832bf841de4cdd87e065396c021acbb6a3
|
4
|
+
data.tar.gz: 549350d7c3bb5115c681cebf907901a186c6a39f0c789602c4041adca3e10b8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15a020f5c8588ccd9807784a5a59de4c27f022e9dd79b35ef1aa87d70e1189042b7c1508970740ac47436cc354fd4a6a0990a32ec31a0135ad9dd1fca1e4cf7e
|
7
|
+
data.tar.gz: c083054a1aaaf03c6c6f0f86e617cfbf36739f05562df728c2690b36164f9c04a08e1efbfe4e027bea666b70af95c5657eead395e59c675ce96e8a253a0a16cb
|
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'useragent'
|
2
|
-
require 'locality'
|
3
2
|
|
4
3
|
module Meter
|
5
4
|
module Rails
|
@@ -18,7 +17,6 @@ module Meter
|
|
18
17
|
Meter::MDC.data['xhr'] = request.xhr?
|
19
18
|
|
20
19
|
store_user_agent_data(request)
|
21
|
-
store_geoip_data(request)
|
22
20
|
|
23
21
|
@app.call(env)
|
24
22
|
ensure
|
@@ -34,13 +32,6 @@ module Meter
|
|
34
32
|
|
35
33
|
Meter::MDC.data['user_agent'] = user_agent.to_s
|
36
34
|
end
|
37
|
-
|
38
|
-
def store_geoip_data(request)
|
39
|
-
lookup = Locality::IP.new request.ip
|
40
|
-
Meter::MDC.data['geoip_country'] = lookup.country_name if lookup.country_name
|
41
|
-
Meter::MDC.data['geoip_city'] = lookup.city_name if lookup.city_name
|
42
|
-
Meter::MDC.data['geoip_coords'] = "#{lookup.latitude},#{lookup.longitude}" if lookup.latitude && lookup.longitude
|
43
|
-
end
|
44
35
|
end
|
45
36
|
end
|
46
37
|
end
|
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.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bukowskis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: useragent
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.16.3
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: locality
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 1.1.0
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 1.1.0
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rspec
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -144,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
130
|
- !ruby/object:Gem::Version
|
145
131
|
version: '0'
|
146
132
|
requirements: []
|
147
|
-
rubygems_version: 3.0.3
|
133
|
+
rubygems_version: 3.0.3.1
|
148
134
|
signing_key:
|
149
135
|
specification_version: 4
|
150
136
|
summary: A generic abstraction layer for fire and forgetting measurements via UDP.
|