fluent-plugin-filter-geoip 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: 26a2463f0d98d68d9ea2ce3c184a34131a9522b1
4
- data.tar.gz: 1105857bdef779c98cd65f8cd53190a4b7c02920
3
+ metadata.gz: 05bf2b4b2cdf3db890158b53beead941fb448a2e
4
+ data.tar.gz: a86f457353eb3a6c16131819559c952ff345e50a
5
5
  SHA512:
6
- metadata.gz: 789ae5dc1c1b5d326705266f03c4025438720c4122e8526291eb81819fa32861644edccde13ed6e48ad4bc1dcb8cc540d8c796b91cfce32f79d1cfec9ce6c8ec
7
- data.tar.gz: f12393c7400e8bda40919e5e45e5a41bff0b43ce30bdda67ef6d3ec8ec039e82e38030b8f52484e934347bbcc8ecd2a7ec71ba6caa6182e63b73824f0aea3e12
6
+ metadata.gz: 8bc1d5235b97701a5d2373d712abdc274cd25bffedd13b035135305bcf5e20b7e59ad0287f28280df1cd8778a9527ef96fae9c7dd1a06b167dd9af220bf74c5c
7
+ data.tar.gz: 09325fe6bf9b038928a594ad461bbf100ef3e13c9c58e46577141649e7f1728b61c547dfa6d81bb4a8146e6e083194ce8f59734e33baaf2de640a14cbe3d10ed
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-filter-geoip"
7
- spec.version = "0.2.1"
7
+ spec.version = "0.2.2"
8
8
  spec.authors = ["Minoru Osuka"]
9
9
  spec.email = ["minoru.osuka@gmail.com"]
10
10
 
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-filter-geoip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minoru Osuka