dap 1.2.2 → 1.2.3
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/lib/dap/filter/geoip2.rb +1 -1
- data/lib/dap/version.rb +1 -1
- data/test/filters.bats +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: caec5115c33ffe3301d3522090ef651e8ef80cba
|
|
4
|
+
data.tar.gz: f78403df2edc26901708dae7cc326289696d34dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 06f2a048acf014e685c7f7b869ed660253d5d0fa51f3436562e569927594c10820346134197706f027d58747417d5a111c5f0715f3244f7c67d9fada22b25bb0
|
|
7
|
+
data.tar.gz: e0ebcd198d2477bcec6335243906a2ca70437b8cc3aaa51af9703414ba3c3aff0d57f8044cf1812c6920457a8c6fae88073642bbc028f9415662d2372e28fbe6
|
data/lib/dap/filter/geoip2.rb
CHANGED
|
@@ -216,7 +216,7 @@ class FilterGeoIP2LegacyCompat
|
|
|
216
216
|
remap = {
|
|
217
217
|
# geoip2 name -> geoip name
|
|
218
218
|
"city.country.iso_code": "country_code",
|
|
219
|
-
"city.country.name": "
|
|
219
|
+
"city.country.name": "country_name",
|
|
220
220
|
"city.postal.code": "postal_code",
|
|
221
221
|
"city.location.latitude": "latitude",
|
|
222
222
|
"city.location.longitude": "longitude",
|
data/lib/dap/version.rb
CHANGED
data/test/filters.bats
CHANGED
|
@@ -184,11 +184,11 @@ load ./test_common
|
|
|
184
184
|
run bash -c "echo -e '81.2.69.142\n12.81.92.0\n2a02:d9c0::\n2a01:1000::' | GEOIP2_ASN_DATABASE_PATH=test/test_data/geoip2/GeoLite2-ASN-Test.mmdb GEOIP2_CITY_DATABASE_PATH=test/test_data/geoip2/GeoIP2-City-Test.mmdb GEOIP2_ISP_DATABASE_PATH=test/test_data/geoip2/GeoIP2-ISP-Test.mmdb $DAP_EXECUTABLE lines + geo_ip2_city line + geo_ip2_asn line + geo_ip2_isp line + geo_ip2_legacy_compat line + match_remove line.geoip2 + json | jq -Sc -r ."
|
|
185
185
|
assert_success
|
|
186
186
|
# this one only has city data, not ASN/org/ISP
|
|
187
|
-
assert_line --index 0 '{"line":"81.2.69.142","line.city":"London","line.
|
|
187
|
+
assert_line --index 0 '{"line":"81.2.69.142","line.city":"London","line.country_code":"GB","line.country_name":"United Kingdom","line.latitude":"51.5142","line.longitude":"-0.0931","line.postal_code":"","line.region":"ENG","line.region_name":"England"}'
|
|
188
188
|
# this one has ASN/org data in the test databases but none in the city DB
|
|
189
189
|
assert_line --index 1 '{"line":"12.81.92.0","line.asn":"AS7018","line.org":"AT&T Services"}'
|
|
190
190
|
# exists only city
|
|
191
|
-
assert_line --index 2 '{"line":"2a02:d9c0::","line.
|
|
191
|
+
assert_line --index 2 '{"line":"2a02:d9c0::","line.country_code":"TR","line.country_name":"Turkey","line.latitude":"39.05901","line.longitude":"34.91155","line.postal_code":""}'
|
|
192
192
|
# exists in ISP
|
|
193
193
|
assert_line --index 3 '{"line":"2a01:1000::","line.asn":"AS5617","line.org":"Telekomunikacja Polska S.A."}'
|
|
194
194
|
}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rapid7 Research
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-05-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -283,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
283
283
|
version: '0'
|
|
284
284
|
requirements: []
|
|
285
285
|
rubyforge_project:
|
|
286
|
-
rubygems_version: 2.6.
|
|
286
|
+
rubygems_version: 2.6.14.3
|
|
287
287
|
signing_key:
|
|
288
288
|
specification_version: 4
|
|
289
289
|
summary: 'DAP: The Data Analysis Pipeline'
|