meter 1.2.7 → 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: dd2083f63e049817a3aa4437645a774b5a00384c29126aae64d1b7978d09e187
4
- data.tar.gz: 39a7bbc6750a878f64bb4fa362896749cd86ceb75a39efbceec43f6a0d8156a8
3
+ metadata.gz: 19cc77079be1f07e3b3f1a9f8d1111832bf841de4cdd87e065396c021acbb6a3
4
+ data.tar.gz: 549350d7c3bb5115c681cebf907901a186c6a39f0c789602c4041adca3e10b8b
5
5
  SHA512:
6
- metadata.gz: c13f7be4e34bde0fe5dbea980036f8ebf3818fa6883b16b0751d57753158f12fcaaf25c2b6d9678062220515430232009728b877157332e922d052a82fabb12f
7
- data.tar.gz: 5d848f32acd58beb81b90d367597be38db32bf8a52dc53f76d947acda79f8730ff69487fb1102fa5eb631fde80e5d0537921775f493d3b5b3625055a6eb21ed8
6
+ metadata.gz: 15a020f5c8588ccd9807784a5a59de4c27f022e9dd79b35ef1aa87d70e1189042b7c1508970740ac47436cc354fd4a6a0990a32ec31a0135ad9dd1fca1e4cf7e
7
+ data.tar.gz: c083054a1aaaf03c6c6f0f86e617cfbf36739f05562df728c2690b36164f9c04a08e1efbfe4e027bea666b70af95c5657eead395e59c675ce96e8a253a0a16cb
@@ -14,7 +14,7 @@ module Meter
14
14
  end
15
15
 
16
16
  def output_data(data)
17
- ::Meter.config.logger.info data
17
+ ::Meter.config.logger.info payload: data
18
18
  end
19
19
  end
20
20
  end
@@ -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,8 +1,8 @@
1
1
  module Meter
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
- MINOR = 2
5
- TINY = 7
4
+ MINOR = 4
5
+ TINY = 0
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.7
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: 2019-05-03 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,8 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
130
  - !ruby/object:Gem::Version
145
131
  version: '0'
146
132
  requirements: []
147
- rubyforge_project:
148
- rubygems_version: 2.7.6
133
+ rubygems_version: 3.0.3.1
149
134
  signing_key:
150
135
  specification_version: 4
151
136
  summary: A generic abstraction layer for fire and forgetting measurements via UDP.