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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1311796025-12437-141"
Content-Length: 0
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 141
Download (untitled) / with headers
text/plain 141b
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
MIME-Version: 1.0
Content-Type: text/x-patch; name="dt-c-pataphysical.patch"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline; filename="dt-c-pataphysical.patch"
Content-Transfer-Encoding: binary
Content-Length: 2139
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:
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-12441-1311885510-275.69846-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 312
Download (untitled) / with headers
text/plain 312b
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.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-29294-1399069153-1438.69846-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 310
Download (untitled) / with headers
text/plain 310b
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/


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.