From ab2c1ca59d3bbe7317f6378d6b5ef6f6adb69317 Mon Sep 17 00:00:00 2001 From: Kent Fredric Date: Mon, 1 Sep 2014 08:48:24 +1200 Subject: [PATCH] Build results of 8f1c10a (on master) --- .mailmap | 3 + Changes | 18 +++ MANIFEST | 7 +- META.json | 107 ++++++++++-------- META.yml | 94 ++++++++------- Makefile.PL | 16 +-- README | 4 +- corpus/fake_dist_01/Changes | 4 - corpus/fake_dist_01/dist.ini | 13 --- corpus/fake_dist_01/lib/E.pm | 18 --- corpus/fake_dist_02/Changes | 4 - corpus/fake_dist_02/dist.ini | 14 --- corpus/fake_dist_02/lib/E.pm | 18 --- dist.ini | 8 +- dist.ini.meta | 5 +- lib/Dist/Zilla/Plugin/Git/NextRelease.pm | 11 +- misc/Changes.deps | 15 ++- misc/Changes.deps.all | 25 +++- misc/Changes.deps.dev | 13 ++- misc/Changes.deps.opt | 4 +- ...lib_Dist_Zilla_Plugin_Git_NextRelease_pm.t | 2 +- t/00-report-prereqs.dd | 13 +-- t/01-basic.t | 44 +++---- t/02-detached-head.t | 48 +++----- xt/release/kwalitee.t | 9 +- 25 files changed, 258 insertions(+), 259 deletions(-) create mode 100644 .mailmap delete mode 100644 corpus/fake_dist_01/Changes delete mode 100644 corpus/fake_dist_01/dist.ini delete mode 100644 corpus/fake_dist_01/lib/E.pm delete mode 100644 corpus/fake_dist_02/Changes delete mode 100644 corpus/fake_dist_02/dist.ini delete mode 100644 corpus/fake_dist_02/lib/E.pm 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/Changes b/Changes index 58c250b..1148bd6 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,23 @@ Release history for Dist-Zilla-Plugin-Git-NextRelease +0.003000 2014-08-31T20:47:43Z + [00 Minor] + - Tests refactored + - Add dump_config + - metadata + + [Dependencies::Stats] + - Dependencies changed since 0.002012, see misc/*.deps* for details + - develop: +1 ↑1 (suggests: ↑2) + - runtime: +1 + - test: +1 -4 + + [Metadata] + - set author = kentnl + + [Tests] + - Refactored tests in terms of dztest. + 0.002012 2014-08-15T21:16:31Z [00 Trivial] - CPANDAY! diff --git a/MANIFEST b/MANIFEST index cb2c1dd..d2b028a 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1,5 +1,6 @@ # This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.020. .gitignore +.mailmap .perltidyrc .travis.yml Changes @@ -9,12 +10,6 @@ META.json META.yml Makefile.PL README -corpus/fake_dist_01/Changes -corpus/fake_dist_01/dist.ini -corpus/fake_dist_01/lib/E.pm -corpus/fake_dist_02/Changes -corpus/fake_dist_02/dist.ini -corpus/fake_dist_02/lib/E.pm dist.ini dist.ini.meta lib/Dist/Zilla/Plugin/Git/NextRelease.pm diff --git a/META.json b/META.json index 4b6223b..839f4fd 100644 --- a/META.json +++ b/META.json @@ -1,7 +1,7 @@ { "abstract" : "Use time-stamp from Git instead of process start time.", "author" : [ - "Kent Fredric " + "Kent Fredric " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 5.020, CPAN::Meta::Converter version 2.142060", @@ -24,6 +24,7 @@ }, "develop" : { "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", @@ -70,13 +71,13 @@ "Pod::Coverage::TrustPod" : "0", "Test::CPAN::Changes" : "0.19", "Test::CPAN::Meta" : "0", - "Test::Kwalitee" : "1.12", + "Test::Kwalitee" : "1.21", "Test::Pod" : "1.41", "Test::Pod::Coverage" : "1.08" }, "suggests" : { - "Dist::Zilla::App::Command::bakeini" : "0.001001", - "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.017002" + "Dist::Zilla::App::Command::bakeini" : "0.001002", + "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.020000" } }, "runtime" : { @@ -84,6 +85,7 @@ "DateTime" : "0", "Dist::Zilla" : "5.000", "Dist::Zilla::Plugin::NextRelease" : "0", + "Dist::Zilla::Util::ConfigDumper" : "0", "Git::Wrapper::Plus" : "0.003100", "Moose" : "0", "String::Formatter" : "0.100680", @@ -100,14 +102,11 @@ "Test::More" : "1.001003" }, "requires" : { - "Cwd" : "0", + "Dist::Zilla::Util::Test::KENTNL" : "1.003001", "ExtUtils::MakeMaker" : "0", - "File::Copy::Recursive" : "0", "File::Spec" : "0", - "FindBin" : "0", "Git::Wrapper::Plus::Support" : "0", "Git::Wrapper::Plus::Tester" : "0", - "Path::Tiny" : "0", "Test::DZil" : "0", "Test::Fatal" : "0", "Test::More" : "0.89" @@ -117,7 +116,7 @@ "provides" : { "Dist::Zilla::Plugin::Git::NextRelease" : { "file" : "lib/Dist/Zilla/Plugin/Git/NextRelease.pm", - "version" : "0.002012" + "version" : "0.003000" } }, "release_status" : "stable", @@ -132,14 +131,14 @@ "web" : "https://github.com/kentnl/Dist-Zilla-Plugin-Git-NextRelease" } }, - "version" : "0.002012", + "version" : "0.003000", "x_BuiltWith" : { "modules" : { "CPAN::Meta" : "2.142060", - "Cwd" : "3.48", "DateTime" : "1.10", "Dist::Zilla" : "5.020", - "Dist::Zilla::App::Command::bakeini" : "0.001001", + "Dist::Zilla::App::Command::bakeini" : "0.001002", + "Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes" : "0.003001", "Dist::Zilla::Plugin::Authority" : "1.006", "Dist::Zilla::Plugin::AutoPrereqs" : "5.020", "Dist::Zilla::Plugin::BumpVersionAfterRelease" : "0.002", @@ -149,9 +148,9 @@ "Dist::Zilla::Plugin::Git::Check" : "2.023", "Dist::Zilla::Plugin::Git::Commit" : "2.023", "Dist::Zilla::Plugin::Git::CommitBuild" : "2.023", - "Dist::Zilla::Plugin::Git::Contributors" : "0.006", + "Dist::Zilla::Plugin::Git::Contributors" : "0.007", "Dist::Zilla::Plugin::Git::GatherDir" : "2.023", - "Dist::Zilla::Plugin::Git::NextRelease" : "0.002012", + "Dist::Zilla::Plugin::Git::NextRelease" : "0.003000", "Dist::Zilla::Plugin::Git::Tag" : "2.023", "Dist::Zilla::Plugin::GithubMeta" : "0.46", "Dist::Zilla::Plugin::License" : "5.020", @@ -159,75 +158,76 @@ "Dist::Zilla::Plugin::Manifest" : "5.020", "Dist::Zilla::Plugin::ManifestSkip" : "5.020", "Dist::Zilla::Plugin::MetaConfig" : "5.020", - "Dist::Zilla::Plugin::MetaData::BuiltWith" : "1.001000", + "Dist::Zilla::Plugin::MetaData::BuiltWith" : "1.002000", "Dist::Zilla::Plugin::MetaJSON" : "5.020", - "Dist::Zilla::Plugin::MetaProvides::Package" : "2.000003", + "Dist::Zilla::Plugin::MetaProvides::Package" : "2.001001", "Dist::Zilla::Plugin::MetaTests" : "5.020", "Dist::Zilla::Plugin::MetaYAML" : "5.020", "Dist::Zilla::Plugin::MinimumPerl" : "1.003", "Dist::Zilla::Plugin::NextRelease" : "5.020", "Dist::Zilla::Plugin::PodCoverageTests" : "5.020", "Dist::Zilla::Plugin::PodSyntaxTests" : "5.020", - "Dist::Zilla::Plugin::PodWeaver" : "4.005", + "Dist::Zilla::Plugin::PodWeaver" : "4.006", "Dist::Zilla::Plugin::Prereqs" : "5.020", - "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled" : "0.002000", + "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled" : "0.002001", "Dist::Zilla::Plugin::ReadmeAnyFromPod" : "0.142250", "Dist::Zilla::Plugin::ReadmeFromPod" : "0.21", - "Dist::Zilla::Plugin::RewriteVersion::Sanitized" : "0.001002", + "Dist::Zilla::Plugin::RewriteVersion::Sanitized" : "0.001003", "Dist::Zilla::Plugin::RunExtraTests" : "0.022", "Dist::Zilla::Plugin::Test::CPAN::Changes" : "0.008", - "Dist::Zilla::Plugin::Test::Compile::PerFile" : "0.002001", - "Dist::Zilla::Plugin::Test::Kwalitee" : "2.07", + "Dist::Zilla::Plugin::Test::Compile::PerFile" : "0.002002", + "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.025", "Dist::Zilla::Plugin::UploadToCPAN" : "5.020", - "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.017002", + "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.020000", + "Dist::Zilla::Util::ConfigDumper" : "0.003003", + "Dist::Zilla::Util::Test::KENTNL" : "1.003001", "ExtUtils::MakeMaker" : "6.98", - "File::Copy::Recursive" : "0.38", - "File::Spec" : "3.48", - "FindBin" : "1.51", + "File::Spec" : "3.49", "Git::Wrapper::Plus" : "0.004010", "Git::Wrapper::Plus::Support" : "0.004010", "Git::Wrapper::Plus::Tester" : "0.004010", "Moose" : "2.1211", - "Path::Tiny" : "0.056", "Pod::Coverage::TrustPod" : "0.100003", "String::Formatter" : "0.102084", "Test::CPAN::Changes" : "0.30", "Test::CPAN::Meta" : "0.23", "Test::DZil" : "5.020", "Test::Fatal" : "0.013", - "Test::Kwalitee" : "1.19", + "Test::Kwalitee" : "1.22", "Test::More" : "1.001003", "Test::Pod" : "1.48", "Test::Pod::Coverage" : "1.10", "strict" : "1.08", "utf8" : "1.14", - "warnings" : "1.24" + "warnings" : "1.26" }, "perl" : { - "original" : "v5.21.1", + "original" : "v5.21.3", "qv" : 1, "version" : [ 5, 21, - 1 + 3 ] }, "perl-config" : { "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.15.5-aufs x86_64 GenuineIntel GNU/Linux" + "uname" : "Linux 3.16.1-aufs x86_64 GenuineIntel GNU/Linux" }, "x_Dist_Zilla" : { "perl" : { - "version" : "5.021001" + "version" : "5.021003" }, "plugins" : [ { @@ -241,7 +241,7 @@ } }, "name" : "Bootstrap::lib", - "version" : "1.000004" + "version" : "1.000005" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", @@ -272,7 +272,7 @@ } }, "name" : "@Author::KENTNL/MetaProvides::Package", - "version" : "2.000003" + "version" : "2.001001" }, { "class" : "Dist::Zilla::Plugin::MetaData::BuiltWith", @@ -294,7 +294,7 @@ } }, "name" : "@Author::KENTNL/MetaData::BuiltWith", - "version" : "1.001000" + "version" : "1.002000" }, { "class" : "Dist::Zilla::Plugin::Git::Contributors", @@ -302,11 +302,12 @@ "Dist::Zilla::Plugin::Git::Contributors" : { "include_authors" : "0", "include_releaser" : "0", - "order_by" : "name" + "order_by" : "name", + "paths" : [] } }, "name" : "@Author::KENTNL/Git::Contributors", - "version" : "0.006" + "version" : "0.007" }, { "class" : "Dist::Zilla::Plugin::Git::GatherDir", @@ -368,8 +369,14 @@ }, { "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.07" + "version" : "2.11" }, { "class" : "Dist::Zilla::Plugin::EOLTests", @@ -401,7 +408,7 @@ } }, "name" : "@Author::KENTNL/Test::Compile::PerFile", - "version" : "0.002001" + "version" : "0.002002" }, { "class" : "Dist::Zilla::Plugin::Test::Perl::Critic", @@ -422,7 +429,7 @@ } }, "name" : "@Author::KENTNL/RewriteVersion::Sanitized", - "version" : "0.001002" + "version" : "0.001003" }, { "class" : "Dist::Zilla::Plugin::PodWeaver", @@ -522,7 +529,7 @@ } }, "name" : "@Author::KENTNL/PodWeaver", - "version" : "4.005" + "version" : "4.006" }, { "class" : "Dist::Zilla::Plugin::AutoPrereqs", @@ -560,6 +567,11 @@ "name" : "@Author::KENTNL/MakeMaker", "version" : "5.020" }, + { + "class" : "Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes", + "name" : "@Author::KENTNL/Author::KENTNL::RecommendFixes", + "version" : "0.003001" + }, { "class" : "Dist::Zilla::Plugin::ReadmeFromPod", "name" : "@Author::KENTNL/ReadmeFromPod", @@ -645,7 +657,7 @@ "Dist::Zilla::Plugin::Git::Tag" : { "branch" : null, "signed" : 0, - "tag" : "0.002012-source", + "tag" : "0.003000-source", "tag_format" : "%v-source", "tag_message" : "v%v", "time_zone" : "local" @@ -659,8 +671,11 @@ }, { "class" : "Dist::Zilla::Plugin::Git::NextRelease", + "config" : { + "Dist::Zilla::Plugin::Git::NextRelease" : {} + }, "name" : "@Author::KENTNL/Git::NextRelease", - "version" : "0.002012" + "version" : "0.003000" }, { "class" : "Dist::Zilla::Plugin::BumpVersionAfterRelease", @@ -716,7 +731,7 @@ "Dist::Zilla::Plugin::Git::Tag" : { "branch" : "releases", "signed" : 0, - "tag" : "0.002012", + "tag" : "0.003000", "tag_format" : "%v", "tag_message" : "v%v", "time_zone" : "local" @@ -763,7 +778,7 @@ } }, "name" : "@Author::KENTNL/Prereqs::Recommend::MatchInstalled", - "version" : "0.002000" + "version" : "0.002001" }, { "class" : "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled", @@ -782,7 +797,7 @@ } }, "name" : "@Author::KENTNL/always_latest_develop_bundle", - "version" : "0.002000" + "version" : "0.002001" }, { "class" : "Dist::Zilla::Plugin::Prereqs", diff --git a/META.yml b/META.yml index 9a5b22d..62722f3 100644 --- a/META.yml +++ b/META.yml @@ -1,16 +1,13 @@ --- abstract: 'Use time-stamp from Git instead of process start time.' author: - - 'Kent Fredric ' + - 'Kent Fredric ' build_requires: - Cwd: '0' + Dist::Zilla::Util::Test::KENTNL: '1.003001' ExtUtils::MakeMaker: '0' - File::Copy::Recursive: '0' File::Spec: '0' - FindBin: '0' Git::Wrapper::Plus::Support: '0' Git::Wrapper::Plus::Tester: '0' - Path::Tiny: '0' Test::DZil: '0' Test::Fatal: '0' Test::More: '0.89' @@ -26,11 +23,12 @@ name: Dist-Zilla-Plugin-Git-NextRelease provides: Dist::Zilla::Plugin::Git::NextRelease: file: lib/Dist/Zilla/Plugin/Git/NextRelease.pm - version: '0.002012' + version: '0.003000' requires: DateTime: '0' Dist::Zilla: '5.000' Dist::Zilla::Plugin::NextRelease: '0' + Dist::Zilla::Util::ConfigDumper: '0' Git::Wrapper::Plus: '0.003100' Moose: '0' String::Formatter: '0.100680' @@ -42,14 +40,14 @@ resources: bugtracker: https://github.com/kentnl/Dist-Zilla-Plugin-Git-NextRelease/issues homepage: https://github.com/kentnl/Dist-Zilla-Plugin-Git-NextRelease repository: https://github.com/kentnl/Dist-Zilla-Plugin-Git-NextRelease.git -version: '0.002012' +version: '0.003000' x_BuiltWith: modules: CPAN::Meta: '2.142060' - Cwd: '3.48' DateTime: '1.10' Dist::Zilla: '5.020' - Dist::Zilla::App::Command::bakeini: '0.001001' + Dist::Zilla::App::Command::bakeini: '0.001002' + Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes: '0.003001' Dist::Zilla::Plugin::Authority: '1.006' Dist::Zilla::Plugin::AutoPrereqs: '5.020' Dist::Zilla::Plugin::BumpVersionAfterRelease: '0.002' @@ -59,9 +57,9 @@ x_BuiltWith: Dist::Zilla::Plugin::Git::Check: '2.023' Dist::Zilla::Plugin::Git::Commit: '2.023' Dist::Zilla::Plugin::Git::CommitBuild: '2.023' - Dist::Zilla::Plugin::Git::Contributors: '0.006' + Dist::Zilla::Plugin::Git::Contributors: '0.007' Dist::Zilla::Plugin::Git::GatherDir: '2.023' - Dist::Zilla::Plugin::Git::NextRelease: '0.002012' + Dist::Zilla::Plugin::Git::NextRelease: '0.003000' Dist::Zilla::Plugin::Git::Tag: '2.023' Dist::Zilla::Plugin::GithubMeta: '0.46' Dist::Zilla::Plugin::License: '5.020' @@ -69,70 +67,71 @@ x_BuiltWith: Dist::Zilla::Plugin::Manifest: '5.020' Dist::Zilla::Plugin::ManifestSkip: '5.020' Dist::Zilla::Plugin::MetaConfig: '5.020' - Dist::Zilla::Plugin::MetaData::BuiltWith: '1.001000' + Dist::Zilla::Plugin::MetaData::BuiltWith: '1.002000' Dist::Zilla::Plugin::MetaJSON: '5.020' - Dist::Zilla::Plugin::MetaProvides::Package: '2.000003' + Dist::Zilla::Plugin::MetaProvides::Package: '2.001001' Dist::Zilla::Plugin::MetaTests: '5.020' Dist::Zilla::Plugin::MetaYAML: '5.020' Dist::Zilla::Plugin::MinimumPerl: '1.003' Dist::Zilla::Plugin::NextRelease: '5.020' Dist::Zilla::Plugin::PodCoverageTests: '5.020' Dist::Zilla::Plugin::PodSyntaxTests: '5.020' - Dist::Zilla::Plugin::PodWeaver: '4.005' + Dist::Zilla::Plugin::PodWeaver: '4.006' Dist::Zilla::Plugin::Prereqs: '5.020' - Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled: '0.002000' + Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled: '0.002001' Dist::Zilla::Plugin::ReadmeAnyFromPod: '0.142250' Dist::Zilla::Plugin::ReadmeFromPod: '0.21' - Dist::Zilla::Plugin::RewriteVersion::Sanitized: '0.001002' + Dist::Zilla::Plugin::RewriteVersion::Sanitized: '0.001003' Dist::Zilla::Plugin::RunExtraTests: '0.022' Dist::Zilla::Plugin::Test::CPAN::Changes: '0.008' - Dist::Zilla::Plugin::Test::Compile::PerFile: '0.002001' - Dist::Zilla::Plugin::Test::Kwalitee: '2.07' + Dist::Zilla::Plugin::Test::Compile::PerFile: '0.002002' + 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.025' Dist::Zilla::Plugin::UploadToCPAN: '5.020' - Dist::Zilla::PluginBundle::Author::KENTNL: '2.017002' + Dist::Zilla::PluginBundle::Author::KENTNL: '2.020000' + Dist::Zilla::Util::ConfigDumper: '0.003003' + Dist::Zilla::Util::Test::KENTNL: '1.003001' ExtUtils::MakeMaker: '6.98' - File::Copy::Recursive: '0.38' - File::Spec: '3.48' - FindBin: '1.51' + File::Spec: '3.49' Git::Wrapper::Plus: '0.004010' Git::Wrapper::Plus::Support: '0.004010' Git::Wrapper::Plus::Tester: '0.004010' Moose: '2.1211' - Path::Tiny: '0.056' Pod::Coverage::TrustPod: '0.100003' String::Formatter: '0.102084' Test::CPAN::Changes: '0.30' Test::CPAN::Meta: '0.23' Test::DZil: '5.020' Test::Fatal: '0.013' - Test::Kwalitee: '1.19' + Test::Kwalitee: '1.22' Test::More: '1.001003' Test::Pod: '1.48' Test::Pod::Coverage: '1.10' strict: '1.08' utf8: '1.14' - warnings: '1.24' + warnings: '1.26' perl: - original: v5.21.1 + original: v5.21.3 qv: 1 version: - 5 - 21 - - 1 + - 3 perl-config: 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.15.5-aufs x86_64 GenuineIntel GNU/Linux' + uname: 'Linux 3.16.1-aufs x86_64 GenuineIntel GNU/Linux' x_Dist_Zilla: perl: - version: '5.021001' + version: '5.021003' plugins: - class: Dist::Zilla::Plugin::Bootstrap::lib @@ -143,7 +142,7 @@ x_Dist_Zilla: try_built: '1' try_built_method: mtime name: Bootstrap::lib - version: '1.000004' + version: '1.000005' - class: Dist::Zilla::Plugin::MetaConfig name: '@Author::KENTNL/MetaConfig' @@ -166,7 +165,7 @@ x_Dist_Zilla: inherit_version: '1' meta_noindex: '1' name: '@Author::KENTNL/MetaProvides::Package' - version: '2.000003' + version: '2.001001' - class: Dist::Zilla::Plugin::MetaData::BuiltWith config: @@ -183,7 +182,7 @@ x_Dist_Zilla: - -i uname_call: uname name: '@Author::KENTNL/MetaData::BuiltWith' - version: '1.001000' + version: '1.002000' - class: Dist::Zilla::Plugin::Git::Contributors config: @@ -191,8 +190,9 @@ x_Dist_Zilla: include_authors: '0' include_releaser: '0' order_by: name + paths: [] name: '@Author::KENTNL/Git::Contributors' - version: '0.006' + version: '0.007' - class: Dist::Zilla::Plugin::Git::GatherDir config: @@ -240,8 +240,12 @@ x_Dist_Zilla: 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.07' + version: '2.11' - class: Dist::Zilla::Plugin::EOLTests name: '@Author::KENTNL/EOLTests' @@ -266,7 +270,7 @@ x_Dist_Zilla: test_template: 01-basic.t.tpl xt_mode: ~ name: '@Author::KENTNL/Test::Compile::PerFile' - version: '0.002001' + version: '0.002002' - class: Dist::Zilla::Plugin::Test::Perl::Critic name: '@Author::KENTNL/Test::Perl::Critic' @@ -282,7 +286,7 @@ x_Dist_Zilla: mantissa: '6' normal_form: numify name: '@Author::KENTNL/RewriteVersion::Sanitized' - version: '0.001002' + version: '0.001003' - class: Dist::Zilla::Plugin::PodWeaver config: @@ -360,7 +364,7 @@ x_Dist_Zilla: name: Legal version: '4.006' name: '@Author::KENTNL/PodWeaver' - version: '4.005' + version: '4.006' - class: Dist::Zilla::Plugin::AutoPrereqs name: '@Author::KENTNL/AutoPrereqs' @@ -388,6 +392,10 @@ x_Dist_Zilla: 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.003001' - class: Dist::Zilla::Plugin::ReadmeFromPod name: '@Author::KENTNL/ReadmeFromPod' @@ -453,7 +461,7 @@ x_Dist_Zilla: Dist::Zilla::Plugin::Git::Tag: branch: ~ signed: '0' - tag: 0.002012-source + tag: 0.003000-source tag_format: '%v-source' tag_message: v%v time_zone: local @@ -463,8 +471,10 @@ x_Dist_Zilla: version: '2.023' - class: Dist::Zilla::Plugin::Git::NextRelease + config: + Dist::Zilla::Plugin::Git::NextRelease: {} name: '@Author::KENTNL/Git::NextRelease' - version: '0.002012' + version: '0.003000' - class: Dist::Zilla::Plugin::BumpVersionAfterRelease name: '@Author::KENTNL/BumpVersionAfterRelease' @@ -507,7 +517,7 @@ x_Dist_Zilla: Dist::Zilla::Plugin::Git::Tag: branch: releases signed: '0' - tag: '0.002012' + tag: '0.003000' tag_format: '%v' tag_message: v%v time_zone: local @@ -543,7 +553,7 @@ x_Dist_Zilla: - ExtUtils::MakeMaker - Test::More name: '@Author::KENTNL/Prereqs::Recommend::MatchInstalled' - version: '0.002000' + version: '0.002001' - class: Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled config: @@ -556,7 +566,7 @@ x_Dist_Zilla: - Dist::Zilla::PluginBundle::Author::KENTNL - Dist::Zilla::App::Command::bakeini name: '@Author::KENTNL/always_latest_develop_bundle' - version: '0.002000' + version: '0.002001' - class: Dist::Zilla::Plugin::Prereqs config: diff --git a/Makefile.PL b/Makefile.PL index 654e540..c7e92c2 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -11,7 +11,7 @@ use ExtUtils::MakeMaker ; my %WriteMakefileArgs = ( "ABSTRACT" => "Use time-stamp from Git instead of process start time.", - "AUTHOR" => "Kent Fredric ", + "AUTHOR" => "Kent Fredric ", "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => 0 }, @@ -23,6 +23,7 @@ my %WriteMakefileArgs = ( "DateTime" => 0, "Dist::Zilla" => "5.000", "Dist::Zilla::Plugin::NextRelease" => 0, + "Dist::Zilla::Util::ConfigDumper" => 0, "Git::Wrapper::Plus" => "0.003100", "Moose" => 0, "String::Formatter" => "0.100680", @@ -31,19 +32,16 @@ my %WriteMakefileArgs = ( "warnings" => 0 }, "TEST_REQUIRES" => { - "Cwd" => 0, + "Dist::Zilla::Util::Test::KENTNL" => "1.003001", "ExtUtils::MakeMaker" => 0, - "File::Copy::Recursive" => 0, "File::Spec" => 0, - "FindBin" => 0, "Git::Wrapper::Plus::Support" => 0, "Git::Wrapper::Plus::Tester" => 0, - "Path::Tiny" => 0, "Test::DZil" => 0, "Test::Fatal" => 0, "Test::More" => "0.89" }, - "VERSION" => "0.002012", + "VERSION" => "0.003000", "test" => { "TESTS" => "t/*.t t/00-compile/*.t" } @@ -51,19 +49,17 @@ my %WriteMakefileArgs = ( my %FallbackPrereqs = ( - "Cwd" => 0, "DateTime" => 0, "Dist::Zilla" => "5.000", "Dist::Zilla::Plugin::NextRelease" => 0, + "Dist::Zilla::Util::ConfigDumper" => 0, + "Dist::Zilla::Util::Test::KENTNL" => "1.003001", "ExtUtils::MakeMaker" => 0, - "File::Copy::Recursive" => 0, "File::Spec" => 0, - "FindBin" => 0, "Git::Wrapper::Plus" => "0.003100", "Git::Wrapper::Plus::Support" => 0, "Git::Wrapper::Plus::Tester" => 0, "Moose" => 0, - "Path::Tiny" => 0, "String::Formatter" => "0.100680", "Test::DZil" => 0, "Test::Fatal" => 0, diff --git a/README b/README index 6a509f3..f5873c6 100644 --- a/README +++ b/README @@ -3,7 +3,7 @@ NAME of process start time. VERSION - version 0.002012 + version 0.003000 SYNOPSIS This module acts as a moderately thin wrapper to "[NextRelease]" so that @@ -54,7 +54,7 @@ ATTRIBUTES instead. AUTHOR - Kent Fredric + Kent Fredric COPYRIGHT AND LICENSE This software is copyright (c) 2014 by Kent Fredric diff --git a/corpus/fake_dist_01/Changes b/corpus/fake_dist_01/Changes deleted file mode 100644 index b0370ea..0000000 --- a/corpus/fake_dist_01/Changes +++ /dev/null @@ -1,4 +0,0 @@ -Example changes file - -{{$NEXT}} - First release diff --git a/corpus/fake_dist_01/dist.ini b/corpus/fake_dist_01/dist.ini deleted file mode 100644 index afdfc5f..0000000 --- a/corpus/fake_dist_01/dist.ini +++ /dev/null @@ -1,13 +0,0 @@ -name = E -version = 0.01 -author = Kent Fredric -license = Perl_5 -copyright_holder = Kent Fredric - -[MetaConfig] -[MetaJSON] -[GatherDir] -[Git::NextRelease] -time_zone = UTC - -[PruneCruft] diff --git a/corpus/fake_dist_01/lib/E.pm b/corpus/fake_dist_01/lib/E.pm deleted file mode 100644 index 6c748d6..0000000 --- a/corpus/fake_dist_01/lib/E.pm +++ /dev/null @@ -1,18 +0,0 @@ - -use strict; -use warnings; - -package E; - -# ABSTRACT: Fake dist stub - -use Moose; -use File::ShareDir qw( dist_file ); -use Path::Tiny qw( path ); - -with 'Dist::Zilla::Role::Plugin'; - -our $content = path( dist_file( 'E', 'example.txt' ) )->slurp; - -1; - diff --git a/corpus/fake_dist_02/Changes b/corpus/fake_dist_02/Changes deleted file mode 100644 index b0370ea..0000000 --- a/corpus/fake_dist_02/Changes +++ /dev/null @@ -1,4 +0,0 @@ -Example changes file - -{{$NEXT}} - First release diff --git a/corpus/fake_dist_02/dist.ini b/corpus/fake_dist_02/dist.ini deleted file mode 100644 index 0b9d385..0000000 --- a/corpus/fake_dist_02/dist.ini +++ /dev/null @@ -1,14 +0,0 @@ -name = E -version = 0.01 -author = Kent Fredric -license = Perl_5 -copyright_holder = Kent Fredric - -[MetaConfig] -[MetaJSON] -[GatherDir] -[Git::NextRelease] -time_zone = UTC -default_branch = master - -[PruneCruft] diff --git a/corpus/fake_dist_02/lib/E.pm b/corpus/fake_dist_02/lib/E.pm deleted file mode 100644 index 6c748d6..0000000 --- a/corpus/fake_dist_02/lib/E.pm +++ /dev/null @@ -1,18 +0,0 @@ - -use strict; -use warnings; - -package E; - -# ABSTRACT: Fake dist stub - -use Moose; -use File::ShareDir qw( dist_file ); -use Path::Tiny qw( path ); - -with 'Dist::Zilla::Role::Plugin'; - -our $content = path( dist_file( 'E', 'example.txt' ) )->slurp; - -1; - diff --git a/dist.ini b/dist.ini index 1797d08..afd1cce 100644 --- a/dist.ini +++ b/dist.ini @@ -1,7 +1,7 @@ ; This file is generated from dist.ini.meta by dzil bakeini. ; Edit that file or the bundles contained within for long-term changes. name = Dist-Zilla-Plugin-Git-NextRelease -author = Kent Fredric +author = Kent Fredric license = Perl_5 copyright_holder = Kent Fredric @@ -79,7 +79,7 @@ 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.020000 [MinimumPerl / @Author::KENTNL/MinimumPerl] @@ -92,6 +92,9 @@ 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] @@ -152,6 +155,7 @@ 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 diff --git a/dist.ini.meta b/dist.ini.meta index 7fb5472..6699463 100644 --- a/dist.ini.meta +++ b/dist.ini.meta @@ -1,6 +1,6 @@ ; Generated by Dist::Zilla::Plugin::Author::KENTNL::DistINI version 2.007003 at Sun Jan 12 12:28:05 2014 name = Dist-Zilla-Plugin-Git-NextRelease -author = Kent Fredric +author = Kent Fredric license = Perl_5 copyright_holder = Kent Fredric @@ -9,8 +9,7 @@ copyright_holder = Kent Fredric try_built = 1 [@Author::KENTNL] -:version = 2.016000 -git_versions = 1 +:version = 2.020 normal_form = numify mantissa = 6 toolkit = eumm diff --git a/lib/Dist/Zilla/Plugin/Git/NextRelease.pm b/lib/Dist/Zilla/Plugin/Git/NextRelease.pm index 2c4f9c2..39ffea5 100644 --- a/lib/Dist/Zilla/Plugin/Git/NextRelease.pm +++ b/lib/Dist/Zilla/Plugin/Git/NextRelease.pm @@ -5,17 +5,18 @@ use utf8; package Dist::Zilla::Plugin::Git::NextRelease; -our $VERSION = '0.002012'; +our $VERSION = '0.003000'; # ABSTRACT: Use time-stamp from Git instead of process start time. our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY -use Moose qw( extends has ); +use Moose qw( extends has around ); extends 'Dist::Zilla::Plugin::NextRelease'; use Git::Wrapper::Plus 0.003100; # Fixed shallow commits use DateTime; +use Dist::Zilla::Util::ConfigDumper qw( config_dumper ); use String::Formatter 0.100680 stringf => { -as => '_format_version', @@ -85,6 +86,8 @@ has '_gwp' => ( lazy_build => 1, ); +around dump_config => config_dumper( __PACKAGE__, { attrs => [ 'default_branch', 'branch' ] } ); + sub _build__gwp { my ($self) = @_; return Git::Wrapper::Plus->new( q[] . $self->zilla->root ); @@ -153,7 +156,7 @@ Dist::Zilla::Plugin::Git::NextRelease - Use time-stamp from Git instead of proce =head1 VERSION -version 0.002012 +version 0.003000 =head1 SYNOPSIS @@ -205,7 +208,7 @@ specifying this value means that on a detached head, the stated branch will be u =head1 AUTHOR -Kent Fredric +Kent Fredric =head1 COPYRIGHT AND LICENSE diff --git a/misc/Changes.deps b/misc/Changes.deps index 025bc76..48ed933 100644 --- a/misc/Changes.deps +++ b/misc/Changes.deps @@ -1,6 +1,19 @@ This file contains changes in REQUIRED dependencies for standard CPAN phases (configure/build/runtime/test) -0.002012 +0.003000 + [Added / runtime requires] + - Dist::Zilla::Util::ConfigDumper + + [Added / test requires] + - Dist::Zilla::Util::Test::KENTNL 1.003001 + + [Removed / test requires] + - Cwd + - File::Copy::Recursive + - FindBin + - Path::Tiny + +0.002012 2014-08-15T21:16:31Z [Added / test requires] - File::Spec diff --git a/misc/Changes.deps.all b/misc/Changes.deps.all index f7ab5f5..ae84658 100644 --- a/misc/Changes.deps.all +++ b/misc/Changes.deps.all @@ -1,6 +1,29 @@ This file contains ALL changes in dependencies in both REQUIRED / OPTIONAL dependencies for all phases (configure/build/runtime/test/develop) -0.002012 +0.003000 + [Added / develop requires] + - Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes 0.001001 + + [Added / runtime requires] + - Dist::Zilla::Util::ConfigDumper + + [Added / test requires] + - Dist::Zilla::Util::Test::KENTNL 1.003001 + + [Changed / develop requires] + - Test::Kwalitee 1.12 → 1.21 + + [Changed / develop suggests] + - Dist::Zilla::App::Command::bakeini 0.001001 → 0.001002 + - Dist::Zilla::PluginBundle::Author::KENTNL 2.017002 → 2.020000 + + [Removed / test requires] + - Cwd + - File::Copy::Recursive + - FindBin + - Path::Tiny + +0.002012 2014-08-15T21:16:31Z [Added / develop requires] - Dist::Zilla::Plugin::Git::Contributors 0.006 diff --git a/misc/Changes.deps.dev b/misc/Changes.deps.dev index 04a8673..dd9a56f 100644 --- a/misc/Changes.deps.dev +++ b/misc/Changes.deps.dev @@ -1,6 +1,17 @@ This file contains changes to DEVELOPMENT dependencies only ( both REQUIRED and OPTIONAL ) -0.002012 +0.003000 + [Added / develop requires] + - Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes 0.001001 + + [Changed / develop requires] + - Test::Kwalitee 1.12 → 1.21 + + [Changed / develop suggests] + - Dist::Zilla::App::Command::bakeini 0.001001 → 0.001002 + - Dist::Zilla::PluginBundle::Author::KENTNL 2.017002 → 2.020000 + +0.002012 2014-08-15T21:16:31Z [Added / develop requires] - Dist::Zilla::Plugin::Git::Contributors 0.006 diff --git a/misc/Changes.deps.opt b/misc/Changes.deps.opt index 32b5473..2bf93d1 100644 --- a/misc/Changes.deps.opt +++ b/misc/Changes.deps.opt @@ -1,6 +1,8 @@ This file contains changes in OPTIONAL dependencies for standard CPAN phases (configure/build/runtime/test) -0.002012 +0.003000 + +0.002012 2014-08-15T21:16:31Z [Changed / test recommends] - CPAN::Meta 0 → 2.120900 diff --git a/t/00-compile/lib_Dist_Zilla_Plugin_Git_NextRelease_pm.t b/t/00-compile/lib_Dist_Zilla_Plugin_Git_NextRelease_pm.t index 1ddb1d3..5ca635b 100644 --- a/t/00-compile/lib_Dist_Zilla_Plugin_Git_NextRelease_pm.t +++ b/t/00-compile/lib_Dist_Zilla_Plugin_Git_NextRelease_pm.t @@ -2,7 +2,7 @@ use strict; use warnings; # This test was generated for -# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.002001 +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.002002 # with template 01-basic.t.tpl use Test::More 0.89 tests => 1; diff --git a/t/00-report-prereqs.dd b/t/00-report-prereqs.dd index 592bcc0..0440830 100644 --- a/t/00-report-prereqs.dd +++ b/t/00-report-prereqs.dd @@ -9,6 +9,7 @@ do { my $x = { }, 'develop' => { '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', @@ -55,13 +56,13 @@ do { my $x = { 'Pod::Coverage::TrustPod' => '0', 'Test::CPAN::Changes' => '0.19', 'Test::CPAN::Meta' => '0', - 'Test::Kwalitee' => '1.12', + 'Test::Kwalitee' => '1.21', 'Test::Pod' => '1.41', 'Test::Pod::Coverage' => '1.08' }, 'suggests' => { - 'Dist::Zilla::App::Command::bakeini' => '0.001001', - 'Dist::Zilla::PluginBundle::Author::KENTNL' => '2.017002' + 'Dist::Zilla::App::Command::bakeini' => '0.001002', + 'Dist::Zilla::PluginBundle::Author::KENTNL' => '2.020000' } }, 'runtime' => { @@ -69,6 +70,7 @@ do { my $x = { 'DateTime' => '0', 'Dist::Zilla' => '5.000', 'Dist::Zilla::Plugin::NextRelease' => '0', + 'Dist::Zilla::Util::ConfigDumper' => '0', 'Git::Wrapper::Plus' => '0.003100', 'Moose' => '0', 'String::Formatter' => '0.100680', @@ -85,14 +87,11 @@ do { my $x = { 'Test::More' => '1.001003' }, 'requires' => { - 'Cwd' => '0', + 'Dist::Zilla::Util::Test::KENTNL' => '1.003001', 'ExtUtils::MakeMaker' => '0', - 'File::Copy::Recursive' => '0', 'File::Spec' => '0', - 'FindBin' => '0', 'Git::Wrapper::Plus::Support' => '0', 'Git::Wrapper::Plus::Tester' => '0', - 'Path::Tiny' => '0', 'Test::DZil' => '0', 'Test::Fatal' => '0', 'Test::More' => '0.89' diff --git a/t/01-basic.t b/t/01-basic.t index 95af67b..8c4060e 100644 --- a/t/01-basic.t +++ b/t/01-basic.t @@ -2,25 +2,25 @@ use strict; use warnings; use Test::More; -use Path::Tiny; -use FindBin; -use Cwd qw( cwd ); -use File::Copy::Recursive qw( rcopy ); use Git::Wrapper::Plus::Tester; use Git::Wrapper::Plus::Support; use Test::Fatal; -use Test::DZil; +use Test::DZil qw( simple_ini ); +use Dist::Zilla::Util::Test::KENTNL 1.003001 qw( dztest ); -my $dist = 'fake_dist_01'; -my $source = path($FindBin::Bin)->parent()->child('corpus')->child($dist); +my $test = dztest(); +$test->add_file( 'Changes', <<'EOF'); +Example changes file -my $t = Git::Wrapper::Plus::Tester->new(); -my $s = Git::Wrapper::Plus::Support->new( git => $t->git ); - -my $tempdir = $t->repo_dir; +{{$NEXT}} + First release +EOF +$test->add_file( 'dist.ini', simple_ini( { version => '0.01' }, 'GatherDir', [ 'Git::NextRelease', { time_zone => 'UTC' } ] ) ); +$test->add_file( 'lib/E.pm', q[] ); -rcopy( "$source", "$tempdir" ); +my $t = Git::Wrapper::Plus::Tester->new( repo_dir => $test->tempdir ); +my $s = Git::Wrapper::Plus::Support->new( git => $t->git ); $t->run_env( sub { @@ -41,26 +41,12 @@ $t->run_env( is( $excp, undef, 'Git::Wrapper test preparation did not fail' ) or diag $excp; - my $dist_ini = $tempdir->child('dist.ini'); - BAIL_OUT("test setup failed to copy to tempdir") - if not -e $dist_ini and -f $dist_ini; - - my $conf; - is( - exception { - - $conf = Builder->from_config( { dist_root => "$tempdir" } ); - $conf->build; - - }, - undef, - "dzil build ran ok" - ); - for my $file ( @{ $conf->files } ) { + $test->build_ok; + for my $file ( @{ $test->builder->files } ) { next if $file->name ne 'Changes'; like( $file->encoded_content, qr/0.01\s+2014-01-01\s+00:00:00/, "Specified commit timestamp in changelog" ); } + note explain $test->builder->log_messages; } ); done_testing; - diff --git a/t/02-detached-head.t b/t/02-detached-head.t index 96d5153..abf72e6 100644 --- a/t/02-detached-head.t +++ b/t/02-detached-head.t @@ -2,25 +2,27 @@ use strict; use warnings; use Test::More; -use Path::Tiny; -use FindBin; -use Cwd qw( cwd ); -use File::Copy::Recursive qw( rcopy ); use Git::Wrapper::Plus::Tester; use Git::Wrapper::Plus::Support; use Test::Fatal; -use Test::DZil; +use Test::DZil qw( simple_ini ); +use Dist::Zilla::Util::Test::KENTNL 1.003001 qw( dztest ); -my $dist = 'fake_dist_02'; -my $source = path($FindBin::Bin)->parent()->child('corpus')->child($dist); +my $test = dztest(); +$test->add_file( 'Changes', <<'EOF'); +Example changes file -my $t = Git::Wrapper::Plus::Tester->new(); -my $s = Git::Wrapper::Plus::Support->new( git => $t->git ); - -my $tempdir = $t->repo_dir; +{{$NEXT}} + First release +EOF +$test->add_file( 'dist.ini', + simple_ini( { version => '0.01' }, ['GatherDir'], [ 'Git::NextRelease', { time_zone => 'UTC', default_branch => 'master' } ] ) +); +$test->add_file( 'lib/E.pm', q[] ); -rcopy( "$source", "$tempdir" ); +my $t = Git::Wrapper::Plus::Tester->new( repo_dir => $test->tempdir ); +my $s = Git::Wrapper::Plus::Support->new( git => $t->git ); $t->run_env( sub { @@ -47,7 +49,7 @@ $t->run_env( $git->add('lib/E.pm'); local $ENV{'GIT_COMMITTER_DATE'} = '1388534400 +1300'; $git->commit( '-m', 'First Commit' ); - $tempdir->child('Changes')->spew_raw('Sample modification'); + $test->tempdir->child('Changes')->spew_raw('Sample modification'); $git->update_index('Changes'); local $ENV{'GIT_COMMITTER_DATE'} = '1388534500 +1300'; $git->commit( '-m', 'Second commit' ); @@ -56,26 +58,12 @@ $t->run_env( is( $excp, undef, 'Git::Wrapper test preparation did not fail' ) or diag $excp; - my $dist_ini = $tempdir->child('dist.ini'); - BAIL_OUT("test setup failed to copy to tempdir") - if not -e $dist_ini and -f $dist_ini; - - my $conf; - is( - exception { - - $conf = Builder->from_config( { dist_root => "$tempdir" } ); - $conf->build; - - }, - undef, - "dzil build ran ok" - ); - for my $file ( @{ $conf->files } ) { + $test->build_ok; + for my $file ( @{ $test->builder->files } ) { next if $file->name ne 'Changes'; like( $file->encoded_content, qr/0.01\s+2014-01-01\s+00:01:40/, "Specified commit timestamp in changelog" ); } + note explain $test->builder->log_messages; } ); done_testing; - diff --git a/xt/release/kwalitee.t b/xt/release/kwalitee.t index 13cecfa..bcbce84 100644 --- a/xt/release/kwalitee.t +++ b/xt/release/kwalitee.t @@ -1,4 +1,9 @@ -# this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.07 +# this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.11 use strict; use warnings; -use Test::Kwalitee; +use Test::More 0.88; +use Test::Kwalitee 1.21 'kwalitee_ok'; + +kwalitee_ok(); + +done_testing;