fluent-plugin-geoblipper 0.0.4.3 → 0.0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.name = "fluent-plugin-geoblipper"
|
4
|
-
gem.version = "0.0.4.
|
4
|
+
gem.version = "0.0.4.4"
|
5
5
|
gem.authors = ["Sean Dick", "Change.org"]
|
6
6
|
gem.email = ["sean@change.org"]
|
7
7
|
gem.homepage = "https://github.com/seanmdick/fluent-plugin-geoblipper"
|
@@ -21,13 +21,13 @@ class Fluent::GeoBlipperOutput < Fluent::BufferedOutput
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def format(tag, time, record)
|
24
|
-
address = record
|
24
|
+
address = record.delete(@ip_key)
|
25
25
|
loc = @geodata.city(address)
|
26
26
|
extra = {}
|
27
27
|
if loc
|
28
|
-
{latitude: loc.latitude, longitude: loc.longitude}.to_json + "\n"
|
28
|
+
record.merge({latitude: loc.latitude, longitude: loc.longitude}).to_json + "\n"
|
29
29
|
else
|
30
|
-
Fluent::Engine.emit('debug.livemap', Time.now, {message: "geodata not found for #{address}"})
|
30
|
+
# Fluent::Engine.emit('debug.livemap', Time.now, {message: "geodata not found for #{address}"})
|
31
31
|
''
|
32
32
|
end
|
33
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-geoblipper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.4.
|
4
|
+
version: 0.0.4.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-06-
|
13
|
+
date: 2015-06-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fluentd
|