logstash-filter-geoip 5.0.2-java → 5.0.3-java

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9b339f7fcaa0931cbe7ab56142d5b488afe3174e
4
- data.tar.gz: 94704117d529a64f0fff27e84c5c20126d6e61c8
2
+ SHA256:
3
+ metadata.gz: c3a7b60b34cf996e9e51d36176e68003b37bbb070135c8bdd2af05ae13d0cc18
4
+ data.tar.gz: 309d115fbcf29f69d0be327a98b19b10b12c285f1bfa551924bd54808e569231
5
5
  SHA512:
6
- metadata.gz: 054f9aebd4881713da2a592ebc3beed0f0b937ff724904ac54ee2558b23d65d6c889c98c6b5f6220d6130750b96bb0b727cc1b8da066a6a74fc6daac6aa949c1
7
- data.tar.gz: c06f3e6c54e1839054a4a1c3bcf9a9a6fa5a102fd3a732f0404803ca40269696251859a7d1691befad80b35597602945bdb5805e5254f4a74ea513dbb3853106
6
+ metadata.gz: 4a51aa23d1da0e9b303346902a0e64ce8f9ac2eb4492a1d217e526e68347df46940f6089e32372414f9a1eb9fe4df03d3e366bc44d5dd88efc331f329899351a
7
+ data.tar.gz: 1da7df8c807dc27af399dee5da36214078e98ca73033fea7142a854aadecef15a0f64ceeb1a62cc2107fbb8ee97c566daaf84d4346d5bc8d39729594cfbb3b0b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 5.0.3
2
+ - Skip lookup operation if source field contains an empty string
3
+ - Update of the GeoIP2 DB
4
+
1
5
  ## 5.0.2
2
6
  - Update gemspec summary
3
7
 
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-geoip'
4
- s.version = '5.0.2'
4
+ s.version = '5.0.3'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Adds geographical information about an IP address"
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/logstash-plugin install gemname. This gem is not a stand-alone program"
@@ -93,8 +93,8 @@ describe LogStash::Filters::GeoIP do
93
93
 
94
94
  it "should set other subfields of 'target' properly" do
95
95
  expect(event.get("target").to_hash.keys.sort).to eq(["city_name", "ip", "region_name"])
96
- expect(event.get("[target][city_name]")).to eq("Salem")
97
- expect(event.get("[target][region_name]")).to eq("New Hampshire")
96
+ expect(event.get("[target][city_name]")).to eq("Watertown")
97
+ expect(event.get("[target][region_name]")).to eq("Massachusetts")
98
98
  end
99
99
 
100
100
  end
@@ -183,6 +183,14 @@ describe LogStash::Filters::GeoIP do
183
183
  sample("ip" => "~") do
184
184
  expect{ subject }.to_not raise_error
185
185
  end
186
+
187
+ sample("ip" => "") do
188
+ expect{ subject }.to_not raise_error
189
+ end
190
+
191
+ sample("ip" => " ") do
192
+ expect{ subject }.to_not raise_error
193
+ end
186
194
  end
187
195
 
188
196
  describe "filter method outcomes" do
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-geoip
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.2
4
+ version: 5.0.3
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-13 00:00:00.000000000 Z
11
+ date: 2017-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -58,7 +58,9 @@ dependencies:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
- description: This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program
61
+ description: This gem is a Logstash plugin required to be installed on top of the
62
+ Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
63
+ gem is not a stand-alone program
62
64
  email: info@elastic.co
63
65
  executables: []
64
66
  extensions: []
@@ -106,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
108
  version: '0'
107
109
  requirements: []
108
110
  rubyforge_project:
109
- rubygems_version: 2.4.8
111
+ rubygems_version: 2.6.13
110
112
  signing_key:
111
113
  specification_version: 4
112
114
  summary: Adds geographical information about an IP address