Hello community, here is the log from the commit of package perl-DateTime for openSUSE:Factory checked in at 2016-08-09 22:15:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-DateTime (Old) and /work/SRC/openSUSE:Factory/.perl-DateTime.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-DateTime" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-DateTime/perl-DateTime.changes 2016-07-09 09:24:00.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-DateTime.new/perl-DateTime.changes 2016-08-09 22:15:19.000000000 +0200 @@ -1,0 +2,18 @@ +Sun Aug 7 05:23:00 UTC 2016 - [email protected] + +- updated to 1.36 + see /usr/share/doc/packages/perl-DateTime/Changes + + 1.36 2016-08-06 + + - Require namespace::autoclean 0.19. + + + 1.35 2016-08-05 + + - Use namespace::autoclean in all packages which import anything. Without + cleaning the namespace, DateTime ends up with "methods" like try and catch + (from Try::Tiny), which can lead to very confusing bugs. Reported by Mischa + Schwieger. RT #115983. + +------------------------------------------------------------------- Old: ---- DateTime-1.34.tar.gz New: ---- DateTime-1.36.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-DateTime.spec ++++++ --- /var/tmp/diff_new_pack.RyrPAc/_old 2016-08-09 22:15:20.000000000 +0200 +++ /var/tmp/diff_new_pack.RyrPAc/_new 2016-08-09 22:15:20.000000000 +0200 @@ -17,7 +17,7 @@ Name: perl-DateTime -Version: 1.34 +Version: 1.36 Release: 0 %define cpan_name DateTime Summary: Date and Time Object for Perl @@ -39,11 +39,13 @@ BuildRequires: perl(Test::More) >= 0.96 BuildRequires: perl(Test::Warnings) >= 0.005 BuildRequires: perl(Try::Tiny) +BuildRequires: perl(namespace::autoclean) >= 0.19 Requires: perl(DateTime::Locale) >= 1.050000 Requires: perl(DateTime::TimeZone) >= 2.00 Requires: perl(Dist::CheckConflicts) >= 0.02 Requires: perl(Params::Validate) >= 1.03 Requires: perl(Try::Tiny) +Requires: perl(namespace::autoclean) >= 0.19 %{perl_requires} %description ++++++ DateTime-1.34.tar.gz -> DateTime-1.36.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/Changes new/DateTime-1.36/Changes --- old/DateTime-1.34/Changes 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/Changes 2016-08-06 16:33:36.000000000 +0200 @@ -1,3 +1,16 @@ +1.36 2016-08-06 + +- Require namespace::autoclean 0.19. + + +1.35 2016-08-05 + +- Use namespace::autoclean in all packages which import anything. Without + cleaning the namespace, DateTime ends up with "methods" like try and catch + (from Try::Tiny), which can lead to very confusing bugs. Reported by Mischa + Schwieger. RT #115983. + + 1.34 2016-07-06 - Added the leap second coming on December 31, 2016. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/MANIFEST new/DateTime-1.36/MANIFEST --- old/DateTime-1.34/MANIFEST 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/MANIFEST 2016-08-06 16:33:36.000000000 +0200 @@ -76,6 +76,7 @@ t/45core-time.t t/46warnings.t t/47default-time-zone.t +t/48rt-115983.t t/zzz-check-breaks.t tidyall.ini xt/author/eol.t @@ -130,6 +131,7 @@ xt/author/pp-45core-time.t xt/author/pp-46warnings.t xt/author/pp-47default-time-zone.t +xt/author/pp-48rt-115983.t xt/author/pp-is-loaded.t xt/author/test-all-my-deps.t xt/author/test-version.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/META.json new/DateTime-1.36/META.json --- old/DateTime-1.34/META.json 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/META.json 2016-08-06 16:33:36.000000000 +0200 @@ -69,10 +69,10 @@ "base" : "0", "constant" : "0", "integer" : "0", + "namespace::autoclean" : "0.19", "overload" : "0", "perl" : "5.008001", "strict" : "0", - "vars" : "0", "warnings" : "0", "warnings::register" : "0" } @@ -97,39 +97,39 @@ "provides" : { "DateTime" : { "file" : "lib/DateTime.pm", - "version" : "1.34" + "version" : "1.36" }, "DateTime::Duration" : { "file" : "lib/DateTime/Duration.pm", - "version" : "1.34" + "version" : "1.36" }, "DateTime::Helpers" : { "file" : "lib/DateTime/Helpers.pm", - "version" : "1.34" + "version" : "1.36" }, "DateTime::Infinite" : { "file" : "lib/DateTime/Infinite.pm", - "version" : "1.34" + "version" : "1.36" }, "DateTime::Infinite::Future" : { "file" : "lib/DateTime/Infinite.pm", - "version" : "1.34" + "version" : "1.36" }, "DateTime::Infinite::Past" : { "file" : "lib/DateTime/Infinite.pm", - "version" : "1.34" + "version" : "1.36" }, "DateTime::LeapSecond" : { "file" : "lib/DateTime/LeapSecond.pm", - "version" : "1.34" + "version" : "1.36" }, "DateTime::PP" : { "file" : "lib/DateTime/PP.pm", - "version" : "1.34" + "version" : "1.36" }, "DateTime::PPExtra" : { "file" : "lib/DateTime/PPExtra.pm", - "version" : "1.34" + "version" : "1.36" } }, "release_status" : "stable", @@ -146,7 +146,7 @@ }, "x_MailingList" : "[email protected]" }, - "version" : "1.34", + "version" : "1.36", "x_Dist_Zilla" : { "perl" : { "version" : "5.024000" @@ -290,17 +290,22 @@ "name" : "@DROLSKY/MetaProvides::Package/AUTOVIV/:InstallModulesPM", "version" : "6.006" } - ] + ], + "include_underscores" : 0 }, "Dist::Zilla::Role::MetaProvider::Provider" : { "Dist::Zilla::Role::MetaProvider::Provider::VERSION" : "2.001011", "inherit_missing" : "1", "inherit_version" : "1", "meta_noindex" : "1" + }, + "Dist::Zilla::Role::ModuleMetadata" : { + "Module::Metadata" : "1.000031", + "version" : "0.003" } }, "name" : "@DROLSKY/MetaProvides::Package", - "version" : "2.003002" + "version" : "2.004002" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", @@ -546,15 +551,15 @@ "Dist::Zilla::Plugin::Test::EOL" : { "filename" : "xt/author/eol.t", "finder" : [ - ":InstallModules", ":ExecFiles", + ":InstallModules", ":TestFiles" ], - "trailing_whitespace" : "1" + "trailing_whitespace" : 1 } }, "name" : "@DROLSKY/Test::EOL", - "version" : "0.18" + "version" : "0.19" }, { "class" : "Dist::Zilla::Plugin::Test::NoTabs", @@ -908,7 +913,7 @@ "branch" : null, "changelog" : "Changes", "signed" : 0, - "tag" : "v1.34", + "tag" : "v1.36", "tag_format" : "v%v", "tag_message" : "v%v" }, @@ -1129,6 +1134,7 @@ "Karen Etheridge <[email protected]>", "Michael Conrad <[email protected]>", "Nick Tonkin <[email protected]>", + "Olaf Alders <[email protected]>", "Ovid <[email protected]>", "Ricardo Signes <[email protected]>", "Richard Bowen <[email protected]>", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/META.yml new/DateTime-1.36/META.yml --- old/DateTime-1.34/META.yml 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/META.yml 2016-08-06 16:33:36.000000000 +0200 @@ -25,31 +25,31 @@ provides: DateTime: file: lib/DateTime.pm - version: '1.34' + version: '1.36' DateTime::Duration: file: lib/DateTime/Duration.pm - version: '1.34' + version: '1.36' DateTime::Helpers: file: lib/DateTime/Helpers.pm - version: '1.34' + version: '1.36' DateTime::Infinite: file: lib/DateTime/Infinite.pm - version: '1.34' + version: '1.36' DateTime::Infinite::Future: file: lib/DateTime/Infinite.pm - version: '1.34' + version: '1.36' DateTime::Infinite::Past: file: lib/DateTime/Infinite.pm - version: '1.34' + version: '1.36' DateTime::LeapSecond: file: lib/DateTime/LeapSecond.pm - version: '1.34' + version: '1.36' DateTime::PP: file: lib/DateTime/PP.pm - version: '1.34' + version: '1.36' DateTime::PPExtra: file: lib/DateTime/PPExtra.pm - version: '1.34' + version: '1.36' requires: Carp: '0' DateTime::Locale: '1.05' @@ -63,10 +63,10 @@ base: '0' constant: '0' integer: '0' + namespace::autoclean: '0.19' overload: '0' perl: '5.008001' strict: '0' - vars: '0' warnings: '0' warnings::register: '0' resources: @@ -74,7 +74,7 @@ bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=DateTime homepage: http://metacpan.org/release/DateTime repository: git://github.com/houseabsolute/DateTime.pm.git -version: '1.34' +version: '1.36' x_Dist_Zilla: perl: version: '5.024000' @@ -189,13 +189,17 @@ class: Dist::Zilla::Plugin::FinderCode name: '@DROLSKY/MetaProvides::Package/AUTOVIV/:InstallModulesPM' version: '6.006' + include_underscores: 0 Dist::Zilla::Role::MetaProvider::Provider: Dist::Zilla::Role::MetaProvider::Provider::VERSION: '2.001011' inherit_missing: '1' inherit_version: '1' meta_noindex: '1' + Dist::Zilla::Role::ModuleMetadata: + Module::Metadata: '1.000031' + version: '0.003' name: '@DROLSKY/MetaProvides::Package' - version: '2.003002' + version: '2.004002' - class: Dist::Zilla::Plugin::MetaYAML name: '@DROLSKY/MetaYAML' @@ -406,12 +410,12 @@ Dist::Zilla::Plugin::Test::EOL: filename: xt/author/eol.t finder: - - ':InstallModules' - ':ExecFiles' + - ':InstallModules' - ':TestFiles' - trailing_whitespace: '1' + trailing_whitespace: 1 name: '@DROLSKY/Test::EOL' - version: '0.18' + version: '0.19' - class: Dist::Zilla::Plugin::Test::NoTabs config: @@ -687,7 +691,7 @@ branch: ~ changelog: Changes signed: 0 - tag: v1.34 + tag: v1.36 tag_format: v%v tag_message: v%v Dist::Zilla::Role::Git::Repo: @@ -853,6 +857,7 @@ - 'Karen Etheridge <[email protected]>' - 'Michael Conrad <[email protected]>' - 'Nick Tonkin <[email protected]>' + - 'Olaf Alders <[email protected]>' - 'Ovid <[email protected]>' - 'Ricardo Signes <[email protected]>' - 'Richard Bowen <[email protected]>' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/Makefile.PL new/DateTime-1.36/Makefile.PL --- old/DateTime-1.34/Makefile.PL 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/Makefile.PL 2016-08-06 16:33:36.000000000 +0200 @@ -31,9 +31,9 @@ "base" => 0, "constant" => 0, "integer" => 0, + "namespace::autoclean" => "0.19", "overload" => 0, "strict" => 0, - "vars" => 0, "warnings" => 0, "warnings::register" => 0 }, @@ -48,7 +48,7 @@ "Test::Warnings" => "0.005", "utf8" => 0 }, - "VERSION" => "1.34", + "VERSION" => "1.36", "test" => { "TESTS" => "t/*.t" } @@ -76,10 +76,10 @@ "base" => 0, "constant" => 0, "integer" => 0, + "namespace::autoclean" => "0.19", "overload" => 0, "strict" => 0, "utf8" => 0, - "vars" => 0, "warnings" => 0, "warnings::register" => 0 ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/README.md new/DateTime-1.36/README.md --- old/DateTime-1.34/README.md 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/README.md 2016-08-06 16:33:36.000000000 +0200 @@ -4,7 +4,7 @@ # VERSION -version 1.34 +version 1.36 # SYNOPSIS @@ -2203,6 +2203,7 @@ - Karen Etheridge <[email protected]> - Michael Conrad <[email protected]> - Nick Tonkin <[email protected]> +- Olaf Alders <[email protected]> - Ovid <curtis\_ovid\[email protected]> - Ricardo Signes <[email protected]> - Richard Bowen <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/cpanfile new/DateTime-1.36/cpanfile --- old/DateTime-1.34/cpanfile 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/cpanfile 2016-08-06 16:33:36.000000000 +0200 @@ -10,10 +10,10 @@ requires "base" => "0"; requires "constant" => "0"; requires "integer" => "0"; +requires "namespace::autoclean" => "0.19"; requires "overload" => "0"; requires "perl" => "5.008001"; requires "strict" => "0"; -requires "vars" => "0"; requires "warnings" => "0"; requires "warnings::register" => "0"; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/dist.ini new/DateTime-1.36/dist.ini --- old/DateTime-1.34/dist.ini 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/dist.ini 2016-08-06 16:33:36.000000000 +0200 @@ -13,6 +13,7 @@ pod_coverage_skip = DateTime::Helpers pod_coverage_skip = DateTime::PP pod_coverage_skip = DateTime::PPExtra +pod_coverage_trustme = DateTime => qr/^[A-Z_]+$/ pod_coverage_trustme = DateTime => qr/0$/ pod_coverage_trustme = DateTime => qr/^STORABLE/ pod_coverage_trustme = DateTime => qr/^utc_year$/ @@ -28,6 +29,7 @@ pod_coverage_trustme = DateTime => qr/^mon$/ pod_coverage_trustme = DateTime => qr/^sec$/ pod_coverage_trustme = DateTime => qr/^wday$/ +pod_coverage_trustme = DateTime::Duration => qr/^[A-Z_]+$/ pod_coverage_trustme = DateTime::Infinite => qr/^.+$/ ; deprecated methods pod_coverage_trustme = DateTime => qr/^DefaultLanguage$/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/lib/DateTime/Conflicts.pm new/DateTime-1.36/lib/DateTime/Conflicts.pm --- old/DateTime-1.34/lib/DateTime/Conflicts.pm 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/lib/DateTime/Conflicts.pm 2016-08-06 16:33:36.000000000 +0200 @@ -24,9 +24,9 @@ base constant integer + namespace::autoclean overload strict - vars warnings warnings::register ) ], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/lib/DateTime/Duration.pm new/DateTime-1.36/lib/DateTime/Duration.pm --- old/DateTime-1.34/lib/DateTime/Duration.pm 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/lib/DateTime/Duration.pm 2016-08-06 16:33:36.000000000 +0200 @@ -2,8 +2,9 @@ use strict; use warnings; +use namespace::autoclean; -our $VERSION = '1.34'; +our $VERSION = '1.36'; use Carp (); use DateTime; @@ -321,7 +322,7 @@ =head1 VERSION -version 1.34 +version 1.36 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/lib/DateTime/Helpers.pm new/DateTime-1.36/lib/DateTime/Helpers.pm --- old/DateTime-1.34/lib/DateTime/Helpers.pm 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/lib/DateTime/Helpers.pm 2016-08-06 16:33:36.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '1.34'; +our $VERSION = '1.36'; use Scalar::Util (); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/lib/DateTime/Infinite.pm new/DateTime-1.36/lib/DateTime/Infinite.pm --- old/DateTime-1.34/lib/DateTime/Infinite.pm 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/lib/DateTime/Infinite.pm 2016-08-06 16:33:36.000000000 +0200 @@ -2,8 +2,9 @@ use strict; use warnings; +use namespace::autoclean; -our $VERSION = '1.34'; +our $VERSION = '1.36'; use DateTime; use DateTime::TimeZone; @@ -206,7 +207,7 @@ =head1 VERSION -version 1.34 +version 1.36 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/lib/DateTime/LeapSecond.pm new/DateTime-1.36/lib/DateTime/LeapSecond.pm --- old/DateTime-1.34/lib/DateTime/LeapSecond.pm 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/lib/DateTime/LeapSecond.pm 2016-08-06 16:33:36.000000000 +0200 @@ -2,10 +2,11 @@ use strict; use warnings; +use namespace::autoclean; -our $VERSION = '1.34'; +our $VERSION = '1.36'; -use vars qw( @RD @LEAP_SECONDS %RD_LENGTH ); +our ( @RD, @LEAP_SECONDS, %RD_LENGTH ); use DateTime; @@ -132,7 +133,7 @@ =head1 VERSION -version 1.34 +version 1.36 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/lib/DateTime/PP.pm new/DateTime-1.36/lib/DateTime/PP.pm --- old/DateTime-1.34/lib/DateTime/PP.pm 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/lib/DateTime/PP.pm 2016-08-06 16:33:36.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '1.34'; +our $VERSION = '1.36'; $DateTime::IsPurePerl = 1; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/lib/DateTime/PPExtra.pm new/DateTime-1.36/lib/DateTime/PPExtra.pm --- old/DateTime-1.34/lib/DateTime/PPExtra.pm 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/lib/DateTime/PPExtra.pm 2016-08-06 16:33:36.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '1.34'; +our $VERSION = '1.36'; use DateTime::LeapSecond; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/lib/DateTime.pm new/DateTime-1.36/lib/DateTime.pm --- old/DateTime-1.34/lib/DateTime.pm 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/lib/DateTime.pm 2016-08-06 16:33:36.000000000 +0200 @@ -5,8 +5,9 @@ use strict; use warnings; use warnings::register; +use namespace::autoclean 0.19; -our $VERSION = '1.34'; +our $VERSION = '1.36'; use Carp; use DateTime::Duration; @@ -1946,7 +1947,7 @@ if ( $p{locale} ) { carp 'You passed a locale to the set() method.' - . ' You should use set_locale() instead, as using set() may alter the local time near a DST bounday.'; + . ' You should use set_locale() instead, as using set() may alter the local time near a DST boundary.'; } my $new_dt = $self->_new_from_self(%p); @@ -2193,7 +2194,7 @@ =head1 VERSION -version 1.34 +version 1.36 =head1 SYNOPSIS @@ -4411,7 +4412,7 @@ =head1 CONTRIBUTORS -=for stopwords Ben Bennett Christian Hansen Daisuke Maki David E. Wheeler Doug Bell Flávio Soibelmann Glock Gregory Oschwald Iain Truskett Jason McIntosh Joshua Hoblitt Karen Etheridge Michael Conrad Nick Tonkin Ovid Ricardo Signes Richard Bowen Ron Hill viviparous +=for stopwords Ben Bennett Christian Hansen Daisuke Maki David E. Wheeler Doug Bell Flávio Soibelmann Glock Gregory Oschwald Iain Truskett Jason McIntosh Joshua Hoblitt Karen Etheridge Michael Conrad Nick Tonkin Olaf Alders Ovid Ricardo Signes Richard Bowen Ron Hill viviparous =over 4 @@ -4469,6 +4470,10 @@ =item * +Olaf Alders <[email protected]> + +=item * + Ovid <[email protected]> =item * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/t/00-report-prereqs.dd new/DateTime-1.36/t/00-report-prereqs.dd --- old/DateTime-1.34/t/00-report-prereqs.dd 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/t/00-report-prereqs.dd 2016-08-06 16:33:36.000000000 +0200 @@ -54,10 +54,10 @@ 'base' => '0', 'constant' => '0', 'integer' => '0', + 'namespace::autoclean' => '0.19', 'overload' => '0', 'perl' => '5.008001', 'strict' => '0', - 'vars' => '0', 'warnings' => '0', 'warnings::register' => '0' } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/t/48rt-115983.t new/DateTime-1.36/t/48rt-115983.t --- old/DateTime-1.34/t/48rt-115983.t 1970-01-01 01:00:00.000000000 +0100 +++ new/DateTime-1.36/t/48rt-115983.t 2016-08-06 16:33:36.000000000 +0200 @@ -0,0 +1,25 @@ +use strict; +use warnings; + +use Test::Fatal; +use Test::More; + +use DateTime; + +# The bug here is that if DateTime doesn't clean it's namespace, it ends up +# having a catch method that is getting called here and being passed a hashref +# containing the return value of $dt->truncate. See +# https://rt.cpan.org/Ticket/Display.html?id=115983 + +my $dt = DateTime->now; +like( + exception { + try {} catch { + $dt->truncate( to => 'hour' ); + }; + }, + qr/Can\'t locate object method "catch"/, + 'DateTime does not have a catch method' +); + +done_testing(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/xt/author/eol.t new/DateTime-1.36/xt/author/eol.t --- old/DateTime-1.34/xt/author/eol.t 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/xt/author/eol.t 2016-08-06 16:33:36.000000000 +0200 @@ -1,7 +1,7 @@ use strict; use warnings; -# this test was generated with Dist::Zilla::Plugin::Test::EOL 0.18 +# this test was generated with Dist::Zilla::Plugin::Test::EOL 0.19 use Test::More 0.88; use Test::EOL; @@ -64,6 +64,7 @@ 't/45core-time.t', 't/46warnings.t', 't/47default-time-zone.t', + 't/48rt-115983.t', 't/zzz-check-breaks.t' ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/xt/author/no-tabs.t new/DateTime-1.36/xt/author/no-tabs.t --- old/DateTime-1.34/xt/author/no-tabs.t 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/xt/author/no-tabs.t 2016-08-06 16:33:36.000000000 +0200 @@ -64,6 +64,7 @@ 't/45core-time.t', 't/46warnings.t', 't/47default-time-zone.t', + 't/48rt-115983.t', 't/zzz-check-breaks.t' ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/xt/author/pod-coverage.t new/DateTime-1.36/xt/author/pod-coverage.t --- old/DateTime-1.34/xt/author/pod-coverage.t 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/xt/author/pod-coverage.t 2016-08-06 16:33:36.000000000 +0200 @@ -29,7 +29,11 @@ 'DateTime::Infinite' => [ qr/^.+$/ ], + 'DateTime::Duration' => [ + qr/^[A-Z_]+$/ + ], 'DateTime' => [ + qr/^[A-Z_]+$/, qr/0$/, qr/^STORABLE/, qr/^utc_year$/, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/xt/author/pod-spell.t new/DateTime-1.36/xt/author/pod-spell.t --- old/DateTime-1.34/xt/author/pod-spell.t 2016-07-06 15:52:05.000000000 +0200 +++ new/DateTime-1.36/xt/author/pod-spell.t 2016-08-06 16:33:36.000000000 +0200 @@ -138,6 +138,9 @@ Nick Tonkin 1nickt +Olaf +Alders +olaf Ovid curtis_ovid_poe Ricardo diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-1.34/xt/author/pp-48rt-115983.t new/DateTime-1.36/xt/author/pp-48rt-115983.t --- old/DateTime-1.34/xt/author/pp-48rt-115983.t 1970-01-01 01:00:00.000000000 +0100 +++ new/DateTime-1.36/xt/author/pp-48rt-115983.t 2016-08-06 16:33:36.000000000 +0200 @@ -0,0 +1,30 @@ +BEGIN { + $ENV{PERL_DATETIME_PP} = 1; +} + +use strict; +use warnings; + +use Test::Fatal; +use Test::More; + +use DateTime; + +# The bug here is that if DateTime doesn't clean it's namespace, it ends up +# having a catch method that is getting called here and being passed a hashref +# containing the return value of $dt->truncate. See +# https://rt.cpan.org/Ticket/Display.html?id=115983 + +my $dt = DateTime->now; +like( + exception { + try {} catch { + $dt->truncate( to => 'hour' ); + }; + }, + qr/Can\'t locate object method "catch"/, + 'DateTime does not have a catch method' +); + +done_testing(); +
