@@ -1,3 +1,7 @@
+1.000000 2014-09-22
+
+- First production release. No non-test changes.
+
0.060001 2014-09-15
- Changed an error message to match the error string used by
@@ -78,10 +78,10 @@ t/MaxMind/DB/Reader/Decoder-types/uint32.t
t/MaxMind/DB/Reader/Decoder-types/uint64.t
t/MaxMind/DB/Reader/Decoder-types/utf8_string.t
t/MaxMind/DB/Reader/Decoder.t
-t/author-no-tabs.t
t/author-pod-spell.t
t/lib/Test/MaxMind/DB/Reader.pm
t/lib/Test/MaxMind/DB/Reader/Decoder.pm
t/release-cpan-changes.t
t/release-eol.t
+t/release-no-tabs.t
t/release-pod-syntax.t
@@ -5,7 +5,7 @@
"Olaf Alders <oalders@maxmind.com>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 5.020, CPAN::Meta::Converter version 2.142060",
+ "generated_by" : "Dist::Zilla version 5.020, CPAN::Meta::Converter version 2.141170",
"license" : [
"artistic_2"
],
@@ -25,8 +25,7 @@
"Test::CPAN::Changes" : "0.19",
"Test::More" : "0",
"Test::NoTabs" : "0",
- "Test::Pod" : "1.41",
- "Test::Spelling" : "0.12"
+ "Test::Pod" : "1.41"
}
},
"runtime" : {
@@ -91,7 +90,7 @@
"web" : "https://github.com/maxmind/MaxMind-DB-Reader-perl"
}
},
- "version" : "0.060001",
+ "version" : "1.000000",
"x_authority" : "cpan:MAXMIND",
"x_contributors" : [
"Greg Oschwald <goschwald@maxmind.com>",
@@ -18,7 +18,7 @@ build_requires:
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 0
-generated_by: 'Dist::Zilla version 5.020, CPAN::Meta::Converter version 2.142060'
+generated_by: 'Dist::Zilla version 5.020, CPAN::Meta::Converter version 2.141170'
license: artistic_2
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -59,7 +59,7 @@ requires:
resources:
bugtracker: https://github.com/maxmind/MaxMind-DB-Reader-perl/issues
repository: git://github.com/maxmind/MaxMind-DB-Reader-perl.git
-version: '0.060001'
+version: '1.000000'
x_authority: cpan:MAXMIND
x_contributors:
- 'Greg Oschwald <goschwald@maxmind.com>'
@@ -17,9 +17,9 @@ my %WriteMakefileArgs = (
},
"DISTNAME" => "MaxMind-DB-Reader",
"EXE_FILES" => [
- "bin/mmdb-dump-search-tree",
- "bin/mmdb-dump-metadata",
"bin/mmdb-dump-database",
+ "bin/mmdb-dump-metadata",
+ "bin/mmdb-dump-search-tree",
"bin/mmdb-verify-database"
],
"LICENSE" => "artistic_2",
@@ -69,7 +69,7 @@ my %WriteMakefileArgs = (
"lib" => 0,
"utf8" => 0
},
- "VERSION" => "0.060001",
+ "VERSION" => "1.000000",
"test" => {
"TESTS" => "t/*.t t/MaxMind/DB/*.t t/MaxMind/DB/Reader/*.t t/MaxMind/DB/Reader/Decoder-types/*.t"
}
@@ -2,7 +2,7 @@ NAME
MaxMind::DB::Reader - Read MaxMind DB files and look up IP addresses
VERSION
- version 0.060001
+ version 1.000000
SYNOPSIS
my $reader = MaxMind::DB::Reader->new( file => 'path/to/database.mmdb' );
@@ -4,7 +4,7 @@ author = Olaf Alders <oalders@maxmind.com>
license = Artistic_2_0
copyright_holder = MaxMind, Inc.
-version = 0.060001
+version = 1.000000
[NextRelease]
format = %-8v %{yyyy-MM-dd}d
@@ -1,5 +1,5 @@
package MaxMind::DB::Reader::Data::Container;
-$MaxMind::DB::Reader::Data::Container::VERSION = '0.060001';
+$MaxMind::DB::Reader::Data::Container::VERSION = '1.000000';
use strict;
use warnings;
@@ -1,5 +1,5 @@
package MaxMind::DB::Reader::Data::EndMarker;
-$MaxMind::DB::Reader::Data::EndMarker::VERSION = '0.060001';
+$MaxMind::DB::Reader::Data::EndMarker::VERSION = '1.000000';
use strict;
use warnings;
@@ -1,5 +1,5 @@
package MaxMind::DB::Reader::Decoder;
-$MaxMind::DB::Reader::Decoder::VERSION = '0.060001';
+$MaxMind::DB::Reader::Decoder::VERSION = '1.000000';
use strict;
use warnings;
use namespace::autoclean;
@@ -1,5 +1,5 @@
package MaxMind::DB::Reader::PP;
-$MaxMind::DB::Reader::PP::VERSION = '0.060001';
+$MaxMind::DB::Reader::PP::VERSION = '1.000000';
use strict;
use warnings;
use namespace::autoclean;
@@ -1,5 +1,5 @@
package MaxMind::DB::Reader::Role::HasDecoder;
-$MaxMind::DB::Reader::Role::HasDecoder::VERSION = '0.060001';
+$MaxMind::DB::Reader::Role::HasDecoder::VERSION = '1.000000';
use strict;
use warnings;
use namespace::autoclean;
@@ -1,5 +1,5 @@
package MaxMind::DB::Reader::Role::HasMetadata;
-$MaxMind::DB::Reader::Role::HasMetadata::VERSION = '0.060001';
+$MaxMind::DB::Reader::Role::HasMetadata::VERSION = '1.000000';
use strict;
use warnings;
use namespace::autoclean;
@@ -1,5 +1,5 @@
package MaxMind::DB::Reader::Role::NodeReader;
-$MaxMind::DB::Reader::Role::NodeReader::VERSION = '0.060001';
+$MaxMind::DB::Reader::Role::NodeReader::VERSION = '1.000000';
use strict;
use warnings;
use namespace::autoclean;
@@ -1,5 +1,5 @@
package MaxMind::DB::Reader::Role::Reader;
-$MaxMind::DB::Reader::Role::Reader::VERSION = '0.060001';
+$MaxMind::DB::Reader::Role::Reader::VERSION = '1.000000';
use strict;
use warnings;
use namespace::autoclean;
@@ -1,5 +1,5 @@
package MaxMind::DB::Reader::Role::Sysreader;
-$MaxMind::DB::Reader::Role::Sysreader::VERSION = '0.060001';
+$MaxMind::DB::Reader::Role::Sysreader::VERSION = '1.000000';
use strict;
use warnings;
use namespace::autoclean;
@@ -1,5 +1,5 @@
package MaxMind::DB::Reader;
-$MaxMind::DB::Reader::VERSION = '0.060001';
+$MaxMind::DB::Reader::VERSION = '1.000000';
use strict;
use warnings;
@@ -40,7 +40,7 @@ MaxMind::DB::Reader - Read MaxMind DB files and look up IP addresses
=head1 VERSION
-version 0.060001
+version 1.000000
=head1 SYNOPSIS
@@ -1,5 +1,5 @@
package MaxMind::DB::Verifier;
-$MaxMind::DB::Verifier::VERSION = '0.060001';
+$MaxMind::DB::Verifier::VERSION = '1.000000';
use strict;
use warnings;
use namespace::autoclean;
@@ -366,8 +366,8 @@ sub write_broken_geoip2_city_db {
"GeoIP2 $type $description Database (a small sample of real GeoIP2 data)",
$type eq 'City' ? ( zh => '小型数据库' ) : (),
},
- alias_ipv6_to_ipv4 => 1,
- map_key_type_callback => $type_cb,
+ alias_ipv6_to_ipv4 => 1,
+ map_key_type_callback => $type_cb,
);
my $nodes = decode_json(
@@ -1,5 +1,6 @@
use strict;
use warnings;
+use autodie;
use Test::Fatal;
use Test::More;
@@ -8,6 +9,7 @@ use lib 't/lib';
use Test::MaxMind::DB::Reader;
use MaxMind::DB::Reader;
+use Path::Class qw( tempdir );
{ # Test broken doubles
my $reader
@@ -42,9 +44,15 @@ use MaxMind::DB::Reader;
}
{ # test non-database
+ my $dir = tempdir( CLEANUP => 1 );
+ my $file = $dir->file('garbage');
+ open my $fh, '>', $file;
+ print {$fh} "garbage text\n";
+ close $fh;
+
like(
- exception { MaxMind::DB::Reader->new( file => 'Changes' ) },
- qr/Error opening database file "Changes": The MaxMind DB file contains invalid metadata/,
+ exception { MaxMind::DB::Reader->new( file => $file ) },
+ qr/Error opening database file "\Q$file\E": The MaxMind DB file contains invalid metadata/,
'expected exception with unknown file type'
);
}
@@ -1,64 +0,0 @@
-
-BEGIN {
- unless ($ENV{AUTHOR_TESTING}) {
- require Test::More;
- Test::More::plan(skip_all => 'these tests are for testing by the author');
- }
-}
-
-use strict;
-use warnings;
-
-# this test was generated with Dist::Zilla::Plugin::Test::NoTabs 0.09
-
-use Test::More 0.88;
-use Test::NoTabs;
-
-my @files = (
- 'bin/mmdb-dump-database',
- 'bin/mmdb-dump-metadata',
- 'bin/mmdb-dump-search-tree',
- 'bin/mmdb-verify-database',
- 'lib/MaxMind/DB/Reader.pm',
- 'lib/MaxMind/DB/Reader/Data/Container.pm',
- 'lib/MaxMind/DB/Reader/Data/EndMarker.pm',
- 'lib/MaxMind/DB/Reader/Decoder.pm',
- 'lib/MaxMind/DB/Reader/PP.pm',
- 'lib/MaxMind/DB/Reader/Role/HasDecoder.pm',
- 'lib/MaxMind/DB/Reader/Role/HasMetadata.pm',
- 'lib/MaxMind/DB/Reader/Role/NodeReader.pm',
- 'lib/MaxMind/DB/Reader/Role/Reader.pm',
- 'lib/MaxMind/DB/Reader/Role/Sysreader.pm',
- 'lib/MaxMind/DB/Verifier.pm',
- 't/MaxMind/DB/Reader-broken-databases.t',
- 't/MaxMind/DB/Reader-decoder.t',
- 't/MaxMind/DB/Reader-no-ipv4-search-tree.t',
- 't/MaxMind/DB/Reader.t',
- 't/MaxMind/DB/Reader/Decoder-maps-with-pointers.t',
- 't/MaxMind/DB/Reader/Decoder-types/array.t',
- 't/MaxMind/DB/Reader/Decoder-types/boolean.t',
- 't/MaxMind/DB/Reader/Decoder-types/bytes.t',
- 't/MaxMind/DB/Reader/Decoder-types/container.t',
- 't/MaxMind/DB/Reader/Decoder-types/double.t',
- 't/MaxMind/DB/Reader/Decoder-types/end_marker.t',
- 't/MaxMind/DB/Reader/Decoder-types/float.t',
- 't/MaxMind/DB/Reader/Decoder-types/int32.t',
- 't/MaxMind/DB/Reader/Decoder-types/map.t',
- 't/MaxMind/DB/Reader/Decoder-types/pointer.t',
- 't/MaxMind/DB/Reader/Decoder-types/uint128.t',
- 't/MaxMind/DB/Reader/Decoder-types/uint16.t',
- 't/MaxMind/DB/Reader/Decoder-types/uint32.t',
- 't/MaxMind/DB/Reader/Decoder-types/uint64.t',
- 't/MaxMind/DB/Reader/Decoder-types/utf8_string.t',
- 't/MaxMind/DB/Reader/Decoder.t',
- 't/author-no-tabs.t',
- 't/author-pod-spell.t',
- 't/lib/Test/MaxMind/DB/Reader.pm',
- 't/lib/Test/MaxMind/DB/Reader/Decoder.pm',
- 't/release-cpan-changes.t',
- 't/release-eol.t',
- 't/release-pod-syntax.t'
-);
-
-notabs_ok($_) foreach @files;
-done_testing;
@@ -10,7 +10,7 @@ use strict;
use warnings;
use Test::More;
-# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.006008
+# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.006007
use Test::Spelling 0.12;
use Pod::Wordlist;
@@ -59,8 +59,8 @@ Role
HasDecoder
Data
EndMarker
-NodeReader
PP
+NodeReader
HasMetadata
Container
Sysreader
@@ -0,0 +1,36 @@
+
+BEGIN {
+ unless ($ENV{RELEASE_TESTING}) {
+ require Test::More;
+ Test::More::plan(skip_all => 'these tests are for release candidate testing');
+ }
+}
+
+use strict;
+use warnings;
+
+# this test was generated with Dist::Zilla::Plugin::Test::NoTabs 0.05
+
+use Test::More 0.88;
+use Test::NoTabs;
+
+my @files = (
+ 'bin/mmdb-dump-database',
+ 'bin/mmdb-dump-metadata',
+ 'bin/mmdb-dump-search-tree',
+ 'bin/mmdb-verify-database',
+ 'lib/MaxMind/DB/Reader.pm',
+ 'lib/MaxMind/DB/Reader/Data/Container.pm',
+ 'lib/MaxMind/DB/Reader/Data/EndMarker.pm',
+ 'lib/MaxMind/DB/Reader/Decoder.pm',
+ 'lib/MaxMind/DB/Reader/PP.pm',
+ 'lib/MaxMind/DB/Reader/Role/HasDecoder.pm',
+ 'lib/MaxMind/DB/Reader/Role/HasMetadata.pm',
+ 'lib/MaxMind/DB/Reader/Role/NodeReader.pm',
+ 'lib/MaxMind/DB/Reader/Role/Reader.pm',
+ 'lib/MaxMind/DB/Reader/Role/Sysreader.pm',
+ 'lib/MaxMind/DB/Verifier.pm'
+);
+
+notabs_ok($_) foreach @files;
+done_testing;