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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c623ec75b3dbafa90e381faf47007b7cedf897ab9713ff45b4b7d274280054a2
4
- data.tar.gz: 4acb548008b84b1c5019a33534fa5320c96a0b942b043f0a8ed6bf57c41dfc1a
3
+ metadata.gz: 19cc77079be1f07e3b3f1a9f8d1111832bf841de4cdd87e065396c021acbb6a3
4
+ data.tar.gz: 549350d7c3bb5115c681cebf907901a186c6a39f0c789602c4041adca3e10b8b
5
5
  SHA512:
6
- metadata.gz: caa06fd4a0e6afded4227c7c159fa411137db1d2a2a08895688f0dd5a471411a987efb56187af62e3ab122f109cb23db31cf348cd9aa0c5434076b5d2506c53d
7
- data.tar.gz: a3403fc15edd7e29205cf905d6d6d69f4fa47965df3d72a92ecad96fb98bfb50f39c06cf4894c6d38bb260b88658690ec928e41dca3a811d7891da389b5c2387
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
@@ -1,7 +1,7 @@
1
1
  module Meter
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
- MINOR = 3
4
+ MINOR = 4
5
5
  TINY = 0
6
6
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
7
7
  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.3.0
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: 2020-12-16 00:00:00.000000000 Z
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.