diff -Nru libdata-dpath-perl-0.55/Changes libdata-dpath-perl-0.57/Changes --- libdata-dpath-perl-0.55/Changes 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/Changes 2017-08-18 13:54:43.000000000 +0000 @@ -1,5 +1,14 @@ Revision history for Data-DPath +0.57 2017-08-18 + - polished Safe.pm handling to cooperate with older Perl and other modules + in particular Test::Exception [Doug Bell, Jonathan William Taylor] + +0.56 2017-03-22 + - no warnings: 'uninitialized'; Safe compartments; smartmatch operator usage [Diab Jerius] + - introduce Point attribute 'idx' to be used in array filters [Diab Jerius] + - Dist::Zilla distro polishing [Diab Jerius] + 0.55 2015-09-16 - spelling error, sync with Debian [Lucas Kanashiro] diff -Nru libdata-dpath-perl-0.55/debian/changelog libdata-dpath-perl-0.57/debian/changelog --- libdata-dpath-perl-0.55/debian/changelog 2015-09-21 16:38:41.000000000 +0000 +++ libdata-dpath-perl-0.57/debian/changelog 2021-06-06 00:27:43.000000000 +0000 @@ -1,3 +1,25 @@ +libdata-dpath-perl (0.57-1~16.04.sav0) xenial; urgency=medium + + * Backport to Xenial + + -- Rob Savoury Sat, 05 Jun 2021 17:27:43 -0700 + +libdata-dpath-perl (0.57-1) unstable; urgency=medium + + [ Salvatore Bonaccorso ] + * debian/control: Use HTTPS transport protocol for Vcs-Git URI + + [ gregor herrmann ] + * debian/copyright: change Copyright-Format 1.0 URL to HTTPS. + * debian/upstream/metadata: change GitHub/CPAN URL(s) to HTTPS. + * debian/upstream/metadata: use HTTPS for GitHub URLs. + + [ Axel Beckert ] + * Import upstream version 0.57. + * Declare compliance with Debian Policy 4.1.0. + + -- Axel Beckert Sun, 24 Sep 2017 00:37:34 +0200 + libdata-dpath-perl (0.55-1) unstable; urgency=medium * Team upload. diff -Nru libdata-dpath-perl-0.55/debian/control libdata-dpath-perl-0.57/debian/control --- libdata-dpath-perl-0.55/debian/control 2015-09-21 16:38:41.000000000 +0000 +++ libdata-dpath-perl-0.57/debian/control 2017-09-23 22:37:01.000000000 +0000 @@ -11,9 +11,9 @@ libsub-exporter-perl, libtest-deep-perl, perl (>= 5.15.6) -Standards-Version: 3.9.6 +Standards-Version: 4.1.0 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libdata-dpath-perl.git -Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libdata-dpath-perl.git +Vcs-Git: https://anonscm.debian.org/git/pkg-perl/packages/libdata-dpath-perl.git Homepage: https://metacpan.org/release/Data-DPath Testsuite: autopkgtest-pkg-perl diff -Nru libdata-dpath-perl-0.55/debian/copyright libdata-dpath-perl-0.57/debian/copyright --- libdata-dpath-perl-0.55/debian/copyright 2015-09-21 16:38:41.000000000 +0000 +++ libdata-dpath-perl-0.57/debian/copyright 2017-09-23 22:29:02.000000000 +0000 @@ -1,4 +1,4 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: https://metacpan.org/release/Data-DPath Upstream-Contact: Steffen Schwigon Upstream-Name: Data-DPath diff -Nru libdata-dpath-perl-0.55/debian/upstream/metadata libdata-dpath-perl-0.57/debian/upstream/metadata --- libdata-dpath-perl-0.55/debian/upstream/metadata 2015-09-21 16:38:41.000000000 +0000 +++ libdata-dpath-perl-0.57/debian/upstream/metadata 2017-09-23 22:29:02.000000000 +0000 @@ -1,8 +1,8 @@ --- Archive: CPAN -Bug-Database: http://rt.cpan.org/Public/Dist/Display.html?Name=Data-DPath +Bug-Database: https://rt.cpan.org/Public/Dist/Display.html?Name=Data-DPath Bug-Submit: bug-Data-DPath@rt.cpan.org Contact: Steffen Schwigon Name: Data-DPath -Repository: git://github.com/renormalist/data-dpath.git -Repository-Browse: http://github.com/renormalist/data-dpath +Repository: https://github.com/renormalist/data-dpath.git +Repository-Browse: https://github.com/renormalist/data-dpath diff -Nru libdata-dpath-perl-0.55/lib/Data/DPath/Attrs.pm libdata-dpath-perl-0.57/lib/Data/DPath/Attrs.pm --- libdata-dpath-perl-0.55/lib/Data/DPath/Attrs.pm 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/lib/Data/DPath/Attrs.pm 2017-08-18 13:54:43.000000000 +0000 @@ -1,9 +1,7 @@ package Data::DPath::Attrs; -BEGIN { - $Data::DPath::Attrs::AUTHORITY = 'cpan:SCHWIGON'; -} +our $AUTHORITY = 'cpan:SCHWIGON'; # ABSTRACT: Abstraction for internal attributes attached to a point -$Data::DPath::Attrs::VERSION = '0.55'; +$Data::DPath::Attrs::VERSION = '0.57'; use strict; use warnings; @@ -43,7 +41,7 @@ =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2015 by Steffen Schwigon. +This software is copyright (c) 2017 by Steffen Schwigon. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libdata-dpath-perl-0.55/lib/Data/DPath/Context.pm libdata-dpath-perl-0.57/lib/Data/DPath/Context.pm --- libdata-dpath-perl-0.55/lib/Data/DPath/Context.pm 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/lib/Data/DPath/Context.pm 2017-08-18 13:54:43.000000000 +0000 @@ -1,9 +1,7 @@ package Data::DPath::Context; -BEGIN { - $Data::DPath::Context::AUTHORITY = 'cpan:SCHWIGON'; -} +our $AUTHORITY = 'cpan:SCHWIGON'; # ABSTRACT: Abstraction for a current context that enables incremental searches -$Data::DPath::Context::VERSION = '0.55'; +$Data::DPath::Context::VERSION = '0.57'; use strict; use warnings; @@ -26,13 +24,17 @@ BEGIN { #$THREADCOUNT = $Data::DPath::PARALLELIZE ? Sys::CPU::cpu_count : 1; #print "THREADCOUNT: $THREADCOUNT\n"; - package Data::DPath::Filters; -BEGIN { - $Data::DPath::Filters::AUTHORITY = 'cpan:SCHWIGON'; -} -$Data::DPath::Filters::VERSION = '0.55'; -$COMPARTMENT = Safe->new; + package + Data::DPath::Filters; + + $COMPARTMENT = Safe->new; $COMPARTMENT->permit(qw":base_core"); + $COMPARTMENT->reval( 'no warnings;' ); # just so warnings is loaded + if ($] >= 5.010) { + $COMPARTMENT->deny(qw":load"); + } else { + $COMPARTMENT->deny(qw"require dofile caller"); + } # map DPath filter functions into new namespace $COMPARTMENT->share(qw(affe idx @@ -133,11 +135,15 @@ keys %{$$ref}; } elsif (ref($$ref) eq ARRAY or reftype($$ref) eq ARRAY) { + my $idx = 0; push @$out, map { - my $newpoint = Point->new->ref($_->{val_ref})->parent($point); - push @newin, $newpoint; # remember added points - $newpoint; + my $newpoint = Point->new + ->ref($_->{val_ref}) + ->parent($point) + ->attrs(Attrs->new(idx => $idx++)); + push @newin, $newpoint; # remember added points + $newpoint; } map { { val_ref => \$_ } } @{$$ref} } @@ -200,11 +206,15 @@ # 'uninitialized' values are the norm # but "no warnings 'uninitialized'" does # not work in this restrictive Safe.pm config, so - # we deactivate warnings completely by localizing $^W - $res = $COMPARTMENT->reval('local $^W;'.$filter); + # we deactivate warnings completely by localizing $^W. + # on later Perls, ^W doesn't do the whole trick, so explicitly turn + # all warnings off. need to do this in a BEGIN, as some warnings + # are compile time only. + $res = $COMPARTMENT->reval('BEGIN{ warnings->unimport}; local $^W;'.$filter); } else { # 'uninitialized' values are the norm no warnings 'uninitialized'; + no if $] >= 5.018, warnings => 'experimental::smartmatch'; $res = eval($filter); } print STDERR ($@, "\n") if $@; @@ -319,8 +329,10 @@ Point->new->ref($v_ref)->parent($point)->attrs($attrs) } keys %$ref ]; } elsif (ref($ref) eq ARRAY or reftype($ref) eq ARRAY) { + my $idx = 0; $step_points = [ map { - Point->new->ref(\$_)->parent($point) + my $attrs = Attrs->new(idx => $idx++); + Point->new->ref(\$_)->parent($point)->attrs($attrs) } @$ref ]; } else { if (ref($pref) eq SCALAR or reftype($pref) eq SCALAR) { @@ -598,7 +610,7 @@ =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2015 by Steffen Schwigon. +This software is copyright (c) 2017 by Steffen Schwigon. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libdata-dpath-perl-0.55/lib/Data/DPath/Filters.pm libdata-dpath-perl-0.57/lib/Data/DPath/Filters.pm --- libdata-dpath-perl-0.55/lib/Data/DPath/Filters.pm 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/lib/Data/DPath/Filters.pm 2017-08-18 13:54:43.000000000 +0000 @@ -1,9 +1,7 @@ package Data::DPath::Filters; -BEGIN { - $Data::DPath::Filters::AUTHORITY = 'cpan:SCHWIGON'; -} +our $AUTHORITY = 'cpan:SCHWIGON'; # ABSTRACT: Magic functions available inside filter conditions -$Data::DPath::Filters::VERSION = '0.55'; +$Data::DPath::Filters::VERSION = '0.57'; use strict; use warnings; @@ -69,6 +67,7 @@ } sub is_reftype($) { + no warnings 'uninitialized'; return (Scalar::Util::reftype($_) eq shift); } @@ -142,7 +141,7 @@ =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2015 by Steffen Schwigon. +This software is copyright (c) 2017 by Steffen Schwigon. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. @@ -155,7 +154,7 @@ # sub parent, Eltern-Knoten liefern # nextchild, von parent und mir selbst # previous child -# "." als aktueller Knoten, kind of "no-op", daran aber Filter verknüpfbar, löst //.[filter] und /.[filter] +# "." als aktueller Knoten, kind of "no-op", daran aber Filter verknüpfbar, löst //.[filter] und /.[filter] # IDEA: functions that return always true, but track stack of values, eg. last taken index # diff -Nru libdata-dpath-perl-0.55/lib/Data/DPath/Path.pm libdata-dpath-perl-0.57/lib/Data/DPath/Path.pm --- libdata-dpath-perl-0.55/lib/Data/DPath/Path.pm 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/lib/Data/DPath/Path.pm 2017-08-18 13:54:43.000000000 +0000 @@ -1,9 +1,7 @@ package Data::DPath::Path; -BEGIN { - $Data::DPath::Path::AUTHORITY = 'cpan:SCHWIGON'; -} +our $AUTHORITY = 'cpan:SCHWIGON'; # ABSTRACT: Abstraction for a DPath -$Data::DPath::Path::VERSION = '0.55'; +$Data::DPath::Path::VERSION = '0.57'; use strict; use warnings; @@ -240,7 +238,7 @@ =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2015 by Steffen Schwigon. +This software is copyright (c) 2017 by Steffen Schwigon. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libdata-dpath-perl-0.55/lib/Data/DPath/Point.pm libdata-dpath-perl-0.57/lib/Data/DPath/Point.pm --- libdata-dpath-perl-0.55/lib/Data/DPath/Point.pm 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/lib/Data/DPath/Point.pm 2017-08-18 13:54:43.000000000 +0000 @@ -1,9 +1,7 @@ package Data::DPath::Point; -BEGIN { - $Data::DPath::Point::AUTHORITY = 'cpan:SCHWIGON'; -} +our $AUTHORITY = 'cpan:SCHWIGON'; # ABSTRACT: Abstraction for a single reference (a "point") in the datastructure -$Data::DPath::Point::VERSION = '0.55'; +$Data::DPath::Point::VERSION = '0.57'; use strict; use warnings; @@ -58,7 +56,7 @@ =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2015 by Steffen Schwigon. +This software is copyright (c) 2017 by Steffen Schwigon. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libdata-dpath-perl-0.55/lib/Data/DPath/Step.pm libdata-dpath-perl-0.57/lib/Data/DPath/Step.pm --- libdata-dpath-perl-0.55/lib/Data/DPath/Step.pm 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/lib/Data/DPath/Step.pm 2017-08-18 13:54:43.000000000 +0000 @@ -1,9 +1,7 @@ package Data::DPath::Step; -BEGIN { - $Data::DPath::Step::AUTHORITY = 'cpan:SCHWIGON'; -} +our $AUTHORITY = 'cpan:SCHWIGON'; # ABSTRACT: Abstraction for a single Step through a Path -$Data::DPath::Step::VERSION = '0.55'; +$Data::DPath::Step::VERSION = '0.57'; use strict; use warnings; @@ -56,7 +54,7 @@ =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2015 by Steffen Schwigon. +This software is copyright (c) 2017 by Steffen Schwigon. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libdata-dpath-perl-0.55/lib/Data/DPath.pm libdata-dpath-perl-0.57/lib/Data/DPath.pm --- libdata-dpath-perl-0.55/lib/Data/DPath.pm 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/lib/Data/DPath.pm 2017-08-18 13:54:43.000000000 +0000 @@ -1,9 +1,9 @@ package Data::DPath; -BEGIN { - $Data::DPath::AUTHORITY = 'cpan:SCHWIGON'; -} +# git description: v0.56-7-g681b3f6 + +our $AUTHORITY = 'cpan:SCHWIGON'; # ABSTRACT: DPath is not XPath! -$Data::DPath::VERSION = '0.55'; +$Data::DPath::VERSION = '0.57'; use 5.008; use strict; use warnings; @@ -814,6 +814,8 @@ also an official API to that: C<< $ancestor->first_point->attrs->key >>, but there it's necessary to check for undefined values before calling the methods F and F, so I went the easy way). +There's an equivalent attribute (C) for the array index of a point +stored in an array. =head1 INTERNAL METHODS @@ -874,7 +876,7 @@ =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2015 by Steffen Schwigon. +This software is copyright (c) 2017 by Steffen Schwigon. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff -Nru libdata-dpath-perl-0.55/LICENSE libdata-dpath-perl-0.57/LICENSE --- libdata-dpath-perl-0.55/LICENSE 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/LICENSE 2017-08-18 13:54:43.000000000 +0000 @@ -1,4 +1,4 @@ -This software is copyright (c) 2015 by Steffen Schwigon. +This software is copyright (c) 2017 by Steffen Schwigon. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. @@ -12,7 +12,7 @@ --- The GNU General Public License, Version 1, February 1989 --- -This software is Copyright (c) 2015 by Steffen Schwigon. +This software is Copyright (c) 2017 by Steffen Schwigon. This is free software, licensed under: @@ -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. @@ -272,7 +272,7 @@ --- The Artistic License 1.0 --- -This software is Copyright (c) 2015 by Steffen Schwigon. +This software is Copyright (c) 2017 by Steffen Schwigon. This is free software, licensed under: diff -Nru libdata-dpath-perl-0.55/Makefile.PL libdata-dpath-perl-0.57/Makefile.PL --- libdata-dpath-perl-0.55/Makefile.PL 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/Makefile.PL 2017-08-18 13:54:43.000000000 +0000 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.039. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.041. use strict; use warnings; @@ -30,14 +30,19 @@ "Text::Balanced" => "2.02", "aliased" => "0.33", "constant" => 0, + "if" => 0, "strict" => 0, "warnings" => 0 }, "TEST_REQUIRES" => { + "File::Spec" => 0, + "IO::Handle" => 0, + "IPC::Open3" => 0, "Test::Deep" => 0, - "Test::More" => "0.88" + "Test::More" => "0.88", + "blib" => "1.01" }, - "VERSION" => "0.55", + "VERSION" => "0.57", "test" => { "TESTS" => "t/*.t" } @@ -48,6 +53,9 @@ "Class::XSAccessor" => 0, "Class::XSAccessor::Array" => 0, "Data::Dumper" => 0, + "File::Spec" => 0, + "IO::Handle" => 0, + "IPC::Open3" => 0, "Iterator::Util" => 0, "List::MoreUtils" => 0, "List::Util" => 0, @@ -59,7 +67,9 @@ "Test::More" => "0.88", "Text::Balanced" => "2.02", "aliased" => "0.33", + "blib" => "1.01", "constant" => 0, + "if" => 0, "strict" => 0, "warnings" => 0 ); diff -Nru libdata-dpath-perl-0.55/MANIFEST libdata-dpath-perl-0.57/MANIFEST --- libdata-dpath-perl-0.55/MANIFEST 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/MANIFEST 2017-08-18 13:54:43.000000000 +0000 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.039. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.041. Changes LICENSE MANIFEST @@ -15,9 +15,11 @@ lib/Data/DPath/Path.pm lib/Data/DPath/Point.pm lib/Data/DPath/Step.pm +t/00-compile.t t/00-load.t t/author-eol.t t/author-no-tabs.t +t/author-pod-syntax.t t/basics_without_overload.t t/bigdata.dump t/bigdata2.dump @@ -31,7 +33,6 @@ t/references.t t/regressions.t t/release-pod-coverage.t -t/release-pod-syntax.t t/zeros.t todo.org xt/alltest.t diff -Nru libdata-dpath-perl-0.55/META.json libdata-dpath-perl-0.57/META.json --- libdata-dpath-perl-0.55/META.json 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/META.json 2017-08-18 13:54:43.000000000 +0000 @@ -4,13 +4,13 @@ "Steffen Schwigon " ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 5.039, CPAN::Meta::Converter version 2.143240", + "generated_by" : "Dist::Zilla version 5.041, CPAN::Meta::Converter version 2.150001", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", - "version" : "2" + "version" : 2 }, "name" : "Data-DPath", "prereqs" : { @@ -51,6 +51,7 @@ "Text::Balanced" : "2.02", "aliased" : "0.33", "constant" : "0", + "if" : "0", "perl" : "5.008", "strict" : "0", "warnings" : "0" @@ -61,8 +62,12 @@ "feature" : "0" }, "requires" : { + "File::Spec" : "0", + "IO::Handle" : "0", + "IPC::Open3" : "0", "Test::Deep" : "0", - "Test::More" : "0.88" + "Test::More" : "0.88", + "blib" : "1.01" } } }, @@ -79,10 +84,10 @@ "web" : "http://github.com/renormalist/data-dpath" } }, - "version" : "0.55", + "version" : "0.57", "x_Dist_Zilla" : { "perl" : { - "version" : "5.016003" + "version" : "5.022000" }, "plugins" : [ { @@ -99,47 +104,47 @@ } }, "name" : "@SCHWIGON/@Basic/GatherDir", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::PruneCruft", "name" : "@SCHWIGON/@Basic/PruneCruft", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@SCHWIGON/@Basic/ManifestSkip", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@SCHWIGON/@Basic/MetaYAML", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@SCHWIGON/@Basic/License", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::Readme", "name" : "@SCHWIGON/@Basic/Readme", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::ExtraTests", "name" : "@SCHWIGON/@Basic/ExtraTests", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@SCHWIGON/@Basic/ExecDir", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::ShareDir", "name" : "@SCHWIGON/@Basic/ShareDir", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::MakeMaker", @@ -149,47 +154,69 @@ } }, "name" : "@SCHWIGON/@Basic/MakeMaker", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@SCHWIGON/@Basic/Manifest", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@SCHWIGON/@Basic/TestRelease", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@SCHWIGON/@Basic/ConfirmRelease", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@SCHWIGON/@Basic/UploadToCPAN", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@SCHWIGON/MetaConfig", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@SCHWIGON/MetaJSON", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::PkgVersion", "name" : "@SCHWIGON/PkgVersion", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@SCHWIGON/PodSyntaxTests", - "version" : "5.039" + "version" : "5.041" + }, + { + "class" : "Dist::Zilla::Plugin::Test::Compile", + "config" : { + "Dist::Zilla::Plugin::Test::Compile" : { + "bail_out_on_fail" : "0", + "fail_on_warning" : "author", + "fake_home" : 0, + "filename" : "t/00-compile.t", + "module_finder" : [ + ":InstallModules" + ], + "needs_display" : 0, + "phase" : "test", + "script_finder" : [ + ":PerlExecFiles" + ], + "skips" : [] + } + }, + "name" : "@SCHWIGON/Test::Compile", + "version" : "2.054" }, { "class" : "Dist::Zilla::Plugin::Test::NoTabs", @@ -214,12 +241,12 @@ { "class" : "Dist::Zilla::Plugin::MetaResources", "name" : "@SCHWIGON/MetaResources", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::Authority", "name" : "@SCHWIGON/Authority", - "version" : "1.006" + "version" : "1.009" }, { "class" : "Dist::Zilla::Plugin::Test::EOL", @@ -239,28 +266,126 @@ }, { "class" : "Dist::Zilla::Plugin::PodWeaver", + "config" : { + "Dist::Zilla::Plugin::PodWeaver" : { + "config_plugins" : [ + "@SCHWIGON" + ], + "finder" : [ + ":InstallModules", + ":ExecFiles" + ], + "plugins" : [ + { + "class" : "Pod::Weaver::Plugin::EnsurePod5", + "name" : "@CorePrep/EnsurePod5", + "version" : "4.012" + }, + { + "class" : "Pod::Weaver::Plugin::H1Nester", + "name" : "@CorePrep/H1Nester", + "version" : "4.012" + }, + { + "class" : "Pod::Weaver::Section::Name", + "name" : "@SCHWIGON/Name", + "version" : "4.012" + }, + { + "class" : "Pod::Weaver::Section::Region", + "name" : "@SCHWIGON/prelude", + "version" : "4.012" + }, + { + "class" : "Pod::Weaver::Section::Generic", + "name" : "SYNOPSIS", + "version" : "4.012" + }, + { + "class" : "Pod::Weaver::Section::Generic", + "name" : "DESCRIPTION", + "version" : "4.012" + }, + { + "class" : "Pod::Weaver::Section::Generic", + "name" : "OVERVIEW", + "version" : "4.012" + }, + { + "class" : "Pod::Weaver::Section::Collect", + "name" : "ATTRIBUTES", + "version" : "4.012" + }, + { + "class" : "Pod::Weaver::Section::Collect", + "name" : "METHODS", + "version" : "4.012" + }, + { + "class" : "Pod::Weaver::Section::Collect", + "name" : "FUNCTIONS", + "version" : "4.012" + }, + { + "class" : "Pod::Weaver::Section::Collect", + "name" : "TYPES", + "version" : "4.012" + }, + { + "class" : "Pod::Weaver::Section::Leftovers", + "name" : "@SCHWIGON/Leftovers", + "version" : "4.012" + }, + { + "class" : "Pod::Weaver::Section::Region", + "name" : "@SCHWIGON/postlude", + "version" : "4.012" + }, + { + "class" : "Pod::Weaver::Section::Authors", + "name" : "@SCHWIGON/Authors", + "version" : "4.012" + }, + { + "class" : "Pod::Weaver::Section::Legal", + "name" : "@SCHWIGON/Legal", + "version" : "4.012" + }, + { + "class" : "Pod::Weaver::Plugin::Transformer", + "name" : "@SCHWIGON/List", + "version" : "4.012" + }, + { + "class" : "Pod::Weaver::Plugin::SingleEncoding", + "name" : "@SCHWIGON/SingleEncoding", + "version" : "4.012" + } + ] + } + }, "name" : "@SCHWIGON/PodWeaver", - "version" : "3.101641" + "version" : "4.006" }, { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@SCHWIGON/AutoPrereqs", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::Git::Describe", "name" : "@SCHWIGON/Git::Describe", - "version" : "0.002" + "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::CheckChangesHasContent", "name" : "@SCHWIGON/CheckChangesHasContent", - "version" : "0.006" + "version" : "0.008" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@SCHWIGON/NextRelease", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch", @@ -270,7 +395,7 @@ } }, "name" : "@SCHWIGON/Git::CheckFor::CorrectBranch", - "version" : "0.006" + "version" : "0.013" }, { "class" : "Dist::Zilla::Plugin::Git::NextVersion", @@ -340,7 +465,7 @@ "branch" : null, "changelog" : "Changes", "signed" : 0, - "tag" : "v0.55", + "tag" : "v0.57", "tag_format" : "v%v", "tag_message" : "v%v" }, @@ -373,7 +498,7 @@ { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "ManifestSkip", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -384,7 +509,7 @@ } }, "name" : "Prereqs", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::Prereqs::Soften", @@ -401,57 +526,57 @@ } }, "name" : "Prereqs::Soften", - "version" : "0.005001" + "version" : "0.006003" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExtraTestFiles", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":PerlExecFiles", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":AllFiles", - "version" : "5.039" + "version" : "5.041" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":NoFiles", - "version" : "5.039" + "version" : "5.041" } ], "zilla" : { @@ -459,7 +584,7 @@ "config" : { "is_trial" : "0" }, - "version" : "5.039" + "version" : "5.041" } }, "x_authority" : "cpan:SCHWIGON" diff -Nru libdata-dpath-perl-0.55/META.yml libdata-dpath-perl-0.57/META.yml --- libdata-dpath-perl-0.55/META.yml 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/META.yml 2017-08-18 13:54:43.000000000 +0000 @@ -3,42 +3,47 @@ author: - 'Steffen Schwigon ' build_requires: - Test::Deep: 0 - Test::More: 0.88 + File::Spec: '0' + IO::Handle: '0' + IPC::Open3: '0' + Test::Deep: '0' + Test::More: '0.88' + blib: '1.01' configure_requires: - ExtUtils::MakeMaker: 0 + ExtUtils::MakeMaker: '0' dynamic_config: 0 -generated_by: 'Dist::Zilla version 5.039, CPAN::Meta::Converter version 2.143240' +generated_by: 'Dist::Zilla version 5.041, CPAN::Meta::Converter version 2.150001' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 + version: '1.4' name: Data-DPath requires: - Class::XSAccessor: 0 - Class::XSAccessor::Array: 0 - Data::Dumper: 0 - Iterator::Util: 0 - List::MoreUtils: 0 - List::Util: 0 - POSIX: 0 - Safe: 2.30 - Scalar::Util: 0 - Sub::Exporter: 0 - Text::Balanced: 2.02 - aliased: 0.33 - constant: 0 - perl: 5.008 - strict: 0 - warnings: 0 + Class::XSAccessor: '0' + Class::XSAccessor::Array: '0' + Data::Dumper: '0' + Iterator::Util: '0' + List::MoreUtils: '0' + List::Util: '0' + POSIX: '0' + Safe: '2.30' + Scalar::Util: '0' + Sub::Exporter: '0' + Text::Balanced: '2.02' + aliased: '0.33' + constant: '0' + if: '0' + perl: '5.008' + strict: '0' + warnings: '0' resources: bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=Data-DPath homepage: http://metacpan.org/release/Data-DPath repository: git://github.com/renormalist/data-dpath.git -version: 0.55 +version: '0.57' x_Dist_Zilla: perl: - version: 5.016003 + version: '5.022000' plugins: - class: Dist::Zilla::Plugin::GatherDir @@ -50,80 +55,97 @@ include_dotfiles: 0 prefix: '' prune_directory: [] - root: '.' + root: . name: '@SCHWIGON/@Basic/GatherDir' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::PruneCruft name: '@SCHWIGON/@Basic/PruneCruft' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::ManifestSkip name: '@SCHWIGON/@Basic/ManifestSkip' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::MetaYAML name: '@SCHWIGON/@Basic/MetaYAML' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::License name: '@SCHWIGON/@Basic/License' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::Readme name: '@SCHWIGON/@Basic/Readme' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::ExtraTests name: '@SCHWIGON/@Basic/ExtraTests' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::ExecDir name: '@SCHWIGON/@Basic/ExecDir' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::ShareDir name: '@SCHWIGON/@Basic/ShareDir' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::MakeMaker config: Dist::Zilla::Role::TestRunner: default_jobs: 1 name: '@SCHWIGON/@Basic/MakeMaker' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::Manifest name: '@SCHWIGON/@Basic/Manifest' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::TestRelease name: '@SCHWIGON/@Basic/TestRelease' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::ConfirmRelease name: '@SCHWIGON/@Basic/ConfirmRelease' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::UploadToCPAN name: '@SCHWIGON/@Basic/UploadToCPAN' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::MetaConfig name: '@SCHWIGON/MetaConfig' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::MetaJSON name: '@SCHWIGON/MetaJSON' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::PkgVersion name: '@SCHWIGON/PkgVersion' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@SCHWIGON/PodSyntaxTests' - version: 5.039 + version: '5.041' + - + class: Dist::Zilla::Plugin::Test::Compile + config: + Dist::Zilla::Plugin::Test::Compile: + bail_out_on_fail: '0' + fail_on_warning: author + fake_home: 0 + filename: t/00-compile.t + module_finder: + - ':InstallModules' + needs_display: 0 + phase: test + script_finder: + - ':PerlExecFiles' + skips: [] + name: '@SCHWIGON/Test::Compile' + version: '2.054' - class: Dist::Zilla::Plugin::Test::NoTabs config: @@ -134,19 +156,19 @@ - ':ExecFiles' - ':TestFiles' name: '@SCHWIGON/Test::NoTabs' - version: 0.15 + version: '0.15' - class: Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable name: '@SCHWIGON/Test::Pod::Coverage::Configurable' - version: 0.05 + version: '0.05' - class: Dist::Zilla::Plugin::MetaResources name: '@SCHWIGON/MetaResources' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::Authority name: '@SCHWIGON/Authority' - version: 1.006 + version: '1.009' - class: Dist::Zilla::Plugin::Test::EOL config: @@ -156,47 +178,123 @@ - ':InstallModules' - ':ExecFiles' - ':TestFiles' - trailing_whitespace: 0 + trailing_whitespace: '0' name: '@SCHWIGON/Test::EOL' - version: 0.18 + version: '0.18' - class: Dist::Zilla::Plugin::PodWeaver + config: + Dist::Zilla::Plugin::PodWeaver: + config_plugins: + - '@SCHWIGON' + finder: + - ':InstallModules' + - ':ExecFiles' + plugins: + - + class: Pod::Weaver::Plugin::EnsurePod5 + name: '@CorePrep/EnsurePod5' + version: '4.012' + - + class: Pod::Weaver::Plugin::H1Nester + name: '@CorePrep/H1Nester' + version: '4.012' + - + class: Pod::Weaver::Section::Name + name: '@SCHWIGON/Name' + version: '4.012' + - + class: Pod::Weaver::Section::Region + name: '@SCHWIGON/prelude' + version: '4.012' + - + class: Pod::Weaver::Section::Generic + name: SYNOPSIS + version: '4.012' + - + class: Pod::Weaver::Section::Generic + name: DESCRIPTION + version: '4.012' + - + class: Pod::Weaver::Section::Generic + name: OVERVIEW + version: '4.012' + - + class: Pod::Weaver::Section::Collect + name: ATTRIBUTES + version: '4.012' + - + class: Pod::Weaver::Section::Collect + name: METHODS + version: '4.012' + - + class: Pod::Weaver::Section::Collect + name: FUNCTIONS + version: '4.012' + - + class: Pod::Weaver::Section::Collect + name: TYPES + version: '4.012' + - + class: Pod::Weaver::Section::Leftovers + name: '@SCHWIGON/Leftovers' + version: '4.012' + - + class: Pod::Weaver::Section::Region + name: '@SCHWIGON/postlude' + version: '4.012' + - + class: Pod::Weaver::Section::Authors + name: '@SCHWIGON/Authors' + version: '4.012' + - + class: Pod::Weaver::Section::Legal + name: '@SCHWIGON/Legal' + version: '4.012' + - + class: Pod::Weaver::Plugin::Transformer + name: '@SCHWIGON/List' + version: '4.012' + - + class: Pod::Weaver::Plugin::SingleEncoding + name: '@SCHWIGON/SingleEncoding' + version: '4.012' name: '@SCHWIGON/PodWeaver' - version: 3.101641 + version: '4.006' - class: Dist::Zilla::Plugin::AutoPrereqs name: '@SCHWIGON/AutoPrereqs' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::Git::Describe name: '@SCHWIGON/Git::Describe' - version: 0.002 + version: '0.006' - class: Dist::Zilla::Plugin::CheckChangesHasContent name: '@SCHWIGON/CheckChangesHasContent' - version: 0.006 + version: '0.008' - class: Dist::Zilla::Plugin::NextRelease name: '@SCHWIGON/NextRelease' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch config: Dist::Zilla::Role::Git::Repo: - repo_root: '.' + repo_root: . name: '@SCHWIGON/Git::CheckFor::CorrectBranch' - version: 0.006 + version: '0.013' - class: Dist::Zilla::Plugin::Git::NextVersion config: Dist::Zilla::Plugin::Git::NextVersion: - first_version: 0.001 + first_version: '0.001' version_by_branch: 0 - version_regexp: '(?^:^v(.+)$)' + version_regexp: (?^:^v(.+)$) Dist::Zilla::Role::Git::Repo: - repo_root: '.' + repo_root: . name: '@SCHWIGON/Git::NextVersion' - version: 2.036 + version: '2.036' - class: Dist::Zilla::Plugin::Git::Check config: @@ -209,9 +307,9 @@ allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: - repo_root: '.' + repo_root: . name: '@SCHWIGON/@Git/Check' - version: 2.036 + version: '2.036' - class: Dist::Zilla::Plugin::Git::Commit config: @@ -225,11 +323,11 @@ allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: - repo_root: '.' + repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@SCHWIGON/@Git/Commit' - version: 2.036 + version: '2.036' - class: Dist::Zilla::Plugin::Git::Tag config: @@ -237,15 +335,15 @@ branch: ~ changelog: Changes signed: 0 - tag: v0.55 + tag: v0.57 tag_format: v%v tag_message: v%v Dist::Zilla::Role::Git::Repo: - repo_root: '.' + repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@SCHWIGON/@Git/Tag' - version: 2.036 + version: '2.036' - class: Dist::Zilla::Plugin::Git::Push config: @@ -254,13 +352,13 @@ - origin remotes_must_exist: 1 Dist::Zilla::Role::Git::Repo: - repo_root: '.' + repo_root: . name: '@SCHWIGON/@Git/Push' - version: 2.036 + version: '2.036' - class: Dist::Zilla::Plugin::ManifestSkip name: ManifestSkip - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::Prereqs config: @@ -268,7 +366,7 @@ phase: runtime type: requires name: Prereqs - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::Prereqs::Soften config: @@ -280,50 +378,50 @@ modules_from_features: ~ to_relationship: recommends name: Prereqs::Soften - version: 0.005001 + version: '0.006003' - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::FinderCode name: ':ExtraTestFiles' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::FinderCode name: ':PerlExecFiles' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::FinderCode name: ':AllFiles' - version: 5.039 + version: '5.041' - class: Dist::Zilla::Plugin::FinderCode name: ':NoFiles' - version: 5.039 + version: '5.041' zilla: class: Dist::Zilla::Dist::Builder config: - is_trial: 0 - version: 5.039 + is_trial: '0' + version: '5.041' x_authority: cpan:SCHWIGON diff -Nru libdata-dpath-perl-0.55/README libdata-dpath-perl-0.57/README --- libdata-dpath-perl-0.55/README 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/README 2017-08-18 13:54:43.000000000 +0000 @@ -1,15 +1,15 @@ This archive contains the distribution Data-DPath, -version 0.55: +version 0.57: DPath is not XPath! -This software is copyright (c) 2015 by Steffen Schwigon. +This software is copyright (c) 2017 by Steffen Schwigon. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. -This README file was generated by Dist::Zilla::Plugin::Readme v5.039. +This README file was generated by Dist::Zilla::Plugin::Readme v5.041. diff -Nru libdata-dpath-perl-0.55/t/00-compile.t libdata-dpath-perl-0.57/t/00-compile.t --- libdata-dpath-perl-0.55/t/00-compile.t 1970-01-01 00:00:00.000000000 +0000 +++ libdata-dpath-perl-0.57/t/00-compile.t 2017-08-18 13:54:43.000000000 +0000 @@ -0,0 +1,60 @@ +use 5.006; +use strict; +use warnings; + +# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.054 + +use Test::More; + +plan tests => 7 + ($ENV{AUTHOR_TESTING} ? 1 : 0); + +my @module_files = ( + 'Data/DPath.pm', + 'Data/DPath/Attrs.pm', + 'Data/DPath/Context.pm', + 'Data/DPath/Filters.pm', + 'Data/DPath/Path.pm', + 'Data/DPath/Point.pm', + 'Data/DPath/Step.pm' +); + + + +# no fake home requested + +my $inc_switch = -d 'blib' ? '-Mblib' : '-Ilib'; + +use File::Spec; +use IPC::Open3; +use IO::Handle; + +open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!"; + +my @warnings; +for my $lib (@module_files) +{ + # see L + my $stderr = IO::Handle->new; + + my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-e', "require q[$lib]"); + binmode $stderr, ':crlf' if $^O eq 'MSWin32'; + my @_warnings = <$stderr>; + waitpid($pid, 0); + is($?, 0, "$lib loaded ok"); + + shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/ + and not eval { require blib; blib->VERSION('1.01') }; + + if (@_warnings) + { + warn @_warnings; + push @warnings, @_warnings; + } +} + + + +is(scalar(@warnings), 0, 'no warnings found') + or diag 'got warnings: ', ( Test::More->can('explain') ? Test::More::explain(\@warnings) : join("\n", '', @warnings) ) if $ENV{AUTHOR_TESTING}; + + diff -Nru libdata-dpath-perl-0.55/t/author-eol.t libdata-dpath-perl-0.57/t/author-eol.t --- libdata-dpath-perl-0.55/t/author-eol.t 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/t/author-eol.t 2017-08-18 13:54:43.000000000 +0000 @@ -22,9 +22,11 @@ 'lib/Data/DPath/Path.pm', 'lib/Data/DPath/Point.pm', 'lib/Data/DPath/Step.pm', + 't/00-compile.t', 't/00-load.t', 't/author-eol.t', 't/author-no-tabs.t', + 't/author-pod-syntax.t', 't/basics_without_overload.t', 't/bigdata.dump', 't/bigdata2.dump', @@ -38,7 +40,6 @@ 't/references.t', 't/regressions.t', 't/release-pod-coverage.t', - 't/release-pod-syntax.t', 't/zeros.t' ); diff -Nru libdata-dpath-perl-0.55/t/author-no-tabs.t libdata-dpath-perl-0.57/t/author-no-tabs.t --- libdata-dpath-perl-0.55/t/author-no-tabs.t 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/t/author-no-tabs.t 2017-08-18 13:54:43.000000000 +0000 @@ -22,9 +22,11 @@ 'lib/Data/DPath/Path.pm', 'lib/Data/DPath/Point.pm', 'lib/Data/DPath/Step.pm', + 't/00-compile.t', 't/00-load.t', 't/author-eol.t', 't/author-no-tabs.t', + 't/author-pod-syntax.t', 't/basics_without_overload.t', 't/bigdata.dump', 't/bigdata2.dump', @@ -38,7 +40,6 @@ 't/references.t', 't/regressions.t', 't/release-pod-coverage.t', - 't/release-pod-syntax.t', 't/zeros.t' ); diff -Nru libdata-dpath-perl-0.55/t/author-pod-syntax.t libdata-dpath-perl-0.57/t/author-pod-syntax.t --- libdata-dpath-perl-0.55/t/author-pod-syntax.t 1970-01-01 00:00:00.000000000 +0000 +++ libdata-dpath-perl-0.57/t/author-pod-syntax.t 2017-08-18 13:54:43.000000000 +0000 @@ -0,0 +1,15 @@ +#!perl + +BEGIN { + unless ($ENV{AUTHOR_TESTING}) { + require Test::More; + Test::More::plan(skip_all => 'these tests are for testing by the author'); + } +} + +# 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-dpath-perl-0.55/t/data_dpath.t libdata-dpath-perl-0.57/t/data_dpath.t --- libdata-dpath-perl-0.55/t/data_dpath.t 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/t/data_dpath.t 2017-08-18 13:54:43.000000000 +0000 @@ -2,6 +2,7 @@ use strict; use warnings; +no if $] >= 5.018, warnings => 'experimental::smartmatch'; use Test::More; use Test::Deep; @@ -599,7 +600,7 @@ $resultlist = $data3 ~~ dpath '//AAA[ reftype eq "HASH" ]/BBB/CCC'; cmp_bag($resultlist, [ ['XXX', 'YYY', 'ZZZ'], 'affe' ], "ANYWHERE + FILTER reftype eq + KEYs" ); -$resultlist = $data3 ~~ dpath '//AAA[ reftype ~~ /ASH/ ]/BBB/CCC'; +$resultlist = $data3 ~~ dpath '//AAA[ reftype =~ /ASH/ ]/BBB/CCC'; cmp_bag($resultlist, [ ['XXX', 'YYY', 'ZZZ'], 'affe' ], "ANYWHERE + FILTER reftype smartmatch + KEYs" ); $resultlist = $data3 ~~ dpath '//AAA[ isa("Foo::Bar") ]/BBB/CCC'; @@ -614,15 +615,15 @@ # ( 'interesting value' ) cmp_bag($resultlist, [ 'interesting value' ], "ROOT + KEYs + FILTER int 0 + KEYs" ); -$resultlist = $data3 ~~ dpath '/*[key ~~ /neighbourhoods/]/*[0]/DDD/FFF'; +$resultlist = $data3 ~~ dpath '/*[key =~ /neighbourhoods/]/*[0]/DDD/FFF'; # ( 'interesting value' ) cmp_bag($resultlist, [ 'interesting value' ], "ROOT + ANYSTEP + FILTER eval key matches + FILTER int 0 + KEYs" ); -$resultlist = $data3 ~~ dpath '/*/.[key ~~ /neighbourhoods/]/*[0]/DDD/FFF'; +$resultlist = $data3 ~~ dpath '/*/.[key =~ /neighbourhoods/]/*[0]/DDD/FFF'; # ( 'interesting value' ) cmp_bag($resultlist, [ 'interesting value' ], "ROOT + ANYSTEP + NOSTEP + FILTER eval key matches + FILTER int 0 + KEYs" ); -$resultlist = $data3 ~~ dpath '/*/*/../.[key ~~ /neighbourhoods/]/*[0]/DDD/FFF'; +$resultlist = $data3 ~~ dpath '/*/*/../.[key =~ /neighbourhoods/]/*[0]/DDD/FFF'; # ( 'interesting value' ) cmp_bag($resultlist, [ 'interesting value' ], "ROOT + ANYSTEP + PARENT + NOSTEP + FILTER eval key matches + FILTER int 0 + KEYs" ); @@ -682,15 +683,15 @@ # ( 'interesting value' ) cmp_bag($resultlist, [ 'interesting value' ], "ROOT + ANYSTEP + PARENT + NOSTEP + FILTER eval key eq + FILTER int" ); -$resultlist = $data3 ~~ dpath '/*[key ~~ /neigh.*hoods/]/*[0]/DDD/FFF'; +$resultlist = $data3 ~~ dpath '/*[key =~ /neigh.*hoods/]/*[0]/DDD/FFF'; # ( 'interesting value' ) cmp_bag($resultlist, [ 'interesting value' ], "ROOT + ANYSTEP + FILTER eval key matches + FILTER int" ); -$resultlist = $data3 ~~ dpath '/*/.[key ~~ /neigh.*hoods/]/*[0]/DDD/FFF'; +$resultlist = $data3 ~~ dpath '/*/.[key =~ /neigh.*hoods/]/*[0]/DDD/FFF'; # ( 'interesting value' ) cmp_bag($resultlist, [ 'interesting value' ], "ROOT + ANYSTEP + NOSTEP + FILTER eval key matches + FILTER int" ); -$resultlist = $data3 ~~ dpath '/*/*/../.[key ~~ /neigh.*hoods/]/*[0]/DDD/FFF'; +$resultlist = $data3 ~~ dpath '/*/*/../.[key =~ /neigh.*hoods/]/*[0]/DDD/FFF'; # ( 'interesting value' ) cmp_bag($resultlist, [ 'interesting value' ], "ROOT + ANYSTEP + PARENT + NOSTEP + FILTER eval key matches + FILTER int" ); @@ -799,7 +800,7 @@ 'affe', ], "ANYWHERE + STEP + ANYSTEP + STEP + FILTER eval key eq last STEP" ); -$resultlist = $data ~~ dpath '//AAA/*[ key ~~ /.../ ]'; +$resultlist = $data ~~ dpath '//AAA/*[ key =~ /.../ ]'; cmp_bag($resultlist, [ { CCC => [ qw/ XXX YYY ZZZ / ] }, { CCC => [ qw/ RR1 RR2 RR3 / ] }, @@ -807,7 +808,7 @@ { CCC => 'affe' }, ], "ANYWHERE + STEP + ANYSTEP + FILTER eval key matches" ); -$resultlist = $data ~~ dpath '//AAA/*[ key ~~ qr(...) ]'; +$resultlist = $data ~~ dpath '//AAA/*[ key =~ qr(...) ]'; cmp_bag($resultlist, [ { CCC => [ qw/ XXX YYY ZZZ / ] }, { CCC => [ qw/ RR1 RR2 RR3 / ] }, @@ -815,7 +816,7 @@ { CCC => 'affe' }, ], "ROOT + ANYSTEP + FILTER eval key matches qr()" ); -$resultlist = $data ~~ dpath '//AAA/*[ key ~~ m(...) ]'; +$resultlist = $data ~~ dpath '//AAA/*[ key =~ m(...) ]'; cmp_bag($resultlist, [ { CCC => [ qw/ XXX YYY ZZZ / ] }, { CCC => [ qw/ RR1 RR2 RR3 / ] }, @@ -823,10 +824,10 @@ { CCC => 'affe' }, ], "ROOT + ANYSTEP + FILTER eval with key matches m(...)" ); -$resultlist = $data ~~ dpath '//AAA/*[ key ~~ /CC/ ]'; +$resultlist = $data ~~ dpath '//AAA/*[ key =~ /CC/ ]'; cmp_bag($resultlist, [ ], "ROOT + ANYSTEP + FILTER eval with key matches /CC/" ); -$resultlist = $data ~~ dpath '//AAA/*/*[ key ~~ /CC/ ]'; +$resultlist = $data ~~ dpath '//AAA/*/*[ key =~ /CC/ ]'; cmp_bag($resultlist, [ [ qw/ XXX YYY ZZZ / ], [ qw/ RR1 RR2 RR3 / ], diff -Nru libdata-dpath-perl-0.55/t/iterator.t libdata-dpath-perl-0.57/t/iterator.t --- libdata-dpath-perl-0.55/t/iterator.t 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/t/iterator.t 2017-08-18 13:54:43.000000000 +0000 @@ -102,18 +102,46 @@ $i++; my @keys; my $benchmark = $benchmarks->value; - my $ancestors = $benchmark->isearch ("/::ancestor"); - my $j = 0; - while ($ancestors->isnt_exhausted) { + { + my $copy = Data::DPath::Context->new->current_points( $benchmark->current_points ); + my $ancestors = $copy->isearch ("/::ancestor"); + + my $j = 0; + while ($ancestors->isnt_exhausted) { $j++; my $ancestor = $ancestors->value; my $key = $ancestor->first_point->{attrs}{key}; push @keys, $key if defined $key; if ($key) { - is ($key, $ancestor->first_point->attrs->key, "accessor methods $i.$j"); + is ($key, $ancestor->first_point->attrs->key, "accessor methods $i.$j"); } + } + } + + { + for my $test ( [ ANYSTEP => '/*' ], + [ ANYWHERE => '//.[! is_reftype( "ARRAY" )]' ] ) { + + my ( $label, $path ) = @$test; + subtest $label => sub { + my $copy = Data::DPath::Context->new->current_points( $benchmark->current_points ); + my $idx_exp = 0; + my $iter = $copy->isearch( $path ); + + my $j = 0; + while ( $iter->isnt_exhausted ) { + my $idx_got = $iter->value->first_point->attrs->{idx}; + is( $idx_got, $idx_exp, "idx attr $i.$j" ); + } + continue { + ++$idx_exp; + ++$j; + } + }; + } } + pop @keys; push @all_keys, join(".", reverse @keys); } diff -Nru libdata-dpath-perl-0.55/t/optimization.t libdata-dpath-perl-0.57/t/optimization.t --- libdata-dpath-perl-0.55/t/optimization.t 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/t/optimization.t 2017-08-18 13:54:43.000000000 +0000 @@ -2,6 +2,7 @@ use strict; use warnings; +no if $] >= 5.018, warnings => 'experimental::smartmatch'; use Test::More; use Test::Deep; diff -Nru libdata-dpath-perl-0.55/t/regressions.t libdata-dpath-perl-0.57/t/regressions.t --- libdata-dpath-perl-0.55/t/regressions.t 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/t/regressions.t 2017-08-18 13:54:43.000000000 +0000 @@ -2,6 +2,7 @@ use strict; use warnings; +no if $] >= 5.018, warnings => 'experimental::smartmatch'; use Test::More; use Test::Deep; diff -Nru libdata-dpath-perl-0.55/t/release-pod-syntax.t libdata-dpath-perl-0.57/t/release-pod-syntax.t --- libdata-dpath-perl-0.55/t/release-pod-syntax.t 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/t/release-pod-syntax.t 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -#!perl - -BEGIN { - unless ($ENV{RELEASE_TESTING}) { - require Test::More; - Test::More::plan(skip_all => 'these tests are for release candidate testing'); - } -} - -# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. -use Test::More; -use Test::Pod 1.41; - -all_pod_files_ok(); diff -Nru libdata-dpath-perl-0.55/t/zeros.t libdata-dpath-perl-0.57/t/zeros.t --- libdata-dpath-perl-0.55/t/zeros.t 2015-09-16 15:41:44.000000000 +0000 +++ libdata-dpath-perl-0.57/t/zeros.t 2017-08-18 13:54:43.000000000 +0000 @@ -2,6 +2,7 @@ use strict; use warnings; +no if $] >= 5.018, warnings => 'experimental::smartmatch'; use Test::More; use Test::Deep;