maxmind-db 1.3.2 → 1.4.0
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/CHANGELOG.md +5 -0
- data/Gemfile.lock +31 -17
- data/README.md +2 -2
- data/Rakefile +1 -2
- data/maxmind-db.gemspec +6 -3
- metadata +46 -73
- data/test/data/LICENSE +0 -4
- data/test/data/MaxMind-DB-spec.md +0 -574
- data/test/data/README.md +0 -4
- data/test/data/bad-data/README.md +0 -7
- data/test/data/bad-data/libmaxminddb/libmaxminddb-offset-integer-overflow.mmdb +0 -0
- data/test/data/bad-data/maxminddb-golang/cyclic-data-structure.mmdb +0 -0
- data/test/data/bad-data/maxminddb-golang/invalid-bytes-length.mmdb +0 -1
- data/test/data/bad-data/maxminddb-golang/invalid-data-record-offset.mmdb +0 -0
- data/test/data/bad-data/maxminddb-golang/invalid-map-key-length.mmdb +0 -0
- data/test/data/bad-data/maxminddb-golang/invalid-string-length.mmdb +0 -1
- data/test/data/bad-data/maxminddb-golang/metadata-is-an-uint128.mmdb +0 -1
- data/test/data/bad-data/maxminddb-golang/unexpected-bytes.mmdb +0 -0
- data/test/data/bad-data/maxminddb-python/bad-unicode-in-map-key.mmdb +0 -0
- data/test/data/perltidyrc +0 -12
- data/test/data/source-data/GeoIP2-Anonymous-IP-Test.json +0 -49
- data/test/data/source-data/GeoIP2-City-Test.json +0 -12885
- data/test/data/source-data/GeoIP2-Connection-Type-Test.json +0 -122
- data/test/data/source-data/GeoIP2-Country-Test.json +0 -15904
- data/test/data/source-data/GeoIP2-DensityIncome-Test.json +0 -14
- data/test/data/source-data/GeoIP2-Domain-Test.json +0 -452
- data/test/data/source-data/GeoIP2-Enterprise-Test.json +0 -745
- data/test/data/source-data/GeoIP2-ISP-Test.json +0 -12605
- data/test/data/source-data/GeoIP2-Precision-Enterprise-Test.json +0 -2205
- data/test/data/source-data/GeoIP2-Static-IP-Score-Test.json +0 -2132
- data/test/data/source-data/GeoIP2-User-Count-Test.json +0 -2837
- data/test/data/source-data/GeoLite2-ASN-Test.json +0 -4120
- data/test/data/source-data/GeoLite2-City-Test.json +0 -12804
- data/test/data/source-data/GeoLite2-Country-Test.json +0 -11280
- data/test/data/source-data/README +0 -15
- data/test/data/test-data/GeoIP2-Anonymous-IP-Test.mmdb +0 -0
- data/test/data/test-data/GeoIP2-City-Test-Broken-Double-Format.mmdb +0 -0
- data/test/data/test-data/GeoIP2-City-Test-Invalid-Node-Count.mmdb +0 -0
- data/test/data/test-data/GeoIP2-City-Test.mmdb +0 -0
- data/test/data/test-data/GeoIP2-Connection-Type-Test.mmdb +0 -0
- data/test/data/test-data/GeoIP2-Country-Test.mmdb +0 -0
- data/test/data/test-data/GeoIP2-DensityIncome-Test.mmdb +0 -0
- data/test/data/test-data/GeoIP2-Domain-Test.mmdb +0 -0
- data/test/data/test-data/GeoIP2-Enterprise-Test.mmdb +0 -0
- data/test/data/test-data/GeoIP2-ISP-Test.mmdb +0 -0
- data/test/data/test-data/GeoIP2-Precision-Enterprise-Test.mmdb +0 -0
- data/test/data/test-data/GeoIP2-Static-IP-Score-Test.mmdb +0 -0
- data/test/data/test-data/GeoIP2-User-Count-Test.mmdb +0 -0
- data/test/data/test-data/GeoLite2-ASN-Test.mmdb +0 -0
- data/test/data/test-data/GeoLite2-City-Test.mmdb +0 -0
- data/test/data/test-data/GeoLite2-Country-Test.mmdb +0 -0
- data/test/data/test-data/MaxMind-DB-no-ipv4-search-tree.mmdb +0 -0
- data/test/data/test-data/MaxMind-DB-string-value-entries.mmdb +0 -0
- data/test/data/test-data/MaxMind-DB-test-broken-pointers-24.mmdb +0 -0
- data/test/data/test-data/MaxMind-DB-test-broken-search-tree-24.mmdb +0 -0
- data/test/data/test-data/MaxMind-DB-test-decoder.mmdb +0 -0
- data/test/data/test-data/MaxMind-DB-test-ipv4-24.mmdb +0 -0
- data/test/data/test-data/MaxMind-DB-test-ipv4-28.mmdb +0 -0
- data/test/data/test-data/MaxMind-DB-test-ipv4-32.mmdb +0 -0
- data/test/data/test-data/MaxMind-DB-test-ipv6-24.mmdb +0 -0
- data/test/data/test-data/MaxMind-DB-test-ipv6-28.mmdb +0 -0
- data/test/data/test-data/MaxMind-DB-test-ipv6-32.mmdb +0 -0
- data/test/data/test-data/MaxMind-DB-test-metadata-pointers.mmdb +0 -0
- data/test/data/test-data/MaxMind-DB-test-mixed-24.mmdb +0 -0
- data/test/data/test-data/MaxMind-DB-test-mixed-28.mmdb +0 -0
- data/test/data/test-data/MaxMind-DB-test-mixed-32.mmdb +0 -0
- data/test/data/test-data/MaxMind-DB-test-nested.mmdb +0 -0
- data/test/data/test-data/MaxMind-DB-test-pointer-decoder.mmdb +0 -0
- data/test/data/test-data/README.md +0 -26
- data/test/data/test-data/maps-with-pointers.raw +0 -0
- data/test/data/test-data/write-test-data.pl +0 -695
- data/test/data/tidyall.ini +0 -5
- data/test/mmdb_util.rb +0 -26
- data/test/test_decoder.rb +0 -241
- data/test/test_reader.rb +0 -547
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
All of these but the City and Enterprise files are JSON dumps of the databases
|
|
2
|
-
created by the GeoIP2 build integration tests
|
|
3
|
-
(TestFor::MM::Integration::GeoIP2::Build).
|
|
4
|
-
|
|
5
|
-
Additional data was added to match our legacy test databases.
|
|
6
|
-
|
|
7
|
-
The City file is of unknown origin.
|
|
8
|
-
|
|
9
|
-
The Enterprise file was a single example IP address, modified slightly to
|
|
10
|
-
include all fields. It now has more than that.
|
|
11
|
-
|
|
12
|
-
The Precision file was the normal Enterprise file with an additional marker
|
|
13
|
-
(128.101.101.101) to differentiate the two. It now contains additional
|
|
14
|
-
additions and changes as it is the database used in many MaxMind
|
|
15
|
-
integration tests.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
The write-test-dbs script will create a small set of test databases with a
|
|
2
|
-
variety of data and record sizes (24, 28, & 32 bit).
|
|
3
|
-
|
|
4
|
-
These test databases are useful for testing code that reads MaxMind DB files.
|
|
5
|
-
|
|
6
|
-
There is also a `maps-with-pointers.raw` file. This contains the raw output of
|
|
7
|
-
the MaxMind::DB::Writer::Serializer module, when given a series of maps which
|
|
8
|
-
share some keys and values. It is used to test that decoder code can handle
|
|
9
|
-
pointers to map keys and values, as well as to the whole map.
|
|
10
|
-
|
|
11
|
-
There are several ways to figure out what IP addresses are actually in the
|
|
12
|
-
test databases. You can take a look at the
|
|
13
|
-
[source-data directory](https://github.com/maxmind/MaxMind-DB/tree/main/source-data)
|
|
14
|
-
in this repository. This directory contains JSON files which are used to
|
|
15
|
-
generate many (but not all) of the database files.
|
|
16
|
-
|
|
17
|
-
You can also use the
|
|
18
|
-
[mmdb-dump-database script](https://github.com/maxmind/MaxMind-DB-Reader-perl/blob/main/eg/mmdb-dump-database)
|
|
19
|
-
in the
|
|
20
|
-
[MaxMind-DB-Reader-perl repository](https://github.com/maxmind/MaxMind-DB-Reader-perl).
|
|
21
|
-
|
|
22
|
-
Some databases are intentionally broken and cannot be dumped. You can look at
|
|
23
|
-
the
|
|
24
|
-
[script which generates these databases](https://github.com/maxmind/MaxMind-DB/blob/main/test-data/write-test-data.pl)
|
|
25
|
-
to see what IP addresses they include, which will be necessary for those
|
|
26
|
-
databases which cannot be dumped because they contain intentional errors.
|
|
Binary file
|