logstash-filter-geoip 1.1.0 → 1.1.1

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: 9d5c90fa4938034e2c5ed20e1351df96ccf0a943
4
- data.tar.gz: e69c420b023bc2f13db5d7b5844e6abe65325900
3
+ metadata.gz: 65ae4ed21b459fa2df87da70fb069ecaba4d6175
4
+ data.tar.gz: 845a47c02f6a2e5d2970dd2b1c7f3b15cab81e0f
5
5
  SHA512:
6
- metadata.gz: d8a75e6eb497f9d400ba1007c0dd370e35ea3447a7f523cd8719076a0f8b68edb854e58e7bc6716be4974bf10bffb3bf76f2dadd6918e8b28c3e5a18f8bd4403
7
- data.tar.gz: a8655cbb27a53d6f4cfe48c0442475a82b7bdbf04ef8af099fc2155f581f534b15fdbf9085ee3c9f6a7b30c8a0ae622e7a65a807a06b4be6094755c67630a445
6
+ metadata.gz: afec25e89ce13584cccc90b9fb11675d9444e4c1d4e10db879382905d0225d67c437f8a076b7b3cd8500d4c59750d0dc800e74358d231a871d4ea3f1edaae3e6
7
+ data.tar.gz: 20274d8df82fdf5c99ee26f2e3f4762a0da7ab892fea19409138b7e190c98c7be4250317742f8b7fc16f4dfe9f82b57e6a536202aec7ec77a498c3ffd32caa27
@@ -1,2 +1,4 @@
1
+ * 1.1.1
2
+ - Lazy-load LRU cache
1
3
  * 1.1.0
2
4
  - Add LRU cache
@@ -3,7 +3,6 @@ require "logstash/filters/base"
3
3
  require "logstash/namespace"
4
4
  require "tempfile"
5
5
  require "lru_redux"
6
- require "geoip"
7
6
 
8
7
  # The GeoIP filter adds information about the geographical location of IP addresses,
9
8
  # based on data from the Maxmind database.
@@ -84,6 +83,8 @@ class LogStash::Filters::GeoIP < LogStash::Filters::Base
84
83
 
85
84
  public
86
85
  def register
86
+ require "geoip"
87
+
87
88
  if @database.nil?
88
89
  @database = ::Dir.glob(::File.join(::File.expand_path("../../../vendor/", ::File.dirname(__FILE__)),"GeoLiteCity*.dat")).first
89
90
  if !File.exists?(@database)
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-geoip'
4
- s.version = '1.1.0'
4
+ s.version = '1.1.1'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "$summary"
7
7
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-geoip
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic