Hello community, here is the log from the commit of package perl-DateTime for openSUSE:Factory checked in at 2017-08-24 18:25:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-DateTime (Old) and /work/SRC/openSUSE:Factory/.perl-DateTime.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-DateTime" Thu Aug 24 18:25:22 2017 rev:42 rq:518090 version:1.44 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-DateTime/perl-DateTime.changes 2017-06-15 11:25:55.353976728 +0200 +++ /work/SRC/openSUSE:Factory/.perl-DateTime.new/perl-DateTime.changes 2017-08-24 18:25:24.017599978 +0200 @@ -1,0 +2,14 @@ +Tue Aug 22 05:23:11 UTC 2017 - [email protected] + +- updated to 1.44 + see /usr/share/doc/packages/perl-DateTime/Changes + + 1.44 2017-08-20 + + - Added a stringify() method. This does exactly the same thing as + stringification overloading does. GH #58. + + - Added an is_last_day_of_month() method to indicate whether or not an object + falls on the last day of its month. GH #60. + +------------------------------------------------------------------- Old: ---- DateTime-1.43.tar.gz New: ---- DateTime-1.44.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-DateTime.spec ++++++ --- /var/tmp/diff_new_pack.Fq9PkJ/_old 2017-08-24 18:25:24.917473195 +0200 +++ /var/tmp/diff_new_pack.Fq9PkJ/_new 2017-08-24 18:25:24.921472632 +0200 @@ -17,7 +17,7 @@ Name: perl-DateTime -Version: 1.43 +Version: 1.44 Release: 0 %define cpan_name DateTime Summary: Date and Time Object for Perl ++++++ DateTime-1.43.tar.gz -> DateTime-1.44.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/Changes new/DateTime-1.44/Changes --- old/DateTime-1.43/Changes 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/Changes 2017-08-21 05:35:46.000000000 +0200 @@ -1,3 +1,12 @@ +1.44 2017-08-20 + +- Added a stringify() method. This does exactly the same thing as + stringification overloading does. GH #58. + +- Added an is_last_day_of_month() method to indicate whether or not an object + falls on the last day of its month. GH #60. + + 1.43 2017-05-29 - Added a small optimization for boolification overloading. Rather than diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/MANIFEST new/DateTime-1.44/MANIFEST --- old/DateTime-1.43/MANIFEST 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/MANIFEST 2017-08-21 05:35:46.000000000 +0200 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.009. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.010. CONTRIBUTING.md CREDITS Changes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/META.json new/DateTime-1.44/META.json --- old/DateTime-1.43/META.json 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/META.json 2017-08-21 05:35:46.000000000 +0200 @@ -4,7 +4,7 @@ "Dave Rolsky <[email protected]>" ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 6.009, CPAN::Meta::Converter version 2.150010", + "generated_by" : "Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150010", "license" : [ "artistic_2" ], @@ -106,43 +106,43 @@ "provides" : { "DateTime" : { "file" : "lib/DateTime.pm", - "version" : "1.43" + "version" : "1.44" }, "DateTime::Duration" : { "file" : "lib/DateTime/Duration.pm", - "version" : "1.43" + "version" : "1.44" }, "DateTime::Helpers" : { "file" : "lib/DateTime/Helpers.pm", - "version" : "1.43" + "version" : "1.44" }, "DateTime::Infinite" : { "file" : "lib/DateTime/Infinite.pm", - "version" : "1.43" + "version" : "1.44" }, "DateTime::Infinite::Future" : { "file" : "lib/DateTime/Infinite.pm", - "version" : "1.43" + "version" : "1.44" }, "DateTime::Infinite::Past" : { "file" : "lib/DateTime/Infinite.pm", - "version" : "1.43" + "version" : "1.44" }, "DateTime::LeapSecond" : { "file" : "lib/DateTime/LeapSecond.pm", - "version" : "1.43" + "version" : "1.44" }, "DateTime::PP" : { "file" : "lib/DateTime/PP.pm", - "version" : "1.43" + "version" : "1.44" }, "DateTime::PPExtra" : { "file" : "lib/DateTime/PPExtra.pm", - "version" : "1.43" + "version" : "1.44" }, "DateTime::Types" : { "file" : "lib/DateTime/Types.pm", - "version" : "1.43" + "version" : "1.44" } }, "release_status" : "stable", @@ -158,7 +158,7 @@ }, "x_MailingList" : "[email protected]" }, - "version" : "1.43", + "version" : "1.44", "x_Dist_Zilla" : { "perl" : { "version" : "5.024001" @@ -167,7 +167,7 @@ { "class" : "Dist::Zilla::Plugin::PruneCruft", "name" : "PruneCruft", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::MakeMaker", @@ -177,7 +177,7 @@ } }, "name" : "@DROLSKY/MakeMaker", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::Git::GatherDir", @@ -209,27 +209,27 @@ { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@DROLSKY/ManifestSkip", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@DROLSKY/License", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@DROLSKY/ExecDir", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::ShareDir", "name" : "@DROLSKY/ShareDir", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@DROLSKY/Manifest", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::CheckVersionIncrement", @@ -239,22 +239,22 @@ { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@DROLSKY/TestRelease", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@DROLSKY/ConfirmRelease", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@DROLSKY/UploadToCPAN", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::VersionFromMainModule", "name" : "@DROLSKY/VersionFromMainModule", - "version" : "0.02" + "version" : "0.03" }, { "class" : "Dist::Zilla::Plugin::Authority", @@ -264,7 +264,7 @@ { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@DROLSKY/AutoPrereqs", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::CopyFilesFromBuild", @@ -289,7 +289,7 @@ { "class" : "Dist::Zilla::Plugin::MetaResources", "name" : "@DROLSKY/MetaResources", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::MetaProvides::Package", @@ -299,13 +299,13 @@ { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "@DROLSKY/MetaProvides::Package/AUTOVIV/:InstallModulesPM", - "version" : "6.009" + "version" : "6.010" } ], "include_underscores" : 0 }, "Dist::Zilla::Role::MetaProvider::Provider" : { - "$Dist::Zilla::Role::MetaProvider::Provider::VERSION" : "2.002003", + "$Dist::Zilla::Role::MetaProvider::Provider::VERSION" : "2.002004", "inherit_missing" : 1, "inherit_version" : 1, "meta_noindex" : 1 @@ -326,22 +326,22 @@ { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@DROLSKY/MetaConfig", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@DROLSKY/MetaJSON", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@DROLSKY/MetaYAML", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@DROLSKY/NextRelease", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -352,7 +352,7 @@ } }, "name" : "@DROLSKY/Test::More with subtest", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -363,7 +363,7 @@ } }, "name" : "@DROLSKY/Modules for use with tidyall", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -374,7 +374,7 @@ } }, "name" : "@DROLSKY/Test::Version which fixes https://github.com/plicease/Test-Version/issues/7", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::PromptIfStale", @@ -532,7 +532,7 @@ { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@DROLSKY/PodSyntaxTests", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::RunExtraTests", @@ -642,7 +642,7 @@ "class" : "Dist::Zilla::Plugin::Git::Contributors", "config" : { "Dist::Zilla::Plugin::Git::Contributors" : { - "git_version" : "2.7.4", + "git_version" : "2.14.1", "include_authors" : 0, "include_releaser" : 1, "order_by" : "name", @@ -843,7 +843,7 @@ { "class" : "Dist::Zilla::Plugin::CPANFile", "name" : "@DROLSKY/CPANFile", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::PPPort", @@ -885,7 +885,7 @@ "class" : "Dist::Zilla::Plugin::DROLSKY::Git::CheckFor::CorrectBranch", "config" : { "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.7.4", + "git_version" : "2.14.1", "repo_root" : "." } }, @@ -901,7 +901,7 @@ "class" : "Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts", "config" : { "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.7.4", + "git_version" : "2.14.1", "repo_root" : "." } }, @@ -935,7 +935,7 @@ "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.7.4", + "git_version" : "2.14.1", "repo_root" : "." } }, @@ -965,7 +965,7 @@ "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.7.4", + "git_version" : "2.14.1", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { @@ -982,12 +982,12 @@ "branch" : null, "changelog" : "Changes", "signed" : 0, - "tag" : "v1.43", + "tag" : "v1.44", "tag_format" : "v%v", "tag_message" : "v%v" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.7.4", + "git_version" : "2.14.1", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { @@ -1007,7 +1007,7 @@ "remotes_must_exist" : 1 }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.7.4", + "git_version" : "2.14.1", "repo_root" : "." } }, @@ -1047,7 +1047,7 @@ "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.7.4", + "git_version" : "2.14.1", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { @@ -1067,7 +1067,7 @@ "remotes_must_exist" : 1 }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.7.4", + "git_version" : "2.14.1", "repo_root" : "." } }, @@ -1075,8 +1075,20 @@ "version" : "2.042" }, { - "class" : "inc::LeapSecondsHeader", - "name" : "=inc::LeapSecondsHeader", + "class" : "Dist::Zilla::Plugin::lib", + "config" : { + "Dist::Zilla::Plugin::lib" : { + "lib" : [ + "inc" + ] + } + }, + "name" : "lib", + "version" : "0.001002" + }, + { + "class" : "LeapSecondsHeader", + "name" : "=LeapSecondsHeader", "version" : null }, { @@ -1087,7 +1099,7 @@ { "class" : "Dist::Zilla::Plugin::MetaResources", "name" : "MetaResources", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -1098,7 +1110,7 @@ } }, "name" : "DevelopRequires", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::PurePerlTests", @@ -1130,57 +1142,57 @@ { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExtraTestFiles", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":PerlExecFiles", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":AllFiles", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":NoFiles", - "version" : "6.009" + "version" : "6.010" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "@DROLSKY/MetaProvides::Package/AUTOVIV/:InstallModulesPM", - "version" : "6.009" + "version" : "6.010" } ], "zilla" : { @@ -1188,7 +1200,7 @@ "config" : { "is_trial" : 0 }, - "version" : "6.009" + "version" : "6.010" } }, "x_authority" : "cpan:DROLSKY", @@ -1221,6 +1233,6 @@ "Sam Kington <[email protected]>", "viviparous <viviparous@prc>" ], - "x_serialization_backend" : "Cpanel::JSON::XS version 3.0229" + "x_serialization_backend" : "Cpanel::JSON::XS version 3.0233" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/META.yml new/DateTime-1.44/META.yml --- old/DateTime-1.43/META.yml 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/META.yml 2017-08-21 05:35:46.000000000 +0200 @@ -16,7 +16,7 @@ Dist::CheckConflicts: '0.02' ExtUtils::MakeMaker: '0' dynamic_config: 0 -generated_by: 'Dist::Zilla version 6.009, CPAN::Meta::Converter version 2.150010' +generated_by: 'Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150010' license: artistic_2 meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -25,34 +25,34 @@ provides: DateTime: file: lib/DateTime.pm - version: '1.43' + version: '1.44' DateTime::Duration: file: lib/DateTime/Duration.pm - version: '1.43' + version: '1.44' DateTime::Helpers: file: lib/DateTime/Helpers.pm - version: '1.43' + version: '1.44' DateTime::Infinite: file: lib/DateTime/Infinite.pm - version: '1.43' + version: '1.44' DateTime::Infinite::Future: file: lib/DateTime/Infinite.pm - version: '1.43' + version: '1.44' DateTime::Infinite::Past: file: lib/DateTime/Infinite.pm - version: '1.43' + version: '1.44' DateTime::LeapSecond: file: lib/DateTime/LeapSecond.pm - version: '1.43' + version: '1.44' DateTime::PP: file: lib/DateTime/PP.pm - version: '1.43' + version: '1.44' DateTime::PPExtra: file: lib/DateTime/PPExtra.pm - version: '1.43' + version: '1.44' DateTime::Types: file: lib/DateTime/Types.pm - version: '1.43' + version: '1.44' requires: Carp: '0' DateTime::Locale: '1.06' @@ -83,7 +83,7 @@ bugtracker: https://github.com/houseabsolute/DateTime.pm/issues homepage: http://metacpan.org/release/DateTime repository: git://github.com/houseabsolute/DateTime.pm.git -version: '1.43' +version: '1.44' x_Dist_Zilla: perl: version: '5.024001' @@ -91,14 +91,14 @@ - class: Dist::Zilla::Plugin::PruneCruft name: PruneCruft - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::MakeMaker config: Dist::Zilla::Role::TestRunner: default_jobs: 1 name: '@DROLSKY/MakeMaker' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::Git::GatherDir config: @@ -124,23 +124,23 @@ - class: Dist::Zilla::Plugin::ManifestSkip name: '@DROLSKY/ManifestSkip' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::License name: '@DROLSKY/License' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::ExecDir name: '@DROLSKY/ExecDir' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::ShareDir name: '@DROLSKY/ShareDir' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::Manifest name: '@DROLSKY/Manifest' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::CheckVersionIncrement name: '@DROLSKY/CheckVersionIncrement' @@ -148,19 +148,19 @@ - class: Dist::Zilla::Plugin::TestRelease name: '@DROLSKY/TestRelease' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::ConfirmRelease name: '@DROLSKY/ConfirmRelease' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::UploadToCPAN name: '@DROLSKY/UploadToCPAN' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::VersionFromMainModule name: '@DROLSKY/VersionFromMainModule' - version: '0.02' + version: '0.03' - class: Dist::Zilla::Plugin::Authority name: '@DROLSKY/Authority' @@ -168,7 +168,7 @@ - class: Dist::Zilla::Plugin::AutoPrereqs name: '@DROLSKY/AutoPrereqs' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::CopyFilesFromBuild name: '@DROLSKY/CopyFilesFromBuild' @@ -187,7 +187,7 @@ - class: Dist::Zilla::Plugin::MetaResources name: '@DROLSKY/MetaResources' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::MetaProvides::Package config: @@ -196,10 +196,10 @@ - class: Dist::Zilla::Plugin::FinderCode name: '@DROLSKY/MetaProvides::Package/AUTOVIV/:InstallModulesPM' - version: '6.009' + version: '6.010' include_underscores: 0 Dist::Zilla::Role::MetaProvider::Provider: - $Dist::Zilla::Role::MetaProvider::Provider::VERSION: '2.002003' + $Dist::Zilla::Role::MetaProvider::Provider::VERSION: '2.002004' inherit_missing: '1' inherit_version: '1' meta_noindex: '1' @@ -215,19 +215,19 @@ - class: Dist::Zilla::Plugin::MetaConfig name: '@DROLSKY/MetaConfig' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::MetaJSON name: '@DROLSKY/MetaJSON' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::MetaYAML name: '@DROLSKY/MetaYAML' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::NextRelease name: '@DROLSKY/NextRelease' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::Prereqs config: @@ -235,7 +235,7 @@ phase: test type: requires name: '@DROLSKY/Test::More with subtest' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::Prereqs config: @@ -243,7 +243,7 @@ phase: develop type: requires name: '@DROLSKY/Modules for use with tidyall' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::Prereqs config: @@ -251,7 +251,7 @@ phase: develop type: requires name: '@DROLSKY/Test::Version which fixes https://github.com/plicease/Test-Version/issues/7' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::PromptIfStale config: @@ -394,7 +394,7 @@ - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@DROLSKY/PodSyntaxTests' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::RunExtraTests config: @@ -476,7 +476,7 @@ class: Dist::Zilla::Plugin::Git::Contributors config: Dist::Zilla::Plugin::Git::Contributors: - git_version: 2.7.4 + git_version: 2.14.1 include_authors: 0 include_releaser: 1 order_by: name @@ -633,7 +633,7 @@ - class: Dist::Zilla::Plugin::CPANFile name: '@DROLSKY/CPANFile' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::PPPort name: '@DROLSKY/PPPort' @@ -665,7 +665,7 @@ class: Dist::Zilla::Plugin::DROLSKY::Git::CheckFor::CorrectBranch config: Dist::Zilla::Role::Git::Repo: - git_version: 2.7.4 + git_version: 2.14.1 repo_root: . name: '@DROLSKY/DROLSKY::Git::CheckFor::CorrectBranch' version: '0.85' @@ -677,7 +677,7 @@ class: Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts config: Dist::Zilla::Role::Git::Repo: - git_version: 2.7.4 + git_version: 2.14.1 repo_root: . name: '@DROLSKY/Git::CheckFor::MergeConflicts' version: '0.014' @@ -704,7 +704,7 @@ allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: - git_version: 2.7.4 + git_version: 2.14.1 repo_root: . name: '@DROLSKY/Git::Check' version: '2.042' @@ -728,7 +728,7 @@ allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: - git_version: 2.7.4 + git_version: 2.14.1 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local @@ -741,11 +741,11 @@ branch: ~ changelog: Changes signed: 0 - tag: v1.43 + tag: v1.44 tag_format: v%v tag_message: v%v Dist::Zilla::Role::Git::Repo: - git_version: 2.7.4 + git_version: 2.14.1 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local @@ -759,7 +759,7 @@ - origin remotes_must_exist: 1 Dist::Zilla::Role::Git::Repo: - git_version: 2.7.4 + git_version: 2.14.1 repo_root: . name: '@DROLSKY/Git::Push' version: '2.042' @@ -788,7 +788,7 @@ - (?^:.+) changelog: Changes Dist::Zilla::Role::Git::Repo: - git_version: 2.7.4 + git_version: 2.14.1 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local @@ -802,13 +802,21 @@ - origin remotes_must_exist: 1 Dist::Zilla::Role::Git::Repo: - git_version: 2.7.4 + git_version: 2.14.1 repo_root: . name: '@DROLSKY/Push version bump' version: '2.042' - - class: inc::LeapSecondsHeader - name: =inc::LeapSecondsHeader + class: Dist::Zilla::Plugin::lib + config: + Dist::Zilla::Plugin::lib: + lib: + - inc + name: lib + version: '0.001002' + - + class: LeapSecondsHeader + name: =LeapSecondsHeader version: ~ - class: Dist::Zilla::Plugin::CopyFilesFromBuild @@ -817,7 +825,7 @@ - class: Dist::Zilla::Plugin::MetaResources name: MetaResources - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::Prereqs config: @@ -825,7 +833,7 @@ phase: develop type: requires name: DevelopRequires - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::PurePerlTests name: PurePerlTests @@ -849,52 +857,52 @@ - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::FinderCode name: ':ExtraTestFiles' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::FinderCode name: ':PerlExecFiles' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::FinderCode name: ':AllFiles' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::FinderCode name: ':NoFiles' - version: '6.009' + version: '6.010' - class: Dist::Zilla::Plugin::FinderCode name: '@DROLSKY/MetaProvides::Package/AUTOVIV/:InstallModulesPM' - version: '6.009' + version: '6.010' zilla: class: Dist::Zilla::Dist::Builder config: is_trial: '0' - version: '6.009' + version: '6.010' x_authority: cpan:DROLSKY x_breaks: DateTime::Format::Mail: '<= 0.402' @@ -923,4 +931,4 @@ - 'Ron Hill <[email protected]>' - 'Sam Kington <[email protected]>' - 'viviparous <viviparous@prc>' -x_serialization_backend: 'YAML::Tiny version 1.69' +x_serialization_backend: 'YAML::Tiny version 1.70' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/Makefile.PL new/DateTime-1.44/Makefile.PL --- old/DateTime-1.43/Makefile.PL 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/Makefile.PL 2017-08-21 05:35:46.000000000 +0200 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.009. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.010. use strict; use warnings; @@ -54,7 +54,7 @@ "Test::Warnings" => "0.005", "utf8" => 0 }, - "VERSION" => "1.43", + "VERSION" => "1.44", "test" => { "TESTS" => "t/*.t" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/README.md new/DateTime-1.44/README.md --- old/DateTime-1.43/README.md 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/README.md 2017-08-21 05:35:46.000000000 +0200 @@ -4,7 +4,7 @@ # VERSION -version 1.43 +version 1.44 # SYNOPSIS @@ -648,11 +648,24 @@ `$dt->iso8601()` you cannot change the separator, as ISO8601 specifies that "T" must be used to separate them. +## $dt->stringify() + +This method returns a stringified version of the object. It is how +stringification overloading is limited. If the object has a formatter, then +it's `format_datetime()` method is used to produce a string. Otherwise, this +method calls `$dt->iso8601()` to produce a string. See ["Formatters And +Stringification"](#formatters-and-stringification) for details. + ### $dt->is\_leap\_year() -This method returns a true or false indicating whether or not the +This method returns a true or false value indicating whether or not the datetime object is in a leap year. +### $dt->is\_last\_day\_of\_month() + +This method returns a true or false value indicating whether or not the +datetime object is the last day of the month. + ### $dt->week() ($week_year, $week_number) = $dt->week; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/appveyor.yml new/DateTime-1.44/appveyor.yml --- old/DateTime-1.43/appveyor.yml 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/appveyor.yml 2017-08-21 05:35:46.000000000 +0200 @@ -12,5 +12,6 @@ test_script: - prove -lrv t/ ### __app_cisetup__ -# {} +# --- {} + ### __app_cisetup__ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/dist.ini new/DateTime-1.44/dist.ini --- old/DateTime-1.43/dist.ini 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/dist.ini 2017-08-21 05:35:46.000000000 +0200 @@ -44,7 +44,10 @@ -remove = Test::Pod::No404s -remove = Test::Synopsis -[=inc::LeapSecondsHeader] +[lib] +lib = inc + +[=LeapSecondsHeader] [CopyFilesFromBuild] copy = leap_seconds.h diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/inc/LeapSecondsHeader.pm new/DateTime-1.44/inc/LeapSecondsHeader.pm --- old/DateTime-1.43/inc/LeapSecondsHeader.pm 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/inc/LeapSecondsHeader.pm 2017-08-21 05:35:46.000000000 +0200 @@ -1,4 +1,4 @@ -package inc::LeapSecondsHeader; +package LeapSecondsHeader; use strict; use warnings; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/leap_seconds.h new/DateTime-1.44/leap_seconds.h --- old/DateTime-1.43/leap_seconds.h 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/leap_seconds.h 2017-08-21 05:35:46.000000000 +0200 @@ -4,7 +4,7 @@ code generator comes with the DateTime.pm module distribution in the tools/ directory -Generated inc::LeapSecondsHeader. +Generated LeapSecondsHeader. Do not edit this file directly. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/lib/DateTime/Duration.pm new/DateTime-1.44/lib/DateTime/Duration.pm --- old/DateTime-1.43/lib/DateTime/Duration.pm 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/lib/DateTime/Duration.pm 2017-08-21 05:35:46.000000000 +0200 @@ -4,7 +4,7 @@ use warnings; use namespace::autoclean; -our $VERSION = '1.43'; +our $VERSION = '1.44'; use Carp (); use DateTime; @@ -356,7 +356,7 @@ =head1 VERSION -version 1.43 +version 1.44 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/lib/DateTime/Helpers.pm new/DateTime-1.44/lib/DateTime/Helpers.pm --- old/DateTime-1.43/lib/DateTime/Helpers.pm 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/lib/DateTime/Helpers.pm 2017-08-21 05:35:46.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '1.43'; +our $VERSION = '1.44'; use Scalar::Util (); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/lib/DateTime/Infinite.pm new/DateTime-1.44/lib/DateTime/Infinite.pm --- old/DateTime-1.43/lib/DateTime/Infinite.pm 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/lib/DateTime/Infinite.pm 2017-08-21 05:35:46.000000000 +0200 @@ -5,7 +5,7 @@ use warnings; use namespace::autoclean; -our $VERSION = '1.43'; +our $VERSION = '1.44'; use DateTime; use DateTime::TimeZone; @@ -58,7 +58,7 @@ return $_[0]->_infinity_string; } -sub _stringify { +sub stringify { return $_[0]->_infinity_string; } @@ -212,7 +212,7 @@ =head1 VERSION -version 1.43 +version 1.44 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/lib/DateTime/LeapSecond.pm new/DateTime-1.44/lib/DateTime/LeapSecond.pm --- old/DateTime-1.43/lib/DateTime/LeapSecond.pm 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/lib/DateTime/LeapSecond.pm 2017-08-21 05:35:46.000000000 +0200 @@ -4,7 +4,7 @@ use warnings; use namespace::autoclean; -our $VERSION = '1.43'; +our $VERSION = '1.44'; our ( @RD, @LEAP_SECONDS, %RD_LENGTH ); @@ -134,7 +134,7 @@ =head1 VERSION -version 1.43 +version 1.44 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/lib/DateTime/PP.pm new/DateTime-1.44/lib/DateTime/PP.pm --- old/DateTime-1.43/lib/DateTime/PP.pm 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/lib/DateTime/PP.pm 2017-08-21 05:35:46.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '1.43'; +our $VERSION = '1.44'; ## no critic (Variables::ProhibitPackageVars) $DateTime::IsPurePerl = 1; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/lib/DateTime/PPExtra.pm new/DateTime-1.44/lib/DateTime/PPExtra.pm --- old/DateTime-1.43/lib/DateTime/PPExtra.pm 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/lib/DateTime/PPExtra.pm 2017-08-21 05:35:46.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '1.43'; +our $VERSION = '1.44'; use DateTime::LeapSecond; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/lib/DateTime/Types.pm new/DateTime-1.44/lib/DateTime/Types.pm --- old/DateTime-1.43/lib/DateTime/Types.pm 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/lib/DateTime/Types.pm 2017-08-21 05:35:46.000000000 +0200 @@ -4,7 +4,7 @@ use warnings; use namespace::autoclean; -our $VERSION = '1.43'; +our $VERSION = '1.44'; use parent 'Specio::Exporter'; @@ -170,7 +170,7 @@ =head1 VERSION -version 1.43 +version 1.44 =head1 DESCRIPTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/lib/DateTime.pm new/DateTime-1.44/lib/DateTime.pm --- old/DateTime-1.43/lib/DateTime.pm 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/lib/DateTime.pm 2017-08-21 05:35:46.000000000 +0200 @@ -8,7 +8,7 @@ use warnings::register; use namespace::autoclean 0.19; -our $VERSION = '1.43'; +our $VERSION = '1.44'; use Carp; use DateTime::Duration; @@ -65,7 +65,7 @@ fallback => 1, '<=>' => '_compare_overload', 'cmp' => '_string_compare_overload', - q{""} => '_stringify', + q{""} => 'stringify', bool => sub {1}, '-' => '_subtract_overload', '+' => '_add_overload', @@ -921,7 +921,7 @@ return $self->_accumulated_leap_seconds( $self->{utc_rd_days} ); } -sub _stringify { +sub stringify { my $self = shift; return $self->iso8601 unless $self->{formatter}; @@ -953,6 +953,10 @@ sub is_leap_year { $_[0]->_is_leap_year( $_[0]->year ) } +sub is_last_day_of_month { + $_[0]->day == $_[0]->_month_length( $_[0]->year, $_[0]->month ); +} + sub week { my $self = shift; @@ -2307,7 +2311,7 @@ =head1 VERSION -version 1.43 +version 1.44 =head1 SYNOPSIS @@ -2956,11 +2960,24 @@ C<< $dt->iso8601() >> you cannot change the separator, as ISO8601 specifies that "T" must be used to separate them. +=head2 $dt->stringify() + +This method returns a stringified version of the object. It is how +stringification overloading is limited. If the object has a formatter, then +it's C<format_datetime()> method is used to produce a string. Otherwise, this +method calls C<< $dt->iso8601() >> to produce a string. See L<Formatters And +Stringification> for details. + =head3 $dt->is_leap_year() -This method returns a true or false indicating whether or not the +This method returns a true or false value indicating whether or not the datetime object is in a leap year. +=head3 $dt->is_last_day_of_month() + +This method returns a true or false value indicating whether or not the +datetime object is the last day of the month. + =head3 $dt->week() ($week_year, $week_number) = $dt->week; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/t/03components.t new/DateTime-1.44/t/03components.t --- old/DateTime-1.43/t/03components.t 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/t/03components.t 2017-08-21 05:35:46.000000000 +0200 @@ -80,7 +80,8 @@ '->iso8601 ignores arguments' ); - is( $d->is_leap_year, 0, '->is_leap_year' ); + ok( !$d->is_leap_year, '->is_leap_year' ); + ok( !$d->is_last_day_of_month, '->is_last_day_of_month' ); is( $d->era_abbr, 'AD', '->era_abbr' ); is( $d->era, $d->era_abbr, '->era (deprecated)' ); @@ -89,6 +90,7 @@ is( $d->quarter_abbr, 'Q3', '->quarter_abbr' ); is( $d->quarter_name, '3rd quarter', '->quarter_name' ); } + { my $leap_d = DateTime->new( year => 2004, @@ -100,8 +102,27 @@ time_zone => 'UTC', ); - is( $leap_d->is_leap_year, 1, '->is_leap_year' ); + ok( $leap_d->is_leap_year, '->is_leap_year' ); +} + +{ + my @tests = ( + { year => 2017, month => 8, day => 19, expect => 0 }, + { year => 2017, month => 8, day => 31, expect => 1 }, + { year => 2017, month => 2, day => 28, expect => 1 }, + { year => 2016, month => 2, day => 28, expect => 0 }, + ); + + for my $t (@tests) { + my $expect = delete $t->{expect}; + + my $dt = DateTime->new($t); + + my $is = $dt->is_last_day_of_month; + ok( ( $expect ? $is : !$is ), '->is_last_day_of_month' ); + } } + { my $sunday = DateTime->new( year => 2003, @@ -112,6 +133,7 @@ is( $sunday->day_of_week, 7, 'Sunday is day 7' ); } + { my $monday = DateTime->new( year => 2003, @@ -122,8 +144,8 @@ is( $monday->day_of_week, 1, 'Monday is day 1' ); } -{ +{ # time zone offset should not affect the values returned my $d = DateTime->new( year => 2001, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/t/31formatter.t new/DateTime-1.44/t/31formatter.t --- old/DateTime-1.43/t/31formatter.t 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/t/31formatter.t 2017-08-21 05:35:46.000000000 +0200 @@ -75,31 +75,31 @@ 'check from_object copies formatter' ); - is( $dt->_stringify(), '20040902 13:23:34', 'Format datetime' ); + is( $dt->stringify(), '20040902 13:23:34', 'Format datetime' ); # check stringification (with formatter) - is( $dt->_stringify, "$dt", 'Stringification (with formatter)' ); + is( $dt->stringify, "$dt", 'Stringification (with formatter)' ); # check that set() and truncate() don't lose formatter $dt->set( hour => 3 ); is( - $dt->_stringify, '20040902 03:23:34', + $dt->stringify, '20040902 03:23:34', 'formatter is preserved after set()' ); $dt->truncate( to => 'minute' ); is( - $dt->_stringify, '20040902 03:23:00', + $dt->stringify, '20040902 03:23:00', 'formatter is preserved after truncate()' ); # check if the default behavior works $dt->set_formatter(undef); - is( $dt->_stringify(), $dt->iso8601, 'Default iso8601 works' ); + is( $dt->stringify(), $dt->iso8601, 'Default iso8601 works' ); # check stringification (default) is( - $dt->_stringify, "$dt", + $dt->stringify, "$dt", 'Stringification (no formatter -> format_datetime)' ); is( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/xt/author/pod-coverage.t new/DateTime-1.44/xt/author/pod-coverage.t --- old/DateTime-1.43/xt/author/pod-coverage.t 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/xt/author/pod-coverage.t 2017-08-21 05:35:46.000000000 +0200 @@ -26,6 +26,12 @@ plan tests => scalar @modules; my %trustme = ( + 'DateTime::Infinite' => [ + qr/^.+$/ + ], + 'DateTime::Duration' => [ + qr/^[A-Z_]+$/ + ], 'DateTime' => [ qr/^[A-Z_]+$/, qr/0$/, @@ -46,13 +52,7 @@ qr/^DefaultLanguage$/, qr/^era$/, qr/^language$/ - ], - 'DateTime::Duration' => [ - qr/^[A-Z_]+$/ - ], - 'DateTime::Infinite' => [ - qr/^.+$/ - ] + ] ); my @also_private; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/xt/author/pp-03components.t new/DateTime-1.44/xt/author/pp-03components.t --- old/DateTime-1.43/xt/author/pp-03components.t 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/xt/author/pp-03components.t 2017-08-21 05:35:46.000000000 +0200 @@ -84,7 +84,8 @@ '->iso8601 ignores arguments' ); - is( $d->is_leap_year, 0, '->is_leap_year' ); + ok( !$d->is_leap_year, '->is_leap_year' ); + ok( !$d->is_last_day_of_month, '->is_last_day_of_month' ); is( $d->era_abbr, 'AD', '->era_abbr' ); is( $d->era, $d->era_abbr, '->era (deprecated)' ); @@ -93,6 +94,7 @@ is( $d->quarter_abbr, 'Q3', '->quarter_abbr' ); is( $d->quarter_name, '3rd quarter', '->quarter_name' ); } + { my $leap_d = DateTime->new( year => 2004, @@ -104,8 +106,27 @@ time_zone => 'UTC', ); - is( $leap_d->is_leap_year, 1, '->is_leap_year' ); + ok( $leap_d->is_leap_year, '->is_leap_year' ); +} + +{ + my @tests = ( + { year => 2017, month => 8, day => 19, expect => 0 }, + { year => 2017, month => 8, day => 31, expect => 1 }, + { year => 2017, month => 2, day => 28, expect => 1 }, + { year => 2016, month => 2, day => 28, expect => 0 }, + ); + + for my $t (@tests) { + my $expect = delete $t->{expect}; + + my $dt = DateTime->new($t); + + my $is = $dt->is_last_day_of_month; + ok( ( $expect ? $is : !$is ), '->is_last_day_of_month' ); + } } + { my $sunday = DateTime->new( year => 2003, @@ -116,6 +137,7 @@ is( $sunday->day_of_week, 7, 'Sunday is day 7' ); } + { my $monday = DateTime->new( year => 2003, @@ -126,8 +148,8 @@ is( $monday->day_of_week, 1, 'Monday is day 1' ); } -{ +{ # time zone offset should not affect the values returned my $d = DateTime->new( year => 2001, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.43/xt/author/pp-31formatter.t new/DateTime-1.44/xt/author/pp-31formatter.t --- old/DateTime-1.43/xt/author/pp-31formatter.t 2017-05-29 21:39:47.000000000 +0200 +++ new/DateTime-1.44/xt/author/pp-31formatter.t 2017-08-21 05:35:46.000000000 +0200 @@ -79,31 +79,31 @@ 'check from_object copies formatter' ); - is( $dt->_stringify(), '20040902 13:23:34', 'Format datetime' ); + is( $dt->stringify(), '20040902 13:23:34', 'Format datetime' ); # check stringification (with formatter) - is( $dt->_stringify, "$dt", 'Stringification (with formatter)' ); + is( $dt->stringify, "$dt", 'Stringification (with formatter)' ); # check that set() and truncate() don't lose formatter $dt->set( hour => 3 ); is( - $dt->_stringify, '20040902 03:23:34', + $dt->stringify, '20040902 03:23:34', 'formatter is preserved after set()' ); $dt->truncate( to => 'minute' ); is( - $dt->_stringify, '20040902 03:23:00', + $dt->stringify, '20040902 03:23:00', 'formatter is preserved after truncate()' ); # check if the default behavior works $dt->set_formatter(undef); - is( $dt->_stringify(), $dt->iso8601, 'Default iso8601 works' ); + is( $dt->stringify(), $dt->iso8601, 'Default iso8601 works' ); # check stringification (default) is( - $dt->_stringify, "$dt", + $dt->stringify, "$dt", 'Stringification (no formatter -> format_datetime)' ); is(
