diff --git a/.gitignore b/.gitignore index 93dd502..4aafbf1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,11 @@ -.build -Dist-Zilla-Role-Version-Sanitize-* +/.build +/Dist-Zilla-Role-Version-Sanitize-* +/tmp/ +/META.json +/META.yml +/MYMETA.json +/MYMETA.yml +/Makefile +/Makefile.old +/blib/ +/pm_to_blib 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/.travis.yml b/.travis.yml index 38a6708..7c23036 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,56 +1,57 @@ -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.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=1 - - perl: "5.21" - env: STERILIZE_ENV=0 DEVELOPER_DEPS=1 - - perl: "5.21" - env: STERILIZE_ENV=0 RELEASE_TESTING=1 AUTHOR_TESTING=1 - - perl: "5.21" - env: STERILIZE_ENV=0 COVERAGE_TESTING=1 +--- +after_failure: + - perl ./maint-travis-ci/report_fail_ctx.pl 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 +before_script: + - time perl ./maint-travis-ci/before_script.pl +branches: + only: + - master + - builds + - releases 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 +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: + - env: STERILIZE_ENV=0 COVERAGE_TESTING=1 + perl: '5.21' + - env: STERILIZE_ENV=1 + perl: '5.21' + - env: STERILIZE_ENV=0 + 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=1 + perl: '5.8' + - env: STERILIZE_ENV=1 + perl: '5.10' + - env: STERILIZE_ENV=1 + perl: '5.20' + - env: STERILIZE_ENV=0 DEVELOPER_DEPS=1 + perl: '5.21' + - env: STERILIZE_ENV=0 RELEASE_TESTING=1 AUTHOR_TESTING=1 + perl: '5.21' script: - time perl ./maint-travis-ci/script.pl -after_failure: - - perl ./maint-travis-ci/report_fail_ctx.pl -branches: - only: - - "master" - - "build/master" - - "releases" - +sudo: false diff --git a/CONTRIBUTING.pod b/CONTRIBUTING.pod new file mode 100644 index 0000000..0350f27 --- /dev/null +++ b/CONTRIBUTING.pod @@ -0,0 +1,206 @@ + +=encoding UTF-8 + +=head1 CONTENTS + +=over 4 + +=item * L + +=over 4 + +=item * L + +=item * L + +=item * L + +=item * L + +=item * L + +=back + +=item * L + +=over 4 + +=item * L + +=item * L<< Locally Patch C >> + +=over 4 + +=item * L<< /Doing Long-Term C patches >> + +=back + +=back + +=item * L + +=back + +=head1 HOW TO CONTRIBUTE + +Thank you for considering contributing to this distribution. This file +contains instructions that will help you work with the source code. + +The distribution is managed with Dist::Zilla. This means than many of the +usual files you might expect are not in the repository, but are generated at +release time, as is much of the documentation. Some generated files are +kept in the repository as a convenience (e.g. Makefile.PL or cpanfile). + +Generally, B. You may need +Dist::Zilla to create a tarball. See below for guidance. + +=head2 Getting dependencies + +If you have App::cpanminus 1.6 or later installed, you can use C to +satisfy dependencies like this: + + $ cpanm --installdeps . + +Otherwise, look for either a C or C file for +a list of dependencies to satisfy. + +=head2 Running tests + +You can run tests directly using the `prove` tool: + + $ prove -l + $ prove -lv t/some_test_file.t + +For most of my distributions, `prove` is entirely sufficient for you to test any +patches you have. I use `prove` for 99% of my testing during development. + +=head2 Code style and tidying + +Please try to match any existing coding style. If there is a C<.perltidyrc> +file, please install Perl::Tidy and use perltidy before submitting patches. + +=head2 Patching documentation + +Much of the documentation Pod is generated at release time. Some is +generated boilerplate; other documentation is built from pseudo-POD +directives in the source like C<=method> or C<=func>. + +If you would like to submit a documentation edit, please limit yourself to +the documentation you see. + +If you see typos or documentation issues in the generated docs, please +email or open a bug ticket instead of patching. + +=head2 Installing and using Dist::Zilla + +Dist::Zilla is a very powerful authoring tool, optimized for maintaining a +large number of distributions with a high degree of automation, but it has a +large dependency chain, a bit of a learning curve and requires a number of +author-specific plugins. + +To install it from CPAN, I recommend one of the following approaches for +the quickest installation: + + # using CPAN.pm, but bypassing non-functional pod tests + $ cpan TAP::Harness::Restricted + $ PERL_MM_USE_DEFAULT=1 HARNESS_CLASS=TAP::Harness::Restricted cpan Dist::Zilla + + # using cpanm, bypassing *all* tests + $ cpanm -n Dist::Zilla + +In either case, it's probably going to take about 10 minutes. Go for a walk, +go get a cup of your favorite beverage, take a bathroom break, or whatever. +When you get back, Dist::Zilla should be ready for you. + +Then you need to install any plugins specific to this distribution: + + $ cpan `dzil authordeps` + $ dzil authordeps | cpanm + +Once installed, here are some dzil commands you might try: + + $ dzil build + $ dzil test + $ dzil xtest + +You can learn more about Dist::Zilla at http://dzil.org/ + +=head1 OTHER SHORTCUTS + +I use a few other tricks that might prove useful to know about when hacking +on my dists. + +=head2 Install and Test using a pre-made build branch + +Most of my repositories come with 1 or more pre-made C branches, which may +occur under any of the following names: + +=over 4 + +=item * C - my last C + +=item * C - the build generated for the most recent CPAN release + +=item * C ( I version of C ) + +=back + +These branches contain committed copies of my own local C invocations. + +Checking out a copy of these branches with + + git checkout builds + +Will get you a full working built tree, which will look identical to how the distribution +will look once I ship it. + +Having this is not entirely necessary as you should be able to do similar simply working +on the master branch ( with a few caveats around POD handling ) + +But its there if you need it. + +Additionally: These branches are part of my Travis testing infrastructure which help +ascertain that the module will work and pass tests without the benefit of having +3-halves of CPAN due to developer dependencies. + +=head2 Locally Patch C + +The majority of C authors ship around a load of shared configuration +in a personal C<@Bundle>, which makes replicating configuration to their different +distributions simpler. + +This has a downside that every time they make a minor tweak to their bundle, everywhere +that was currently using that bundle gets the changes, and not all those changes will +necessarily work with their code. + +The bundle system also makes it tricky for people to simply patch-out single plugins +that are causing local problems for them because they're hidden behind the bundle façade. + +Here, I use a system from generating a frozen snapshot of the state of my bundle: +C is a flattened unbundled version of C + +As such, you can tell B which plugins are being consumed simply by looking at +C. And you can tell B what their configuration is and their intended +order is. + +So if you're hacking on one of my dists and a plugin or two get in your way and you're +I to work with the full C stack, you can freely just yank them out +and keep on trucking without having to memorize the arcane syntax my bundle requires. + +=head3 Doing Long-Term C patches + +If you find yourself wanting to make and submit long term changes to dist.ini, B +you I want to look into C, and see the results of your changes +in C after making changes by performing: + + dzil bakeini + +This will possibly require installing the following, which are not strictly required for +building my dists: + + Dist::Zilla::PluginBundle::Author::KENTNL + Dist::Zilla::App::Command::bakeini + +=head1 CREDITS + +This file was adapted from an initial C file from David Golden under the terms of the Apache 2 license. diff --git a/Changes b/Changes index 3c6bdd5..e5e300c 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,14 @@ Release history for Dist-Zilla-Role-Version-Sanitize {{$NEXT}} + - Add VERSION to metaconfig. + + [Dependencies::Stats] + - Dependencies changed since 0.002001, see misc/*.deps* for details + - configure: +1 (recommends: ↑1) + - develop: +16 ↑3 -3 (recommends: +1, suggests: ↑2) + - runtime: ↓1 -1 + - test: +1 (recommends: +1 ↑1 ↓1) 0.002001 2014-08-15T21:42:46Z [00 Trivial] @@ -50,4 +58,3 @@ Release history for Dist-Zilla-Role-Version-Sanitize 0.001000 2013-12-01T10:03:15Z - First version. - diff --git a/INSTALL.SKIP b/INSTALL.SKIP new file mode 100644 index 0000000..f6e97b0 --- /dev/null +++ b/INSTALL.SKIP @@ -0,0 +1 @@ +CONTRIBUTING\.pod$ diff --git a/LICENSE b/LICENSE index f54a236..efe03f2 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2016 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) 2014 by Kent Fredric . +This software is Copyright (c) 2016 by Kent Fredric . This is free software, licensed under: @@ -272,7 +272,7 @@ That's all there is to it! --- The Artistic License 1.0 --- -This software is Copyright (c) 2014 by Kent Fredric . +This software is Copyright (c) 2016 by Kent Fredric . This is free software, licensed under: diff --git a/Makefile.PL b/Makefile.PL new file mode 100644 index 0000000..8b8333e --- /dev/null +++ b/Makefile.PL @@ -0,0 +1,73 @@ +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.047. +use strict; +use warnings; + +use 5.006; + +use ExtUtils::MakeMaker; + +my %WriteMakefileArgs = ( + "ABSTRACT" => "Sanitize a version from a plugin", + "AUTHOR" => "Kent Fredric ", + "CONFIGURE_REQUIRES" => { + "ExtUtils::MakeMaker" => 0 + }, + "DISTNAME" => "Dist-Zilla-Role-Version-Sanitize", + "LICENSE" => "perl", + "MIN_PERL_VERSION" => "5.006", + "NAME" => "Dist::Zilla::Role::Version::Sanitize", + "PREREQ_PM" => { + "Carp" => 0, + "Moose::Role" => 0, + "Moose::Util::TypeConstraints" => 0, + "strict" => 0, + "version" => 0, + "warnings" => 0 + }, + "TEST_REQUIRES" => { + "Dist::Zilla::Plugin::Bootstrap::lib" => "0.04000000", + "ExtUtils::MakeMaker" => 0, + "File::Copy::Recursive" => 0, + "File::ShareDir" => 0, + "File::Spec" => 0, + "Path::Tiny" => 0, + "Test::DZil" => 0, + "Test::Fatal" => 0, + "Test::More" => "0.89" + }, + "VERSION" => "0.002002", + "test" => { + "TESTS" => "t/*.t t/00-compile/*.t" + } +); + + +my %FallbackPrereqs = ( + "Carp" => 0, + "Dist::Zilla::Plugin::Bootstrap::lib" => "0.04000000", + "ExtUtils::MakeMaker" => 0, + "File::Copy::Recursive" => 0, + "File::ShareDir" => 0, + "File::Spec" => 0, + "Moose::Role" => 0, + "Moose::Util::TypeConstraints" => 0, + "Path::Tiny" => 0, + "Test::DZil" => 0, + "Test::Fatal" => 0, + "Test::More" => "0.89", + "strict" => 0, + "version" => 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.mkdn b/README.mkdn index 94fe28e..b9d8724 100644 --- a/README.mkdn +++ b/README.mkdn @@ -68,11 +68,11 @@ And the length for mantissa is forced by `mantissa`, either _truncating_ to `man # AUTHOR -Kent Fredric +Kent Fredric # COPYRIGHT AND LICENSE -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2016 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 31d678b..494ab8e 100644 --- a/dist.ini +++ b/dist.ini @@ -1,7 +1,10 @@ ; This file is generated from dist.ini.meta by dzil bakeini. ; Edit that file or the bundles contained within for long-term changes. +; Generated by Dist::Zilla::Plugin::Author::KENTNL::DistINI version 2.006001 at Sun Dec 1 21:01:17 2013 +; vim: syntax=dosini +; Uncomment this to bootstrap via self name = Dist-Zilla-Role-Version-Sanitize -author = Kent Fredric +author = Kent Fredric license = Perl_5 copyright_holder = Kent Fredric @@ -17,9 +20,11 @@ issues = 1 :version = 1.14000001 [MetaData::BuiltWith / @Author::KENTNL/MetaData::BuiltWith] +:version = 1.004000 show_config = 1 show_uname = 1 uname_args = -s -o -r -m -i +use_external_file = only [Git::Contributors / @Author::KENTNL/Git::Contributors] :version = 0.006 @@ -31,19 +36,31 @@ order_by = name exclude_filename = README exclude_filename = README.mkdn exclude_filename = README.pod +exclude_filename = CONTRIBUTING.pod exclude_filename = LICENSE +exclude_filename = Makefile.PL include_dotfiles = 1 [License / @Author::KENTNL/License] [MetaJSON / @Author::KENTNL/MetaJSON] -[MetaYAML / @Author::KENTNL/MetaYAML] +[MetaYAML::Minimal / @Author::KENTNL/MetaYAML::Minimal] [Manifest / @Author::KENTNL/Manifest] +[Author::KENTNL::TravisCI / @Author::KENTNL/Author::KENTNL::TravisCI] +:version = 0.001002 + +[Author::KENTNL::CONTRIBUTING / @Author::KENTNL/Author::KENTNL::CONTRIBUTING] +-location = root +-phase = build +:version = 0.001003 +document_version = 0.1 + [CopyFilesFromBuild / @Author::KENTNL/CopyXBuild] copy = LICENSE +copy = Makefile.PL [MetaTests / @Author::KENTNL/MetaTests] @@ -55,7 +72,7 @@ copy = LICENSE [Test::Kwalitee / @Author::KENTNL/Test::Kwalitee] -[EOLTests / @Author::KENTNL/EOLTests] +[Test::EOL / @Author::KENTNL/Test::EOL] trailing_whitespace = 1 [Test::MinimumVersion / @Author::KENTNL/Test::MinimumVersion] @@ -79,7 +96,9 @@ replacer = replace_with_blank -phase = develop -type = suggests Dist::Zilla::App::Command::bakeini = 0.001000 -Dist::Zilla::PluginBundle::Author::KENTNL = 2.017002 +Dist::Zilla::PluginBundle::Author::KENTNL = 2.025010 + +[Prereqs::AuthorDeps / @Author::KENTNL/Prereqs::AuthorDeps] [MinimumPerl / @Author::KENTNL/MinimumPerl] @@ -92,7 +111,10 @@ locate_comment = 1 [MakeMaker / @Author::KENTNL/MakeMaker] default_jobs = 10 -[ReadmeFromPod / @Author::KENTNL/ReadmeFromPod] +[Author::KENTNL::RecommendFixes / @Author::KENTNL/Author::KENTNL::RecommendFixes] +:version = 0.004002 + +[Readme::Brief / @Author::KENTNL/ShippedReadme] [ReadmeAnyFromPod / @Author::KENTNL/ReadmeAnyFromPod] filename = README.mkdn @@ -117,7 +139,9 @@ filename = Changes tag_format = %v-source [Git::NextRelease / @Author::KENTNL/Git::NextRelease] -format = %v %{yyyy-MM-dd'T'HH:mm:ss}dZ +:version = 0.004000 +default_branch = master +format = %v %{yyyy-MM-dd'T'HH:mm:ss}dZ %h time_zone = UTC [BumpVersionAfterRelease / @Author::KENTNL/BumpVersionAfterRelease] @@ -126,6 +150,7 @@ time_zone = UTC allow_dirty_match = ^lib/ [Git::CommitBuild / @Author::KENTNL/Git::CommitBuild] +branch = builds release_branch = releases [Git::Tag / @Author::KENTNL/tag_release] @@ -135,13 +160,20 @@ tag_format = %v [UploadToCPAN / @Author::KENTNL/UploadToCPAN] [Twitter / @Author::KENTNL/Twitter] -hash_tags = #perl #cpan +hash_tags = #perl #cpan #distzilla 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::Upgrade / @Author::KENTNL/Prereqs::Upgrade] +Dist::Zila::Plugin::MetaProvides::Package = 2.000000 +Dist::Zilla = 5 +ExtUtils::MakeMaker = 7.00 +File::ShareDir::Install = 0.10 +Moo = 1.000008 +Moose = 2.000 +Path::Tiny = 0.058 +Test::File::ShareDir = 1.000000 +Test::More = 0.99 [Prereqs::Recommend::MatchInstalled / @Author::KENTNL/always_latest_develop_bundle] applyto_map = develop.suggests = develop.suggests @@ -149,21 +181,34 @@ applyto_phase = develop modules = Dist::Zilla::PluginBundle::Author::KENTNL modules = Dist::Zilla::App::Command::bakeini +[RemovePrereqs::Provided / @Author::KENTNL/RemovePrereqs::Provided] + [Prereqs / @Author::KENTNL/::Role::BundleDeps] +; version_major = 0 +; version_minor = 1 +; the following data denotes when this minor was minted +; version_rel_year = 2013 +; version_rel_month = 12 +; version_rel_day = 1 +; version_rel_hour = 21 +; version_rel_time_zone = Pacific/Auckland +; auto_prereqs_skip = File::Find -phase = develop -relationship = requires +Dist::Zilla::Plugin::Author::KENTNL::CONTRIBUTING = 0.001003 +Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes = 0.004002 +Dist::Zilla::Plugin::Author::KENTNL::TravisCI = 0.001002 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 +Dist::Zilla::Plugin::Git::NextRelease = 0.004000 Dist::Zilla::Plugin::Git::Tag = 0 Dist::Zilla::Plugin::GithubMeta = 0 Dist::Zilla::Plugin::License = 0 @@ -171,23 +216,27 @@ 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::MetaData::BuiltWith = 1.004000 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::MetaYAML::Minimal = 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::Prereqs::Upgrade = 0 +Dist::Zilla::Plugin::Readme::Brief = 0 Dist::Zilla::Plugin::ReadmeAnyFromPod = 0 -Dist::Zilla::Plugin::ReadmeFromPod = 0 +Dist::Zilla::Plugin::RemovePrereqs::Provided = 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::EOL = 0 Dist::Zilla::Plugin::Test::Kwalitee = 0 Dist::Zilla::Plugin::Test::MinimumVersion = 0 Dist::Zilla::Plugin::Test::Perl::Critic = 0 diff --git a/dist.ini.meta b/dist.ini.meta index 7cda83e..a1fdb04 100644 --- a/dist.ini.meta +++ b/dist.ini.meta @@ -1,6 +1,7 @@ ; Generated by Dist::Zilla::Plugin::Author::KENTNL::DistINI version 2.006001 at Sun Dec 1 21:01:17 2013 +; vim: syntax=dosini name = Dist-Zilla-Role-Version-Sanitize -author = Kent Fredric +author = Kent Fredric license = Perl_5 copyright_holder = Kent Fredric @@ -10,14 +11,12 @@ try_built = 1 [@Author::KENTNL] :version = 2.016 -git_versions = 1 +bumpversions = 1 mantissa = 6 normal_form = numify toolkit = eumm toolkit_hardness = soft -bumpversions = 1 -twitter_hash_tags = #perl #cpan -copyfiles = LICENSE +twitter_extra_hash_tags = #distzilla srcreadme = mkdn ; version_major = 0 diff --git a/lib/Dist/Zilla/Role/Version/Sanitize.pm b/lib/Dist/Zilla/Role/Version/Sanitize.pm index d7cd267..489a24e 100644 --- a/lib/Dist/Zilla/Role/Version/Sanitize.pm +++ b/lib/Dist/Zilla/Role/Version/Sanitize.pm @@ -1,7 +1,6 @@ -use 5.008; # utf8 +use 5.006; # our use strict; use warnings; -use utf8; package Dist::Zilla::Role::Version::Sanitize; @@ -169,11 +168,12 @@ around provide_version => sub { around dump_config => sub { my ( $orig, $self, @args ) = @_; my $config = $orig->( $self, @args ); - my $own_config = { - normal_form => $self->normal_form, - mantissa => $self->mantissa, - }; - $config->{ q[] . __PACKAGE__ } = $own_config; + my $localconf = $config->{ +__PACKAGE__ } = {}; + + $localconf->{normal_form} = $self->normal_form; + $localconf->{mantissa} = $self->mantissa; + + $localconf->{ q[$] . __PACKAGE__ . '::VERSION' } = $VERSION; return $config; }; diff --git a/misc/Changes.deps b/misc/Changes.deps index f37e197..b644a93 100644 --- a/misc/Changes.deps +++ b/misc/Changes.deps @@ -1,6 +1,17 @@ This file contains changes in REQUIRED dependencies for standard CPAN phases (configure/build/runtime/test) 0.002002 + [Added / configure requires] + - perl 5.006 + + [Added / test requires] + - perl 5.006 + + [Changed / runtime requires] + - perl 5.008 → 5.006 + + [Removed / runtime requires] + - utf8 0.002001 2014-08-15T21:42:46Z [Added / test requires] @@ -40,4 +51,3 @@ This file contains changes in REQUIRED dependencies for standard CPAN phases (co 0.001002 2013-12-10T01:20:15Z 0.001001 2013-12-01T19:26:20Z - diff --git a/misc/Changes.deps.all b/misc/Changes.deps.all index 4a20cd2..b6e5e56 100644 --- a/misc/Changes.deps.all +++ b/misc/Changes.deps.all @@ -1,6 +1,62 @@ This file contains ALL changes in dependencies in both REQUIRED / OPTIONAL dependencies for all phases (configure/build/runtime/test/develop) 0.002002 + [Added / configure requires] + - perl 5.006 + + [Added / develop recommends] + - Test::More 0.99 + + [Added / develop requires] + - Dist::Zilla 5 + - Dist::Zilla::Plugin::Author::KENTNL::CONTRIBUTING 0.001003 + - Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes 0.004002 + - Dist::Zilla::Plugin::Author::KENTNL::TravisCI 0.001002 + - Dist::Zilla::Plugin::Bootstrap::lib + - Dist::Zilla::Plugin::FileFinder::ByName + - Dist::Zilla::Plugin::MetaYAML::Minimal + - Dist::Zilla::Plugin::Prereqs::AuthorDeps + - Dist::Zilla::Plugin::Prereqs::Upgrade + - Dist::Zilla::Plugin::Readme::Brief + - Dist::Zilla::Plugin::RemovePrereqs::Provided + - Dist::Zilla::Plugin::Test::EOL + - English + - Software::License::Perl_5 + - Test::EOL + - Test::More 0.96 + + [Added / test recommends] + - Path::Tiny 0.058 + + [Added / test requires] + - perl 5.006 + + [Changed / configure recommends] + - ExtUtils::MakeMaker 6.98 → 7.00 + + [Changed / develop requires] + - Dist::Zilla::Plugin::Git::NextRelease 0 → 0.004000 + - Dist::Zilla::Plugin::MetaData::BuiltWith 0 → 1.004000 + - Test::Kwalitee 1.12 → 1.21 + + [Changed / develop suggests] + - Dist::Zilla::App::Command::bakeini 0.001001 → 0.002005 + - Dist::Zilla::PluginBundle::Author::KENTNL 2.017002 → 2.025010 + + [Changed / runtime requires] + - perl 5.008 → 5.006 + + [Changed / test recommends] + - ExtUtils::MakeMaker 6.98 → 7.00 + - Test::More 1.001003 → 0.99 + + [Removed / develop requires] + - Dist::Zilla::Plugin::EOLTests + - Dist::Zilla::Plugin::MetaYAML + - Dist::Zilla::Plugin::ReadmeFromPod + + [Removed / runtime requires] + - utf8 0.002001 2014-08-15T21:42:46Z [Added / develop requires] @@ -95,4 +151,3 @@ This file contains ALL changes in dependencies in both REQUIRED / OPTIONAL depen [Removed / develop requires] - Dist::Zilla::Plugin::Git::NextVersion - diff --git a/misc/Changes.deps.dev b/misc/Changes.deps.dev index c02dbf1..d42e191 100644 --- a/misc/Changes.deps.dev +++ b/misc/Changes.deps.dev @@ -1,6 +1,40 @@ This file contains changes to DEVELOPMENT dependencies only ( both REQUIRED and OPTIONAL ) 0.002002 + [Added / develop recommends] + - Test::More 0.99 + + [Added / develop requires] + - Dist::Zilla 5 + - Dist::Zilla::Plugin::Author::KENTNL::CONTRIBUTING 0.001003 + - Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes 0.004002 + - Dist::Zilla::Plugin::Author::KENTNL::TravisCI 0.001002 + - Dist::Zilla::Plugin::Bootstrap::lib + - Dist::Zilla::Plugin::FileFinder::ByName + - Dist::Zilla::Plugin::MetaYAML::Minimal + - Dist::Zilla::Plugin::Prereqs::AuthorDeps + - Dist::Zilla::Plugin::Prereqs::Upgrade + - Dist::Zilla::Plugin::Readme::Brief + - Dist::Zilla::Plugin::RemovePrereqs::Provided + - Dist::Zilla::Plugin::Test::EOL + - English + - Software::License::Perl_5 + - Test::EOL + - Test::More 0.96 + + [Changed / develop requires] + - Dist::Zilla::Plugin::Git::NextRelease 0 → 0.004000 + - Dist::Zilla::Plugin::MetaData::BuiltWith 0 → 1.004000 + - Test::Kwalitee 1.12 → 1.21 + + [Changed / develop suggests] + - Dist::Zilla::App::Command::bakeini 0.001001 → 0.002005 + - Dist::Zilla::PluginBundle::Author::KENTNL 2.017002 → 2.025010 + + [Removed / develop requires] + - Dist::Zilla::Plugin::EOLTests + - Dist::Zilla::Plugin::MetaYAML + - Dist::Zilla::Plugin::ReadmeFromPod 0.002001 2014-08-15T21:42:46Z [Added / develop requires] @@ -47,4 +81,3 @@ This file contains changes to DEVELOPMENT dependencies only ( both REQUIRED and [Removed / develop requires] - Dist::Zilla::Plugin::Git::NextVersion - diff --git a/misc/Changes.deps.opt b/misc/Changes.deps.opt index 8a032b0..05115be 100644 --- a/misc/Changes.deps.opt +++ b/misc/Changes.deps.opt @@ -1,6 +1,15 @@ This file contains changes in OPTIONAL dependencies for standard CPAN phases (configure/build/runtime/test) 0.002002 + [Added / test recommends] + - Path::Tiny 0.058 + + [Changed / configure recommends] + - ExtUtils::MakeMaker 6.98 → 7.00 + + [Changed / test recommends] + - ExtUtils::MakeMaker 6.98 → 7.00 + - Test::More 1.001003 → 0.99 0.002001 2014-08-15T21:42:46Z [Changed / test recommends] @@ -22,4 +31,3 @@ This file contains changes in OPTIONAL dependencies for standard CPAN phases (co 0.001002 2013-12-10T01:20:15Z 0.001001 2013-12-01T19:26:20Z - diff --git a/perlcritic.rc b/perlcritic.rc index 7c718e2..2431b81 100644 --- a/perlcritic.rc +++ b/perlcritic.rc @@ -42,6 +42,8 @@ allow_includes = 1 [BuiltinFunctions::ProhibitUniversalIsa] +[BuiltinFunctions::ProhibitUselessTopic] + [BuiltinFunctions::ProhibitVoidGrep] [BuiltinFunctions::ProhibitVoidMap] @@ -86,7 +88,7 @@ allow_includes = 1 [CodeLayout::RequireTrailingCommas] -[CodeLayout::RequireUseUTF8] +[-CodeLayout::RequireUseUTF8] [Compatibility::ConstantLeadingUnderscore] @@ -145,6 +147,8 @@ spell_command = aspell list --lang en_US [Documentation::RequireEndBeforeLastPod] +[Documentation::RequireFilenameMarkup] + [Documentation::RequireFinalCut] [Documentation::RequireLinkedURLs] @@ -155,7 +159,7 @@ spell_command = aspell list --lang en_US [Documentation::RequirePodAtEnd] -[Documentation::RequirePodLinksIncludeText] +[-Documentation::RequirePodLinksIncludeText] [-Documentation::RequirePodSections] @@ -292,13 +296,15 @@ allowed_pragmata = diagnostics feature perlversion strict warnings utf8 [RegularExpressions::ProhibitUnusualDelimiters] +[RegularExpressions::ProhibitUselessTopic] + [RegularExpressions::RequireBracesForMultiline] [RegularExpressions::RequireDotMatchAnything] [RegularExpressions::RequireExtendedFormatting] -[RegularExpressions::RequireLineBoundaryMatching] +[-RegularExpressions::RequireLineBoundaryMatching] [Subroutines::ProhibitAmpersandSigils] @@ -329,9 +335,9 @@ private_name_regex = _(?!build_)\w [Subroutines::ProtectPrivateSubs] -[Subroutines::RequireArgUnpacking] +[-Subroutines::RequireArgUnpacking] -[Subroutines::RequireFinalReturn] +[-Subroutines::RequireFinalReturn] [TestingAndDebugging::ProhibitNoStrict] @@ -366,7 +372,7 @@ base_max = 130 [ValuesAndExpressions::ProhibitComplexVersion] -[ValuesAndExpressions::ProhibitConstantPragma] +[-ValuesAndExpressions::ProhibitConstantPragma] [ValuesAndExpressions::ProhibitDuplicateHashKeys]