Skip Menu |

This queue is for tickets about the DateTime-Calendar-Pataphysical CPAN distribution.

Report information
The Basics
Id: 69846
Status: resolved
Priority: 0/
Queue: DateTime-Calendar-Pataphysical

People
Owner: Nobody in particular
Requestors: J2N-FORGET [...] orange.fr
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.04
Fixed in: 0.05



Subject: Warning about DateTime::Locale deprecated method
Warning about the "day_names" method, which is deprecated in the recent releases of DateTime::Locale. The attached patch fixes this warning.
Subject: dt-c-pataphysical.patch
diff -ru DateTime-Calendar-Pataphysical-0.04/Changes DateTime-Calendar-Pataphysical-0.05/Changes --- DateTime-Calendar-Pataphysical-0.04/Changes 2004-07-29 12:29:59.000000000 +0200 +++ DateTime-Calendar-Pataphysical-0.05/Changes 2011-07-27 21:00:44.033888714 +0200 @@ -1,5 +1,9 @@ Revision history for Perl extension DateTime::Calendar::Pataphysical. +0.05 2011-mm-jj xxx + - suppress the warning about the deprecated "day_names" method + in DateTime::Locale + 0.04 2004-07-29 the "Transfiguration of Saint V. van Gogh" release - added classification of holidays diff -ru DateTime-Calendar-Pataphysical-0.04/lib/DateTime/Calendar/Pataphysical.pm DateTime-Calendar-Pataphysical-0.05/lib/DateTime/Calendar/Pataphysical.pm --- DateTime-Calendar-Pataphysical-0.04/lib/DateTime/Calendar/Pataphysical.pm 2004-07-29 12:33:28.000000000 +0200 +++ DateTime-Calendar-Pataphysical-0.05/lib/DateTime/Calendar/Pataphysical.pm 2011-07-27 21:02:44.843874619 +0200 @@ -4,7 +4,7 @@ use vars qw($VERSION); -$VERSION = '0.04'; +$VERSION = '0.05'; use DateTime::Duration; use DateTime::Locale; @@ -161,11 +161,11 @@ if ($self->{day} == 29) { my $name = 'hunyadi'; - my $n = $self->{locale}->day_names->[0]; + my $n = $self->{locale}->day_format_wide->[0]; $name = ucfirst $name if $n eq ucfirst $n; return $name; } else { - return $self->{locale}->day_names->[($self->day_of_week_0 || 7)-1]; + return $self->{locale}->day_format_wide->[($self->day_of_week_0 || 7)-1]; } } diff -ru DateTime-Calendar-Pataphysical-0.04/META.yml DateTime-Calendar-Pataphysical-0.05/META.yml --- DateTime-Calendar-Pataphysical-0.04/META.yml 2004-07-29 12:39:43.000000000 +0200 +++ DateTime-Calendar-Pataphysical-0.05/META.yml 2011-07-27 20:59:33.023885414 +0200 @@ -1,7 +1,7 @@ # http://module-build.sourceforge.net/META-spec.html #XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX# name: DateTime-Calendar-Pataphysical -version: 0.04 +version: 0.05 version_from: lib/DateTime/Calendar/Pataphysical.pm installdirs: site requires:
Le Mer 27 Jui 2011 15:47:05, JFORGET a écrit : Show quoted text
> Warning about the "day_names" method, which is deprecated > in the recent releases of DateTime::Locale. > The attached patch fixes this warning.
Something is missing from the patch: in Makefile.PL the prereq for DateTime::Locale should give a version number.
On Wed Jul 27 15:47:05 2011, JFORGET wrote: Show quoted text
> Warning about the "day_names" method, which is deprecated > in the recent releases of DateTime::Locale. > The attached patch fixes this warning.
Thanks, applied as 32b2126794f9cca047f96abc29c6d54ff806c2d2 on https://github.com/book/DateTime-Calendar-Pataphysical/