logstash-filter-geoip 5.0.0-java → 5.0.4-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: b51729b78c4efdfee230dea51aa3444295f3c4e3
4
- data.tar.gz: 8d05b9fab90e0937f32b1b1d064fea992f73a1e7
2
+ SHA256:
3
+ metadata.gz: 52aba5d2797bc0a4f52172d054e8be8b827e9f8a7efa40023ebfb03831d53b33
4
+ data.tar.gz: 01a914235a52b939c096f2da5d49fb80c656e9795c583490c2f842fc8dd1436d
5
5
  SHA512:
6
- metadata.gz: dfd9679615064a2b7a9556c115aaac0a188a16fecdb7a4746284846ec667d1f51075ad917b06c4a9d16d41bfa4ebeed677693c6304db007da17267314bc16290
7
- data.tar.gz: 64f1464722dacc2b9a2fd34099d7a9f4cfc78a449f27210134f534a1b292ca11f0f175c99418c9a7b62169487ae83008390b14d8d122ba71384a49b29e468a4e
6
+ metadata.gz: b04116839e20c6495cb276f5a05372a2a04fbedc7b62ea7957bb51a4c467611c938c7a2d1b5961ba82a15dce4a8f39af33a207b94668bb559e2b982b77425a64
7
+ data.tar.gz: 159a08e71b88dcdc5a0975fe8b49a130712376438b44e1c59e9ec1f9441407f3083051239f3f1be4c60b2f9c0fe4c13be4a1b150c3112873ac7bd7d076b46e39
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## 5.0.4
2
+ - Updated Log4j dependency to 2.17.0
3
+
4
+ ## 5.0.3
5
+ - Skip lookup operation if source field contains an empty string
6
+ - Update of the GeoIP2 DB
7
+
8
+ ## 5.0.2
9
+ - Update gemspec summary
10
+
11
+ ## 5.0.1
12
+ - Fix some documentation issues
13
+
1
14
  ## 5.0.0
2
15
  - Make deprecated field lru_cache_size obsolete
3
16
 
@@ -3,4 +3,4 @@
3
3
  require 'jar_dependencies'
4
4
  require_jar('com.maxmind.geoip2', 'geoip2', '2.9.0')
5
5
  require_jar('com.maxmind.db', 'maxmind-db', '1.2.2')
6
- require_jar('org.logstash.filters', 'logstash-filter-geoip', '4.2.0')
6
+ require_jar('org.logstash.filters', 'logstash-filter-geoip', '5.0.4')
@@ -1,9 +1,9 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-geoip'
4
- s.version = '5.0.0'
4
+ s.version = '5.0.4'
5
5
  s.licenses = ['Apache License (2.0)']
6
- s.summary = "$summary"
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"
8
8
  s.authors = ["Elastic"]
9
9
  s.email = 'info@elastic.co'
@@ -93,7 +93,7 @@ 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("Worcester")
96
+ expect(event.get("[target][city_name]")).to eq("Watertown")
97
97
  expect(event.get("[target][region_name]")).to eq("Massachusetts")
98
98
  end
99
99
 
@@ -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.0
4
+ version: 5.0.4
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-01 00:00:00.000000000 Z
11
+ date: 2021-12-18 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: []
@@ -79,10 +81,9 @@ files:
79
81
  - spec/filters/geoip_spec.rb
80
82
  - vendor/GeoLite2-ASN.mmdb
81
83
  - vendor/GeoLite2-City.mmdb
82
- - vendor/LICENSE.txt
83
84
  - vendor/jar-dependencies/com/maxmind/db/maxmind-db/1.2.2/maxmind-db-1.2.2.jar
84
85
  - vendor/jar-dependencies/com/maxmind/geoip2/geoip2/2.9.0/geoip2-2.9.0.jar
85
- - vendor/jar-dependencies/org/logstash/filters/logstash-filter-geoip/4.2.0/logstash-filter-geoip-4.2.0.jar
86
+ - vendor/jar-dependencies/org/logstash/filters/logstash-filter-geoip/5.0.4/logstash-filter-geoip-5.0.4.jar
86
87
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
87
88
  licenses:
88
89
  - Apache License (2.0)
@@ -105,10 +106,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
106
  - !ruby/object:Gem::Version
106
107
  version: '0'
107
108
  requirements: []
108
- rubyforge_project:
109
- rubygems_version: 2.4.8
109
+ rubygems_version: 3.1.6
110
110
  signing_key:
111
111
  specification_version: 4
112
- summary: "$summary"
112
+ summary: Adds geographical information about an IP address
113
113
  test_files:
114
114
  - spec/filters/geoip_spec.rb
data/vendor/LICENSE.txt DELETED
@@ -1,3 +0,0 @@
1
- This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/.
2
-
3
- This database incorporates GeoNames [http://www.geonames.org] geographical data, which is made available under the Creative Commons Attribution 3.0 License. To view a copy of this license, visit http://www.creativecommons.org/licenses/by/3.0/us/.