From bde2ee4f762758cf48d8b84005b7734043e35d20 Mon Sep 17 00:00:00 2001 From: Kent Fredric Date: Sat, 11 Oct 2014 02:23:50 +1300 Subject: [PATCH] Build results of e505ba3 (on master) --- .gitignore | 2 + .mailmap | 3 + .perltidyrc | 2 +- .travis.yml | 56 ++ Build.PL | 67 -- Changes | 160 ++--- LICENSE | 8 +- MANIFEST | 20 +- META.json | 741 ++++++++++++++++---- META.yml | 637 ++++++++++++----- Makefile.PL | 85 +++ README | 15 +- dist.ini | 214 +++++- dist.ini.meta | 27 + lib/Data/Handle.pm | 154 +++- lib/Data/Handle/Exception.pm | 128 +++- lib/Data/Handle/IO.pm | 39 +- maint/perlcritic.rc.gen.pl | 64 ++ misc/Changes.deps | 84 +++ misc/Changes.deps.all | 191 +++++ misc/Changes.deps.dev | 123 ++++ misc/Changes.deps.opt | 35 + misc/perlcritic.deps | 15 + perlcritic.rc | 451 +++++++++++- t/00-compile.t | 74 -- t/00-compile/lib_Data_Handle_Exception_pm.t | 11 + t/00-compile/lib_Data_Handle_IO_pm.t | 11 + t/00-compile/lib_Data_Handle_pm.t | 11 + t/00-report-prereqs.dd | 104 +++ t/00-report-prereqs.t | 176 +++++ t/000-report-versions-tiny.t | 96 --- t/02_example.t | 11 +- t/04_things_that_fail.t | 161 +---- t/alternative_techniques/03_fdup_test.t | 50 +- t/alternative_techniques/04_fopen.t | 17 +- t/alternative_techniques/05_new_from_fd.t | 10 +- weaver.ini | 1 + xt/release/distmeta.t | 5 +- xt/release/kwalitee.t | 12 +- xt/release/pod-coverage.t | 12 +- xt/release/pod-syntax.t | 5 +- 41 files changed, 3151 insertions(+), 937 deletions(-) create mode 100644 .gitignore create mode 100644 .mailmap create mode 100644 .travis.yml delete mode 100644 Build.PL create mode 100644 Makefile.PL create mode 100644 dist.ini.meta create mode 100644 maint/perlcritic.rc.gen.pl create mode 100644 misc/Changes.deps create mode 100644 misc/Changes.deps.all create mode 100644 misc/Changes.deps.dev create mode 100644 misc/Changes.deps.opt create mode 100644 misc/perlcritic.deps delete mode 100644 t/00-compile.t create mode 100644 t/00-compile/lib_Data_Handle_Exception_pm.t create mode 100644 t/00-compile/lib_Data_Handle_IO_pm.t create mode 100644 t/00-compile/lib_Data_Handle_pm.t create mode 100644 t/00-report-prereqs.dd create mode 100644 t/00-report-prereqs.t delete mode 100644 t/000-report-versions-tiny.t diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..574d83a --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +Data-Handle* +.build diff --git a/.mailmap b/.mailmap new file mode 100644 index 0000000..ca81607 --- /dev/null +++ b/.mailmap @@ -0,0 +1,3 @@ +# git help shortlog +# newname oldname + diff --git a/.perltidyrc b/.perltidyrc index 6afbb3f..3af28b5 100644 --- a/.perltidyrc +++ b/.perltidyrc @@ -1,2 +1,2 @@ -i 2 --l 80 +-l 130 diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ee8ce89 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,56 @@ +language: perl +matrix: + allow_failures: + - perl: "5.8" + - env: STERILIZE_ENV=0 RELEASE_TESTING=1 AUTHOR_TESTING=1 + - env: STERILIZE_ENV=0 DEVELOPER_DEPS=1 + include: + - perl: "5.21" + env: STERILIZE_ENV=0 COVERAGE_TESTING=1 + - perl: "5.21" + env: STERILIZE_ENV=1 + - perl: "5.8" + env: STERILIZE_ENV=0 + - perl: "5.10" + env: STERILIZE_ENV=0 + - perl: "5.12" + env: STERILIZE_ENV=0 + - perl: "5.14" + env: STERILIZE_ENV=0 + - perl: "5.16" + env: STERILIZE_ENV=0 + - perl: "5.20" + env: STERILIZE_ENV=0 + - perl: "5.21" + env: STERILIZE_ENV=0 + - perl: "5.8" + env: STERILIZE_ENV=1 + - perl: "5.10" + env: STERILIZE_ENV=1 + - perl: "5.20" + env: STERILIZE_ENV=1 + - perl: "5.21" + env: STERILIZE_ENV=0 DEVELOPER_DEPS=1 + - perl: "5.21" + env: STERILIZE_ENV=0 RELEASE_TESTING=1 AUTHOR_TESTING=1 +before_install: + - perlbrew list + - time git clone --depth 10 https://github.com/kentfredric/travis-scripts.git maint-travis-ci + - time git -C ./maint-travis-ci reset --hard master + - time perl ./maint-travis-ci/branch_reset.pl + - time perl ./maint-travis-ci/sterilize_env.pl +install: + - time perl ./maint-travis-ci/install_deps_early.pl + - time perl ./maint-travis-ci/install_deps.pl +before_script: + - time perl ./maint-travis-ci/before_script.pl +script: + - time perl ./maint-travis-ci/script.pl +after_failure: + - perl ./maint-travis-ci/report_fail_ctx.pl +branches: + only: + - "master" + - "build/master" + - "releases" + diff --git a/Build.PL b/Build.PL deleted file mode 100644 index 9420cb7..0000000 --- a/Build.PL +++ /dev/null @@ -1,67 +0,0 @@ - -use strict; -use warnings; - -use Module::Build 0.3601; - - -my %module_build_args = ( - "build_requires" => { - "Module::Build" => "0.4005" - }, - "configure_requires" => { - "Module::Build" => "0.4005" - }, - "dist_abstract" => "A Very simple interface to the __DATA__ file handle.", - "dist_author" => [ - "Kent Fredric " - ], - "dist_name" => "Data-Handle", - "dist_version" => "0.02001003", - "license" => "perl", - "module_name" => "Data::Handle", - "recommends" => {}, - "recursive_test_files" => 1, - "requires" => { - "Carp" => "1.22", - "IO::File" => 0, - "Package::Stash" => "0.15", - "Scalar::Util" => 0, - "Symbol" => 0, - "Term::ANSIColor" => 0, - "Try::Tiny" => 0, - "overload" => 0, - "parent" => 0, - "perl" => "5.008", - "strict" => 0, - "warnings" => 0 - }, - "script_files" => [], - "test_requires" => { - "Data::Dumper" => 0, - "File::Find" => 0, - "File::Temp" => 0, - "IO::Handle" => 0, - "Test::Fatal" => 0, - "Test::More" => "0.98", - "lib" => 0 - } -); - - -unless ( eval { Module::Build->VERSION(0.4004) } ) { - my $tr = delete $module_build_args{test_requires}; - my $br = $module_build_args{build_requires}; - for my $mod ( keys %$tr ) { - if ( exists $br->{$mod} ) { - $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod}; - } - else { - $br->{$mod} = $tr->{$mod}; - } - } -} - -my $build = Module::Build->new(%module_build_args); - -$build->create_build_script; diff --git a/Changes b/Changes index 78d13a6..c56c519 100644 --- a/Changes +++ b/Changes @@ -1,31 +1,34 @@ -Revision history for Data-Handle +Revision history for Data-Handle + +1.000000 2014-10-10T13:04:03Z 3f54592 + [00 Major - Version Scheme Change] + - Migrate to using x.yyyzzz (mantissa=6) instead of x.yyyzzzaa (mantissa=8) + - This may affect hand-operated downstreams + - https://questhub.io/realm/perl/quest/5388d3a9bbd0be2224000129 + + [01 Major - Toolkit Change] + - Migrate from using Module::Build to using ExtUtils::MakeMaker as installer toolkit + - Make test/toolkit "latest" dependencies merely recommendations. + - https://questhub.io/realm/perl/quest/5388cc12bbd0be5b2500011f + + [Dependencies::Stats] + - Dependencies changed since 0.02001003, see misc/*.deps* for details + - build: -1 + - configure: +1 -1 (recommends: +1) + - develop: +47 -2 (recommends: -1, suggests: +1 ↑1) + - test: +2 ↓1 -2 (recommends: +3) 0.02001003 2013-07-26T09:11:29Z [Bugfixes] - No longer broken on modern Package::Stash's - [Dependencies::Added / develop requires] - - Pod::Coverage::TrustPod - - Test::CPAN::Changes 0.19 - - Test::CPAN::Meta - - Test::Pod 1.41 - - Test::Pod::Coverage 1.08 - - version 0.9901 - - [Dependencies::Added / test requires] - - lib - - [Dependencies::Changed / build requires] - - Module::Build 0.4002 → 0.4005 - - [Dependencies::Changed / configure requires] - - Module::Build 0.4002 → 0.4005 - - [Dependencies::Changed / develop suggests] - - Dist::Zilla::PluginBundle::Author::KENTNL v1.5.0 → v1.7.4 - - [Dependencies::Changed / runtime requires] - - Package::Stash 0 → 0.15 + [Dependencies::Stats] + - Dependencies changed since 0.02001002, see misc/*.deps* for details + - build: ↑1 + - configure: ↑1 + - develop: +6 (suggests: ↑1) + - runtime: ↑1 + - test: +1 [Documentation] - Updated copyright year @@ -40,34 +43,26 @@ Revision history for Data-Handle 0.02001002 2012-08-11T01:59:03Z - Minor Maintenance Release. - [Dependencies::Changed] - - build requires : Module::Build 0.3601 -> 0.4002 - - configure requires : Module::Build 0.3601 -> 0.4002 - - development suggests : Dist::Zilla::PluginBundle::Author::KENTNL - v1.3.0 -> v1.5.0 - - test requires : Test::More 0.96 -> 0.98 + [Dependencies::Stats] + - Dependencies changed since 0.02001001, see misc/*.deps* for details + - build: ↑1 + - configure: ↑1 + - develop: (suggests: ↑1) + - test: ↑1 [Tests] - Made tests slightly more detailed in the error condition. 0.02001001 2012-06-08T13:30:28Z [00 Important Changes] - - Code has been purged of stolen chunks of Carp code, and now instead - depends on a minimum Carp of v1.22. This is the first release of Carp - that was packaged on CPAN as a Dual Lifed module, upon which I can rely - upon the existance and implementation of 'caller_info'. It is hoped this - will make bugs smaller and the code easier. - - [Dependencies::Development::Changed] - - recommends : Dist::Zilla::PluginBundle::Author::KENTNL::Lite - 0.01009803 -> v1.3.0 - - suggests : Dist::Zilla::PluginBundle::Author::KENTNL v1.0.0 -> v1.3.0 + - Code has been purged of stolen chunks of Carp code, and now instead depends on a minimum Carp of v1.22. This is the + first release of Carp that was packaged on CPAN as a Dual Lifed module, upon which I can rely upon the existance and + implementation of 'caller_info'. It is hoped this will make bugs smaller and the code easier. - [Dependencies::Runtime::Changed] - - requires : Carp 0 -> 1.22 - - [Dependencies::Runtime::New] - - requires : perl 5.8.0 + [Dependencies::Stats] + - Dependencies changed since 0.01011704, see misc/*.deps* for details + - develop: (recommends: ↑1, suggests: ↑1) + - runtime: +1 ↑1 [Packaging] - Update LICENSE ( Year, Address, Indent ) @@ -79,13 +74,10 @@ Revision history for Data-Handle [Bugs] - Adapted to work with latest Package::Stash ( 0.33 ) - [Dependencies::New] - - Try::Tiny - - strict - - warnings - - [Dependencies::Removed] - - English + [Dependencies::Stats] + - Dependencies changed since 0.01011703, see misc/*.deps* for details + - runtime: +3 + - test: -1 [Internals] - AUTHORITY data now provided @@ -98,14 +90,17 @@ Revision history for Data-Handle - Github URL's now all https:// [Tests] - - Refactored some of the exception class testing logic in 04_ for enhanced - clarity. + - Refactored some of the exception class testing logic in 04_ for enhanced clarity. 0.01011703 2011-04-24T22:29:18Z - Minor changes release, mostly just dist maintainence. + - [Dependencies::Stats] + - Dependencies changed since 0.01011702, see misc/*.deps* for details + - develop: +1 -1 (recommends: +1 -1, suggests: +1 -1) - [Dependencies::Devel] - - Advertise @Author::KENTNL + [Dependencies::Stats] + - Dependencies changed since 0.01011702, see misc/*.deps* for details + - develop: +1 -1 (recommends: +1 -1, suggests: +1 -1) [Internals] - Explicitly set $@ to undef ( critic ) @@ -126,54 +121,45 @@ Revision history for Data-Handle - Don't index DB. 0.01011701 2010-12-21T13:29:00Z - - Give up on trying to operate with the Carp shipped with 5.6.2. If its - not there, and not in Carp::Heavy's injections, use a copy of one we - stole and made work. + - Give up on trying to operate with the Carp shipped with 5.6.2. If its not there, and not in Carp::Heavy's + injections, use a copy of one we stole and made work. - Have to put a fix in as well, because Term::ANSIColor clobbers $@ 0.01011617 2010-12-21T05:46:24Z - Fix "missing parentheses around my ( )" for Perl-5.6 0.01011601 2010-12-20T13:07:01Z - - Yuck. The way caller_info is provided is ambiguous. Hopefully this - release will get that right. + - Yuck. The way caller_info is provided is ambiguous. Hopefully this release will get that right. 0.01011501 2010-12-19T13:15:59Z - - The method we were borrowing out of Carp wasn't there in old versions, - so we've added a bit of magic to try get it from older carps too, so we - don't fail on <= 5.10.1 :( + - The method we were borrowing out of Carp wasn't there in old versions, so we've added a bit of magic to try get it + from older carps too, so we don't fail on <= 5.10.1 :( 0.01011500 2010-12-19T12:36:06Z - More tests to improve general function coverage. - - 'generate_exception' is gone, depercated. - - Replace: C< generate_exception($class , $message)->throw() > with C< - _gen_tree($full_class)->throw( $message ) > - - Coverage testing detected a missing exception class, fixed in this - release. + - 'generate_exception' is gone, depercated. + - Replace: C< generate_exception($class , $message)->throw() > with C< _gen_tree($full_class)->throw( $message ) > + - Coverage testing detected a missing exception class, fixed in this release. - All tied() methods now tested to some degree to work. 0.01011421 2010-12-19T09:52:17Z - - Reworked the Exception code to be cleaner at the cost of a slight - initialisatin cost. - - Reworked code bodies to unify seek/tell calls as _restore_pos and - _set_pos. + - Reworked the Exception code to be cleaner at the cost of a slight initialisatin cost. + - Reworked code bodies to unify seek/tell calls as _restore_pos and _set_pos. - Added _fh so internal code is less confusing. - Extended tests to cover more scenarios. - - Added contributed suggestions as "alternative_techinques" with - demonstrations how they *( so far ) don't work. If people can get them - to work (on all perls), that'd be great!. ( Seems there are many weird - fdup bugs in perl ) - - Stolen the backtrace code from Carp a bit and augmented it, now produce - useful backtraces. - - Have some nice code in our exception stringification that highlights - lines with colours based on how much we think they're related to the - problem. Stuff thats part of DH ( the place the error was detected ) is - highlighted green as we think it will be usefull in diagnosis, but its - not the source of the problem. Stuff that we know is likely to be - infrastructural and not likely to be part of the problem ( ie: code like - Try::Tiny and Test::Fatal ) are highlighted yellow because we doubt its - useful. Everything else is left white, and you should look for the - problem there first. + - Added contributed suggestions as "alternative_techinques" with demonstrations how they *( so far ) don't work. If + people can get them to work (on all perls), that'd be great!. ( Seems there are many weird fdup bugs in perl ) + - Stolen the backtrace code from Carp a bit and augmented it, now produce useful backtraces. + - Have some nice code in our exception stringification that highlights lines with colours based on how much we think + they're related to the problem. Stuff thats part of DH ( the place the error was detected ) is highlighted green as + we think it will be usefull in diagnosis, but its not the source of the problem. Stuff that we know is likely to be + infrastructural and not likely to be part of the problem ( ie: code like Try::Tiny and Test::Fatal ) are highlighted + yellow because we doubt its useful. Everything else is left white, and you should look for the problem there first. + + [Dependencies::Stats] + - Dependencies changed since 0.01011322, see misc/*.deps* for details + - runtime: +1 + - test: +2 0.01011322 2010-12-18T10:14:03Z - First version. diff --git a/LICENSE b/LICENSE index d100b80..df1fb1e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -This software is copyright (c) 2013 by Kent Fredric . +This software is copyright (c) 2014 by Kent Fredric . 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 @@ b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- -This software is Copyright (c) 2013 by Kent Fredric . +This software is Copyright (c) 2014 by Kent Fredric . This is free software, licensed under: @@ -22,7 +22,7 @@ This is free software, licensed under: 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 @@ That's all there is to it! --- The Artistic License 1.0 --- -This software is Copyright (c) 2013 by Kent Fredric . +This software is Copyright (c) 2014 by Kent Fredric . This is free software, licensed under: diff --git a/MANIFEST b/MANIFEST index f676dd4..4e4d551 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1,18 +1,32 @@ +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.020. +.gitignore +.mailmap .perltidyrc -Build.PL +.travis.yml Changes LICENSE MANIFEST META.json META.yml +Makefile.PL README dist.ini +dist.ini.meta lib/Data/Handle.pm lib/Data/Handle/Exception.pm lib/Data/Handle/IO.pm +maint/perlcritic.rc.gen.pl +misc/Changes.deps +misc/Changes.deps.all +misc/Changes.deps.dev +misc/Changes.deps.opt +misc/perlcritic.deps perlcritic.rc -t/00-compile.t -t/000-report-versions-tiny.t +t/00-compile/lib_Data_Handle_Exception_pm.t +t/00-compile/lib_Data_Handle_IO_pm.t +t/00-compile/lib_Data_Handle_pm.t +t/00-report-prereqs.dd +t/00-report-prereqs.t t/01_lowlevel.t t/02_example.t t/03_mess_with_seek.t diff --git a/META.json b/META.json index 226c7b4..49d44f2 100644 --- a/META.json +++ b/META.json @@ -4,7 +4,7 @@ "Kent Fredric " ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 4.300035, CPAN::Meta::Converter version 2.131560", + "generated_by" : "Dist::Zilla version 5.020, CPAN::Meta::Converter version 2.142690", "license" : [ "perl_5" ], @@ -14,31 +14,72 @@ }, "name" : "Data-Handle", "prereqs" : { - "build" : { - "requires" : { - "Module::Build" : "0.4005" - } - }, "configure" : { + "recommends" : { + "ExtUtils::MakeMaker" : "6.98" + }, "requires" : { - "Module::Build" : "0.4005" + "ExtUtils::MakeMaker" : "0" } }, "develop" : { - "recommends" : { - "Dist::Zilla::PluginBundle::Author::KENTNL::Lite" : "v1.3.0" - }, "requires" : { - "Dist::Zilla::PluginBundle::Author::KENTNL::Lite" : "0", + "Dist::Zilla" : "5", + "Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes" : "0.001001", + "Dist::Zilla::Plugin::Authority" : "1.006", + "Dist::Zilla::Plugin::AutoPrereqs" : "0", + "Dist::Zilla::Plugin::BumpVersionAfterRelease" : "0", + "Dist::Zilla::Plugin::ConfirmRelease" : "0", + "Dist::Zilla::Plugin::CopyFilesFromBuild" : "0", + "Dist::Zilla::Plugin::EOLTests" : "0", + "Dist::Zilla::Plugin::Git::Check" : "0", + "Dist::Zilla::Plugin::Git::Commit" : "0", + "Dist::Zilla::Plugin::Git::CommitBuild" : "0", + "Dist::Zilla::Plugin::Git::Contributors" : "0.006", + "Dist::Zilla::Plugin::Git::GatherDir" : "0", + "Dist::Zilla::Plugin::Git::NextRelease" : "0.004000", + "Dist::Zilla::Plugin::Git::Tag" : "0", + "Dist::Zilla::Plugin::GithubMeta" : "0", + "Dist::Zilla::Plugin::License" : "0", + "Dist::Zilla::Plugin::MakeMaker" : "0", + "Dist::Zilla::Plugin::Manifest" : "0", + "Dist::Zilla::Plugin::ManifestSkip" : "0", + "Dist::Zilla::Plugin::MetaConfig" : "0", + "Dist::Zilla::Plugin::MetaData::BuiltWith" : "0", + "Dist::Zilla::Plugin::MetaJSON" : "0", + "Dist::Zilla::Plugin::MetaProvides::Package" : "1.14000001", + "Dist::Zilla::Plugin::MetaTests" : "0", + "Dist::Zilla::Plugin::MetaYAML" : "0", + "Dist::Zilla::Plugin::MinimumPerl" : "0", + "Dist::Zilla::Plugin::PodCoverageTests" : "0", + "Dist::Zilla::Plugin::PodSyntaxTests" : "0", + "Dist::Zilla::Plugin::PodWeaver" : "0", + "Dist::Zilla::Plugin::Prereqs" : "0", + "Dist::Zilla::Plugin::Prereqs::AuthorDeps" : "0", + "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled" : "0", + "Dist::Zilla::Plugin::ReadmeAnyFromPod" : "0", + "Dist::Zilla::Plugin::ReadmeFromPod" : "0", + "Dist::Zilla::Plugin::RewriteVersion::Sanitized" : "0", + "Dist::Zilla::Plugin::RunExtraTests" : "0", + "Dist::Zilla::Plugin::Test::CPAN::Changes" : "0", + "Dist::Zilla::Plugin::Test::Compile::PerFile" : "0", + "Dist::Zilla::Plugin::Test::Kwalitee" : "0", + "Dist::Zilla::Plugin::Test::MinimumVersion" : "0", + "Dist::Zilla::Plugin::Test::Perl::Critic" : "0", + "Dist::Zilla::Plugin::Test::ReportPrereqs" : "0", + "Dist::Zilla::Plugin::TestRelease" : "0", + "Dist::Zilla::Plugin::Twitter" : "0", + "Dist::Zilla::Plugin::UploadToCPAN" : "0", "Pod::Coverage::TrustPod" : "0", "Test::CPAN::Changes" : "0.19", "Test::CPAN::Meta" : "0", + "Test::Kwalitee" : "1.21", "Test::Pod" : "1.41", - "Test::Pod::Coverage" : "1.08", - "version" : "0.9901" + "Test::Pod::Coverage" : "1.08" }, "suggests" : { - "Dist::Zilla::PluginBundle::Author::KENTNL" : "v1.7.4" + "Dist::Zilla::App::Command::bakeini" : "0.001002", + "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.021000" } }, "runtime" : { @@ -58,13 +99,18 @@ } }, "test" : { + "recommends" : { + "CPAN::Meta" : "2.120900", + "ExtUtils::MakeMaker" : "6.98", + "Test::More" : "1.001006" + }, "requires" : { "Data::Dumper" : "0", - "File::Find" : "0", - "File::Temp" : "0", + "ExtUtils::MakeMaker" : "0", + "File::Spec" : "0", "IO::Handle" : "0", "Test::Fatal" : "0", - "Test::More" : "0.98", + "Test::More" : "0.96", "lib" : "0" } } @@ -72,102 +118,160 @@ "provides" : { "Data::Handle" : { "file" : "lib/Data/Handle.pm", - "version" : "0.02001003" + "version" : "1.000000" }, "Data::Handle::Exception" : { "file" : "lib/Data/Handle/Exception.pm", - "version" : "0.02001003" + "version" : "1.000000" }, "Data::Handle::IO" : { "file" : "lib/Data/Handle/IO.pm", - "version" : "0.02001003" + "version" : "1.000000" } }, "release_status" : "stable", "resources" : { "bugtracker" : { - "web" : "https://github.com/kentfredric/Data-Handle/issues" + "web" : "https://github.com/kentnl/Data-Handle/issues" }, - "homepage" : "https://github.com/kentfredric/Data-Handle", + "homepage" : "https://github.com/kentnl/Data-Handle", "repository" : { "type" : "git", - "url" : "https://github.com/kentfredric/Data-Handle.git", - "web" : "https://github.com/kentfredric/Data-Handle" + "url" : "https://github.com/kentnl/Data-Handle.git", + "web" : "https://github.com/kentnl/Data-Handle" } }, - "version" : "0.02001003", + "version" : "1.000000", "x_BuiltWith" : { "modules" : { - "Carp" : "1.29", - "Data::Dumper" : "2.145", - "Dist::Zilla::PluginBundle::Author::KENTNL" : "1.7.4", - "Dist::Zilla::PluginBundle::Author::KENTNL::Lite" : "NA(possibly not installed)", - "File::Find" : "1.23", - "File::Temp" : "0.2301", + "CPAN::Meta" : "2.142690", + "Carp" : "1.34", + "Data::Dumper" : "2.154", + "Dist::Zilla" : "5.020", + "Dist::Zilla::App::Command::bakeini" : "0.001002", + "Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes" : "0.003006", + "Dist::Zilla::Plugin::Authority" : "1.006", + "Dist::Zilla::Plugin::AutoPrereqs" : "5.020", + "Dist::Zilla::Plugin::BumpVersionAfterRelease" : "0.004", + "Dist::Zilla::Plugin::ConfirmRelease" : "5.020", + "Dist::Zilla::Plugin::CopyFilesFromBuild" : "0.103510", + "Dist::Zilla::Plugin::EOLTests" : "0.02", + "Dist::Zilla::Plugin::Git::Check" : "2.024", + "Dist::Zilla::Plugin::Git::Commit" : "2.024", + "Dist::Zilla::Plugin::Git::CommitBuild" : "2.024", + "Dist::Zilla::Plugin::Git::Contributors" : "0.007", + "Dist::Zilla::Plugin::Git::GatherDir" : "2.024", + "Dist::Zilla::Plugin::Git::NextRelease" : "0.004000", + "Dist::Zilla::Plugin::Git::Tag" : "2.024", + "Dist::Zilla::Plugin::GithubMeta" : "0.46", + "Dist::Zilla::Plugin::License" : "5.020", + "Dist::Zilla::Plugin::MakeMaker" : "5.020", + "Dist::Zilla::Plugin::Manifest" : "5.020", + "Dist::Zilla::Plugin::ManifestSkip" : "5.020", + "Dist::Zilla::Plugin::MetaConfig" : "5.020", + "Dist::Zilla::Plugin::MetaData::BuiltWith" : "1.003001", + "Dist::Zilla::Plugin::MetaJSON" : "5.020", + "Dist::Zilla::Plugin::MetaProvides::Package" : "2.001002", + "Dist::Zilla::Plugin::MetaTests" : "5.020", + "Dist::Zilla::Plugin::MetaYAML" : "5.020", + "Dist::Zilla::Plugin::MinimumPerl" : "1.003", + "Dist::Zilla::Plugin::PodCoverageTests" : "5.020", + "Dist::Zilla::Plugin::PodSyntaxTests" : "5.020", + "Dist::Zilla::Plugin::PodWeaver" : "4.006", + "Dist::Zilla::Plugin::Prereqs" : "5.020", + "Dist::Zilla::Plugin::Prereqs::AuthorDeps" : "0.003", + "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled" : "0.003001", + "Dist::Zilla::Plugin::ReadmeAnyFromPod" : "0.142470", + "Dist::Zilla::Plugin::ReadmeFromPod" : "0.21", + "Dist::Zilla::Plugin::RewriteVersion::Sanitized" : "0.001004", + "Dist::Zilla::Plugin::RunExtraTests" : "0.022", + "Dist::Zilla::Plugin::Test::CPAN::Changes" : "0.008", + "Dist::Zilla::Plugin::Test::Compile::PerFile" : "0.003000", + "Dist::Zilla::Plugin::Test::Kwalitee" : "2.11", + "Dist::Zilla::Plugin::Test::MinimumVersion" : "2.000005", + "Dist::Zilla::Plugin::Test::Perl::Critic" : "2.112410", + "Dist::Zilla::Plugin::Test::ReportPrereqs" : "0.019", + "Dist::Zilla::Plugin::TestRelease" : "5.020", + "Dist::Zilla::Plugin::Twitter" : "0.026", + "Dist::Zilla::Plugin::UploadToCPAN" : "5.020", + "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.021000", + "ExtUtils::MakeMaker" : "6.98", + "File::Spec" : "3.49", "IO::File" : "1.16", - "IO::Handle" : "1.34", - "Module::Build" : "0.4005", - "Package::Stash" : "0.34", - "Pod::Coverage::TrustPod" : "0.100002", - "Scalar::Util" : "1.27", + "IO::Handle" : "1.35", + "Package::Stash" : "0.37", + "Pod::Coverage::TrustPod" : "0.100003", + "Scalar::Util" : "1.41", "Symbol" : "1.07", - "Term::ANSIColor" : "4.02", - "Test::CPAN::Changes" : "0.20", + "Term::ANSIColor" : "4.03", + "Test::CPAN::Changes" : "0.30", "Test::CPAN::Meta" : "0.23", - "Test::Fatal" : "0.010", - "Test::More" : "0.98", + "Test::Fatal" : "0.013", + "Test::Kwalitee" : "1.22", + "Test::More" : "1.001006", "Test::Pod" : "1.48", - "Test::Pod::Coverage" : "1.08", - "Try::Tiny" : "0.15", + "Test::Pod::Coverage" : "1.10", + "Try::Tiny" : "0.22", "lib" : "0.63", "overload" : "1.22", - "parent" : "0.225", - "perl" : "NA(skipped: perl)", - "strict" : "1.07", - "version" : "0.9902", - "warnings" : "1.18" + "parent" : "0.228", + "strict" : "1.08", + "warnings" : "1.26" }, "perl" : { - "original" : "v5.18.0", + "original" : "v5.21.3", "qv" : 1, "version" : [ 5, - 18, - 0 + 21, + 3 ] }, "perl-config" : { - "gccversion" : "4.7.2", + "gccversion" : "4.8.3", + "git_commit_id" : "640eedb9ffcac7a9c2793689044e84bfd9af3045", + "git_describe" : "v5.21.2-215-g640eedb", "myarchname" : "x86_64-linux", "osname" : "linux" }, "platform" : "linux", - "uname" : "Linux 3.10.0-gentoo x86_64 GenuineIntel GNU/Linux" + "uname" : "Linux 3.16.1-aufs x86_64 GenuineIntel GNU/Linux" }, "x_Dist_Zilla" : { "perl" : { - "version" : "5.018000" + "version" : "5.021003" }, "plugins" : [ - { - "class" : "Dist::Zilla::Plugin::Git::NextVersion", - "name" : "@Author::KENTNL/Git::NextVersion", - "version" : "2.014" - }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@Author::KENTNL/MetaConfig", - "version" : "4.300035" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::GithubMeta", "name" : "@Author::KENTNL/GithubMeta", - "version" : "0.28" + "version" : "0.46" }, { "class" : "Dist::Zilla::Plugin::MetaProvides::Package", + "config" : { + "Dist::Zilla::Plugin::MetaProvides::Package" : { + "finder_objects" : [ + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : "@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM", + "version" : "5.020" + } + ] + }, + "Dist::Zilla::Role::MetaProvider::Provider" : { + "inherit_missing" : "1", + "inherit_version" : "1", + "meta_noindex" : "1" + } + }, "name" : "@Author::KENTNL/MetaProvides::Package", - "version" : "1.14000002" + "version" : "2.001002" }, { "class" : "Dist::Zilla::Plugin::MetaData::BuiltWith", @@ -189,57 +293,89 @@ } }, "name" : "@Author::KENTNL/MetaData::BuiltWith", - "version" : "0.03000100" + "version" : "1.003001" + }, + { + "class" : "Dist::Zilla::Plugin::Git::Contributors", + "config" : { + "Dist::Zilla::Plugin::Git::Contributors" : { + "include_authors" : "0", + "include_releaser" : "0", + "order_by" : "name", + "paths" : [] + } + }, + "name" : "@Author::KENTNL/Git::Contributors", + "version" : "0.007" }, { "class" : "Dist::Zilla::Plugin::Git::GatherDir", + "config" : { + "Dist::Zilla::Plugin::Git::GatherDir" : { + "include_untracked" : "0" + }, + "Dist::Zilla::Role::Git::Repo" : { + "repo_root" : "." + } + }, "name" : "@Author::KENTNL/Git::GatherDir", - "version" : "2.014" + "version" : "2.024" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@Author::KENTNL/License", - "version" : "4.300035" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@Author::KENTNL/MetaJSON", - "version" : "4.300035" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@Author::KENTNL/MetaYAML", - "version" : "4.300035" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@Author::KENTNL/Manifest", - "version" : "4.300035" + "version" : "5.020" + }, + { + "class" : "Dist::Zilla::Plugin::CopyFilesFromBuild", + "name" : "@Author::KENTNL/CopyXBuild", + "version" : "0.103510" }, { "class" : "Dist::Zilla::Plugin::MetaTests", "name" : "@Author::KENTNL/MetaTests", - "version" : "4.300035" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::PodCoverageTests", "name" : "@Author::KENTNL/PodCoverageTests", - "version" : "4.300035" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@Author::KENTNL/PodSyntaxTests", - "version" : "4.300035" + "version" : "5.020" }, { - "class" : "Dist::Zilla::Plugin::ReportVersions::Tiny", - "name" : "@Author::KENTNL/ReportVersions::Tiny", - "version" : "1.08" + "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs", + "name" : "@Author::KENTNL/Test::ReportPrereqs", + "version" : "0.019" }, { "class" : "Dist::Zilla::Plugin::Test::Kwalitee", + "config" : { + "Dist::Zilla::Plugin::Test::Kwalitee" : { + "filename" : "xt/release/kwalitee.t", + "skiptest" : [] + } + }, "name" : "@Author::KENTNL/Test::Kwalitee", - "version" : "2.03" + "version" : "2.11" }, { "class" : "Dist::Zilla::Plugin::EOLTests", @@ -252,66 +388,169 @@ "version" : "2.000005" }, { - "class" : "Dist::Zilla::Plugin::Test::Compile", - "name" : "@Author::KENTNL/Test::Compile", - "version" : "2.002" + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : "@Author::KENTNL/Test::Compile::PerFile/AUTOVIV/:InstallModulesPM", + "version" : "5.020" + }, + { + "class" : "Dist::Zilla::Plugin::Test::Compile::PerFile", + "config" : { + "Dist::Zilla::Plugin::Test::Compile::PerFile" : { + "file" : [ + "lib/Data/Handle.pm", + "lib/Data/Handle/Exception.pm", + "lib/Data/Handle/IO.pm" + ], + "path_translator" : "base64_filter", + "prefix" : "t/00-compile", + "skip" : [], + "test_template" : "01-basic.t.tpl", + "xt_mode" : null + } + }, + "name" : "@Author::KENTNL/Test::Compile::PerFile", + "version" : "0.003000" }, { "class" : "Dist::Zilla::Plugin::Test::Perl::Critic", "name" : "@Author::KENTNL/Test::Perl::Critic", "version" : "2.112410" }, - { - "class" : "Dist::Zilla::Plugin::PruneCruft", - "name" : "@Author::KENTNL/PruneCruft", - "version" : "4.300035" - }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@Author::KENTNL/ManifestSkip", - "version" : "4.300035" - }, - { - "class" : "Dist::Zilla::Plugin::PkgVersion", - "name" : "@Author::KENTNL/PkgVersion", - "version" : "4.300035" - }, - { - "class" : "Dist::Zilla::Plugin::PodWeaver", - "name" : "@Author::KENTNL/PodWeaver", - "version" : "3.101641" - }, - { - "class" : "Dist::Zilla::Plugin::NextRelease", - "name" : "@Author::KENTNL/NextRelease", - "version" : "4.300035" - }, - { - "class" : "Dist::Zilla::Plugin::AutoPrereqs", - "name" : "@Author::KENTNL/AutoPrereqs", - "version" : "4.300035" + "version" : "5.020" }, { - "class" : "Dist::Zilla::Plugin::Prereqs", + "class" : "Dist::Zilla::Plugin::RewriteVersion::Sanitized", "config" : { - "Dist::Zilla::Plugin::Prereqs" : { - "phase" : "develop", - "type" : "requires" + "Dist::Zilla::Role::Version::Sanitize" : { + "mantissa" : "6", + "normal_form" : "numify" } }, - "name" : "@Author::KENTNL/Prereqs/BundleDevelNeeds", - "version" : "4.300035" + "name" : "@Author::KENTNL/RewriteVersion::Sanitized", + "version" : "0.001004" }, { - "class" : "Dist::Zilla::Plugin::Prereqs", + "class" : "Dist::Zilla::Plugin::PodWeaver", "config" : { - "Dist::Zilla::Plugin::Prereqs" : { - "phase" : "develop", - "type" : "recommends" + "Dist::Zilla::Plugin::PodWeaver" : { + "finder" : [ + ":InstallModules", + ":ExecFiles" + ], + "plugins" : [ + { + "class" : "Pod::Weaver::Plugin::EnsurePod5", + "name" : "@CorePrep/EnsurePod5", + "version" : "4.006" + }, + { + "class" : "Pod::Weaver::Plugin::H1Nester", + "name" : "@CorePrep/H1Nester", + "version" : "4.006" + }, + { + "class" : "Pod::Weaver::Plugin::SingleEncoding", + "name" : "-SingleEncoding", + "version" : "4.006" + }, + { + "class" : "Pod::Weaver::Section::Name", + "name" : "Name", + "version" : "4.006" + }, + { + "class" : "Pod::Weaver::Section::Version", + "name" : "Version", + "version" : "4.006" + }, + { + "class" : "Pod::Weaver::Section::Region", + "name" : "prelude", + "version" : "4.006" + }, + { + "class" : "Pod::Weaver::Section::Generic", + "name" : "SYNOPSIS", + "version" : "4.006" + }, + { + "class" : "Pod::Weaver::Section::Generic", + "name" : "DESCRIPTION", + "version" : "4.006" + }, + { + "class" : "Pod::Weaver::Section::Generic", + "name" : "OVERVIEW", + "version" : "4.006" + }, + { + "class" : "Pod::Weaver::Section::Collect", + "name" : "METHODS", + "version" : "4.006" + }, + { + "class" : "Pod::Weaver::Section::Collect", + "name" : "ATTRIBUTES", + "version" : "4.006" + }, + { + "class" : "Pod::Weaver::Section::Collect", + "name" : "FILTER_METHODS", + "version" : "4.006" + }, + { + "class" : "Pod::Weaver::Section::Collect", + "name" : "TERMINATOR_LIST_METHODS", + "version" : "4.006" + }, + { + "class" : "Pod::Weaver::Section::Collect", + "name" : "MIRROR_LIST_METHODS", + "version" : "4.006" + }, + { + "class" : "Pod::Weaver::Section::Collect", + "name" : "PRIVATE_ATTRIBUTES", + "version" : "4.006" + }, + { + "class" : "Pod::Weaver::Section::Collect", + "name" : "PRIVATE_METHODS", + "version" : "4.006" + }, + { + "class" : "Pod::Weaver::Section::Leftovers", + "name" : "Leftovers", + "version" : "4.006" + }, + { + "class" : "Pod::Weaver::Section::Region", + "name" : "postlude", + "version" : "4.006" + }, + { + "class" : "Pod::Weaver::Section::Authors", + "name" : "Authors", + "version" : "4.006" + }, + { + "class" : "Pod::Weaver::Section::Legal", + "name" : "Legal", + "version" : "4.006" + } + ] } }, - "name" : "@Author::KENTNL/Prereqs/BundleDevelRecommends", - "version" : "4.300035" + "name" : "@Author::KENTNL/PodWeaver", + "version" : "4.006" + }, + { + "class" : "Dist::Zilla::Plugin::AutoPrereqs", + "name" : "@Author::KENTNL/AutoPrereqs", + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -321,38 +560,48 @@ "type" : "suggests" } }, - "name" : "@Author::KENTNL/Prereqs/BundleDevelSuggests", - "version" : "4.300035" + "name" : "@Author::KENTNL/BundleDevelSuggests", + "version" : "5.020" }, { - "class" : "Dist::Zilla::Plugin::Author::KENTNL::MinimumPerl", - "name" : "@Author::KENTNL/Author::KENTNL::MinimumPerl", - "version" : "1.7.4" + "class" : "Dist::Zilla::Plugin::Prereqs::AuthorDeps", + "name" : "@Author::KENTNL/Prereqs::AuthorDeps", + "version" : "0.003" }, { - "class" : "Dist::Zilla::Plugin::Author::KENTNL::Prereqs::Latest::Selective", - "name" : "@Author::KENTNL/Author::KENTNL::Prereqs::Latest::Selective", - "version" : "0.1.0" + "class" : "Dist::Zilla::Plugin::MinimumPerl", + "name" : "@Author::KENTNL/MinimumPerl", + "version" : "1.003" }, { "class" : "Dist::Zilla::Plugin::Authority", "name" : "@Author::KENTNL/Authority", - "version" : "1.007" + "version" : "1.006" }, { - "class" : "Dist::Zilla::Plugin::ModuleBuild", - "name" : "@Author::KENTNL/ModuleBuild", - "version" : "4.300035" + "class" : "Dist::Zilla::Plugin::MakeMaker", + "config" : { + "Dist::Zilla::Role::TestRunner" : { + "default_jobs" : "10" + } + }, + "name" : "@Author::KENTNL/MakeMaker", + "version" : "5.020" + }, + { + "class" : "Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes", + "name" : "@Author::KENTNL/Author::KENTNL::RecommendFixes", + "version" : "0.003006" }, { "class" : "Dist::Zilla::Plugin::ReadmeFromPod", "name" : "@Author::KENTNL/ReadmeFromPod", - "version" : "0.18" + "version" : "0.21" }, { "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod", "name" : "@Author::KENTNL/ReadmeAnyFromPod", - "version" : "0.131500" + "version" : "0.142470" }, { "class" : "Dist::Zilla::Plugin::Test::CPAN::Changes", @@ -360,84 +609,273 @@ "version" : "0.008" }, { - "class" : "Dist::Zilla::Plugin::CheckExtraTests", - "name" : "@Author::KENTNL/CheckExtraTests", - "version" : "0.011" + "class" : "Dist::Zilla::Plugin::RunExtraTests", + "config" : { + "Dist::Zilla::Role::TestRunner" : { + "default_jobs" : "10" + } + }, + "name" : "@Author::KENTNL/RunExtraTests", + "version" : "0.022" }, { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@Author::KENTNL/TestRelease", - "version" : "4.300035" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@Author::KENTNL/ConfirmRelease", - "version" : "4.300035" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Git::Check", + "config" : { + "Dist::Zilla::Plugin::Git::Check" : { + "untracked_files" : "die" + }, + "Dist::Zilla::Role::Git::DirtyFiles" : { + "allow_dirty" : [ + "dist.ini", + "Changes" + ], + "allow_dirty_match" : [], + "changelog" : "Changes" + }, + "Dist::Zilla::Role::Git::Repo" : { + "repo_root" : "." + } + }, "name" : "@Author::KENTNL/Git::Check", - "version" : "2.014" + "version" : "2.024" + }, + { + "class" : "Dist::Zilla::Plugin::Git::Commit", + "config" : { + "Dist::Zilla::Plugin::Git::Commit" : { + "add_files_in" : [], + "commit_msg" : "v%v%n%n%c", + "time_zone" : "local" + }, + "Dist::Zilla::Role::Git::DirtyFiles" : { + "allow_dirty" : [ + "dist.ini", + "Changes" + ], + "allow_dirty_match" : [], + "changelog" : "Changes" + }, + "Dist::Zilla::Role::Git::Repo" : { + "repo_root" : "." + } + }, + "name" : "@Author::KENTNL/commit_dirty_files", + "version" : "2.024" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", - "name" : "@Author::KENTNL/Git::Tag/tag_master", - "version" : "2.014" + "config" : { + "Dist::Zilla::Plugin::Git::Tag" : { + "branch" : null, + "signed" : 0, + "tag" : "1.000000-source", + "tag_format" : "%v-source", + "tag_message" : "v%v", + "time_zone" : "local" + }, + "Dist::Zilla::Role::Git::Repo" : { + "repo_root" : "." + } + }, + "name" : "@Author::KENTNL/tag_master", + "version" : "2.024" + }, + { + "class" : "Dist::Zilla::Plugin::Git::NextRelease", + "name" : "@Author::KENTNL/Git::NextRelease", + "version" : "0.004000" + }, + { + "class" : "Dist::Zilla::Plugin::BumpVersionAfterRelease", + "name" : "@Author::KENTNL/BumpVersionAfterRelease", + "version" : "0.004" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", - "name" : "@Author::KENTNL/Git::Commit", - "version" : "2.014" + "config" : { + "Dist::Zilla::Plugin::Git::Commit" : { + "add_files_in" : [], + "commit_msg" : "v%v%n%n%c", + "time_zone" : "local" + }, + "Dist::Zilla::Role::Git::DirtyFiles" : { + "allow_dirty" : [ + "dist.ini", + "Changes" + ], + "allow_dirty_match" : [ + "(?^u:^lib/)" + ], + "changelog" : "Changes" + }, + "Dist::Zilla::Role::Git::Repo" : { + "repo_root" : "." + } + }, + "name" : "@Author::KENTNL/commit_release_changes", + "version" : "2.024" }, { "class" : "Dist::Zilla::Plugin::Git::CommitBuild", + "config" : { + "Dist::Zilla::Plugin::Git::CommitBuild" : { + "branch" : "build/%b", + "build_root" : null, + "message" : "Build results of %h (on %b)", + "multiple_inheritance" : 0, + "release_branch" : "releases", + "release_message" : "Build results of %h (on %b)" + }, + "Dist::Zilla::Role::Git::Repo" : { + "repo_root" : "." + } + }, "name" : "@Author::KENTNL/Git::CommitBuild", - "version" : "2.014" + "version" : "2.024" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", - "name" : "@Author::KENTNL/Git::Tag/tag_release", - "version" : "2.014" + "config" : { + "Dist::Zilla::Plugin::Git::Tag" : { + "branch" : "releases", + "signed" : 0, + "tag" : "1.000000", + "tag_format" : "%v", + "tag_message" : "v%v", + "time_zone" : "local" + }, + "Dist::Zilla::Role::Git::Repo" : { + "repo_root" : "." + } + }, + "name" : "@Author::KENTNL/tag_release", + "version" : "2.024" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@Author::KENTNL/UploadToCPAN", - "version" : "4.300035" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Twitter", "name" : "@Author::KENTNL/Twitter", - "version" : "0.021" + "version" : "0.026" + }, + { + "class" : "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled", + "config" : { + "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled" : { + "applyto_map" : [ + "build.requires = build.recommends", + "test.requires = test.recommends", + "runtime.requires = runtime.recommends", + "configure.requires = configure.recommends", + "develop.requires = develop.recommends" + ], + "applyto_phase" : [ + "build", + "test", + "runtime", + "configure", + "develop" + ], + "modules" : [ + "ExtUtils::MakeMaker", + "Test::More" + ], + "source_relation" : "requires", + "target_relation" : "recommends" + } + }, + "name" : "@Author::KENTNL/Prereqs::Recommend::MatchInstalled", + "version" : "0.003001" + }, + { + "class" : "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled", + "config" : { + "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled" : { + "applyto_map" : [ + "develop.suggests = develop.suggests" + ], + "applyto_phase" : [ + "develop" + ], + "modules" : [ + "Dist::Zilla::PluginBundle::Author::KENTNL", + "Dist::Zilla::App::Command::bakeini" + ], + "source_relation" : "requires", + "target_relation" : "recommends" + } + }, + "name" : "@Author::KENTNL/always_latest_develop_bundle", + "version" : "0.003001" + }, + { + "class" : "Dist::Zilla::Plugin::Prereqs", + "config" : { + "Dist::Zilla::Plugin::Prereqs" : { + "phase" : "develop", + "type" : "requires" + } + }, + "name" : "@Author::KENTNL/::Role::BundleDeps", + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", - "version" : "4.300035" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", - "version" : "4.300035" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", - "version" : "4.300035" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", - "version" : "4.300035" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", - "version" : "4.300035" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", - "version" : "4.300035" + "version" : "5.020" + }, + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : ":AllFiles", + "version" : "5.020" + }, + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : ":NoFiles", + "version" : "5.020" + }, + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : "@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM", + "version" : "5.020" } ], "zilla" : { @@ -445,9 +883,8 @@ "config" : { "is_trial" : "0" }, - "version" : "4.300035" + "version" : "5.020" } }, "x_authority" : "cpan:KENTNL" } - diff --git a/META.yml b/META.yml index 0b606ab..37a59c0 100644 --- a/META.yml +++ b/META.yml @@ -3,330 +3,635 @@ abstract: 'A Very simple interface to the __DATA__ file handle.' author: - 'Kent Fredric ' build_requires: - Data::Dumper: 0 - File::Find: 0 - File::Temp: 0 - IO::Handle: 0 - Module::Build: 0.4005 - Test::Fatal: 0 - Test::More: 0.98 - lib: 0 + Data::Dumper: '0' + ExtUtils::MakeMaker: '0' + File::Spec: '0' + IO::Handle: '0' + Test::Fatal: '0' + Test::More: '0.96' + lib: '0' configure_requires: - Module::Build: 0.4005 -dynamic_config: 0 -generated_by: 'Dist::Zilla version 4.300035, CPAN::Meta::Converter version 2.131560' + ExtUtils::MakeMaker: '0' +dynamic_config: '0' +generated_by: 'Dist::Zilla version 5.020, CPAN::Meta::Converter version 2.142690' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 + version: '1.4' name: Data-Handle provides: Data::Handle: file: lib/Data/Handle.pm - version: 0.02001003 + version: '1.000000' Data::Handle::Exception: file: lib/Data/Handle/Exception.pm - version: 0.02001003 + version: '1.000000' Data::Handle::IO: file: lib/Data/Handle/IO.pm - version: 0.02001003 + version: '1.000000' requires: - Carp: 1.22 - IO::File: 0 - Package::Stash: 0.15 - Scalar::Util: 0 - Symbol: 0 - Term::ANSIColor: 0 - Try::Tiny: 0 - overload: 0 - parent: 0 - perl: 5.008 - strict: 0 - warnings: 0 + Carp: '1.22' + IO::File: '0' + Package::Stash: '0.15' + Scalar::Util: '0' + Symbol: '0' + Term::ANSIColor: '0' + Try::Tiny: '0' + overload: '0' + parent: '0' + perl: '5.008' + strict: '0' + warnings: '0' resources: - bugtracker: https://github.com/kentfredric/Data-Handle/issues - homepage: https://github.com/kentfredric/Data-Handle - repository: https://github.com/kentfredric/Data-Handle.git -version: 0.02001003 + bugtracker: https://github.com/kentnl/Data-Handle/issues + homepage: https://github.com/kentnl/Data-Handle + repository: https://github.com/kentnl/Data-Handle.git +version: '1.000000' x_BuiltWith: modules: - Carp: 1.29 - Data::Dumper: 2.145 - Dist::Zilla::PluginBundle::Author::KENTNL: 1.7.4 - Dist::Zilla::PluginBundle::Author::KENTNL::Lite: 'NA(possibly not installed)' - File::Find: 1.23 - File::Temp: 0.2301 - IO::File: 1.16 - IO::Handle: 1.34 - Module::Build: 0.4005 - Package::Stash: 0.34 - Pod::Coverage::TrustPod: 0.100002 - Scalar::Util: 1.27 - Symbol: 1.07 - Term::ANSIColor: 4.02 - Test::CPAN::Changes: 0.20 - Test::CPAN::Meta: 0.23 - Test::Fatal: 0.010 - Test::More: 0.98 - Test::Pod: 1.48 - Test::Pod::Coverage: 1.08 - Try::Tiny: 0.15 - lib: 0.63 - overload: 1.22 - parent: 0.225 - perl: 'NA(skipped: perl)' - strict: 1.07 - version: 0.9902 - warnings: 1.18 + CPAN::Meta: '2.142690' + Carp: '1.34' + Data::Dumper: '2.154' + Dist::Zilla: '5.020' + Dist::Zilla::App::Command::bakeini: '0.001002' + Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes: '0.003006' + Dist::Zilla::Plugin::Authority: '1.006' + Dist::Zilla::Plugin::AutoPrereqs: '5.020' + Dist::Zilla::Plugin::BumpVersionAfterRelease: '0.004' + Dist::Zilla::Plugin::ConfirmRelease: '5.020' + Dist::Zilla::Plugin::CopyFilesFromBuild: '0.103510' + Dist::Zilla::Plugin::EOLTests: '0.02' + Dist::Zilla::Plugin::Git::Check: '2.024' + Dist::Zilla::Plugin::Git::Commit: '2.024' + Dist::Zilla::Plugin::Git::CommitBuild: '2.024' + Dist::Zilla::Plugin::Git::Contributors: '0.007' + Dist::Zilla::Plugin::Git::GatherDir: '2.024' + Dist::Zilla::Plugin::Git::NextRelease: '0.004000' + Dist::Zilla::Plugin::Git::Tag: '2.024' + Dist::Zilla::Plugin::GithubMeta: '0.46' + Dist::Zilla::Plugin::License: '5.020' + Dist::Zilla::Plugin::MakeMaker: '5.020' + Dist::Zilla::Plugin::Manifest: '5.020' + Dist::Zilla::Plugin::ManifestSkip: '5.020' + Dist::Zilla::Plugin::MetaConfig: '5.020' + Dist::Zilla::Plugin::MetaData::BuiltWith: '1.003001' + Dist::Zilla::Plugin::MetaJSON: '5.020' + Dist::Zilla::Plugin::MetaProvides::Package: '2.001002' + Dist::Zilla::Plugin::MetaTests: '5.020' + Dist::Zilla::Plugin::MetaYAML: '5.020' + Dist::Zilla::Plugin::MinimumPerl: '1.003' + Dist::Zilla::Plugin::PodCoverageTests: '5.020' + Dist::Zilla::Plugin::PodSyntaxTests: '5.020' + Dist::Zilla::Plugin::PodWeaver: '4.006' + Dist::Zilla::Plugin::Prereqs: '5.020' + Dist::Zilla::Plugin::Prereqs::AuthorDeps: '0.003' + Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled: '0.003001' + Dist::Zilla::Plugin::ReadmeAnyFromPod: '0.142470' + Dist::Zilla::Plugin::ReadmeFromPod: '0.21' + Dist::Zilla::Plugin::RewriteVersion::Sanitized: '0.001004' + Dist::Zilla::Plugin::RunExtraTests: '0.022' + Dist::Zilla::Plugin::Test::CPAN::Changes: '0.008' + Dist::Zilla::Plugin::Test::Compile::PerFile: '0.003000' + Dist::Zilla::Plugin::Test::Kwalitee: '2.11' + Dist::Zilla::Plugin::Test::MinimumVersion: '2.000005' + Dist::Zilla::Plugin::Test::Perl::Critic: '2.112410' + Dist::Zilla::Plugin::Test::ReportPrereqs: '0.019' + Dist::Zilla::Plugin::TestRelease: '5.020' + Dist::Zilla::Plugin::Twitter: '0.026' + Dist::Zilla::Plugin::UploadToCPAN: '5.020' + Dist::Zilla::PluginBundle::Author::KENTNL: '2.021000' + ExtUtils::MakeMaker: '6.98' + File::Spec: '3.49' + IO::File: '1.16' + IO::Handle: '1.35' + Package::Stash: '0.37' + Pod::Coverage::TrustPod: '0.100003' + Scalar::Util: '1.41' + Symbol: '1.07' + Term::ANSIColor: '4.03' + Test::CPAN::Changes: '0.30' + Test::CPAN::Meta: '0.23' + Test::Fatal: '0.013' + Test::Kwalitee: '1.22' + Test::More: '1.001006' + Test::Pod: '1.48' + Test::Pod::Coverage: '1.10' + Try::Tiny: '0.22' + lib: '0.63' + overload: '1.22' + parent: '0.228' + strict: '1.08' + warnings: '1.26' perl: - original: v5.18.0 + original: v5.21.3 qv: 1 version: - 5 - - 18 - - 0 + - 21 + - 3 perl-config: - gccversion: 4.7.2 + gccversion: 4.8.3 + git_commit_id: 640eedb9ffcac7a9c2793689044e84bfd9af3045 + git_describe: v5.21.2-215-g640eedb myarchname: x86_64-linux osname: linux platform: linux - uname: 'Linux 3.10.0-gentoo x86_64 GenuineIntel GNU/Linux' + uname: 'Linux 3.16.1-aufs x86_64 GenuineIntel GNU/Linux' x_Dist_Zilla: perl: - version: 5.018000 + version: '5.021003' plugins: - - - class: Dist::Zilla::Plugin::Git::NextVersion - name: '@Author::KENTNL/Git::NextVersion' - version: 2.014 - class: Dist::Zilla::Plugin::MetaConfig name: '@Author::KENTNL/MetaConfig' - version: 4.300035 + version: '5.020' - class: Dist::Zilla::Plugin::GithubMeta name: '@Author::KENTNL/GithubMeta' - version: 0.28 + version: '0.46' - class: Dist::Zilla::Plugin::MetaProvides::Package + config: + Dist::Zilla::Plugin::MetaProvides::Package: + finder_objects: + - + class: Dist::Zilla::Plugin::FinderCode + name: '@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM' + version: '5.020' + Dist::Zilla::Role::MetaProvider::Provider: + inherit_missing: '1' + inherit_version: '1' + meta_noindex: '1' name: '@Author::KENTNL/MetaProvides::Package' - version: 1.14000002 + version: '2.001002' - class: Dist::Zilla::Plugin::MetaData::BuiltWith config: Dist::Zilla::Plugin::MetaData::BuiltWith: _stash_key: x_BuiltWith - show_config: 1 - show_uname: 1 + show_config: '1' + show_uname: '1' uname: uname_args: - - '-s' - - '-o' - - '-r' - - '-m' - - '-i' + - -s + - -o + - -r + - -m + - -i uname_call: uname name: '@Author::KENTNL/MetaData::BuiltWith' - version: 0.03000100 + version: '1.003001' + - + class: Dist::Zilla::Plugin::Git::Contributors + config: + Dist::Zilla::Plugin::Git::Contributors: + include_authors: '0' + include_releaser: '0' + order_by: name + paths: [] + name: '@Author::KENTNL/Git::Contributors' + version: '0.007' - class: Dist::Zilla::Plugin::Git::GatherDir + config: + Dist::Zilla::Plugin::Git::GatherDir: + include_untracked: '0' + Dist::Zilla::Role::Git::Repo: + repo_root: . name: '@Author::KENTNL/Git::GatherDir' - version: 2.014 + version: '2.024' - class: Dist::Zilla::Plugin::License name: '@Author::KENTNL/License' - version: 4.300035 + version: '5.020' - class: Dist::Zilla::Plugin::MetaJSON name: '@Author::KENTNL/MetaJSON' - version: 4.300035 + version: '5.020' - class: Dist::Zilla::Plugin::MetaYAML name: '@Author::KENTNL/MetaYAML' - version: 4.300035 + version: '5.020' - class: Dist::Zilla::Plugin::Manifest name: '@Author::KENTNL/Manifest' - version: 4.300035 + version: '5.020' + - + class: Dist::Zilla::Plugin::CopyFilesFromBuild + name: '@Author::KENTNL/CopyXBuild' + version: '0.103510' - class: Dist::Zilla::Plugin::MetaTests name: '@Author::KENTNL/MetaTests' - version: 4.300035 + version: '5.020' - class: Dist::Zilla::Plugin::PodCoverageTests name: '@Author::KENTNL/PodCoverageTests' - version: 4.300035 + version: '5.020' - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@Author::KENTNL/PodSyntaxTests' - version: 4.300035 + version: '5.020' - - class: Dist::Zilla::Plugin::ReportVersions::Tiny - name: '@Author::KENTNL/ReportVersions::Tiny' - version: 1.08 + class: Dist::Zilla::Plugin::Test::ReportPrereqs + name: '@Author::KENTNL/Test::ReportPrereqs' + version: '0.019' - class: Dist::Zilla::Plugin::Test::Kwalitee + config: + Dist::Zilla::Plugin::Test::Kwalitee: + filename: xt/release/kwalitee.t + skiptest: [] name: '@Author::KENTNL/Test::Kwalitee' - version: 2.03 + version: '2.11' - class: Dist::Zilla::Plugin::EOLTests name: '@Author::KENTNL/EOLTests' - version: 0.02 + version: '0.02' - class: Dist::Zilla::Plugin::Test::MinimumVersion name: '@Author::KENTNL/Test::MinimumVersion' - version: 2.000005 + version: '2.000005' - - class: Dist::Zilla::Plugin::Test::Compile - name: '@Author::KENTNL/Test::Compile' - version: 2.002 + class: Dist::Zilla::Plugin::FinderCode + name: '@Author::KENTNL/Test::Compile::PerFile/AUTOVIV/:InstallModulesPM' + version: '5.020' + - + class: Dist::Zilla::Plugin::Test::Compile::PerFile + config: + Dist::Zilla::Plugin::Test::Compile::PerFile: + file: + - lib/Data/Handle.pm + - lib/Data/Handle/Exception.pm + - lib/Data/Handle/IO.pm + path_translator: base64_filter + prefix: t/00-compile + skip: [] + test_template: 01-basic.t.tpl + xt_mode: ~ + name: '@Author::KENTNL/Test::Compile::PerFile' + version: '0.003000' - class: Dist::Zilla::Plugin::Test::Perl::Critic name: '@Author::KENTNL/Test::Perl::Critic' - version: 2.112410 - - - class: Dist::Zilla::Plugin::PruneCruft - name: '@Author::KENTNL/PruneCruft' - version: 4.300035 + version: '2.112410' - class: Dist::Zilla::Plugin::ManifestSkip name: '@Author::KENTNL/ManifestSkip' - version: 4.300035 + version: '5.020' - - class: Dist::Zilla::Plugin::PkgVersion - name: '@Author::KENTNL/PkgVersion' - version: 4.300035 + class: Dist::Zilla::Plugin::RewriteVersion::Sanitized + config: + Dist::Zilla::Role::Version::Sanitize: + mantissa: '6' + normal_form: numify + name: '@Author::KENTNL/RewriteVersion::Sanitized' + version: '0.001004' - class: Dist::Zilla::Plugin::PodWeaver + config: + Dist::Zilla::Plugin::PodWeaver: + finder: + - ':InstallModules' + - ':ExecFiles' + plugins: + - + class: Pod::Weaver::Plugin::EnsurePod5 + name: '@CorePrep/EnsurePod5' + version: '4.006' + - + class: Pod::Weaver::Plugin::H1Nester + name: '@CorePrep/H1Nester' + version: '4.006' + - + class: Pod::Weaver::Plugin::SingleEncoding + name: -SingleEncoding + version: '4.006' + - + class: Pod::Weaver::Section::Name + name: Name + version: '4.006' + - + class: Pod::Weaver::Section::Version + name: Version + version: '4.006' + - + class: Pod::Weaver::Section::Region + name: prelude + version: '4.006' + - + class: Pod::Weaver::Section::Generic + name: SYNOPSIS + version: '4.006' + - + class: Pod::Weaver::Section::Generic + name: DESCRIPTION + version: '4.006' + - + class: Pod::Weaver::Section::Generic + name: OVERVIEW + version: '4.006' + - + class: Pod::Weaver::Section::Collect + name: METHODS + version: '4.006' + - + class: Pod::Weaver::Section::Collect + name: ATTRIBUTES + version: '4.006' + - + class: Pod::Weaver::Section::Collect + name: FILTER_METHODS + version: '4.006' + - + class: Pod::Weaver::Section::Collect + name: TERMINATOR_LIST_METHODS + version: '4.006' + - + class: Pod::Weaver::Section::Collect + name: MIRROR_LIST_METHODS + version: '4.006' + - + class: Pod::Weaver::Section::Collect + name: PRIVATE_ATTRIBUTES + version: '4.006' + - + class: Pod::Weaver::Section::Collect + name: PRIVATE_METHODS + version: '4.006' + - + class: Pod::Weaver::Section::Leftovers + name: Leftovers + version: '4.006' + - + class: Pod::Weaver::Section::Region + name: postlude + version: '4.006' + - + class: Pod::Weaver::Section::Authors + name: Authors + version: '4.006' + - + class: Pod::Weaver::Section::Legal + name: Legal + version: '4.006' name: '@Author::KENTNL/PodWeaver' - version: 3.101641 - - - class: Dist::Zilla::Plugin::NextRelease - name: '@Author::KENTNL/NextRelease' - version: 4.300035 + version: '4.006' - class: Dist::Zilla::Plugin::AutoPrereqs name: '@Author::KENTNL/AutoPrereqs' - version: 4.300035 - - - class: Dist::Zilla::Plugin::Prereqs - config: - Dist::Zilla::Plugin::Prereqs: - phase: develop - type: requires - name: '@Author::KENTNL/Prereqs/BundleDevelNeeds' - version: 4.300035 - - - class: Dist::Zilla::Plugin::Prereqs - config: - Dist::Zilla::Plugin::Prereqs: - phase: develop - type: recommends - name: '@Author::KENTNL/Prereqs/BundleDevelRecommends' - version: 4.300035 + version: '5.020' - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: develop type: suggests - name: '@Author::KENTNL/Prereqs/BundleDevelSuggests' - version: 4.300035 + name: '@Author::KENTNL/BundleDevelSuggests' + version: '5.020' - - class: Dist::Zilla::Plugin::Author::KENTNL::MinimumPerl - name: '@Author::KENTNL/Author::KENTNL::MinimumPerl' - version: 1.7.4 + class: Dist::Zilla::Plugin::Prereqs::AuthorDeps + name: '@Author::KENTNL/Prereqs::AuthorDeps' + version: '0.003' - - class: Dist::Zilla::Plugin::Author::KENTNL::Prereqs::Latest::Selective - name: '@Author::KENTNL/Author::KENTNL::Prereqs::Latest::Selective' - version: 0.1.0 + class: Dist::Zilla::Plugin::MinimumPerl + name: '@Author::KENTNL/MinimumPerl' + version: '1.003' - class: Dist::Zilla::Plugin::Authority name: '@Author::KENTNL/Authority' - version: 1.007 + version: '1.006' - - class: Dist::Zilla::Plugin::ModuleBuild - name: '@Author::KENTNL/ModuleBuild' - version: 4.300035 + class: Dist::Zilla::Plugin::MakeMaker + config: + Dist::Zilla::Role::TestRunner: + default_jobs: '10' + name: '@Author::KENTNL/MakeMaker' + version: '5.020' + - + class: Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes + name: '@Author::KENTNL/Author::KENTNL::RecommendFixes' + version: '0.003006' - class: Dist::Zilla::Plugin::ReadmeFromPod name: '@Author::KENTNL/ReadmeFromPod' - version: 0.18 + version: '0.21' - class: Dist::Zilla::Plugin::ReadmeAnyFromPod name: '@Author::KENTNL/ReadmeAnyFromPod' - version: 0.131500 + version: '0.142470' - class: Dist::Zilla::Plugin::Test::CPAN::Changes name: '@Author::KENTNL/Test::CPAN::Changes' - version: 0.008 + version: '0.008' - - class: Dist::Zilla::Plugin::CheckExtraTests - name: '@Author::KENTNL/CheckExtraTests' - version: 0.011 + class: Dist::Zilla::Plugin::RunExtraTests + config: + Dist::Zilla::Role::TestRunner: + default_jobs: '10' + name: '@Author::KENTNL/RunExtraTests' + version: '0.022' - class: Dist::Zilla::Plugin::TestRelease name: '@Author::KENTNL/TestRelease' - version: 4.300035 + version: '5.020' - class: Dist::Zilla::Plugin::ConfirmRelease name: '@Author::KENTNL/ConfirmRelease' - version: 4.300035 + version: '5.020' - class: Dist::Zilla::Plugin::Git::Check + config: + Dist::Zilla::Plugin::Git::Check: + untracked_files: die + Dist::Zilla::Role::Git::DirtyFiles: + allow_dirty: + - dist.ini + - Changes + allow_dirty_match: [] + changelog: Changes + Dist::Zilla::Role::Git::Repo: + repo_root: . name: '@Author::KENTNL/Git::Check' - version: 2.014 + version: '2.024' + - + class: Dist::Zilla::Plugin::Git::Commit + config: + Dist::Zilla::Plugin::Git::Commit: + add_files_in: [] + commit_msg: v%v%n%n%c + time_zone: local + Dist::Zilla::Role::Git::DirtyFiles: + allow_dirty: + - dist.ini + - Changes + allow_dirty_match: [] + changelog: Changes + Dist::Zilla::Role::Git::Repo: + repo_root: . + name: '@Author::KENTNL/commit_dirty_files' + version: '2.024' - class: Dist::Zilla::Plugin::Git::Tag - name: '@Author::KENTNL/Git::Tag/tag_master' - version: 2.014 + config: + Dist::Zilla::Plugin::Git::Tag: + branch: ~ + signed: '0' + tag: 1.000000-source + tag_format: '%v-source' + tag_message: v%v + time_zone: local + Dist::Zilla::Role::Git::Repo: + repo_root: . + name: '@Author::KENTNL/tag_master' + version: '2.024' + - + class: Dist::Zilla::Plugin::Git::NextRelease + name: '@Author::KENTNL/Git::NextRelease' + version: '0.004000' + - + class: Dist::Zilla::Plugin::BumpVersionAfterRelease + name: '@Author::KENTNL/BumpVersionAfterRelease' + version: '0.004' - class: Dist::Zilla::Plugin::Git::Commit - name: '@Author::KENTNL/Git::Commit' - version: 2.014 + config: + Dist::Zilla::Plugin::Git::Commit: + add_files_in: [] + commit_msg: v%v%n%n%c + time_zone: local + Dist::Zilla::Role::Git::DirtyFiles: + allow_dirty: + - dist.ini + - Changes + allow_dirty_match: + - (?^u:^lib/) + changelog: Changes + Dist::Zilla::Role::Git::Repo: + repo_root: . + name: '@Author::KENTNL/commit_release_changes' + version: '2.024' - class: Dist::Zilla::Plugin::Git::CommitBuild + config: + Dist::Zilla::Plugin::Git::CommitBuild: + branch: build/%b + build_root: ~ + message: 'Build results of %h (on %b)' + multiple_inheritance: '0' + release_branch: releases + release_message: 'Build results of %h (on %b)' + Dist::Zilla::Role::Git::Repo: + repo_root: . name: '@Author::KENTNL/Git::CommitBuild' - version: 2.014 + version: '2.024' - class: Dist::Zilla::Plugin::Git::Tag - name: '@Author::KENTNL/Git::Tag/tag_release' - version: 2.014 + config: + Dist::Zilla::Plugin::Git::Tag: + branch: releases + signed: '0' + tag: '1.000000' + tag_format: '%v' + tag_message: v%v + time_zone: local + Dist::Zilla::Role::Git::Repo: + repo_root: . + name: '@Author::KENTNL/tag_release' + version: '2.024' - class: Dist::Zilla::Plugin::UploadToCPAN name: '@Author::KENTNL/UploadToCPAN' - version: 4.300035 + version: '5.020' - class: Dist::Zilla::Plugin::Twitter name: '@Author::KENTNL/Twitter' - version: 0.021 + version: '0.026' + - + class: Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled + config: + Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled: + applyto_map: + - 'build.requires = build.recommends' + - 'test.requires = test.recommends' + - 'runtime.requires = runtime.recommends' + - 'configure.requires = configure.recommends' + - 'develop.requires = develop.recommends' + applyto_phase: + - build + - test + - runtime + - configure + - develop + modules: + - ExtUtils::MakeMaker + - Test::More + source_relation: requires + target_relation: recommends + name: '@Author::KENTNL/Prereqs::Recommend::MatchInstalled' + version: '0.003001' + - + class: Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled + config: + Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled: + applyto_map: + - 'develop.suggests = develop.suggests' + applyto_phase: + - develop + modules: + - Dist::Zilla::PluginBundle::Author::KENTNL + - Dist::Zilla::App::Command::bakeini + source_relation: requires + target_relation: recommends + name: '@Author::KENTNL/always_latest_develop_bundle' + version: '0.003001' + - + class: Dist::Zilla::Plugin::Prereqs + config: + Dist::Zilla::Plugin::Prereqs: + phase: develop + type: requires + name: '@Author::KENTNL/::Role::BundleDeps' + version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' - version: 4.300035 + version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' - version: 4.300035 + version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' - version: 4.300035 + version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' - version: 4.300035 + version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' - version: 4.300035 + version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' - version: 4.300035 + version: '5.020' + - + class: Dist::Zilla::Plugin::FinderCode + name: ':AllFiles' + version: '5.020' + - + class: Dist::Zilla::Plugin::FinderCode + name: ':NoFiles' + version: '5.020' + - + class: Dist::Zilla::Plugin::FinderCode + name: '@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM' + version: '5.020' zilla: class: Dist::Zilla::Dist::Builder config: - is_trial: 0 - version: 4.300035 + is_trial: '0' + version: '5.020' x_authority: cpan:KENTNL diff --git a/Makefile.PL b/Makefile.PL new file mode 100644 index 0000000..19fb362 --- /dev/null +++ b/Makefile.PL @@ -0,0 +1,85 @@ + +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.020. +use strict; +use warnings; + +use 5.008; + +use ExtUtils::MakeMaker ; + + + +my %WriteMakefileArgs = ( + "ABSTRACT" => "A Very simple interface to the __DATA__ file handle.", + "AUTHOR" => "Kent Fredric ", + "CONFIGURE_REQUIRES" => { + "ExtUtils::MakeMaker" => 0 + }, + "DISTNAME" => "Data-Handle", + "EXE_FILES" => [], + "LICENSE" => "perl", + "NAME" => "Data::Handle", + "PREREQ_PM" => { + "Carp" => "1.22", + "IO::File" => 0, + "Package::Stash" => "0.15", + "Scalar::Util" => 0, + "Symbol" => 0, + "Term::ANSIColor" => 0, + "Try::Tiny" => 0, + "overload" => 0, + "parent" => 0, + "strict" => 0, + "warnings" => 0 + }, + "TEST_REQUIRES" => { + "Data::Dumper" => 0, + "ExtUtils::MakeMaker" => 0, + "File::Spec" => 0, + "IO::Handle" => 0, + "Test::Fatal" => 0, + "Test::More" => "0.96", + "lib" => 0 + }, + "VERSION" => "1.000000", + "test" => { + "TESTS" => "t/*.t t/00-compile/*.t t/alternative_techniques/*.t" + } +); + + +my %FallbackPrereqs = ( + "Carp" => "1.22", + "Data::Dumper" => 0, + "ExtUtils::MakeMaker" => 0, + "File::Spec" => 0, + "IO::File" => 0, + "IO::Handle" => 0, + "Package::Stash" => "0.15", + "Scalar::Util" => 0, + "Symbol" => 0, + "Term::ANSIColor" => 0, + "Test::Fatal" => 0, + "Test::More" => "0.96", + "Try::Tiny" => 0, + "lib" => 0, + "overload" => 0, + "parent" => 0, + "strict" => 0, + "warnings" => 0 +); + + +unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { + delete $WriteMakefileArgs{TEST_REQUIRES}; + delete $WriteMakefileArgs{BUILD_REQUIRES}; + $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs; +} + +delete $WriteMakefileArgs{CONFIGURE_REQUIRES} + unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; + +WriteMakefile(%WriteMakefileArgs); + + + diff --git a/README b/README index 76e09c0..d45ecc8 100644 --- a/README +++ b/README @@ -2,7 +2,7 @@ NAME Data::Handle - A Very simple interface to the __DATA__ file handle. VERSION - version 0.02001003 + version 1.000000 SYNOPSIS package Foo; @@ -39,12 +39,11 @@ METHODS Where $targetpackage is the package you want the __DATA__ section from. WARNING - At present, this module does you no favours if something else earlier - has moved the file handle position past the __DATA__ section, or rewound - it to the start of the file. This is an understood caveat, but nothing - else seems to have a good way around this either. ( You can always - rewind to the start of the file and use heuristics, but that is rather - pesky ). + At present, this module does you no favors if something else earlier has + moved the file handle position past the __DATA__ section, or rewound it + to the start of the file. This is an understood caveat, but nothing else + seems to have a good way around this either. ( You can always rewind to + the start of the file and use heuristics, but that is rather pesky ). Hopefully, if other people do decide to go moving your file pointer, they'll use this module to do it so you your code doesn't break. @@ -104,7 +103,7 @@ AUTHOR Kent Fredric COPYRIGHT AND LICENSE - This software is copyright (c) 2013 by Kent Fredric . + This software is copyright (c) 2014 by Kent Fredric . 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 --git a/dist.ini b/dist.ini index 1fdddef..d78d883 100644 --- a/dist.ini +++ b/dist.ini @@ -1,22 +1,202 @@ -; Generated by Dist::Zilla::Plugin::Author::KENTNL::DistINI version 0.01010423 at Sun Aug 29 00:06:12 2010 -name = Data-Handle -author = Kent Fredric -license = Perl_5 +; This file is generated from dist.ini.meta by dzil bakeini. +; Edit that file or the bundles contained within for long-term changes. +name = Data-Handle +author = Kent Fredric +license = Perl_5 copyright_holder = Kent Fredric -; Uncomment this to bootstrap via self -; [Bootstrap::lib] +[MetaConfig / @Author::KENTNL/MetaConfig] +[GithubMeta / @Author::KENTNL/GithubMeta] +issues = 1 -[@Author::KENTNL] -git_versions = 1 +[MetaProvides::Package / @Author::KENTNL/MetaProvides::Package] +:version = 1.14000001 -;version_major = 0 -;version_minor = 1 -; the following data denotes when this minor was minted -;version_rel_year = 2010 -;version_rel_month = 8 -;version_rel_day = 29 -;version_rel_hour = 0 -;version_rel_time_zone = Pacific/Auckland -twitter_hash_tags = #perl #cpan +[MetaData::BuiltWith / @Author::KENTNL/MetaData::BuiltWith] +show_config = 1 +show_uname = 1 +uname_args = -s -o -r -m -i + +[Git::Contributors / @Author::KENTNL/Git::Contributors] +:version = 0.006 +include_authors = 0 +include_releaser = 0 +order_by = name + +[Git::GatherDir / @Author::KENTNL/Git::GatherDir] +exclude_filename = README +exclude_filename = README.mkdn +exclude_filename = README.pod +exclude_filename = LICENSE +include_dotfiles = 1 + +[License / @Author::KENTNL/License] + +[MetaJSON / @Author::KENTNL/MetaJSON] + +[MetaYAML / @Author::KENTNL/MetaYAML] + +[Manifest / @Author::KENTNL/Manifest] + +[CopyFilesFromBuild / @Author::KENTNL/CopyXBuild] +copy = LICENSE + +[MetaTests / @Author::KENTNL/MetaTests] + +[PodCoverageTests / @Author::KENTNL/PodCoverageTests] + +[PodSyntaxTests / @Author::KENTNL/PodSyntaxTests] + +[Test::ReportPrereqs / @Author::KENTNL/Test::ReportPrereqs] + +[Test::Kwalitee / @Author::KENTNL/Test::Kwalitee] + +[EOLTests / @Author::KENTNL/EOLTests] +trailing_whitespace = 1 + +[Test::MinimumVersion / @Author::KENTNL/Test::MinimumVersion] + +[Test::Compile::PerFile / @Author::KENTNL/Test::Compile::PerFile] + +[Test::Perl::Critic / @Author::KENTNL/Test::Perl::Critic] + +[ManifestSkip / @Author::KENTNL/ManifestSkip] + +[RewriteVersion::Sanitized / @Author::KENTNL/RewriteVersion::Sanitized] +mantissa = 6 +normal_form = numify + +[PodWeaver / @Author::KENTNL/PodWeaver] +replacer = replace_with_blank + +[AutoPrereqs / @Author::KENTNL/AutoPrereqs] + +[Prereqs / @Author::KENTNL/BundleDevelSuggests] +-phase = develop +-type = suggests +Dist::Zilla::App::Command::bakeini = 0.001000 +Dist::Zilla::PluginBundle::Author::KENTNL = 2.021000 + +[Prereqs::AuthorDeps / @Author::KENTNL/Prereqs::AuthorDeps] + +[MinimumPerl / @Author::KENTNL/MinimumPerl] + +[Authority / @Author::KENTNL/Authority] +:version = 1.006 +authority = cpan:KENTNL +do_metadata = 1 +locate_comment = 1 + +[MakeMaker / @Author::KENTNL/MakeMaker] +default_jobs = 10 + +[Author::KENTNL::RecommendFixes / @Author::KENTNL/Author::KENTNL::RecommendFixes] +:version = 0.001001 + +[ReadmeFromPod / @Author::KENTNL/ReadmeFromPod] + +[ReadmeAnyFromPod / @Author::KENTNL/ReadmeAnyFromPod] +filename = README.mkdn +location = root +type = markdown + +[Test::CPAN::Changes / @Author::KENTNL/Test::CPAN::Changes] + +[RunExtraTests / @Author::KENTNL/RunExtraTests] +default_jobs = 10 + +[TestRelease / @Author::KENTNL/TestRelease] + +[ConfirmRelease / @Author::KENTNL/ConfirmRelease] + +[Git::Check / @Author::KENTNL/Git::Check] +filename = Changes + +[Git::Commit / @Author::KENTNL/commit_dirty_files] + +[Git::Tag / @Author::KENTNL/tag_master] +tag_format = %v-source + +[Git::NextRelease / @Author::KENTNL/Git::NextRelease] +:version = 0.004000 +format = %v %{yyyy-MM-dd'T'HH:mm:ss}dZ %h +time_zone = UTC + +[BumpVersionAfterRelease / @Author::KENTNL/BumpVersionAfterRelease] + +[Git::Commit / @Author::KENTNL/commit_release_changes] +allow_dirty_match = ^lib/ + +[Git::CommitBuild / @Author::KENTNL/Git::CommitBuild] +release_branch = releases + +[Git::Tag / @Author::KENTNL/tag_release] +branch = releases +tag_format = %v + +[UploadToCPAN / @Author::KENTNL/UploadToCPAN] + +[Twitter / @Author::KENTNL/Twitter] +hash_tags = #perl #cpan +tweet_url = https://metacpan.org/release/{{$AUTHOR_UC}}/{{$DIST}}-{{$VERSION}}{{$TRIAL}}#whatsnew +url_shortener = none + +[Prereqs::Recommend::MatchInstalled / @Author::KENTNL/Prereqs::Recommend::MatchInstalled] +modules = ExtUtils::MakeMaker +modules = Test::More + +[Prereqs::Recommend::MatchInstalled / @Author::KENTNL/always_latest_develop_bundle] +applyto_map = develop.suggests = develop.suggests +applyto_phase = develop +modules = Dist::Zilla::PluginBundle::Author::KENTNL +modules = Dist::Zilla::App::Command::bakeini + +[Prereqs / @Author::KENTNL/::Role::BundleDeps] +-phase = develop +-relationship = requires +Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes = 0.001001 +Dist::Zilla::Plugin::Authority = 1.006 +Dist::Zilla::Plugin::AutoPrereqs = 0 +Dist::Zilla::Plugin::BumpVersionAfterRelease = 0 +Dist::Zilla::Plugin::ConfirmRelease = 0 +Dist::Zilla::Plugin::CopyFilesFromBuild = 0 +Dist::Zilla::Plugin::EOLTests = 0 +Dist::Zilla::Plugin::Git::Check = 0 +Dist::Zilla::Plugin::Git::Commit = 0 +Dist::Zilla::Plugin::Git::CommitBuild = 0 +Dist::Zilla::Plugin::Git::Contributors = 0.006 +Dist::Zilla::Plugin::Git::GatherDir = 0 +Dist::Zilla::Plugin::Git::NextRelease = 0.004000 +Dist::Zilla::Plugin::Git::Tag = 0 +Dist::Zilla::Plugin::GithubMeta = 0 +Dist::Zilla::Plugin::License = 0 +Dist::Zilla::Plugin::MakeMaker = 0 +Dist::Zilla::Plugin::Manifest = 0 +Dist::Zilla::Plugin::ManifestSkip = 0 +Dist::Zilla::Plugin::MetaConfig = 0 +Dist::Zilla::Plugin::MetaData::BuiltWith = 0 +Dist::Zilla::Plugin::MetaJSON = 0 +Dist::Zilla::Plugin::MetaProvides::Package = 1.14000001 +Dist::Zilla::Plugin::MetaTests = 0 +Dist::Zilla::Plugin::MetaYAML = 0 +Dist::Zilla::Plugin::MinimumPerl = 0 +Dist::Zilla::Plugin::PodCoverageTests = 0 +Dist::Zilla::Plugin::PodSyntaxTests = 0 +Dist::Zilla::Plugin::PodWeaver = 0 +Dist::Zilla::Plugin::Prereqs = 0 +Dist::Zilla::Plugin::Prereqs::AuthorDeps = 0 +Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled = 0 +Dist::Zilla::Plugin::ReadmeAnyFromPod = 0 +Dist::Zilla::Plugin::ReadmeFromPod = 0 +Dist::Zilla::Plugin::RewriteVersion::Sanitized = 0 +Dist::Zilla::Plugin::RunExtraTests = 0 +Dist::Zilla::Plugin::Test::CPAN::Changes = 0 +Dist::Zilla::Plugin::Test::Compile::PerFile = 0 +Dist::Zilla::Plugin::Test::Kwalitee = 0 +Dist::Zilla::Plugin::Test::MinimumVersion = 0 +Dist::Zilla::Plugin::Test::Perl::Critic = 0 +Dist::Zilla::Plugin::Test::ReportPrereqs = 0 +Dist::Zilla::Plugin::TestRelease = 0 +Dist::Zilla::Plugin::Twitter = 0 +Dist::Zilla::Plugin::UploadToCPAN = 0 diff --git a/dist.ini.meta b/dist.ini.meta new file mode 100644 index 0000000..2a090ff --- /dev/null +++ b/dist.ini.meta @@ -0,0 +1,27 @@ +; Generated by Dist::Zilla::Plugin::Author::KENTNL::DistINI version 0.01010423 at Sun Aug 29 00:06:12 2010 +; vim: syntax=dosini +name = Data-Handle +author = Kent Fredric +license = Perl_5 +copyright_holder = Kent Fredric + +; Uncomment this to bootstrap via self +; [Bootstrap::lib] + + +[@Author::KENTNL] +bumpversions = 1 +normal_form = numify +mantissa = 6 +copyfiles = LICENSE +srcreadme = mkdn +toolkit = eumm +toolkit_hardness = soft +;version_major = 0 +;version_minor = 1 +; the following data denotes when this minor was minted +;version_rel_year = 2010 +;version_rel_month = 8 +;version_rel_day = 29 +;version_rel_hour = 0 +;version_rel_time_zone = Pacific/Auckland diff --git a/lib/Data/Handle.pm b/lib/Data/Handle.pm index ed96566..c042e8b 100644 --- a/lib/Data/Handle.pm +++ b/lib/Data/Handle.pm @@ -1,15 +1,94 @@ +use 5.006; use strict; use warnings; package Data::Handle; -BEGIN { - $Data::Handle::AUTHORITY = 'cpan:KENTNL'; -} -{ - $Data::Handle::VERSION = '0.02001003'; -} + +our $VERSION = '1.000000'; # ABSTRACT: A Very simple interface to the __DATA__ file handle. + +our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -19,11 +98,18 @@ my %datastash; use Symbol qw( gensym ); use Scalar::Util qw( weaken ); use parent qw( IO::File ); -use Package::Stash 0.15; # has_symbol +use Package::Stash 0.15; # has_symbol use Carp (); use Data::Handle::Exception; use Data::Handle::IO; -use Try::Tiny; +use Try::Tiny qw( try catch ); + + + + + + + sub new { @@ -58,16 +144,16 @@ sub new { } sub _has_data_symbol { - my ( $self, $package ) = @_; + my ( undef, $package ) = @_; my $rval = undef; try { - my $object = Package::Stash->new($package); - return unless $object->has_symbol('DATA'); - my $fh = $object->get_symbol('DATA'); + my $stash = Package::Stash->new($package); + return unless $stash->has_symbol('DATA'); + my $fh = $stash->get_symbol('DATA'); $rval = defined fileno *{$fh}; } catch { - if ( $_ =~ /is not a module name/ ) { + if (/is not a module name/) { $rval = undef; return; } @@ -80,9 +166,7 @@ sub _has_data_symbol { sub _get_data_symbol { my ( $self, $package ) = @_; if ( !$self->_has_data_symbol($package) ) { - _e('Internal::BadGet') - ->throw( - '_get_data_symbol was called when there is no data_symbol to get'); + _e('Internal::BadGet')->throw('_get_data_symbol was called when there is no data_symbol to get'); } return Package::Stash->new($package)->get_symbol('DATA'); } @@ -94,9 +178,7 @@ sub _get_start_offset { if ( exists $datastash{$package}->{offset} ); if ( !$self->_has_data_symbol($package) ) { - _e('Internal::BadGet') - ->throw( - '_get_start_offset was called when there is no data_symbol to get'); + _e('Internal::BadGet')->throw('_get_start_offset was called when there is no data_symbol to get'); } my $fd = $self->_get_data_symbol($package); my $position = tell $fd; @@ -109,11 +191,9 @@ sub _get_start_offset { sub _is_valid_data_tell { my ( $self, $package ) = @_; return 1 - if ( exists $datastash{$package} && $datastash{$package}->{valid} == 1 ); + if ( exists $datastash{$package} && 1 == $datastash{$package}->{valid} ); if ( !$self->_has_data_symbol($package) ) { - _e('Internal::BadGet') - ->throw( - '_is_valid_data_tell was called when there is no data_symbol to get'); + _e('Internal::BadGet')->throw('_is_valid_data_tell was called when there is no data_symbol to get'); } my $fh = $self->_get_data_symbol($package); @@ -140,7 +220,7 @@ sub _is_valid_data_tell { } sub _stringify_metadata { - my ( $self, $package ) = @_; + my ( undef, $package ) = @_; my @lines = (); if ( not exists $datastash{$package} ) { push @lines, "Nothing known about $package\n"; @@ -210,14 +290,14 @@ sub _seek { my $fh = $self->_stash->{filehandle}; - if ( $whence == 0 ) { + if ( 0 == $whence ) { $position = $self->_stash->{start_offset} + $position; } - elsif ( $whence == 1 ) { + elsif ( 1 == $whence ) { $whence = 0; $position = $self->_stash->{current_offset} + $position; } - elsif ( $whence == 2 ) { + elsif ( 2 == $whence ) { } else { _e('API::Invalid::Whence')->throw('Expected whence values are 0,1,2'); @@ -257,8 +337,7 @@ sub _e { return 'Data::Handle::Exception::' . shift } sub _fh { return shift->_stash->{filehandle} } sub _binmode { - return _e('API::NotImplemented') - ->throw('_binmode() is difficult on Data::Handle and not implemented yet.'); + return _e('API::NotImplemented')->throw('_binmode() is difficult on Data::Handle and not implemented yet.'); } sub _open { @@ -282,19 +361,30 @@ sub _write { } + + + + + + + + + 1; __END__ =pod +=encoding UTF-8 + =head1 NAME Data::Handle - A Very simple interface to the __DATA__ file handle. =head1 VERSION -version 0.02001003 +version 1.000000 =head1 SYNOPSIS @@ -334,7 +424,7 @@ Where C<$targetpackage> is the package you want the __DATA__ section from. =head1 WARNING -At present, this module does you no favours if something else earlier has moved the file handle position past +At present, this module does you no favors if something else earlier has moved the file handle position past the __DATA__ section, or rewound it to the start of the file. This is an understood caveat, but nothing else seems to have a good way around this either. ( You can always rewind to the start of the file and use heuristics, but that is rather pesky ). @@ -393,7 +483,7 @@ Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2013 by Kent Fredric . +This software is copyright (c) 2014 by Kent Fredric . 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 --git a/lib/Data/Handle/Exception.pm b/lib/Data/Handle/Exception.pm index 15c88cf..5c19580 100644 --- a/lib/Data/Handle/Exception.pm +++ b/lib/Data/Handle/Exception.pm @@ -1,30 +1,64 @@ +use 5.008; # _use_carp_version use strict; use warnings; package Data::Handle::Exception; -BEGIN { - $Data::Handle::Exception::AUTHORITY = 'cpan:KENTNL'; -} -{ - $Data::Handle::Exception::VERSION = '0.02001003'; -} + +our $VERSION = '1.000000'; # ABSTRACT: Super-light Weight Dependency Free Exception base. + +our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY + + + + + + + + + + + + + + + + + + + + + + + + + + + use overload '""' => \&stringify; use Scalar::Util qw( blessed ); use Carp 1.22; -use Term::ANSIColor qw( :constants ); - -if ( not defined &Carp::caller_info ) { - Carp::croak(q{Cannot load Data::Handle::Exception as your version of Carp does not have ::caller_info which we use for backtraces, Carp Version: } . - $Carp::VERSION ); +use Term::ANSIColor qw( YELLOW GREEN RESET ); + +if ( not defined &Carp::caller_info ) { ## no critic (Subroutines) + Carp::croak(<<"EOF"); +Cannot load Data::Handle::Exception as your version of Carp does not have + ::caller_info which we use for backtraces. +Carp Version: $Carp::VERSION +EOF } + + + + + sub new { my ($class) = @_; my $self = {}; @@ -34,6 +68,10 @@ sub new { + + + + sub throw { my $self = shift; @@ -46,12 +84,14 @@ sub throw { my @stacklines = (); # This is mostly because want to benefit from all new fixes in carp. - my $callerinfo = \&Carp::caller_info; - { # stolen parts from Carp::ret_backtrace + my $callerinfo = \&Carp::caller_info; ## no critic (Subroutines) + + { # stolen parts from Carp::ret_backtrace my ($i) = 0; my $tid_msg = q{}; - if ( defined &threads::tid ) { + if ( defined &threads::tid ) { ## no critic (Subroutines) + my $tid = threads->tid; $tid_msg = " thread $tid" if $tid; } @@ -97,9 +137,41 @@ sub throw { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sub stringify { ## no critic ( ProhibitPunctuationVars ) - local $@ = undef; # Term::ANSIColour clobbers $@ + local $@ = undef; # Term::ANSIColour clobbers $@ my $self = shift; my $message = $self->{message}; my @stacklines = @{ $self->{stacklines} }; @@ -117,7 +189,7 @@ sub stringify { my $dynaexceptions = { 'Data::Handle::Exception' => 1 }; sub _gen { - my ( $self, $fullclass, $parent ) = @_; + my ( undef, $fullclass, $parent ) = @_; ## no critic ( RequireInterpolationOfMetachars ) my $code = sprintf q{package %s; our @ISA=("%s"); 1;}, $fullclass, $parent; @@ -153,13 +225,15 @@ __END__ =pod +=encoding UTF-8 + =head1 NAME Data::Handle::Exception - Super-light Weight Dependency Free Exception base. =head1 VERSION -version 0.02001003 +version 1.000000 =head1 SYNOPSIS @@ -170,16 +244,20 @@ version 0.02001003 =head1 DESCRIPTION -L's primary goal is to be somewhat "Infrastructural" in design, much like L is, being very low-level, and doing one thing, and doing it well, solving an issue with Perl's native implementation. +L's primary goal is to be somewhat "Infrastructural" in design, much like L is, being very +low-level, and doing one thing, and doing it well, solving an issue with Perl's native implementation. The idea is for more complex things to use this, instead of this using more complex things. As such, a dependency on something like Moose would be overkill, possibly even detrimental to encouraging the use of this module. -So we've scrimped and gone really cheap ( for now at least ) in a few places to skip adding downstream dependencies, so this module is a slightly nasty but reasonably straight forward exception class. +So we've scrimped and gone really cheap ( for now at least ) in a few places to skip adding downstream dependencies, +so this module is a slightly nasty but reasonably straight forward exception class. -The actual Exception classes don't actually have their own sources, they're automatically generated when L is loaded. -And we have some really nice backtraces stolen from Carp's code, with some sexy coloured formatting. See L/stringify> for details. +The actual Exception classes don't actually have their own sources, they're automatically generated when +C is loaded. +And we have some really nice backtraces stolen from Carp's code, with some sexy colored formatting. See L for +details. =head1 METHODS @@ -200,11 +278,13 @@ Turns this stacktrace into a string. my $str = "hello " . $exception . " world"; -If you have a coloured terminal, then L is used to highlight lines based on how likely they are to be relevant to diagnosis. +If you have a colored terminal, then L is used to highlight lines based on how likely they are to be relevant +to diagnosis. =over 4 -=item Green - From Data::Handle and is likely to be "safe", its where the error is being reported from, so its useful informationally, but the problem is probably elsewhere. +=item Green - From Data::Handle and is likely to be "safe", its where the error is being reported from, +so its useful information, but the problem is probably elsewhere. =item Yellow - Sources we're confident its unlikely to be a source of problems, currently @@ -226,7 +306,7 @@ Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2013 by Kent Fredric . +This software is copyright (c) 2014 by Kent Fredric . 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 --git a/lib/Data/Handle/IO.pm b/lib/Data/Handle/IO.pm index 2b51bdb..a0a617e 100644 --- a/lib/Data/Handle/IO.pm +++ b/lib/Data/Handle/IO.pm @@ -1,23 +1,34 @@ - +use 5.006; use strict; use warnings; package Data::Handle::IO; -BEGIN { - $Data::Handle::IO::AUTHORITY = 'cpan:KENTNL'; -} -{ - $Data::Handle::IO::VERSION = '0.02001003'; -} + +our $VERSION = '1.000000'; # ABSTRACT: A Tie Package so Data::Handle can look and feel like a normal handle. -# + +our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY + + + + + + + + + + + + + + sub TIEHANDLE { - my $self = shift; - my $object = shift; - return bless $object, $self; + my $self = shift; + my $handle_object = shift; + return bless $handle_object, $self; } sub _object { @@ -47,13 +58,15 @@ __END__ =pod +=encoding UTF-8 + =head1 NAME Data::Handle::IO - A Tie Package so Data::Handle can look and feel like a normal handle. =head1 VERSION -version 0.02001003 +version 1.000000 =head1 DESCRIPTION @@ -74,7 +87,7 @@ Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2013 by Kent Fredric . +This software is copyright (c) 2014 by Kent Fredric . 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 --git a/maint/perlcritic.rc.gen.pl b/maint/perlcritic.rc.gen.pl new file mode 100644 index 0000000..71c587e --- /dev/null +++ b/maint/perlcritic.rc.gen.pl @@ -0,0 +1,64 @@ +#!/usr/bin/env perl +## no critic (Modules::RequireVersionVar) + +# ABSTRACT: Write an INI file from a bundle + +use 5.008; # utf8 +use strict; +use warnings; +use utf8; + +our $VERSION = 0.001; + +use Carp qw( croak carp ); +use Perl::Critic::ProfileCompiler::Util qw( create_bundle ); +use Path::Tiny qw(path); + +## no critic (ErrorHandling::RequireUseOfExceptions) +my $bundle = create_bundle('Example::Author::KENTNL'); +$bundle->configure; + +my @stopwords = ( + qw( + proxied LeoNerd anno irc freenode Chas stacktrace backtraces stringify + ) +); +for my $wordlist (@stopwords) { + $bundle->add_or_append_policy_field( 'Documentation::PodSpelling' => ( 'stop_words' => $wordlist ) ); +} + +#$bundle->add_or_append_policy_field( +# 'Subroutines::ProhibitCallsToUndeclaredSubs' => ( 'exempt_subs' => 'String::Formatter::str_rf' ), ); + +$bundle->remove_policy('ErrorHandling::RequireUseOfExceptions'); +$bundle->remove_policy('CodeLayout::RequireUseUTF8'); +$bundle->remove_policy('Subroutines::RequireArgUnpacking'); +$bundle->remove_policy('Documentation::RequirePodLinksIncludeText'); +$bundle->remove_policy('RegularExpressions::RequireDotMatchAnything'); +$bundle->remove_policy('RegularExpressions::RequireLineBoundaryMatching'); + +#$bundle->remove_policy('ErrorHandling::RequireCarping'); +$bundle->remove_policy('NamingConventions::Capitalization'); + +my $inf = $bundle->actionlist->get_inflated; + +my $config = $inf->apply_config; + +{ + my $rcfile = path('./perlcritic.rc')->openw_utf8; + $rcfile->print( $config->as_ini, "\n" ); + close $rcfile or croak 'Something fubared closing perlcritic.rc'; +} +my $deps = $inf->own_deps; +{ + my $target = path('./misc'); + $target->mkpath if not $target->is_dir; + + my $depsfile = $target->child('perlcritic.deps')->openw_utf8; + for my $key ( sort keys %{$deps} ) { + $depsfile->printf( "%s~%s\n", $key, $deps->{$key} ); + *STDERR->printf( "%s => %s\n", $key, $deps->{$key} ); + } + close $depsfile or carp 'Something fubared closing perlcritic.deps'; +} + diff --git a/misc/Changes.deps b/misc/Changes.deps new file mode 100644 index 0000000..eb7a5c3 --- /dev/null +++ b/misc/Changes.deps @@ -0,0 +1,84 @@ +This file contains changes in REQUIRED dependencies for standard CPAN phases (configure/build/runtime/test) + +1.000000 + [Added / configure requires] + - ExtUtils::MakeMaker + + [Added / test requires] + - ExtUtils::MakeMaker + - File::Spec + + [Changed / test requires] + - Test::More 0.98 → 0.96 + + [Removed / build requires] + - Module::Build 0.4005 + + [Removed / configure requires] + - Module::Build 0.4005 + + [Removed / test requires] + - File::Find + - File::Temp + +0.02001003 2013-07-26T09:11:29Z + [Added / test requires] + - lib + + [Changed / build requires] + - Module::Build 0.4002 → 0.4005 + + [Changed / configure requires] + - Module::Build 0.4002 → 0.4005 + + [Changed / runtime requires] + - Package::Stash 0 → 0.15 + +0.02001002 2012-08-11T01:59:03Z + [Changed / build requires] + - Module::Build 0.3601 → 0.4002 + + [Changed / configure requires] + - Module::Build 0.3601 → 0.4002 + + [Changed / test requires] + - Test::More 0.96 → 0.98 + +0.02001001 2012-06-08T13:30:28Z + [Added / runtime requires] + - perl 5.008 + + [Changed / runtime requires] + - Carp 0 → 1.22 + +0.01011704 2011-10-15T11:05:19Z + [Added / runtime requires] + - Try::Tiny + - strict + - warnings + + [Removed / test requires] + - English + +0.01011703 2011-04-24T22:29:18Z + +0.01011702 2010-12-21T13:43:35Z + +0.01011701 2010-12-21T13:29:00Z + +0.01011617 2010-12-21T05:46:24Z + +0.01011601 2010-12-20T13:07:01Z + +0.01011501 2010-12-19T13:15:59Z + +0.01011500 2010-12-19T12:36:06Z + +0.01011421 2010-12-19T09:52:17Z + [Added / runtime requires] + - Term::ANSIColor + + [Added / test requires] + - Data::Dumper + - IO::Handle + diff --git a/misc/Changes.deps.all b/misc/Changes.deps.all new file mode 100644 index 0000000..cc0d7cc --- /dev/null +++ b/misc/Changes.deps.all @@ -0,0 +1,191 @@ +This file contains ALL changes in dependencies in both REQUIRED / OPTIONAL dependencies for all phases (configure/build/runtime/test/develop) + +1.000000 + [Added / configure recommends] + - ExtUtils::MakeMaker 6.98 + + [Added / configure requires] + - ExtUtils::MakeMaker + + [Added / develop requires] + - Dist::Zilla 5 + - Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes 0.001001 + - Dist::Zilla::Plugin::Authority 1.006 + - Dist::Zilla::Plugin::AutoPrereqs + - Dist::Zilla::Plugin::BumpVersionAfterRelease + - Dist::Zilla::Plugin::ConfirmRelease + - Dist::Zilla::Plugin::CopyFilesFromBuild + - Dist::Zilla::Plugin::EOLTests + - Dist::Zilla::Plugin::Git::Check + - Dist::Zilla::Plugin::Git::Commit + - Dist::Zilla::Plugin::Git::CommitBuild + - Dist::Zilla::Plugin::Git::Contributors 0.006 + - Dist::Zilla::Plugin::Git::GatherDir + - Dist::Zilla::Plugin::Git::NextRelease 0.004000 + - Dist::Zilla::Plugin::Git::Tag + - Dist::Zilla::Plugin::GithubMeta + - Dist::Zilla::Plugin::License + - Dist::Zilla::Plugin::MakeMaker + - Dist::Zilla::Plugin::Manifest + - Dist::Zilla::Plugin::ManifestSkip + - Dist::Zilla::Plugin::MetaConfig + - Dist::Zilla::Plugin::MetaData::BuiltWith + - Dist::Zilla::Plugin::MetaJSON + - Dist::Zilla::Plugin::MetaProvides::Package 1.14000001 + - Dist::Zilla::Plugin::MetaTests + - Dist::Zilla::Plugin::MetaYAML + - Dist::Zilla::Plugin::MinimumPerl + - Dist::Zilla::Plugin::PodCoverageTests + - Dist::Zilla::Plugin::PodSyntaxTests + - Dist::Zilla::Plugin::PodWeaver + - Dist::Zilla::Plugin::Prereqs + - Dist::Zilla::Plugin::Prereqs::AuthorDeps + - Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled + - Dist::Zilla::Plugin::ReadmeAnyFromPod + - Dist::Zilla::Plugin::ReadmeFromPod + - Dist::Zilla::Plugin::RewriteVersion::Sanitized + - Dist::Zilla::Plugin::RunExtraTests + - Dist::Zilla::Plugin::Test::CPAN::Changes + - Dist::Zilla::Plugin::Test::Compile::PerFile + - Dist::Zilla::Plugin::Test::Kwalitee + - Dist::Zilla::Plugin::Test::MinimumVersion + - Dist::Zilla::Plugin::Test::Perl::Critic + - Dist::Zilla::Plugin::Test::ReportPrereqs + - Dist::Zilla::Plugin::TestRelease + - Dist::Zilla::Plugin::Twitter + - Dist::Zilla::Plugin::UploadToCPAN + - Test::Kwalitee 1.21 + + [Added / develop suggests] + - Dist::Zilla::App::Command::bakeini 0.001002 + + [Added / test recommends] + - CPAN::Meta 2.120900 + - ExtUtils::MakeMaker 6.98 + - Test::More 1.001006 + + [Added / test requires] + - ExtUtils::MakeMaker + - File::Spec + + [Changed / develop suggests] + - Dist::Zilla::PluginBundle::Author::KENTNL v1.7.4 → 2.021000 + + [Changed / test requires] + - Test::More 0.98 → 0.96 + + [Removed / build requires] + - Module::Build 0.4005 + + [Removed / configure requires] + - Module::Build 0.4005 + + [Removed / develop recommends] + - Dist::Zilla::PluginBundle::Author::KENTNL::Lite v1.3.0 + + [Removed / develop requires] + - Dist::Zilla::PluginBundle::Author::KENTNL::Lite + - version 0.9901 + + [Removed / test requires] + - File::Find + - File::Temp + +0.02001003 2013-07-26T09:11:29Z + [Added / develop requires] + - Pod::Coverage::TrustPod + - Test::CPAN::Changes 0.19 + - Test::CPAN::Meta + - Test::Pod 1.41 + - Test::Pod::Coverage 1.08 + - version 0.9901 + + [Added / test requires] + - lib + + [Changed / build requires] + - Module::Build 0.4002 → 0.4005 + + [Changed / configure requires] + - Module::Build 0.4002 → 0.4005 + + [Changed / develop suggests] + - Dist::Zilla::PluginBundle::Author::KENTNL v1.5.0 → v1.7.4 + + [Changed / runtime requires] + - Package::Stash 0 → 0.15 + +0.02001002 2012-08-11T01:59:03Z + [Changed / build requires] + - Module::Build 0.3601 → 0.4002 + + [Changed / configure requires] + - Module::Build 0.3601 → 0.4002 + + [Changed / develop suggests] + - Dist::Zilla::PluginBundle::Author::KENTNL v1.3.0 → v1.5.0 + + [Changed / test requires] + - Test::More 0.96 → 0.98 + +0.02001001 2012-06-08T13:30:28Z + [Added / runtime requires] + - perl 5.008 + + [Changed / develop recommends] + - Dist::Zilla::PluginBundle::Author::KENTNL::Lite 0.01009803 → v1.3.0 + + [Changed / develop suggests] + - Dist::Zilla::PluginBundle::Author::KENTNL v1.0.0 → v1.3.0 + + [Changed / runtime requires] + - Carp 0 → 1.22 + +0.01011704 2011-10-15T11:05:19Z + [Added / runtime requires] + - Try::Tiny + - strict + - warnings + + [Removed / test requires] + - English + +0.01011703 2011-04-24T22:29:18Z + [Added / develop recommends] + - Dist::Zilla::PluginBundle::Author::KENTNL::Lite 0.01009803 + + [Added / develop requires] + - Dist::Zilla::PluginBundle::Author::KENTNL::Lite + + [Added / develop suggests] + - Dist::Zilla::PluginBundle::Author::KENTNL v1.0.0 + + [Removed / develop recommends] + - Dist::Zilla::PluginBundle::KENTNL::Lite 0.01009803 + + [Removed / develop requires] + - Dist::Zilla::PluginBundle::KENTNL::Lite + + [Removed / develop suggests] + - Dist::Zilla::PluginBundle::KENTNL 0.01017119 + +0.01011702 2010-12-21T13:43:35Z + +0.01011701 2010-12-21T13:29:00Z + +0.01011617 2010-12-21T05:46:24Z + +0.01011601 2010-12-20T13:07:01Z + +0.01011501 2010-12-19T13:15:59Z + +0.01011500 2010-12-19T12:36:06Z + +0.01011421 2010-12-19T09:52:17Z + [Added / runtime requires] + - Term::ANSIColor + + [Added / test requires] + - Data::Dumper + - IO::Handle + diff --git a/misc/Changes.deps.dev b/misc/Changes.deps.dev new file mode 100644 index 0000000..298af31 --- /dev/null +++ b/misc/Changes.deps.dev @@ -0,0 +1,123 @@ +This file contains changes to DEVELOPMENT dependencies only ( both REQUIRED and OPTIONAL ) + +1.000000 + [Added / develop requires] + - Dist::Zilla 5 + - Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes 0.001001 + - Dist::Zilla::Plugin::Authority 1.006 + - Dist::Zilla::Plugin::AutoPrereqs + - Dist::Zilla::Plugin::BumpVersionAfterRelease + - Dist::Zilla::Plugin::ConfirmRelease + - Dist::Zilla::Plugin::CopyFilesFromBuild + - Dist::Zilla::Plugin::EOLTests + - Dist::Zilla::Plugin::Git::Check + - Dist::Zilla::Plugin::Git::Commit + - Dist::Zilla::Plugin::Git::CommitBuild + - Dist::Zilla::Plugin::Git::Contributors 0.006 + - Dist::Zilla::Plugin::Git::GatherDir + - Dist::Zilla::Plugin::Git::NextRelease 0.004000 + - Dist::Zilla::Plugin::Git::Tag + - Dist::Zilla::Plugin::GithubMeta + - Dist::Zilla::Plugin::License + - Dist::Zilla::Plugin::MakeMaker + - Dist::Zilla::Plugin::Manifest + - Dist::Zilla::Plugin::ManifestSkip + - Dist::Zilla::Plugin::MetaConfig + - Dist::Zilla::Plugin::MetaData::BuiltWith + - Dist::Zilla::Plugin::MetaJSON + - Dist::Zilla::Plugin::MetaProvides::Package 1.14000001 + - Dist::Zilla::Plugin::MetaTests + - Dist::Zilla::Plugin::MetaYAML + - Dist::Zilla::Plugin::MinimumPerl + - Dist::Zilla::Plugin::PodCoverageTests + - Dist::Zilla::Plugin::PodSyntaxTests + - Dist::Zilla::Plugin::PodWeaver + - Dist::Zilla::Plugin::Prereqs + - Dist::Zilla::Plugin::Prereqs::AuthorDeps + - Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled + - Dist::Zilla::Plugin::ReadmeAnyFromPod + - Dist::Zilla::Plugin::ReadmeFromPod + - Dist::Zilla::Plugin::RewriteVersion::Sanitized + - Dist::Zilla::Plugin::RunExtraTests + - Dist::Zilla::Plugin::Test::CPAN::Changes + - Dist::Zilla::Plugin::Test::Compile::PerFile + - Dist::Zilla::Plugin::Test::Kwalitee + - Dist::Zilla::Plugin::Test::MinimumVersion + - Dist::Zilla::Plugin::Test::Perl::Critic + - Dist::Zilla::Plugin::Test::ReportPrereqs + - Dist::Zilla::Plugin::TestRelease + - Dist::Zilla::Plugin::Twitter + - Dist::Zilla::Plugin::UploadToCPAN + - Test::Kwalitee 1.21 + + [Added / develop suggests] + - Dist::Zilla::App::Command::bakeini 0.001002 + + [Changed / develop suggests] + - Dist::Zilla::PluginBundle::Author::KENTNL v1.7.4 → 2.021000 + + [Removed / develop recommends] + - Dist::Zilla::PluginBundle::Author::KENTNL::Lite v1.3.0 + + [Removed / develop requires] + - Dist::Zilla::PluginBundle::Author::KENTNL::Lite + - version 0.9901 + +0.02001003 2013-07-26T09:11:29Z + [Added / develop requires] + - Pod::Coverage::TrustPod + - Test::CPAN::Changes 0.19 + - Test::CPAN::Meta + - Test::Pod 1.41 + - Test::Pod::Coverage 1.08 + - version 0.9901 + + [Changed / develop suggests] + - Dist::Zilla::PluginBundle::Author::KENTNL v1.5.0 → v1.7.4 + +0.02001002 2012-08-11T01:59:03Z + [Changed / develop suggests] + - Dist::Zilla::PluginBundle::Author::KENTNL v1.3.0 → v1.5.0 + +0.02001001 2012-06-08T13:30:28Z + [Changed / develop recommends] + - Dist::Zilla::PluginBundle::Author::KENTNL::Lite 0.01009803 → v1.3.0 + + [Changed / develop suggests] + - Dist::Zilla::PluginBundle::Author::KENTNL v1.0.0 → v1.3.0 + +0.01011704 2011-10-15T11:05:19Z + +0.01011703 2011-04-24T22:29:18Z + [Added / develop recommends] + - Dist::Zilla::PluginBundle::Author::KENTNL::Lite 0.01009803 + + [Added / develop requires] + - Dist::Zilla::PluginBundle::Author::KENTNL::Lite + + [Added / develop suggests] + - Dist::Zilla::PluginBundle::Author::KENTNL v1.0.0 + + [Removed / develop recommends] + - Dist::Zilla::PluginBundle::KENTNL::Lite 0.01009803 + + [Removed / develop requires] + - Dist::Zilla::PluginBundle::KENTNL::Lite + + [Removed / develop suggests] + - Dist::Zilla::PluginBundle::KENTNL 0.01017119 + +0.01011702 2010-12-21T13:43:35Z + +0.01011701 2010-12-21T13:29:00Z + +0.01011617 2010-12-21T05:46:24Z + +0.01011601 2010-12-20T13:07:01Z + +0.01011501 2010-12-19T13:15:59Z + +0.01011500 2010-12-19T12:36:06Z + +0.01011421 2010-12-19T09:52:17Z + diff --git a/misc/Changes.deps.opt b/misc/Changes.deps.opt new file mode 100644 index 0000000..eb48400 --- /dev/null +++ b/misc/Changes.deps.opt @@ -0,0 +1,35 @@ +This file contains changes in OPTIONAL dependencies for standard CPAN phases (configure/build/runtime/test) + +1.000000 + [Added / configure recommends] + - ExtUtils::MakeMaker 6.98 + + [Added / test recommends] + - CPAN::Meta 2.120900 + - ExtUtils::MakeMaker 6.98 + - Test::More 1.001006 + +0.02001003 2013-07-26T09:11:29Z + +0.02001002 2012-08-11T01:59:03Z + +0.02001001 2012-06-08T13:30:28Z + +0.01011704 2011-10-15T11:05:19Z + +0.01011703 2011-04-24T22:29:18Z + +0.01011702 2010-12-21T13:43:35Z + +0.01011701 2010-12-21T13:29:00Z + +0.01011617 2010-12-21T05:46:24Z + +0.01011601 2010-12-20T13:07:01Z + +0.01011501 2010-12-19T13:15:59Z + +0.01011500 2010-12-19T12:36:06Z + +0.01011421 2010-12-19T09:52:17Z + diff --git a/misc/perlcritic.deps b/misc/perlcritic.deps new file mode 100644 index 0000000..7152ec0 --- /dev/null +++ b/misc/perlcritic.deps @@ -0,0 +1,15 @@ +Perl::Critic::Policy::Documentation::PodSpelling~0 +Perl::Critic::Policy::Lax::RequireExplicitPackage::ExceptForPragmata~0 +Perl::Critic::Policy::Variables::ProhibitUnusedVarsStricter~0 +Perl::Critic::ProfileCompiler::Bundle::Bangs~0 +Perl::Critic::ProfileCompiler::Bundle::Compatibility~0 +Perl::Critic::ProfileCompiler::Bundle::Core~0 +Perl::Critic::ProfileCompiler::Bundle::Deprecated~0 +Perl::Critic::ProfileCompiler::Bundle::Itch~0 +Perl::Critic::ProfileCompiler::Bundle::Lax~0 +Perl::Critic::ProfileCompiler::Bundle::Moose~0 +Perl::Critic::ProfileCompiler::Bundle::More~0 +Perl::Critic::ProfileCompiler::Bundle::Pulp~0 +Perl::Critic::ProfileCompiler::Bundle::StricterSubs~0 +Perl::Critic::ProfileCompiler::Bundle::Swift~0 +Perl::Critic::ProfileCompiler::Bundle::Tics~0 diff --git a/perlcritic.rc b/perlcritic.rc index 9ea246f..4888a4a 100644 --- a/perlcritic.rc +++ b/perlcritic.rc @@ -1,23 +1,462 @@ -severity = 1 -exclude = RequireTidyCode RequirePodSections ProhibitPostfixControls RequireRcsKeywords RequireExplicitPackage RequireArgUnpacking RequireLineBoundaryMatching RequireDotMatchAnything RequirePodLinksIncludeText ProhibitUnrestrictedNoCritic -include = Moose::ProhibitMultipleWiths Moose::ProhibitNewMethod Moose::RequireCleanNamespace Moose::RequireMakeImmutable color = 1 +color-severity-low = green +color-severity-medium = yellow +only = 1 +severity = 1 verbose = 9 +[Bangs::ProhibitBitwiseOperators] + +[Bangs::ProhibitCommentedOutCode] + +[Bangs::ProhibitDebuggingModules] + +[-Bangs::ProhibitFlagComments] + +[Bangs::ProhibitNoPlan] + +[Bangs::ProhibitNumberedNames] + +[Bangs::ProhibitRefProtoOrProto] + +[Bangs::ProhibitUselessRegexModifiers] + +[Bangs::ProhibitVagueNames] + +[BuiltinFunctions::ProhibitBooleanGrep] + +[BuiltinFunctions::ProhibitComplexMappings] + +[BuiltinFunctions::ProhibitLvalueSubstr] + +[BuiltinFunctions::ProhibitReverseSortBlock] + +[BuiltinFunctions::ProhibitSleepViaSelect] + [BuiltinFunctions::ProhibitStringyEval] allow_includes = 1 +[BuiltinFunctions::ProhibitStringySplit] + +[BuiltinFunctions::ProhibitUniversalCan] + +[BuiltinFunctions::ProhibitUniversalIsa] + +[BuiltinFunctions::ProhibitUselessTopic] + +[BuiltinFunctions::ProhibitVoidGrep] + +[BuiltinFunctions::ProhibitVoidMap] + +[BuiltinFunctions::RequireBlockGrep] + +[BuiltinFunctions::RequireBlockMap] + +[BuiltinFunctions::RequireGlobFunction] + +[BuiltinFunctions::RequireSimpleSortBlock] + +[ClassHierarchies::ProhibitAutoloading] + +[ClassHierarchies::ProhibitExplicitISA] + +[ClassHierarchies::ProhibitOneArgBless] + +[CodeLayout::ProhibitFatCommaNewline] + +[CodeLayout::ProhibitHardTabs] + +[-CodeLayout::ProhibitHashBarewords] + +[CodeLayout::ProhibitIfIfSameLine] + +[CodeLayout::ProhibitParensWithBuiltins] + +[CodeLayout::ProhibitQuotedWordLists] + [CodeLayout::ProhibitTrailingWhitespace] +[-CodeLayout::RequireASCII] + +[CodeLayout::RequireConsistentNewlines] + +[CodeLayout::RequireFinalSemicolon] + +[-CodeLayout::RequireTidyCode] + +[CodeLayout::RequireTrailingCommaAtNewline] + +[CodeLayout::RequireTrailingCommas] + +[-CodeLayout::RequireUseUTF8] + +[Compatibility::ConstantLeadingUnderscore] + +[Compatibility::ConstantPragmaHash] + +[Compatibility::Gtk2Constants] + +[Compatibility::PerlMinimumVersionAndWhy] + +[-Compatibility::PodMinimumVersion] + +[Compatibility::ProhibitThreeArgumentOpen] + +[Compatibility::ProhibitUnixDevNull] + +[ControlStructures::ProhibitCStyleForLoops] + +[ControlStructures::ProhibitCascadingIfElse] + +[ControlStructures::ProhibitDeepNests] + +[ControlStructures::ProhibitLabelsWithSpecialBlockNames] + +[ControlStructures::ProhibitMutatingListFunctions] + +[ControlStructures::ProhibitNegativeExpressionsInUnlessAndUntilConditions] + +[-ControlStructures::ProhibitPostfixControls] + +[ControlStructures::ProhibitUnlessBlocks] + +[ControlStructures::ProhibitUnreachableCode] + +[ControlStructures::ProhibitUntilBlocks] + [Documentation::PodSpelling] -stop_words = metadata KiokuDB LeoNerd anno proxied backtraces informationally stringify stacktrace coloured favours +spell_command = aspell list --lang en_US +stop_words = proxied LeoNerd anno irc freenode Chas stacktrace backtraces stringify + +[Documentation::ProhibitAdjacentLinks] + +[Documentation::ProhibitBadAproposMarkup] + +[Documentation::ProhibitDuplicateHeadings] + +[Documentation::ProhibitDuplicateSeeAlso] + +[Documentation::ProhibitLinkToSelf] + +[Documentation::ProhibitParagraphEndComma] + +[Documentation::ProhibitParagraphTwoDots] + +[Documentation::ProhibitUnbalancedParens] + +[Documentation::ProhibitVerbatimMarkup] + +[Documentation::RequireEndBeforeLastPod] + +[Documentation::RequireFilenameMarkup] + +[Documentation::RequireFinalCut] + +[Documentation::RequireLinkedURLs] + +[-Documentation::RequirePODUseEncodingUTF8] + +[Documentation::RequirePackageMatchesPodName] + +[Documentation::RequirePodAtEnd] + +[-Documentation::RequirePodLinksIncludeText] + +[-Documentation::RequirePodSections] + +[-Editor::RequireEmacsFileVariables] + +[ErrorHandling::RequireCarping] + +[ErrorHandling::RequireCheckingReturnValueOfEval] + +[-ErrorHandling::RequireUseOfExceptions] + +[InputOutput::ProhibitBacktickOperators] + +[InputOutput::ProhibitBarewordFileHandles] + +[InputOutput::ProhibitExplicitStdin] + +[InputOutput::ProhibitInteractiveTest] + +[InputOutput::ProhibitJoinedReadline] + +[InputOutput::ProhibitOneArgSelect] + +[InputOutput::ProhibitReadlineInForLoop] + +[InputOutput::ProhibitTwoArgOpen] + +[InputOutput::RequireBracedFileHandleWithPrint] + +[InputOutput::RequireBriefOpen] + +[InputOutput::RequireCheckedClose] + +[InputOutput::RequireCheckedOpen] + +[InputOutput::RequireCheckedSyscalls] + +[InputOutput::RequireEncodingWithUTF8Layer] + +[Lax::ProhibitComplexMappings::LinesNotStatements] + +[Lax::ProhibitEmptyQuotes::ExceptAsFallback] + +[Lax::ProhibitLeadingZeros::ExceptChmod] + +[Lax::ProhibitStringyEval::ExceptForRequire] + +[Lax::RequireEndWithTrueConst] + +[Lax::RequireExplicitPackage::ExceptForPragmata] +allowed_pragmata = diagnostics feature perlversion strict warnings utf8 + +[Miscellanea::ProhibitFormats] + +[Miscellanea::ProhibitTies] + +[Miscellanea::ProhibitUnrestrictedNoCritic] + +[-Miscellanea::ProhibitUselessNoCritic] + +[-Miscellanea::RequireRcsKeywords] + +[Miscellanea::TextDomainPlaceholders] + +[Miscellanea::TextDomainUnused] + +[Modules::PerlMinimumVersion] + +[Modules::ProhibitAutomaticExportation] + +[Modules::ProhibitConditionalUseStatements] + +[Modules::ProhibitEvilModules] + +[Modules::ProhibitExcessMainComplexity] + +[Modules::ProhibitModuleShebang] + +[Modules::ProhibitMultiplePackages] + +[Modules::ProhibitPOSIXimport] + +[Modules::ProhibitUseQuotedVersion] + +[Modules::RequireBarewordIncludes] + +[Modules::RequireEndWithOne] + +[-Modules::RequireExplicitInclusion] + +[-Modules::RequireExplicitPackage] + +[Modules::RequireFilenameMatchesPackage] + +[Modules::RequireNoMatchVarsWithUseEnglish] + +[Modules::RequirePerlVersion] + +[Modules::RequireVersionVar] + +[-Moose::ProhibitMultipleWiths] + +[Moose::ProhibitNewMethod] + +[Moose::RequireCleanNamespace] + +[Moose::RequireMakeImmutable] + +[-NamingConventions::Capitalization] + +[NamingConventions::ProhibitAmbiguousNames] + +[NamingConventions::ProhibitMixedCaseSubs] + +[NamingConventions::ProhibitMixedCaseVars] + +[Objects::ProhibitIndirectSyntax] + +[References::ProhibitDoubleSigils] + +[RegularExpressions::ProhibitCaptureWithoutTest] + +[RegularExpressions::ProhibitComplexRegexes] + +[RegularExpressions::ProhibitEnumeratedClasses] + +[RegularExpressions::ProhibitEscapedMetacharacters] + +[RegularExpressions::ProhibitFixedStringMatches] + +[RegularExpressions::ProhibitSingleCharAlternation] + +[RegularExpressions::ProhibitUnusedCapture] + +[RegularExpressions::ProhibitUnusualDelimiters] + +[RegularExpressions::ProhibitUselessTopic] + +[RegularExpressions::RequireBracesForMultiline] + +[-RegularExpressions::RequireDotMatchAnything] + +[RegularExpressions::RequireExtendedFormatting] + +[-RegularExpressions::RequireLineBoundaryMatching] + +[Subroutines::ProhibitAmpersandSigils] + +[Subroutines::ProhibitBuiltinHomonyms] + +[Subroutines::ProhibitCallsToUndeclaredSubs] + +[Subroutines::ProhibitCallsToUnexportedSubs] + +[Subroutines::ProhibitExcessComplexity] + +[Subroutines::ProhibitExplicitReturnUndef] + +[Subroutines::ProhibitExportingUndeclaredSubs] + +[Subroutines::ProhibitManyArgs] + +[Subroutines::ProhibitNestedSubs] + +[Subroutines::ProhibitQualifiedSubDeclarations] + +[Subroutines::ProhibitReturnSort] + +[Subroutines::ProhibitSubroutinePrototypes] [Subroutines::ProhibitUnusedPrivateSubroutines] private_name_regex = _(?!build_)\w +[Subroutines::ProtectPrivateSubs] + +[-Subroutines::RequireArgUnpacking] + +[Subroutines::RequireFinalReturn] + +[TestingAndDebugging::ProhibitNoStrict] + +[TestingAndDebugging::ProhibitNoWarnings] + +[TestingAndDebugging::ProhibitProlongedStrictureOverride] + +[TestingAndDebugging::RequireTestLabels] + [TestingAndDebugging::RequireUseStrict] -equivalent_modules = Moose +equivalent_modules = Moose Moo [TestingAndDebugging::RequireUseWarnings] -equivalent_modules = Moose +equivalent_modules = Moose Moo + +[Tics::ProhibitLongLines] +base_max = 130 + +[Tics::ProhibitManyArrows] + +[Tics::ProhibitUseBase] + +[ValuesAndExpressions::ConstantBeforeLt] + +[ValuesAndExpressions::NotWithCompare] + +[ValuesAndExpressions::ProhibitArrayAssignAref] + +[ValuesAndExpressions::ProhibitBarewordDoubleColon] + +[ValuesAndExpressions::ProhibitCommaSeparatedStatements] + +[ValuesAndExpressions::ProhibitComplexVersion] + +[ValuesAndExpressions::ProhibitConstantPragma] + +[ValuesAndExpressions::ProhibitDuplicateHashKeys] + +[-ValuesAndExpressions::ProhibitEmptyCommas] + +[ValuesAndExpressions::ProhibitEmptyQuotes] + +[ValuesAndExpressions::ProhibitEscapedCharacters] + +[ValuesAndExpressions::ProhibitFiletest_f] + +[ValuesAndExpressions::ProhibitImplicitNewlines] + +[ValuesAndExpressions::ProhibitInterpolationOfLiterals] + +[ValuesAndExpressions::ProhibitLeadingZeros] + +[ValuesAndExpressions::ProhibitLongChainsOfMethodCalls] + +[-ValuesAndExpressions::ProhibitMagicNumbers] + +[ValuesAndExpressions::ProhibitMismatchedOperators] + +[ValuesAndExpressions::ProhibitMixedBooleanOperators] + +[ValuesAndExpressions::ProhibitNoisyQuotes] + +[ValuesAndExpressions::ProhibitNullStatements] + +[ValuesAndExpressions::ProhibitQuotesAsQuotelikeOperatorDelimiters] + +[ValuesAndExpressions::ProhibitSpecialLiteralHeredocTerminator] + +[ValuesAndExpressions::ProhibitUnknownBackslash] + +[ValuesAndExpressions::ProhibitVersionStrings] + +[ValuesAndExpressions::RequireConstantOnLeftSideOfEquality] + +[ValuesAndExpressions::RequireConstantVersion] + +[ValuesAndExpressions::RequireInterpolationOfMetachars] + +[ValuesAndExpressions::RequireNumberSeparators] + +[ValuesAndExpressions::RequireNumericVersion] + +[ValuesAndExpressions::RequireQuotedHeredocTerminator] + +[ValuesAndExpressions::RequireUpperCaseHeredocTerminator] + +[ValuesAndExpressions::RestrictLongStrings] + +[ValuesAndExpressions::UnexpandedSpecialLiteral] + +[Variables::ProhibitAugmentedAssignmentInDeclaration] + +[Variables::ProhibitConditionalDeclarations] + +[Variables::ProhibitEvilVariables] + +[Variables::ProhibitLocalVars] + +[Variables::ProhibitMatchVars] + +[Variables::ProhibitPackageVars] + +[Variables::ProhibitPerl4PackageNames] + +[-Variables::ProhibitPunctuationVars] + +[Variables::ProhibitReusedNames] + +[Variables::ProhibitUnusedVariables] + +[Variables::ProhibitUnusedVarsStricter] + +[Variables::ProtectPrivateVars] + +[Variables::RequireInitializationForLocalVars] + +[Variables::RequireLexicalLoopIterators] + +[Variables::RequireLocalizedPunctuationVars] +[Variables::RequireNegativeIndices] diff --git a/t/00-compile.t b/t/00-compile.t deleted file mode 100644 index cc7ad81..0000000 --- a/t/00-compile.t +++ /dev/null @@ -1,74 +0,0 @@ -#!perl - -use strict; -use warnings; - -use Test::More; - - - -use File::Find; -use File::Temp qw{ tempdir }; - -my @modules; -find( - sub { - return if $File::Find::name !~ /\.pm\z/; - my $found = $File::Find::name; - $found =~ s{^lib/}{}; - $found =~ s{[/\\]}{::}g; - $found =~ s/\.pm$//; - # nothing to skip - push @modules, $found; - }, - 'lib', -); - -sub _find_scripts { - my $dir = shift @_; - - my @found_scripts = (); - find( - sub { - return unless -f; - my $found = $File::Find::name; - # nothing to skip - open my $FH, '<', $_ or do { - note( "Unable to open $found in ( $! ), skipping" ); - return; - }; - my $shebang = <$FH>; - return unless $shebang =~ /^#!.*?\bperl\b\s*$/; - push @found_scripts, $found; - }, - $dir, - ); - - return @found_scripts; -} - -my @scripts; -do { push @scripts, _find_scripts($_) if -d $_ } - for qw{ bin script scripts }; - -my $plan = scalar(@modules) + scalar(@scripts); -$plan ? (plan tests => $plan) : (plan skip_all => "no tests to run"); - -{ - # fake home for cpan-testers - # no fake requested ## local $ENV{HOME} = tempdir( CLEANUP => 1 ); - - like( qx{ $^X -Ilib -e "require $_; print '$_ ok'" }, qr/^\s*$_ ok/s, "$_ loaded ok" ) - for sort @modules; - - SKIP: { - eval "use Test::Script 1.05; 1;"; - skip "Test::Script needed to test script compilation", scalar(@scripts) if $@; - foreach my $file ( @scripts ) { - my $script = $file; - $script =~ s!.*/!!; - script_compiles( $file, "$script script compiles" ); - } - } - -} diff --git a/t/00-compile/lib_Data_Handle_Exception_pm.t b/t/00-compile/lib_Data_Handle_Exception_pm.t new file mode 100644 index 0000000..489a8ad --- /dev/null +++ b/t/00-compile/lib_Data_Handle_Exception_pm.t @@ -0,0 +1,11 @@ +use strict; +use warnings; + +# This test was generated for +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.003000 +# with template 01-basic.t.tpl + +use Test::More 0.89 tests => 1; + +require_ok("lib/Data/Handle/Exception.pm"); + diff --git a/t/00-compile/lib_Data_Handle_IO_pm.t b/t/00-compile/lib_Data_Handle_IO_pm.t new file mode 100644 index 0000000..0c4855a --- /dev/null +++ b/t/00-compile/lib_Data_Handle_IO_pm.t @@ -0,0 +1,11 @@ +use strict; +use warnings; + +# This test was generated for +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.003000 +# with template 01-basic.t.tpl + +use Test::More 0.89 tests => 1; + +require_ok("lib/Data/Handle/IO.pm"); + diff --git a/t/00-compile/lib_Data_Handle_pm.t b/t/00-compile/lib_Data_Handle_pm.t new file mode 100644 index 0000000..fd858f7 --- /dev/null +++ b/t/00-compile/lib_Data_Handle_pm.t @@ -0,0 +1,11 @@ +use strict; +use warnings; + +# This test was generated for +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.003000 +# with template 01-basic.t.tpl + +use Test::More 0.89 tests => 1; + +require_ok("lib/Data/Handle.pm"); + diff --git a/t/00-report-prereqs.dd b/t/00-report-prereqs.dd new file mode 100644 index 0000000..a2450ad --- /dev/null +++ b/t/00-report-prereqs.dd @@ -0,0 +1,104 @@ +do { my $x = { + 'configure' => { + 'recommends' => { + 'ExtUtils::MakeMaker' => '6.98' + }, + 'requires' => { + 'ExtUtils::MakeMaker' => '0' + } + }, + 'develop' => { + 'requires' => { + 'Dist::Zilla' => '5', + 'Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes' => '0.001001', + 'Dist::Zilla::Plugin::Authority' => '1.006', + 'Dist::Zilla::Plugin::AutoPrereqs' => '0', + 'Dist::Zilla::Plugin::BumpVersionAfterRelease' => '0', + 'Dist::Zilla::Plugin::ConfirmRelease' => '0', + 'Dist::Zilla::Plugin::CopyFilesFromBuild' => '0', + 'Dist::Zilla::Plugin::EOLTests' => '0', + 'Dist::Zilla::Plugin::Git::Check' => '0', + 'Dist::Zilla::Plugin::Git::Commit' => '0', + 'Dist::Zilla::Plugin::Git::CommitBuild' => '0', + 'Dist::Zilla::Plugin::Git::Contributors' => '0.006', + 'Dist::Zilla::Plugin::Git::GatherDir' => '0', + 'Dist::Zilla::Plugin::Git::NextRelease' => '0.004000', + 'Dist::Zilla::Plugin::Git::Tag' => '0', + 'Dist::Zilla::Plugin::GithubMeta' => '0', + 'Dist::Zilla::Plugin::License' => '0', + 'Dist::Zilla::Plugin::MakeMaker' => '0', + 'Dist::Zilla::Plugin::Manifest' => '0', + 'Dist::Zilla::Plugin::ManifestSkip' => '0', + 'Dist::Zilla::Plugin::MetaConfig' => '0', + 'Dist::Zilla::Plugin::MetaData::BuiltWith' => '0', + 'Dist::Zilla::Plugin::MetaJSON' => '0', + 'Dist::Zilla::Plugin::MetaProvides::Package' => '1.14000001', + 'Dist::Zilla::Plugin::MetaTests' => '0', + 'Dist::Zilla::Plugin::MetaYAML' => '0', + 'Dist::Zilla::Plugin::MinimumPerl' => '0', + 'Dist::Zilla::Plugin::PodCoverageTests' => '0', + 'Dist::Zilla::Plugin::PodSyntaxTests' => '0', + 'Dist::Zilla::Plugin::PodWeaver' => '0', + 'Dist::Zilla::Plugin::Prereqs' => '0', + 'Dist::Zilla::Plugin::Prereqs::AuthorDeps' => '0', + 'Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled' => '0', + 'Dist::Zilla::Plugin::ReadmeAnyFromPod' => '0', + 'Dist::Zilla::Plugin::ReadmeFromPod' => '0', + 'Dist::Zilla::Plugin::RewriteVersion::Sanitized' => '0', + 'Dist::Zilla::Plugin::RunExtraTests' => '0', + 'Dist::Zilla::Plugin::Test::CPAN::Changes' => '0', + 'Dist::Zilla::Plugin::Test::Compile::PerFile' => '0', + 'Dist::Zilla::Plugin::Test::Kwalitee' => '0', + 'Dist::Zilla::Plugin::Test::MinimumVersion' => '0', + 'Dist::Zilla::Plugin::Test::Perl::Critic' => '0', + 'Dist::Zilla::Plugin::Test::ReportPrereqs' => '0', + 'Dist::Zilla::Plugin::TestRelease' => '0', + 'Dist::Zilla::Plugin::Twitter' => '0', + 'Dist::Zilla::Plugin::UploadToCPAN' => '0', + 'Pod::Coverage::TrustPod' => '0', + 'Test::CPAN::Changes' => '0.19', + 'Test::CPAN::Meta' => '0', + 'Test::Kwalitee' => '1.21', + 'Test::Pod' => '1.41', + 'Test::Pod::Coverage' => '1.08' + }, + 'suggests' => { + 'Dist::Zilla::App::Command::bakeini' => '0.001002', + 'Dist::Zilla::PluginBundle::Author::KENTNL' => '2.021000' + } + }, + 'runtime' => { + 'requires' => { + 'Carp' => '1.22', + 'IO::File' => '0', + 'Package::Stash' => '0.15', + 'Scalar::Util' => '0', + 'Symbol' => '0', + 'Term::ANSIColor' => '0', + 'Try::Tiny' => '0', + 'overload' => '0', + 'parent' => '0', + 'perl' => '5.008', + 'strict' => '0', + 'warnings' => '0' + } + }, + 'test' => { + 'recommends' => { + 'CPAN::Meta' => '2.120900', + 'ExtUtils::MakeMaker' => '6.98', + 'Test::More' => '1.001006' + }, + 'requires' => { + 'Data::Dumper' => '0', + 'ExtUtils::MakeMaker' => '0', + 'File::Spec' => '0', + 'IO::Handle' => '0', + 'Test::Fatal' => '0', + 'Test::More' => '0.96', + 'lib' => '0' + } + } + }; + $x; + } \ No newline at end of file diff --git a/t/00-report-prereqs.t b/t/00-report-prereqs.t new file mode 100644 index 0000000..402b3d9 --- /dev/null +++ b/t/00-report-prereqs.t @@ -0,0 +1,176 @@ +#!perl + +use strict; +use warnings; + +# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.019 + +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 ) { + if ( 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 ); + 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 --git a/t/000-report-versions-tiny.t b/t/000-report-versions-tiny.t deleted file mode 100644 index d309fc7..0000000 --- a/t/000-report-versions-tiny.t +++ /dev/null @@ -1,96 +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.08\n"; - -eval { # no excuses! - # report our Perl details - my $want = '5.008'; - $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','1.22') }; -eval { $v .= pmver('Data::Dumper','any version') }; -eval { $v .= pmver('Dist::Zilla::PluginBundle::Author::KENTNL','v1.7.4') }; -eval { $v .= pmver('Dist::Zilla::PluginBundle::Author::KENTNL::Lite','v1.3.0') }; -eval { $v .= pmver('File::Find','any version') }; -eval { $v .= pmver('File::Temp','any version') }; -eval { $v .= pmver('IO::File','any version') }; -eval { $v .= pmver('IO::Handle','any version') }; -eval { $v .= pmver('Module::Build','0.4005') }; -eval { $v .= pmver('Package::Stash','0.15') }; -eval { $v .= pmver('Pod::Coverage::TrustPod','any version') }; -eval { $v .= pmver('Scalar::Util','any version') }; -eval { $v .= pmver('Symbol','any version') }; -eval { $v .= pmver('Term::ANSIColor','any version') }; -eval { $v .= pmver('Test::CPAN::Changes','0.19') }; -eval { $v .= pmver('Test::CPAN::Meta','any version') }; -eval { $v .= pmver('Test::Fatal','any version') }; -eval { $v .= pmver('Test::More','0.98') }; -eval { $v .= pmver('Test::Pod','1.41') }; -eval { $v .= pmver('Test::Pod::Coverage','1.08') }; -eval { $v .= pmver('Try::Tiny','any version') }; -eval { $v .= pmver('lib','any version') }; -eval { $v .= pmver('overload','any version') }; -eval { $v .= pmver('parent','any version') }; -eval { $v .= pmver('strict','any version') }; -eval { $v .= pmver('version','0.9901') }; -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 --git a/t/02_example.t b/t/02_example.t index 5241b96..2b67303 100644 --- a/t/02_example.t +++ b/t/02_example.t @@ -57,10 +57,10 @@ is( seek $data, 0, 0; - _diag( '::getc style>'); + _diag('::getc style>'); - while( !eof( $data ) ){ - _diag( getc $data ); + while ( !eof($data) ) { + _diag( getc $data ); } seek $data, 0, 0; @@ -71,10 +71,9 @@ is( read $data, $buffer, 5, -2; - _diag( $buffer ); - - fileno $data; # its undef :( + _diag($buffer); + fileno $data; # its undef :( }, undef, diff --git a/t/04_things_that_fail.t b/t/04_things_that_fail.t index f64c88f..ae2aacf 100644 --- a/t/04_things_that_fail.t +++ b/t/04_things_that_fail.t @@ -10,24 +10,26 @@ my $id = 0; sub checkisa { my ( $exception, @types ) = @_; - my ( @caller ) = caller(); + my (@caller) = caller(); my $needdiag = 0; $id++; subtest "checkisa $id" => sub { note explain \@types; if ( not defined $exception ) { - my $fail = fail(sprintf 'checkisa(\$exception, %s ) didn\'t receive anything useful' , explain(@types)); - diag(explain({ exception => $exception })); + my $fail = fail( sprintf 'checkisa(\$exception, %s ) didn\'t receive anything useful', explain(@types) ); + diag( explain( { exception => $exception } ) ); return $fail; - } else { + } + else { pass("Exception is defined"); } if ( not ref $exception ) { - my $fail = fail(sprintf 'checkisa($exception, %s ) didn\'t receive a ref' , explain(@types)); - diag(explain({ exception => $exception })); + my $fail = fail( sprintf 'checkisa($exception, %s ) didn\'t receive a ref', explain(@types) ); + diag( explain( { exception => $exception } ) ); return $fail; - } else { - pass(sprintf q[Exception is a ref ( %s ) ], ref $exception ); + } + else { + pass( sprintf q[Exception is a ref ( %s ) ], ref $exception ); } for my $type (@types) { @@ -35,7 +37,7 @@ sub checkisa { unless isa_ok( $exception, $type, 'Expected Exception Type ' . $type ); } diag($exception) if $needdiag; - note(explain(\@caller)) if $needdiag; + note( explain( \@caller ) ) if $needdiag; }; } @@ -52,14 +54,7 @@ isnt( '_get_data_symbol Fails if DATA is not there' ); -checkisa( - $e, - ( - 'Data::Handle::Exception::Internal::BadGet', - 'Data::Handle::Exception::Internal', - 'Data::Handle::Exception', - ) -); +checkisa( $e, ( 'Data::Handle::Exception::Internal::BadGet', 'Data::Handle::Exception::Internal', 'Data::Handle::Exception', ) ); isnt( $e = exception { @@ -69,14 +64,7 @@ isnt( '_get_start_offset Fails if DATA is not there.' ); -checkisa( - $e, - ( - 'Data::Handle::Exception::Internal::BadGet', - 'Data::Handle::Exception::Internal', - 'Data::Handle::Exception', - ) -); +checkisa( $e, ( 'Data::Handle::Exception::Internal::BadGet', 'Data::Handle::Exception::Internal', 'Data::Handle::Exception', ) ); isnt( $e = exception { @@ -86,14 +74,7 @@ isnt( '_is_valid_data_tell Fails if DATA is not there.' ); -checkisa( - $e, - ( - 'Data::Handle::Exception::Internal::BadGet', - 'Data::Handle::Exception::Internal', - 'Data::Handle::Exception', - ) -); +checkisa( $e, ( 'Data::Handle::Exception::Internal::BadGet', 'Data::Handle::Exception::Internal', 'Data::Handle::Exception', ) ); isnt( $e = exception { @@ -106,10 +87,8 @@ isnt( checkisa( $e, ( - 'Data::Handle::Exception::API::Invalid::Params', - 'Data::Handle::Exception::API::Invalid', - 'Data::Handle::Exception::API', - 'Data::Handle::Exception', + 'Data::Handle::Exception::API::Invalid::Params', 'Data::Handle::Exception::API::Invalid', + 'Data::Handle::Exception::API', 'Data::Handle::Exception', ) ); @@ -123,10 +102,8 @@ isnt( checkisa( $e, ( - 'Data::Handle::Exception::API::Invalid::Params', - 'Data::Handle::Exception::API::Invalid', - 'Data::Handle::Exception::API', - 'Data::Handle::Exception', + 'Data::Handle::Exception::API::Invalid::Params', 'Data::Handle::Exception::API::Invalid', + 'Data::Handle::Exception::API', 'Data::Handle::Exception', ) ); @@ -141,10 +118,8 @@ isnt( checkisa( $e, ( - 'Data::Handle::Exception::API::Invalid::Params', - 'Data::Handle::Exception::API::Invalid', - 'Data::Handle::Exception::API', - 'Data::Handle::Exception', + 'Data::Handle::Exception::API::Invalid::Params', 'Data::Handle::Exception::API::Invalid', + 'Data::Handle::Exception::API', 'Data::Handle::Exception', ) ); @@ -159,10 +134,8 @@ isnt( checkisa( $e, ( - 'Data::Handle::Exception::API::Invalid::Params', - 'Data::Handle::Exception::API::Invalid', - 'Data::Handle::Exception::API', - 'Data::Handle::Exception', + 'Data::Handle::Exception::API::Invalid::Params', 'Data::Handle::Exception::API::Invalid', + 'Data::Handle::Exception::API', 'Data::Handle::Exception', ) ); @@ -177,10 +150,8 @@ isnt( checkisa( $e, ( - 'Data::Handle::Exception::API::Invalid::Params', - 'Data::Handle::Exception::API::Invalid', - 'Data::Handle::Exception::API', - 'Data::Handle::Exception', + 'Data::Handle::Exception::API::Invalid::Params', 'Data::Handle::Exception::API::Invalid', + 'Data::Handle::Exception::API', 'Data::Handle::Exception', ) ); @@ -195,10 +166,8 @@ isnt( checkisa( $e, ( - 'Data::Handle::Exception::API::Invalid::Whence', - 'Data::Handle::Exception::API::Invalid', - 'Data::Handle::Exception::API', - 'Data::Handle::Exception', + 'Data::Handle::Exception::API::Invalid::Whence', 'Data::Handle::Exception::API::Invalid', + 'Data::Handle::Exception::API', 'Data::Handle::Exception', ) ); @@ -213,10 +182,8 @@ isnt( checkisa( $e, ( - 'Data::Handle::Exception::API::Invalid::Params', - 'Data::Handle::Exception::API::Invalid', - 'Data::Handle::Exception::API', - 'Data::Handle::Exception', + 'Data::Handle::Exception::API::Invalid::Params', 'Data::Handle::Exception::API::Invalid', + 'Data::Handle::Exception::API', 'Data::Handle::Exception', ) ); @@ -231,10 +198,8 @@ isnt( checkisa( $e, ( - 'Data::Handle::Exception::API::Invalid::Params', - 'Data::Handle::Exception::API::Invalid', - 'Data::Handle::Exception::API', - 'Data::Handle::Exception', + 'Data::Handle::Exception::API::Invalid::Params', 'Data::Handle::Exception::API::Invalid', + 'Data::Handle::Exception::API', 'Data::Handle::Exception', ) ); @@ -246,14 +211,7 @@ isnt( '_binmode Fails.' ); -checkisa( - $e, - ( - 'Data::Handle::Exception::API::NotImplemented', - 'Data::Handle::Exception::API', - 'Data::Handle::Exception', - ) -); +checkisa( $e, ( 'Data::Handle::Exception::API::NotImplemented', 'Data::Handle::Exception::API', 'Data::Handle::Exception', ) ); for my $meth (qw( _open _close _printf _print _write )) { isnt( @@ -266,13 +224,7 @@ for my $meth (qw( _open _close _printf _print _write )) { $meth . ' Fails' ); - checkisa( - $e, - ( - 'Data::Handle::Exception::API::Invalid', 'Data::Handle::Exception::API', - 'Data::Handle::Exception', - ) - ); + checkisa( $e, ( 'Data::Handle::Exception::API::Invalid', 'Data::Handle::Exception::API', 'Data::Handle::Exception', ) ); } isnt( @@ -284,13 +236,7 @@ isnt( 'syswrite $instance Fails' ); -checkisa( - $e, - ( - 'Data::Handle::Exception::API::Invalid', 'Data::Handle::Exception::API', - 'Data::Handle::Exception', - ) -); +checkisa( $e, ( 'Data::Handle::Exception::API::Invalid', 'Data::Handle::Exception::API', 'Data::Handle::Exception', ) ); isnt( $e = exception { @@ -301,13 +247,7 @@ isnt( 'print { $instance } Fails' ); -checkisa( - $e, - ( - 'Data::Handle::Exception::API::Invalid', 'Data::Handle::Exception::API', - 'Data::Handle::Exception', - ) -); +checkisa( $e, ( 'Data::Handle::Exception::API::Invalid', 'Data::Handle::Exception::API', 'Data::Handle::Exception', ) ); isnt( $e = exception { @@ -318,13 +258,7 @@ isnt( 'printf { $instance } Fails' ); -checkisa( - $e, - ( - 'Data::Handle::Exception::API::Invalid', 'Data::Handle::Exception::API', - 'Data::Handle::Exception', - ) -); +checkisa( $e, ( 'Data::Handle::Exception::API::Invalid', 'Data::Handle::Exception::API', 'Data::Handle::Exception', ) ); isnt( $e = exception { @@ -335,13 +269,7 @@ isnt( 'close $instance Fails' ); -checkisa( - $e, - ( - 'Data::Handle::Exception::API::Invalid', 'Data::Handle::Exception::API', - 'Data::Handle::Exception', - ) -); +checkisa( $e, ( 'Data::Handle::Exception::API::Invalid', 'Data::Handle::Exception::API', 'Data::Handle::Exception', ) ); isnt( $e = exception { @@ -352,14 +280,7 @@ isnt( 'binmode $instance Fails' ); -checkisa( - $e, - ( - 'Data::Handle::Exception::API::NotImplemented', - 'Data::Handle::Exception::API', - 'Data::Handle::Exception', - ) -); +checkisa( $e, ( 'Data::Handle::Exception::API::NotImplemented', 'Data::Handle::Exception::API', 'Data::Handle::Exception', ) ); isnt( $e = exception { @@ -371,12 +292,6 @@ isnt( 'open $instance Fails' ); -checkisa( - $e, - ( - 'Data::Handle::Exception::API::Invalid', 'Data::Handle::Exception::API', - 'Data::Handle::Exception', - ) -); +checkisa( $e, ( 'Data::Handle::Exception::API::Invalid', 'Data::Handle::Exception::API', 'Data::Handle::Exception', ) ); done_testing; diff --git a/t/alternative_techniques/03_fdup_test.t b/t/alternative_techniques/03_fdup_test.t index 4c634d8..8fc2901 100644 --- a/t/alternative_techniques/03_fdup_test.t +++ b/t/alternative_techniques/03_fdup_test.t @@ -7,15 +7,16 @@ use Test::More 0.96 skip_all => 'Example alternative technique that doesn\'t wor use lib "t/lib/"; use Data; -sub getfd { - my $handle = do { - no strict 'refs'; \*{"Data::DATA"}; - }; - open my $dh, "<&", $handle or die "Cant fdup"; - return $dh; +sub getfd { + my $handle = do { + no strict 'refs'; + \*{"Data::DATA"}; + }; + open my $dh, "<&", $handle or die "Cant fdup"; + return $dh; } -my $x = getfd(); +my $x = getfd(); my $y = getfd(); local $/ = undef; @@ -23,34 +24,37 @@ local $/ = undef; my $x_data = <$x>; my $y_data = <$y>; -is( $x_data, $y_data, "Values are the same"); +is( $x_data, $y_data, "Values are the same" ); { - package Dh; - use strict; - use warnings; + package Dh; + + use strict; + use warnings; + + use Carp; - use Carp; + our %offsets; - our %offsets; - sub new { + sub new { - my ($class, $package) = @_; - unless (defined $package) { - $package = "main"; #FIXME: maybe this should use caller + my ( $class, $package ) = @_; + unless ( defined $package ) { + $package = "main"; #FIXME: maybe this should use caller } my $dh_name = "${package}::DATA"; my $orig_dh = do { no strict 'refs'; \*{$dh_name} }; open my $dh, "<&", $orig_dh - or croak "could not dup $dh_name: $!"; - if (exists $offsets{$dh_name}) { - seek $dh, $offsets{$dh_name}, 0; - } else { - $offsets{$dh_name} = tell $orig_dh; + or croak "could not dup $dh_name: $!"; + if ( exists $offsets{$dh_name} ) { + seek $dh, $offsets{$dh_name}, 0; + } + else { + $offsets{$dh_name} = tell $orig_dh; } return $dh; - } + } } diff --git a/t/alternative_techniques/04_fopen.t b/t/alternative_techniques/04_fopen.t index 491a7f9..103e4d6 100644 --- a/t/alternative_techniques/04_fopen.t +++ b/t/alternative_techniques/04_fopen.t @@ -7,15 +7,16 @@ use Test::More 0.96 skip_all => 'Example alternative technique that doesn\'t wor use lib "t/lib/"; use Data; -sub getfd { - my $handle = do { - no strict 'refs'; \*{"Data::DATA"}; - }; - open my $dh, "<&=", $handle; - return $dh; +sub getfd { + my $handle = do { + no strict 'refs'; + \*{"Data::DATA"}; + }; + open my $dh, "<&=", $handle; + return $dh; } -my $x = getfd(); +my $x = getfd(); my $y = getfd(); local $/ = undef; @@ -23,5 +24,5 @@ local $/ = undef; my $x_data = <$x>; my $y_data = <$y>; -is( $x_data, $y_data, "Values are the same"); +is( $x_data, $y_data, "Values are the same" ); diff --git a/t/alternative_techniques/05_new_from_fd.t b/t/alternative_techniques/05_new_from_fd.t index 6605d07..348965a 100644 --- a/t/alternative_techniques/05_new_from_fd.t +++ b/t/alternative_techniques/05_new_from_fd.t @@ -9,13 +9,11 @@ use Data; use IO::Handle; - - -sub getfd { - return IO::Handle->new_from_fd("Data::DATA", "r" ); +sub getfd { + return IO::Handle->new_from_fd( "Data::DATA", "r" ); } -my $x = getfd(); +my $x = getfd(); my $y = getfd(); local $/ = undef; @@ -23,5 +21,5 @@ local $/ = undef; my $x_data = <$x>; my $y_data = <$y>; -is( $x_data, $y_data, "Values are the same"); +is( $x_data, $y_data, "Values are the same" ); diff --git a/weaver.ini b/weaver.ini index 5cdecd2..199793e 100644 --- a/weaver.ini +++ b/weaver.ini @@ -1,4 +1,5 @@ [@CorePrep] +[-SingleEncoding] [Name] [Version] diff --git a/xt/release/distmeta.t b/xt/release/distmeta.t index b46c7fc..c2280dc 100644 --- a/xt/release/distmeta.t +++ b/xt/release/distmeta.t @@ -1,7 +1,6 @@ #!perl +# This file was automatically generated by Dist::Zilla::Plugin::MetaTests. -use Test::More; +use Test::CPAN::Meta; -eval "use Test::CPAN::Meta"; -plan skip_all => "Test::CPAN::Meta required for testing META.yml" if $@; meta_yaml_ok(); diff --git a/xt/release/kwalitee.t b/xt/release/kwalitee.t index 8217b55..bcbce84 100644 --- a/xt/release/kwalitee.t +++ b/xt/release/kwalitee.t @@ -1,9 +1,9 @@ -#!perl - -# This test is generated by Dist::Zilla::Plugin::Test::Kwalitee +# this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.11 use strict; use warnings; -use Test::More; # needed to provide plan. -eval "use Test::Kwalitee"; +use Test::More 0.88; +use Test::Kwalitee 1.21 'kwalitee_ok'; + +kwalitee_ok(); -plan skip_all => "Test::Kwalitee required for testing kwalitee" if $@; +done_testing; diff --git a/xt/release/pod-coverage.t b/xt/release/pod-coverage.t index b52218b..66b3b64 100644 --- a/xt/release/pod-coverage.t +++ b/xt/release/pod-coverage.t @@ -1,13 +1,7 @@ #!perl +# This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests. -use Test::More; - -eval "use Test::Pod::Coverage 1.08"; -plan skip_all => "Test::Pod::Coverage 1.08 required for testing POD coverage" - if $@; - -eval "use Pod::Coverage::TrustPod"; -plan skip_all => "Pod::Coverage::TrustPod required for testing POD coverage" - if $@; +use Test::Pod::Coverage 1.08; +use Pod::Coverage::TrustPod; all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' }); diff --git a/xt/release/pod-syntax.t b/xt/release/pod-syntax.t index 8a22900..f0468f1 100644 --- a/xt/release/pod-syntax.t +++ b/xt/release/pod-syntax.t @@ -1,7 +1,6 @@ #!perl +# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. use Test::More; - -eval "use Test::Pod 1.41"; -plan skip_all => "Test::Pod 1.41 required for testing POD" if $@; +use Test::Pod 1.41; all_pod_files_ok();