diff -Nru libdata-guid-perl-0.048/Changes libdata-guid-perl-0.049/Changes --- libdata-guid-perl-0.048/Changes 2013-12-13 13:23:36.000000000 +0000 +++ libdata-guid-perl-0.049/Changes 2017-01-24 00:05:02.000000000 +0000 @@ -1,5 +1,11 @@ Revision history for Data-GUID +0.049 2017-01-23 19:04:58-05:00 America/New_York + - Data::UUID can sometimes produce duplicate UUIDs when a single UUID + generator is used on both sides of a fork. Data::GUID now silently + replaces its UUID generator when the pid changes. (bug reported by + Matthew Horsfall) + 0.048 2013-12-13 08:23:33 America/New_York update bugtracker and repo links diff -Nru libdata-guid-perl-0.048/debian/changelog libdata-guid-perl-0.049/debian/changelog --- libdata-guid-perl-0.048/debian/changelog 2014-05-19 18:50:43.000000000 +0000 +++ libdata-guid-perl-0.049/debian/changelog 2017-11-04 09:17:06.000000000 +0000 @@ -1,3 +1,21 @@ +libdata-guid-perl (0.049-1) unstable; urgency=medium + + * Team upload + + [ Salvatore Bonaccorso ] + * Update Vcs-Browser URL to cgit web frontend + + [ Damyan Ivanov ] + * New upstream version 0.049 + * bump debehelper compatibility level to 9 + * refresh 2001_avoid_inflated_versioning.patch to apply cleanly + * add Testsuite header + * declare conformance with Policy 4.1.1 + * use https for Vcs-Git URL + * use https protocol for watch URL + + -- Damyan Ivanov Sat, 04 Nov 2017 09:17:06 +0000 + libdata-guid-perl (0.048-1) unstable; urgency=medium [ upstream ] diff -Nru libdata-guid-perl-0.048/debian/compat libdata-guid-perl-0.049/debian/compat --- libdata-guid-perl-0.048/debian/compat 2014-05-19 18:38:30.000000000 +0000 +++ libdata-guid-perl-0.049/debian/compat 2017-11-04 09:09:42.000000000 +0000 @@ -1 +1 @@ -8 +9 diff -Nru libdata-guid-perl-0.048/debian/control libdata-guid-perl-0.049/debian/control --- libdata-guid-perl-0.048/debian/control 2014-05-19 18:50:32.000000000 +0000 +++ libdata-guid-perl-0.049/debian/control 2017-11-04 09:14:22.000000000 +0000 @@ -4,17 +4,18 @@ Build-Depends: cdbs, devscripts, perl, - debhelper, + debhelper (>= 9), dh-buildinfo, libossp-uuid-perl | libdata-uuid-perl, libsub-exporter-perl, libsub-install-perl Maintainer: Debian Perl Group Uploaders: Jonas Smedegaard -Standards-Version: 3.9.5 -Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libdata-guid-perl -Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libdata-guid-perl.git +Standards-Version: 4.1.1 +Vcs-Git: https://anonscm.debian.org/git/pkg-perl/packages/libdata-guid-perl.git +Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libdata-guid-perl.git Homepage: https://github.com/rjbs/Data-GUID +Testsuite: autopkgtest-pkg-perl Package: libdata-guid-perl Architecture: all diff -Nru libdata-guid-perl-0.048/debian/patches/2001_avoid_inflated_versioning.patch libdata-guid-perl-0.049/debian/patches/2001_avoid_inflated_versioning.patch --- libdata-guid-perl-0.048/debian/patches/2001_avoid_inflated_versioning.patch 2014-05-19 18:38:30.000000000 +0000 +++ libdata-guid-perl-0.049/debian/patches/2001_avoid_inflated_versioning.patch 2017-11-04 09:07:43.000000000 +0000 @@ -4,12 +4,12 @@ --- a/lib/Data/GUID.pm +++ b/lib/Data/GUID.pm -@@ -7,7 +7,7 @@ +@@ -4,7 +4,7 @@ package Data::GUID; # ABSTRACT: globally unique identifiers - + $Data::GUID::VERSION = '0.049'; use Carp (); -use Data::UUID 1.148; +use Data::UUID; use Sub::Install 0.03; - + #pod =head1 SYNOPSIS diff -Nru libdata-guid-perl-0.048/debian/watch libdata-guid-perl-0.049/debian/watch --- libdata-guid-perl-0.048/debian/watch 2014-05-19 18:39:38.000000000 +0000 +++ libdata-guid-perl-0.049/debian/watch 2017-11-04 09:16:40.000000000 +0000 @@ -1,3 +1,3 @@ # Run the "uscan" command to check for upstream updates and more. version=3 -http://metacpan.org/release/Data-GUID .*/Data-GUID-([\d.]+)\.tar\.gz +https://metacpan.org/release/Data-GUID .*/Data-GUID-([\d.]+)\.tar\.gz diff -Nru libdata-guid-perl-0.048/lib/Data/GUID.pm libdata-guid-perl-0.049/lib/Data/GUID.pm --- libdata-guid-perl-0.048/lib/Data/GUID.pm 2013-12-13 13:23:36.000000000 +0000 +++ libdata-guid-perl-0.049/lib/Data/GUID.pm 2017-01-24 00:05:02.000000000 +0000 @@ -1,23 +1,83 @@ use strict; use warnings; package Data::GUID; -{ - $Data::GUID::VERSION = '0.048'; -} # ABSTRACT: globally unique identifiers - +$Data::GUID::VERSION = '0.049'; use Carp (); use Data::UUID 1.148; use Sub::Install 0.03; +#pod =head1 SYNOPSIS +#pod +#pod use Data::GUID; +#pod +#pod my $guid = Data::GUID->new; +#pod +#pod my $string = $guid->as_string; # or "$guid" +#pod +#pod my $other_guid = Data::GUID->from_string($string); +#pod +#pod if (($guid <=> $other_guid) == 0) { +#pod print "They're the same!\n"; +#pod } +#pod +#pod =head1 DESCRIPTION +#pod +#pod Data::GUID provides a simple interface for generating and using globally unique +#pod identifiers. +#pod +#pod =head1 GETTING A NEW GUID +#pod +#pod =head2 new +#pod +#pod my $guid = Data::GUID->new; +#pod +#pod This method returns a new globally unique identifier. +#pod +#pod =cut + +my $_uuid_gen_obj; +my $_uuid_gen_pid; +my $_uuid_gen = sub { + return $_uuid_gen_obj if $_uuid_gen_obj + && $_uuid_gen_pid == $$; + + $_uuid_gen_pid = $$; + $_uuid_gen_obj = Data::UUID->new; +}; -my $_uuid_gen = Data::UUID->new; sub new { my ($class) = @_; - return $class->from_data_uuid($_uuid_gen->create); + return $class->from_data_uuid($_uuid_gen->()->create); } +#pod =head1 GUIDS FROM EXISTING VALUES +#pod +#pod These method returns a new Data::GUID object for the given GUID value. In all +#pod cases, these methods throw an exception if given invalid input. +#pod +#pod =head2 from_string +#pod +#pod my $guid = Data::GUID->from_string("B0470602-A64B-11DA-8632-93EBF1C0E05A"); +#pod +#pod =head2 from_hex +#pod +#pod # note that a hex guid is a guid string without hyphens and with a leading 0x +#pod my $guid = Data::GUID->from_hex("0xB0470602A64B11DA863293EBF1C0E05A"); +#pod +#pod =head2 from_base64 +#pod +#pod my $guid = Data::GUID->from_base64("sEcGAqZLEdqGMpPr8cDgWg=="); +#pod +#pod =head2 from_data_uuid +#pod +#pod This method returns a new Data::GUID object if given a Data::UUID value. +#pod Because Data::UUID values are not blessed and because Data::UUID provides no +#pod validation method, this method will only throw an exception if the given data +#pod is of the wrong size. +#pod +#pod =cut sub from_data_uuid { my ($class, $value) = @_; @@ -27,6 +87,18 @@ bless \$value => $class; } +#pod =head1 IDENTIFYING GUIDS +#pod +#pod =head2 string_guid_regex +#pod +#pod =head2 hex_guid_regex +#pod +#pod =head2 base64_guid_regex +#pod +#pod These methods return regex objects that match regex strings of the appropriate +#pod type. +#pod +#pod =cut my ($hex, $base64, %type); @@ -58,7 +130,7 @@ my ($class, $string) = @_; $string ||= q{}; # to avoid (undef =~) warning Carp::croak qq{"$string" is not a valid $type GUID} if $string !~ $regex; - $class->from_data_uuid( $_uuid_gen->$alien_from_method($string) ); + $class->from_data_uuid( $_uuid_gen->()->$alien_from_method($string) ); }; Sub::Install::install_sub({ code => $our_from_code, as => "from_$type" }); @@ -71,7 +143,7 @@ my $our_to_method = sub { my ($self) = @_; - $_uuid_gen->$alien_to_method( $self->as_binary ); + $_uuid_gen->()->$alien_to_method( $self->as_binary ); }; Sub::Install::install_sub({ code => $our_to_method, as => "as_$type" }); @@ -109,6 +181,17 @@ } } +#pod =head2 from_any_string +#pod +#pod my $string = get_string_from_ether; +#pod +#pod my $guid = Data::GUID->from_any_string($string); +#pod +#pod This method returns a Data::GUID object for the given string, trying all known +#pod string interpretations. An exception is thrown if the value is not a valid +#pod GUID string. +#pod +#pod =cut BEGIN { # possibly unnecessary -- rjbs, 2006-03-11 Sub::Install::install_sub({ @@ -117,6 +200,17 @@ }); } +#pod =head2 best_guess +#pod +#pod my $value = get_value_from_ether; +#pod +#pod my $guid = Data::GUID->best_guess($value); +#pod +#pod This method returns a Data::GUID object for the given value, trying everything +#pod it can. It works like C>, but will also accept Data::UUID +#pod values. (In effect, this means that any sixteen byte value is acceptable.) +#pod +#pod =cut BEGIN { # possibly unnecessary -- rjbs, 2006-03-11 Sub::Install::install_sub({ @@ -125,7 +219,42 @@ }); } - +#pod =head1 GUIDS INTO STRINGS +#pod +#pod These methods return various string representations of a GUID. +#pod +#pod =head2 as_string +#pod +#pod This method returns a "traditional" GUID/UUID string representation. This is +#pod five hexadecimal strings, delimited by hyphens. For example: +#pod +#pod B0470602-A64B-11DA-8632-93EBF1C0E05A +#pod +#pod This method is also used to stringify Data::GUID objects. +#pod +#pod =head2 as_hex +#pod +#pod This method returns a plain hexadecimal representation of the GUID, with a +#pod leading C<0x>. For example: +#pod +#pod 0xB0470602A64B11DA863293EBF1C0E05A +#pod +#pod =head2 as_base64 +#pod +#pod This method returns a base-64 string representation of the GUID. For example: +#pod +#pod sEcGAqZLEdqGMpPr8cDgWg== +#pod +#pod =cut + +#pod =head1 OTHER METHODS +#pod +#pod =head2 compare_to_guid +#pod +#pod This method compares a GUID to another GUID and returns -1, 0, or 1, as do +#pod other comparison routines. +#pod +#pod =cut sub compare_to_guid { my ($self, $other) = @_; @@ -133,9 +262,16 @@ my $other_binary = eval { $other->isa('Data::GUID') } ? $other->as_binary : $other; - $_uuid_gen->compare($self->as_binary, $other_binary); + $_uuid_gen->()->compare($self->as_binary, $other_binary); } +#pod =head2 as_binary +#pod +#pod This method returns the packed binary representation of the GUID. At present +#pod this method relies on Data::GUID's underlying use of Data::UUID. It is not +#pod guaranteed to continue to work the same way, or at all. I. +#pod +#pod =cut sub as_binary { my ($self) = @_; @@ -147,7 +283,42 @@ '<=>' => sub { ($_[2] ? -1 : 1) * $_[0]->compare_to_guid($_[1]) }, fallback => 1; - +#pod =head1 IMPORTING +#pod +#pod Data::GUID does not export any subroutines by default, but it provides a few +#pod routines which will be imported on request. These routines may be called as +#pod class methods, or may be imported to be called as subroutines. Calling them by +#pod fully qualified name is incorrect. +#pod +#pod use Data::GUID qw(guid); +#pod +#pod my $guid = guid; # OK +#pod my $guid = Data::GUID->guid; # OK +#pod my $guid = Data::GUID::guid; # NOT OK +#pod +#pod =cut + +#pod =head2 guid +#pod +#pod This routine returns a new Data::GUID object. +#pod +#pod =head2 guid_string +#pod +#pod This returns the string representation of a new GUID. +#pod +#pod =head2 guid_hex +#pod +#pod This returns the hex representation of a new GUID. +#pod +#pod =head2 guid_base64 +#pod +#pod This returns the base64 representation of a new GUID. +#pod +#pod =head2 guid_from_anything +#pod +#pod This returns the result of calling the C> method. +#pod +#pod =cut BEGIN { Sub::Install::install_sub({ code => 'new', as => 'guid' }); @@ -186,6 +357,14 @@ } }; +#pod =head1 TODO +#pod +#pod =for :list +#pod * add namespace support +#pod * remove dependency on wretched Data::UUID +#pod * make it work on 5.005 +#pod +#pod =cut 1; @@ -201,7 +380,7 @@ =head1 VERSION -version 0.048 +version 0.049 =head1 SYNOPSIS @@ -380,6 +559,12 @@ Ricardo SIGNES +=head1 CONTRIBUTOR + +=for stopwords Ricardo SIGNES + +Ricardo SIGNES + =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2006 by Ricardo SIGNES. diff -Nru libdata-guid-perl-0.048/LICENSE libdata-guid-perl-0.049/LICENSE --- libdata-guid-perl-0.048/LICENSE 2013-12-13 13:23:36.000000000 +0000 +++ libdata-guid-perl-0.049/LICENSE 2017-01-24 00:05:02.000000000 +0000 @@ -22,7 +22,7 @@ Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. - 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. diff -Nru libdata-guid-perl-0.048/Makefile.PL libdata-guid-perl-0.049/Makefile.PL --- libdata-guid-perl-0.048/Makefile.PL 2013-12-13 13:23:36.000000000 +0000 +++ libdata-guid-perl-0.049/Makefile.PL 2017-01-24 00:05:02.000000000 +0000 @@ -1,22 +1,18 @@ - +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.008. use strict; use warnings; -use ExtUtils::MakeMaker 6.30; - - +use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( "ABSTRACT" => "globally unique identifiers", "AUTHOR" => "Ricardo SIGNES ", - "BUILD_REQUIRES" => {}, "CONFIGURE_REQUIRES" => { - "ExtUtils::MakeMaker" => "6.30" + "ExtUtils::MakeMaker" => 0 }, "DISTNAME" => "Data-GUID", - "EXE_FILES" => [], "LICENSE" => "perl", "NAME" => "Data::GUID", "PREREQ_PM" => { @@ -30,9 +26,11 @@ "warnings" => 0 }, "TEST_REQUIRES" => { + "ExtUtils::MakeMaker" => 0, + "File::Spec" => 0, "Test::More" => "0.96" }, - "VERSION" => "0.048", + "VERSION" => "0.049", "test" => { "TESTS" => "t/*.t" } @@ -42,6 +40,8 @@ my %FallbackPrereqs = ( "Carp" => 0, "Data::UUID" => "1.148", + "ExtUtils::MakeMaker" => 0, + "File::Spec" => 0, "Sub::Exporter" => "0.90", "Sub::Install" => "0.03", "Test::More" => "0.96", @@ -62,6 +62,3 @@ unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs); - - - diff -Nru libdata-guid-perl-0.048/MANIFEST libdata-guid-perl-0.049/MANIFEST --- libdata-guid-perl-0.048/MANIFEST 2013-12-13 13:23:36.000000000 +0000 +++ libdata-guid-perl-0.049/MANIFEST 2017-01-24 00:05:02.000000000 +0000 @@ -1,3 +1,4 @@ +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.008. Changes LICENSE MANIFEST @@ -8,9 +9,10 @@ dist.ini lib/Data/GUID.pm t/00-load.t -t/000-report-versions-tiny.t +t/00-report-prereqs.dd +t/00-report-prereqs.t t/basic.t t/import.t t/multipass_from.t +xt/author/pod-syntax.t xt/release/changes_has_content.t -xt/release/pod-syntax.t diff -Nru libdata-guid-perl-0.048/META.json libdata-guid-perl-0.049/META.json --- libdata-guid-perl-0.048/META.json 2013-12-13 13:23:36.000000000 +0000 +++ libdata-guid-perl-0.049/META.json 2017-01-24 00:05:02.000000000 +0000 @@ -4,25 +4,25 @@ "Ricardo SIGNES " ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 5.006, CPAN::Meta::Converter version 2.132830", + "generated_by" : "Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150005", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", - "version" : "2" + "version" : 2 }, "name" : "Data-GUID", "prereqs" : { "configure" : { "requires" : { - "ExtUtils::MakeMaker" : "6.30" + "ExtUtils::MakeMaker" : "0" } }, "develop" : { "requires" : { - "Test::Pod" : "1.41", - "version" : "0.9901" + "Test::More" : "0", + "Test::Pod" : "1.41" } }, "runtime" : { @@ -38,7 +38,12 @@ } }, "test" : { + "recommends" : { + "CPAN::Meta" : "2.120900" + }, "requires" : { + "ExtUtils::MakeMaker" : "0", + "File::Spec" : "0", "Test::More" : "0.96" } } @@ -55,26 +60,40 @@ "web" : "https://github.com/rjbs/Data-GUID" } }, - "version" : "0.048", + "version" : "0.049", "x_Dist_Zilla" : { "perl" : { - "version" : "5.018001" + "version" : "5.024000" }, "plugins" : [ { "class" : "Dist::Zilla::Plugin::Git::GatherDir", + "config" : { + "Dist::Zilla::Plugin::GatherDir" : { + "exclude_filename" : [], + "exclude_match" : [], + "follow_symlinks" : 0, + "include_dotfiles" : 0, + "prefix" : "", + "prune_directory" : [], + "root" : "." + }, + "Dist::Zilla::Plugin::Git::GatherDir" : { + "include_untracked" : 0 + } + }, "name" : "@RJBS/Git::GatherDir", - "version" : "2.019" + "version" : "2.041" }, { "class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed", "name" : "@RJBS/CheckPrereqsIndexed", - "version" : "0.009" + "version" : "0.020" }, { "class" : "Dist::Zilla::Plugin::CheckExtraTests", "name" : "@RJBS/CheckExtraTests", - "version" : "0.016" + "version" : "0.029" }, { "class" : "Dist::Zilla::Plugin::PromptIfStale", @@ -86,130 +105,148 @@ "Dist::Zilla::PluginBundle::RJBS" ], "phase" : "build", + "run_under_travis" : 0, "skip" : [] } }, "name" : "@RJBS/RJBS-Outdated", - "version" : "0.015" + "version" : "0.051" }, { "class" : "Dist::Zilla::Plugin::PromptIfStale", "config" : { "Dist::Zilla::Plugin::PromptIfStale" : { - "check_all_plugins" : "1", + "check_all_plugins" : 1, "check_all_prereqs" : 0, "modules" : [], "phase" : "release", + "run_under_travis" : 0, "skip" : [] } }, "name" : "@RJBS/CPAN-Outdated", - "version" : "0.015" + "version" : "0.051" }, { "class" : "Dist::Zilla::Plugin::PruneCruft", "name" : "@RJBS/@Filter/PruneCruft", - "version" : "5.006" + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@RJBS/@Filter/ManifestSkip", - "version" : "5.006" + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@RJBS/@Filter/MetaYAML", - "version" : "5.006" + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@RJBS/@Filter/License", - "version" : "5.006" + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::Readme", "name" : "@RJBS/@Filter/Readme", - "version" : "5.006" + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@RJBS/@Filter/ExecDir", - "version" : "5.006" + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::ShareDir", "name" : "@RJBS/@Filter/ShareDir", - "version" : "5.006" - }, - { - "class" : "Dist::Zilla::Plugin::MakeMaker", - "name" : "@RJBS/@Filter/MakeMaker", - "version" : "5.006" + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@RJBS/@Filter/Manifest", - "version" : "5.006" + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@RJBS/@Filter/TestRelease", - "version" : "5.006" + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@RJBS/@Filter/ConfirmRelease", - "version" : "5.006" + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@RJBS/@Filter/UploadToCPAN", - "version" : "5.006" + "version" : "6.008" + }, + { + "class" : "Dist::Zilla::Plugin::MakeMaker", + "config" : { + "Dist::Zilla::Role::TestRunner" : { + "default_jobs" : 9 + } + }, + "name" : "@RJBS/MakeMaker", + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@RJBS/AutoPrereqs", - "version" : "5.006" + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::Git::NextVersion", + "config" : { + "Dist::Zilla::Plugin::Git::NextVersion" : { + "first_version" : "0.001", + "version_by_branch" : 1, + "version_regexp" : "(?^:^([0-9]+\\.[0-9]+)$)" + }, + "Dist::Zilla::Role::Git::Repo" : { + "git --version" : "2.11.0", + "repo_root" : "." + } + }, "name" : "@RJBS/Git::NextVersion", - "version" : "2.019" + "version" : "2.041" }, { "class" : "Dist::Zilla::Plugin::PkgVersion", "name" : "@RJBS/PkgVersion", - "version" : "5.006" + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@RJBS/MetaConfig", - "version" : "5.006" + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@RJBS/MetaJSON", - "version" : "5.006" + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@RJBS/NextRelease", - "version" : "5.006" + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::Test::ChangesHasContent", "name" : "@RJBS/Test::ChangesHasContent", - "version" : "0.006" + "version" : "0.010" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@RJBS/PodSyntaxTests", - "version" : "5.006" + "version" : "6.008" }, { - "class" : "Dist::Zilla::Plugin::ReportVersions::Tiny", - "name" : "@RJBS/ReportVersions::Tiny", - "version" : "1.10" + "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs", + "name" : "@RJBS/Test::ReportPrereqs", + "version" : "0.025" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -220,13 +257,15 @@ } }, "name" : "@RJBS/TestMoreWithSubtests", - "version" : "5.006" + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::PodWeaver", "config" : { "Dist::Zilla::Plugin::PodWeaver" : { - "config_plugin" : "@RJBS", + "config_plugins" : [ + "@RJBS" + ], "finder" : [ ":InstallModules", ":ExecFiles" @@ -235,153 +274,260 @@ { "class" : "Pod::Weaver::Plugin::EnsurePod5", "name" : "@CorePrep/EnsurePod5", - "version" : "4.004" + "version" : "4.015" }, { "class" : "Pod::Weaver::Plugin::H1Nester", "name" : "@CorePrep/H1Nester", - "version" : "4.004" + "version" : "4.015" }, { "class" : "Pod::Weaver::Plugin::SingleEncoding", "name" : "@RJBS/SingleEncoding", - "version" : "4.004" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Name", "name" : "@RJBS/Name", - "version" : "4.004" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Version", "name" : "@RJBS/Version", - "version" : "4.004" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Region", "name" : "@RJBS/Prelude", - "version" : "4.004" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "@RJBS/Synopsis", - "version" : "4.004" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "@RJBS/Description", - "version" : "4.004" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "@RJBS/Overview", - "version" : "4.004" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "@RJBS/Stability", - "version" : "4.004" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "Attributes", - "version" : "4.004" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "Methods", - "version" : "4.004" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "Functions", - "version" : "4.004" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Leftovers", "name" : "@RJBS/Leftovers", - "version" : "4.004" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Region", "name" : "@RJBS/postlude", - "version" : "4.004" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Authors", "name" : "@RJBS/Authors", - "version" : "4.004" + "version" : "4.015" + }, + { + "class" : "Pod::Weaver::Section::Contributors", + "name" : "@RJBS/Contributors", + "version" : "0.009" }, { "class" : "Pod::Weaver::Section::Legal", "name" : "@RJBS/Legal", - "version" : "4.004" + "version" : "4.015" }, { "class" : "Pod::Weaver::Plugin::Transformer", "name" : "@RJBS/List", - "version" : "4.004" + "version" : "4.015" } ] } }, "name" : "@RJBS/PodWeaver", - "version" : "4.002" + "version" : "4.008" }, { "class" : "Dist::Zilla::Plugin::GithubMeta", "name" : "@RJBS/GithubMeta", - "version" : "0.42" + "version" : "0.54" }, { "class" : "Dist::Zilla::Plugin::Git::Check", + "config" : { + "Dist::Zilla::Plugin::Git::Check" : { + "untracked_files" : "die" + }, + "Dist::Zilla::Role::Git::DirtyFiles" : { + "allow_dirty" : [ + "Changes", + "dist.ini" + ], + "allow_dirty_match" : [], + "changelog" : "Changes" + }, + "Dist::Zilla::Role::Git::Repo" : { + "git --version" : "2.11.0", + "repo_root" : "." + } + }, "name" : "@RJBS/@Git/Check", - "version" : "2.019" + "version" : "2.041" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", + "config" : { + "Dist::Zilla::Plugin::Git::Commit" : { + "add_files_in" : [], + "commit_msg" : "v%v%n%n%c" + }, + "Dist::Zilla::Role::Git::DirtyFiles" : { + "allow_dirty" : [ + "Changes", + "dist.ini" + ], + "allow_dirty_match" : [], + "changelog" : "Changes" + }, + "Dist::Zilla::Role::Git::Repo" : { + "git --version" : "2.11.0", + "repo_root" : "." + }, + "Dist::Zilla::Role::Git::StringFormatter" : { + "time_zone" : "local" + } + }, "name" : "@RJBS/@Git/Commit", - "version" : "2.019" + "version" : "2.041" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", + "config" : { + "Dist::Zilla::Plugin::Git::Tag" : { + "branch" : null, + "changelog" : "Changes", + "signed" : 0, + "tag" : "0.049", + "tag_format" : "%v", + "tag_message" : "v%v" + }, + "Dist::Zilla::Role::Git::Repo" : { + "git --version" : "2.11.0", + "repo_root" : "." + }, + "Dist::Zilla::Role::Git::StringFormatter" : { + "time_zone" : "local" + } + }, "name" : "@RJBS/@Git/Tag", - "version" : "2.019" + "version" : "2.041" }, { "class" : "Dist::Zilla::Plugin::Git::Push", + "config" : { + "Dist::Zilla::Plugin::Git::Push" : { + "push_to" : [ + "rjbs :", + "github :" + ], + "remotes_must_exist" : 0 + }, + "Dist::Zilla::Role::Git::Repo" : { + "git --version" : "2.11.0", + "repo_root" : "." + } + }, "name" : "@RJBS/@Git/Push", - "version" : "2.019" + "version" : "2.041" + }, + { + "class" : "Dist::Zilla::Plugin::Git::Contributors", + "config" : { + "Dist::Zilla::Plugin::Git::Contributors" : { + "git --version" : "2.11.0", + "include_authors" : 0, + "include_releaser" : 1, + "order_by" : "name", + "paths" : [] + } + }, + "name" : "@RJBS/Git::Contributors", + "version" : "0.029" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", - "version" : "5.006" + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", - "version" : "5.006" + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", - "version" : "5.006" + "version" : "6.008" + }, + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : ":ExtraTestFiles", + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", - "version" : "5.006" + "version" : "6.008" + }, + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : ":PerlExecFiles", + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", - "version" : "5.006" + "version" : "6.008" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", - "version" : "5.006" + "version" : "6.008" + }, + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : ":AllFiles", + "version" : "6.008" + }, + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : ":NoFiles", + "version" : "6.008" } ], "zilla" : { @@ -389,8 +535,12 @@ "config" : { "is_trial" : "0" }, - "version" : "5.006" + "version" : "6.008" } - } + }, + "x_contributors" : [ + "Ricardo SIGNES " + ], + "x_serialization_backend" : "Cpanel::JSON::XS version 3.0225" } diff -Nru libdata-guid-perl-0.048/META.yml libdata-guid-perl-0.049/META.yml --- libdata-guid-perl-0.048/META.yml 2013-12-13 13:23:36.000000000 +0000 +++ libdata-guid-perl-0.049/META.yml 2017-01-24 00:05:02.000000000 +0000 @@ -3,46 +3,59 @@ author: - 'Ricardo SIGNES ' build_requires: - Test::More: 0.96 + ExtUtils::MakeMaker: '0' + File::Spec: '0' + Test::More: '0.96' configure_requires: - ExtUtils::MakeMaker: 6.30 + ExtUtils::MakeMaker: '0' dynamic_config: 0 -generated_by: 'Dist::Zilla version 5.006, CPAN::Meta::Converter version 2.132830' +generated_by: 'Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150005' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 + version: '1.4' name: Data-GUID requires: - Carp: 0 - Data::UUID: 1.148 - Sub::Exporter: 0.90 - Sub::Install: 0.03 - bytes: 0 - overload: 0 - strict: 0 - warnings: 0 + Carp: '0' + Data::UUID: '1.148' + Sub::Exporter: '0.90' + Sub::Install: '0.03' + bytes: '0' + overload: '0' + strict: '0' + warnings: '0' resources: bugtracker: https://github.com/rjbs/Data-GUID/issues homepage: https://github.com/rjbs/Data-GUID repository: https://github.com/rjbs/Data-GUID.git -version: 0.048 +version: '0.049' x_Dist_Zilla: perl: - version: 5.018001 + version: '5.024000' plugins: - class: Dist::Zilla::Plugin::Git::GatherDir + config: + Dist::Zilla::Plugin::GatherDir: + exclude_filename: [] + exclude_match: [] + follow_symlinks: 0 + include_dotfiles: 0 + prefix: '' + prune_directory: [] + root: . + Dist::Zilla::Plugin::Git::GatherDir: + include_untracked: 0 name: '@RJBS/Git::GatherDir' - version: 2.019 + version: '2.041' - class: Dist::Zilla::Plugin::CheckPrereqsIndexed name: '@RJBS/CheckPrereqsIndexed' - version: 0.009 + version: '0.020' - class: Dist::Zilla::Plugin::CheckExtraTests name: '@RJBS/CheckExtraTests' - version: 0.016 + version: '0.029' - class: Dist::Zilla::Plugin::PromptIfStale config: @@ -52,9 +65,10 @@ modules: - Dist::Zilla::PluginBundle::RJBS phase: build + run_under_travis: 0 skip: [] name: '@RJBS/RJBS-Outdated' - version: 0.015 + version: '0.051' - class: Dist::Zilla::Plugin::PromptIfStale config: @@ -63,93 +77,105 @@ check_all_prereqs: 0 modules: [] phase: release + run_under_travis: 0 skip: [] name: '@RJBS/CPAN-Outdated' - version: 0.015 + version: '0.051' - class: Dist::Zilla::Plugin::PruneCruft name: '@RJBS/@Filter/PruneCruft' - version: 5.006 + version: '6.008' - class: Dist::Zilla::Plugin::ManifestSkip name: '@RJBS/@Filter/ManifestSkip' - version: 5.006 + version: '6.008' - class: Dist::Zilla::Plugin::MetaYAML name: '@RJBS/@Filter/MetaYAML' - version: 5.006 + version: '6.008' - class: Dist::Zilla::Plugin::License name: '@RJBS/@Filter/License' - version: 5.006 + version: '6.008' - class: Dist::Zilla::Plugin::Readme name: '@RJBS/@Filter/Readme' - version: 5.006 + version: '6.008' - class: Dist::Zilla::Plugin::ExecDir name: '@RJBS/@Filter/ExecDir' - version: 5.006 + version: '6.008' - class: Dist::Zilla::Plugin::ShareDir name: '@RJBS/@Filter/ShareDir' - version: 5.006 - - - class: Dist::Zilla::Plugin::MakeMaker - name: '@RJBS/@Filter/MakeMaker' - version: 5.006 + version: '6.008' - class: Dist::Zilla::Plugin::Manifest name: '@RJBS/@Filter/Manifest' - version: 5.006 + version: '6.008' - class: Dist::Zilla::Plugin::TestRelease name: '@RJBS/@Filter/TestRelease' - version: 5.006 + version: '6.008' - class: Dist::Zilla::Plugin::ConfirmRelease name: '@RJBS/@Filter/ConfirmRelease' - version: 5.006 + version: '6.008' - class: Dist::Zilla::Plugin::UploadToCPAN name: '@RJBS/@Filter/UploadToCPAN' - version: 5.006 + version: '6.008' + - + class: Dist::Zilla::Plugin::MakeMaker + config: + Dist::Zilla::Role::TestRunner: + default_jobs: 9 + name: '@RJBS/MakeMaker' + version: '6.008' - class: Dist::Zilla::Plugin::AutoPrereqs name: '@RJBS/AutoPrereqs' - version: 5.006 + version: '6.008' - class: Dist::Zilla::Plugin::Git::NextVersion + config: + Dist::Zilla::Plugin::Git::NextVersion: + first_version: '0.001' + version_by_branch: 1 + version_regexp: (?^:^([0-9]+\.[0-9]+)$) + Dist::Zilla::Role::Git::Repo: + 'git --version': 2.11.0 + repo_root: . name: '@RJBS/Git::NextVersion' - version: 2.019 + version: '2.041' - class: Dist::Zilla::Plugin::PkgVersion name: '@RJBS/PkgVersion' - version: 5.006 + version: '6.008' - class: Dist::Zilla::Plugin::MetaConfig name: '@RJBS/MetaConfig' - version: 5.006 + version: '6.008' - class: Dist::Zilla::Plugin::MetaJSON name: '@RJBS/MetaJSON' - version: 5.006 + version: '6.008' - class: Dist::Zilla::Plugin::NextRelease name: '@RJBS/NextRelease' - version: 5.006 + version: '6.008' - class: Dist::Zilla::Plugin::Test::ChangesHasContent name: '@RJBS/Test::ChangesHasContent' - version: 0.006 + version: '0.010' - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@RJBS/PodSyntaxTests' - version: 5.006 + version: '6.008' - - class: Dist::Zilla::Plugin::ReportVersions::Tiny - name: '@RJBS/ReportVersions::Tiny' - version: 1.10 + class: Dist::Zilla::Plugin::Test::ReportPrereqs + name: '@RJBS/Test::ReportPrereqs' + version: '0.025' - class: Dist::Zilla::Plugin::Prereqs config: @@ -157,12 +183,13 @@ phase: test type: requires name: '@RJBS/TestMoreWithSubtests' - version: 5.006 + version: '6.008' - class: Dist::Zilla::Plugin::PodWeaver config: Dist::Zilla::Plugin::PodWeaver: - config_plugin: '@RJBS' + config_plugins: + - '@RJBS' finder: - ':InstallModules' - ':ExecFiles' @@ -170,123 +197,206 @@ - class: Pod::Weaver::Plugin::EnsurePod5 name: '@CorePrep/EnsurePod5' - version: 4.004 + version: '4.015' - class: Pod::Weaver::Plugin::H1Nester name: '@CorePrep/H1Nester' - version: 4.004 + version: '4.015' - class: Pod::Weaver::Plugin::SingleEncoding name: '@RJBS/SingleEncoding' - version: 4.004 + version: '4.015' - class: Pod::Weaver::Section::Name name: '@RJBS/Name' - version: 4.004 + version: '4.015' - class: Pod::Weaver::Section::Version name: '@RJBS/Version' - version: 4.004 + version: '4.015' - class: Pod::Weaver::Section::Region name: '@RJBS/Prelude' - version: 4.004 + version: '4.015' - class: Pod::Weaver::Section::Generic name: '@RJBS/Synopsis' - version: 4.004 + version: '4.015' - class: Pod::Weaver::Section::Generic name: '@RJBS/Description' - version: 4.004 + version: '4.015' - class: Pod::Weaver::Section::Generic name: '@RJBS/Overview' - version: 4.004 + version: '4.015' - class: Pod::Weaver::Section::Generic name: '@RJBS/Stability' - version: 4.004 + version: '4.015' - class: Pod::Weaver::Section::Collect name: Attributes - version: 4.004 + version: '4.015' - class: Pod::Weaver::Section::Collect name: Methods - version: 4.004 + version: '4.015' - class: Pod::Weaver::Section::Collect name: Functions - version: 4.004 + version: '4.015' - class: Pod::Weaver::Section::Leftovers name: '@RJBS/Leftovers' - version: 4.004 + version: '4.015' - class: Pod::Weaver::Section::Region name: '@RJBS/postlude' - version: 4.004 + version: '4.015' - class: Pod::Weaver::Section::Authors name: '@RJBS/Authors' - version: 4.004 + version: '4.015' + - + class: Pod::Weaver::Section::Contributors + name: '@RJBS/Contributors' + version: '0.009' - class: Pod::Weaver::Section::Legal name: '@RJBS/Legal' - version: 4.004 + version: '4.015' - class: Pod::Weaver::Plugin::Transformer name: '@RJBS/List' - version: 4.004 + version: '4.015' name: '@RJBS/PodWeaver' - version: 4.002 + version: '4.008' - class: Dist::Zilla::Plugin::GithubMeta name: '@RJBS/GithubMeta' - version: 0.42 + version: '0.54' - class: Dist::Zilla::Plugin::Git::Check + config: + Dist::Zilla::Plugin::Git::Check: + untracked_files: die + Dist::Zilla::Role::Git::DirtyFiles: + allow_dirty: + - Changes + - dist.ini + allow_dirty_match: [] + changelog: Changes + Dist::Zilla::Role::Git::Repo: + 'git --version': 2.11.0 + repo_root: . name: '@RJBS/@Git/Check' - version: 2.019 + version: '2.041' - class: Dist::Zilla::Plugin::Git::Commit + config: + Dist::Zilla::Plugin::Git::Commit: + add_files_in: [] + commit_msg: v%v%n%n%c + Dist::Zilla::Role::Git::DirtyFiles: + allow_dirty: + - Changes + - dist.ini + allow_dirty_match: [] + changelog: Changes + Dist::Zilla::Role::Git::Repo: + 'git --version': 2.11.0 + repo_root: . + Dist::Zilla::Role::Git::StringFormatter: + time_zone: local name: '@RJBS/@Git/Commit' - version: 2.019 + version: '2.041' - class: Dist::Zilla::Plugin::Git::Tag + config: + Dist::Zilla::Plugin::Git::Tag: + branch: ~ + changelog: Changes + signed: 0 + tag: '0.049' + tag_format: '%v' + tag_message: v%v + Dist::Zilla::Role::Git::Repo: + 'git --version': 2.11.0 + repo_root: . + Dist::Zilla::Role::Git::StringFormatter: + time_zone: local name: '@RJBS/@Git/Tag' - version: 2.019 + version: '2.041' - class: Dist::Zilla::Plugin::Git::Push + config: + Dist::Zilla::Plugin::Git::Push: + push_to: + - 'rjbs :' + - 'github :' + remotes_must_exist: 0 + Dist::Zilla::Role::Git::Repo: + 'git --version': 2.11.0 + repo_root: . name: '@RJBS/@Git/Push' - version: 2.019 + version: '2.041' + - + class: Dist::Zilla::Plugin::Git::Contributors + config: + Dist::Zilla::Plugin::Git::Contributors: + 'git --version': 2.11.0 + include_authors: 0 + include_releaser: 1 + order_by: name + paths: [] + name: '@RJBS/Git::Contributors' + version: '0.029' - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' - version: 5.006 + version: '6.008' - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' - version: 5.006 + version: '6.008' - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' - version: 5.006 + version: '6.008' + - + class: Dist::Zilla::Plugin::FinderCode + name: ':ExtraTestFiles' + version: '6.008' - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' - version: 5.006 + version: '6.008' + - + class: Dist::Zilla::Plugin::FinderCode + name: ':PerlExecFiles' + version: '6.008' - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' - version: 5.006 + version: '6.008' - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' - version: 5.006 + version: '6.008' + - + class: Dist::Zilla::Plugin::FinderCode + name: ':AllFiles' + version: '6.008' + - + class: Dist::Zilla::Plugin::FinderCode + name: ':NoFiles' + version: '6.008' zilla: class: Dist::Zilla::Dist::Builder config: - is_trial: 0 - version: 5.006 + is_trial: '0' + version: '6.008' +x_contributors: + - 'Ricardo SIGNES ' +x_serialization_backend: 'YAML::Tiny version 1.69' diff -Nru libdata-guid-perl-0.048/README libdata-guid-perl-0.049/README --- libdata-guid-perl-0.048/README 2013-12-13 13:23:36.000000000 +0000 +++ libdata-guid-perl-0.049/README 2017-01-24 00:05:02.000000000 +0000 @@ -1,7 +1,7 @@ This archive contains the distribution Data-GUID, -version 0.048: +version 0.049: globally unique identifiers @@ -11,3 +11,5 @@ the same terms as the Perl 5 programming language system itself. +This README file was generated by Dist::Zilla::Plugin::Readme v6.008. + diff -Nru libdata-guid-perl-0.048/t/000-report-versions-tiny.t libdata-guid-perl-0.049/t/000-report-versions-tiny.t --- libdata-guid-perl-0.048/t/000-report-versions-tiny.t 2013-12-13 13:23:36.000000000 +0000 +++ libdata-guid-perl-0.049/t/000-report-versions-tiny.t 1970-01-01 00:00:00.000000000 +0000 @@ -1,79 +0,0 @@ -use strict; -use warnings; -use Test::More 0.88; -# This is a relatively nice way to avoid Test::NoWarnings breaking our -# expectations by adding extra tests, without using no_plan. It also helps -# avoid any other test module that feels introducing random tests, or even -# test plans, is a nice idea. -our $success = 0; -END { $success && done_testing; } - -# List our own version used to generate this -my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.10\n"; - -eval { # no excuses! - # report our Perl details - my $want = "any version"; - $v .= "perl: $] (wanted $want) on $^O from $^X\n\n"; -}; -defined($@) and diag("$@"); - -# Now, our module version dependencies: -sub pmver { - my ($module, $wanted) = @_; - $wanted = " (want $wanted)"; - my $pmver; - eval "require $module;"; - if ($@) { - if ($@ =~ m/Can't locate .* in \@INC/) { - $pmver = 'module not found.'; - } else { - diag("${module}: $@"); - $pmver = 'died during require.'; - } - } else { - my $version; - eval { $version = $module->VERSION; }; - if ($@) { - diag("${module}: $@"); - $pmver = 'died during VERSION check.'; - } elsif (defined $version) { - $pmver = "$version"; - } else { - $pmver = ''; - } - } - - # So, we should be good, right? - return sprintf('%-45s => %-10s%-15s%s', $module, $pmver, $wanted, "\n"); -} - -eval { $v .= pmver('Carp','any version') }; -eval { $v .= pmver('Data::UUID','1.148') }; -eval { $v .= pmver('ExtUtils::MakeMaker','6.30') }; -eval { $v .= pmver('Sub::Exporter','0.90') }; -eval { $v .= pmver('Sub::Install','0.03') }; -eval { $v .= pmver('Test::More','0.96') }; -eval { $v .= pmver('bytes','any version') }; -eval { $v .= pmver('overload','any version') }; -eval { $v .= pmver('strict','any version') }; -eval { $v .= pmver('warnings','any version') }; - - -# All done. -$v .= <<'EOT'; - -Thanks for using my code. I hope it works for you. -If not, please try and include this output in the bug report. -That will help me reproduce the issue and solve your problem. - -EOT - -diag($v); -ok(1, "we really didn't test anything, just reporting data"); -$success = 1; - -# Work around another nasty module on CPAN. :/ -no warnings 'once'; -$Template::Test::NO_FLUSH = 1; -exit 0; diff -Nru libdata-guid-perl-0.048/t/00-report-prereqs.dd libdata-guid-perl-0.049/t/00-report-prereqs.dd --- libdata-guid-perl-0.048/t/00-report-prereqs.dd 1970-01-01 00:00:00.000000000 +0000 +++ libdata-guid-perl-0.049/t/00-report-prereqs.dd 2017-01-24 00:05:02.000000000 +0000 @@ -0,0 +1,37 @@ +do { my $x = { + 'configure' => { + 'requires' => { + 'ExtUtils::MakeMaker' => '0' + } + }, + 'develop' => { + 'requires' => { + 'Test::More' => '0', + 'Test::Pod' => '1.41' + } + }, + 'runtime' => { + 'requires' => { + 'Carp' => '0', + 'Data::UUID' => '1.148', + 'Sub::Exporter' => '0.90', + 'Sub::Install' => '0.03', + 'bytes' => '0', + 'overload' => '0', + 'strict' => '0', + 'warnings' => '0' + } + }, + 'test' => { + 'recommends' => { + 'CPAN::Meta' => '2.120900' + }, + 'requires' => { + 'ExtUtils::MakeMaker' => '0', + 'File::Spec' => '0', + 'Test::More' => '0.96' + } + } + }; + $x; + } \ No newline at end of file diff -Nru libdata-guid-perl-0.048/t/00-report-prereqs.t libdata-guid-perl-0.049/t/00-report-prereqs.t --- libdata-guid-perl-0.048/t/00-report-prereqs.t 1970-01-01 00:00:00.000000000 +0000 +++ libdata-guid-perl-0.049/t/00-report-prereqs.t 2017-01-24 00:05:02.000000000 +0000 @@ -0,0 +1,183 @@ +#!perl + +use strict; +use warnings; + +# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.025 + +use Test::More tests => 1; + +use ExtUtils::MakeMaker; +use File::Spec; + +# from $version::LAX +my $lax_version_re = + qr/(?: undef | (?: (?:[0-9]+) (?: \. | (?:\.[0-9]+) (?:_[0-9]+)? )? + | + (?:\.[0-9]+) (?:_[0-9]+)? + ) | (?: + v (?:[0-9]+) (?: (?:\.[0-9]+)+ (?:_[0-9]+)? )? + | + (?:[0-9]+)? (?:\.[0-9]+){2,} (?:_[0-9]+)? + ) + )/x; + +# hide optional CPAN::Meta modules from prereq scanner +# and check if they are available +my $cpan_meta = "CPAN::Meta"; +my $cpan_meta_pre = "CPAN::Meta::Prereqs"; +my $HAS_CPAN_META = eval "require $cpan_meta; $cpan_meta->VERSION('2.120900')" && eval "require $cpan_meta_pre"; ## no critic + +# Verify requirements? +my $DO_VERIFY_PREREQS = 1; + +sub _max { + my $max = shift; + $max = ( $_ > $max ) ? $_ : $max for @_; + return $max; +} + +sub _merge_prereqs { + my ($collector, $prereqs) = @_; + + # CPAN::Meta::Prereqs object + if (ref $collector eq $cpan_meta_pre) { + return $collector->with_merged_prereqs( + CPAN::Meta::Prereqs->new( $prereqs ) + ); + } + + # Raw hashrefs + for my $phase ( keys %$prereqs ) { + for my $type ( keys %{ $prereqs->{$phase} } ) { + for my $module ( keys %{ $prereqs->{$phase}{$type} } ) { + $collector->{$phase}{$type}{$module} = $prereqs->{$phase}{$type}{$module}; + } + } + } + + return $collector; +} + +my @include = qw( + +); + +my @exclude = qw( + +); + +# Add static prereqs to the included modules list +my $static_prereqs = do 't/00-report-prereqs.dd'; + +# Merge all prereqs (either with ::Prereqs or a hashref) +my $full_prereqs = _merge_prereqs( + ( $HAS_CPAN_META ? $cpan_meta_pre->new : {} ), + $static_prereqs +); + +# Add dynamic prereqs to the included modules list (if we can) +my ($source) = grep { -f } 'MYMETA.json', 'MYMETA.yml'; +if ( $source && $HAS_CPAN_META + && (my $meta = eval { CPAN::Meta->load_file($source) } ) +) { + $full_prereqs = _merge_prereqs($full_prereqs, $meta->prereqs); +} +else { + $source = 'static metadata'; +} + +my @full_reports; +my @dep_errors; +my $req_hash = $HAS_CPAN_META ? $full_prereqs->as_string_hash : $full_prereqs; + +# Add static includes into a fake section +for my $mod (@include) { + $req_hash->{other}{modules}{$mod} = 0; +} + +for my $phase ( qw(configure build test runtime develop other) ) { + next unless $req_hash->{$phase}; + next if ($phase eq 'develop' and not $ENV{AUTHOR_TESTING}); + + for my $type ( qw(requires recommends suggests conflicts modules) ) { + next unless $req_hash->{$phase}{$type}; + + my $title = ucfirst($phase).' '.ucfirst($type); + my @reports = [qw/Module Want Have/]; + + for my $mod ( sort keys %{ $req_hash->{$phase}{$type} } ) { + next if $mod eq 'perl'; + next if grep { $_ eq $mod } @exclude; + + my $file = $mod; + $file =~ s{::}{/}g; + $file .= ".pm"; + my ($prefix) = grep { -e File::Spec->catfile($_, $file) } @INC; + + my $want = $req_hash->{$phase}{$type}{$mod}; + $want = "undef" unless defined $want; + $want = "any" if !$want && $want == 0; + + my $req_string = $want eq 'any' ? 'any version required' : "version '$want' required"; + + if ($prefix) { + my $have = MM->parse_version( File::Spec->catfile($prefix, $file) ); + $have = "undef" unless defined $have; + push @reports, [$mod, $want, $have]; + + if ( $DO_VERIFY_PREREQS && $HAS_CPAN_META && $type eq 'requires' ) { + if ( $have !~ /\A$lax_version_re\z/ ) { + push @dep_errors, "$mod version '$have' cannot be parsed ($req_string)"; + } + elsif ( ! $full_prereqs->requirements_for( $phase, $type )->accepts_module( $mod => $have ) ) { + push @dep_errors, "$mod version '$have' is not in required range '$want'"; + } + } + } + else { + push @reports, [$mod, $want, "missing"]; + + if ( $DO_VERIFY_PREREQS && $type eq 'requires' ) { + push @dep_errors, "$mod is not installed ($req_string)"; + } + } + } + + if ( @reports ) { + push @full_reports, "=== $title ===\n\n"; + + my $ml = _max( map { length $_->[0] } @reports ); + my $wl = _max( map { length $_->[1] } @reports ); + my $hl = _max( map { length $_->[2] } @reports ); + + if ($type eq 'modules') { + splice @reports, 1, 0, ["-" x $ml, "", "-" x $hl]; + push @full_reports, map { sprintf(" %*s %*s\n", -$ml, $_->[0], $hl, $_->[2]) } @reports; + } + else { + splice @reports, 1, 0, ["-" x $ml, "-" x $wl, "-" x $hl]; + push @full_reports, map { sprintf(" %*s %*s %*s\n", -$ml, $_->[0], $wl, $_->[1], $hl, $_->[2]) } @reports; + } + + push @full_reports, "\n"; + } + } +} + +if ( @full_reports ) { + diag "\nVersions for all modules listed in $source (including optional ones):\n\n", @full_reports; +} + +if ( @dep_errors ) { + diag join("\n", + "\n*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***\n", + "The following REQUIRED prerequisites were not satisfied:\n", + @dep_errors, + "\n" + ); +} + +pass; + +# vim: ts=4 sts=4 sw=4 et: diff -Nru libdata-guid-perl-0.048/xt/author/pod-syntax.t libdata-guid-perl-0.049/xt/author/pod-syntax.t --- libdata-guid-perl-0.048/xt/author/pod-syntax.t 1970-01-01 00:00:00.000000000 +0000 +++ libdata-guid-perl-0.049/xt/author/pod-syntax.t 2017-01-24 00:05:02.000000000 +0000 @@ -0,0 +1,7 @@ +#!perl +# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. +use strict; use warnings; +use Test::More; +use Test::Pod 1.41; + +all_pod_files_ok(); diff -Nru libdata-guid-perl-0.048/xt/release/changes_has_content.t libdata-guid-perl-0.049/xt/release/changes_has_content.t --- libdata-guid-perl-0.048/xt/release/changes_has_content.t 2013-12-13 13:23:36.000000000 +0000 +++ libdata-guid-perl-0.049/xt/release/changes_has_content.t 2017-01-24 00:05:02.000000000 +0000 @@ -4,7 +4,7 @@ note 'Checking Changes'; my $changes_file = 'Changes'; -my $newver = '0.048'; +my $newver = '0.049'; my $trial_token = '-TRIAL'; SKIP: { diff -Nru libdata-guid-perl-0.048/xt/release/pod-syntax.t libdata-guid-perl-0.049/xt/release/pod-syntax.t --- libdata-guid-perl-0.048/xt/release/pod-syntax.t 2013-12-13 13:23:36.000000000 +0000 +++ libdata-guid-perl-0.049/xt/release/pod-syntax.t 1970-01-01 00:00:00.000000000 +0000 @@ -1,7 +0,0 @@ -#!perl -use Test::More; - -eval "use Test::Pod 1.41"; -plan skip_all => "Test::Pod 1.41 required for testing POD" if $@; - -all_pod_files_ok();