fluent-plugin-filter-geoip 0.2.1 → 0.2.2
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.
- checksums.yaml +4 -4
- data/fluent-plugin-filter-geoip.gemspec +1 -1
- data/lib/fluent/plugin/filter_geoip.rb +0 -11
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05bf2b4b2cdf3db890158b53beead941fb448a2e
|
4
|
+
data.tar.gz: a86f457353eb3a6c16131819559c952ff345e50a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bc1d5235b97701a5d2373d712abdc274cd25bffedd13b035135305bcf5e20b7e59ad0287f28280df1cd8778a9527ef96fae9c7dd1a06b167dd9af220bf74c5c
|
7
|
+
data.tar.gz: 09325fe6bf9b038928a594ad461bbf100ef3e13c9c58e46577141649e7f1728b61c547dfa6d81bb4a8146e6e083194ce8f59734e33baaf2de640a14cbe3d10ed
|
@@ -178,7 +178,6 @@ module Fluent
|
|
178
178
|
record.merge!(to_flatten(subdivision, [@field_prefix, 'subdivisions', i.to_s], @field_delimiter))
|
179
179
|
i = i + 1
|
180
180
|
end
|
181
|
-
#record.merge!(to_flatten(geoip_hash['subdivisions'], [@field_prefix, 'subdivisions'], @field_delimiter))
|
182
181
|
else
|
183
182
|
record[[@field_prefix, 'subdivisions'].join(@field_delimiter)] = geoip_hash['subdivisions'].to_json
|
184
183
|
end
|
@@ -217,16 +216,6 @@ module Fluent
|
|
217
216
|
|
218
217
|
if hash[key].instance_of?(Hash) then
|
219
218
|
output.merge!(to_flatten(hash[key], stack, delimiter))
|
220
|
-
elsif hash[key].instance_of?(Array) then
|
221
|
-
i = 0
|
222
|
-
hash[key].each do |data|
|
223
|
-
stack.push i
|
224
|
-
if data.instance_of?(Hash) then
|
225
|
-
output.merge!(to_flatten(data, stack, delimiter))
|
226
|
-
end
|
227
|
-
i = i + 1
|
228
|
-
stack.pop
|
229
|
-
end
|
230
219
|
else
|
231
220
|
output[stack.join(delimiter)] = hash[key]
|
232
221
|
end
|