r54659 - in /branches/upstream/librose-datetime-perl/current: Changes META.yml lib/Rose/DateTime.pm lib/Rose/DateTime/Parser.pm lib/Rose/DateTime/Util.pm

eloy at users.alioth.debian.org eloy at users.alioth.debian.org
Tue Mar 23 10:44:32 UTC 2010


Author: eloy
Date: Tue Mar 23 10:44:16 2010
New Revision: 54659

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=54659
Log:
[svn-upgrade] Integrating new upstream version, librose-datetime-perl (0.534)

Modified:
    branches/upstream/librose-datetime-perl/current/Changes
    branches/upstream/librose-datetime-perl/current/META.yml
    branches/upstream/librose-datetime-perl/current/lib/Rose/DateTime.pm
    branches/upstream/librose-datetime-perl/current/lib/Rose/DateTime/Parser.pm
    branches/upstream/librose-datetime-perl/current/lib/Rose/DateTime/Util.pm

Modified: branches/upstream/librose-datetime-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/librose-datetime-perl/current/Changes?rev=54659&op=diff
==============================================================================
--- branches/upstream/librose-datetime-perl/current/Changes (original)
+++ branches/upstream/librose-datetime-perl/current/Changes Tue Mar 23 10:44:16 2010
@@ -1,3 +1,8 @@
+0.534 (03.22.2010) - John Siracusa <siracusa at gmail.com>
+
+    * Updated to avoid calling methods that were deprecated in
+      DateTime::Locale version 0.44 and later.
+
 0.533 (10.16.2009) - John Siracusa <siracusa at gmail.com>
 
     * Updated eval blocks to avoid stomping on $@ from an outer scope.

Modified: branches/upstream/librose-datetime-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/librose-datetime-perl/current/META.yml?rev=54659&op=diff
==============================================================================
--- branches/upstream/librose-datetime-perl/current/META.yml (original)
+++ branches/upstream/librose-datetime-perl/current/META.yml Tue Mar 23 10:44:16 2010
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:               Rose-DateTime
-version:            0.533
+version:            0.534
 abstract:           ~
 author:  []
 license:            unknown
@@ -16,7 +16,7 @@
     directory:
         - t
         - inc
-generated_by:       ExtUtils::MakeMaker version 6.54
+generated_by:       ExtUtils::MakeMaker version 6.56
 meta-spec:
     url:      http://module-build.sourceforge.net/META-spec-v1.4.html
     version:  1.4

Modified: branches/upstream/librose-datetime-perl/current/lib/Rose/DateTime.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/librose-datetime-perl/current/lib/Rose/DateTime.pm?rev=54659&op=diff
==============================================================================
--- branches/upstream/librose-datetime-perl/current/lib/Rose/DateTime.pm (original)
+++ branches/upstream/librose-datetime-perl/current/lib/Rose/DateTime.pm Tue Mar 23 10:44:16 2010
@@ -2,7 +2,7 @@
 
 use strict; # ha
 
-our $VERSION = '0.533';
+our $VERSION = '0.534';
 
 1;
 
@@ -49,4 +49,4 @@
 
 =head1 LICENSE
 
-Copyright (c) 2004-2006 by John C. Siracusa.  All rights reserved.  This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
+Copyright (c) 2010 by John C. Siracusa.  All rights reserved.  This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Modified: branches/upstream/librose-datetime-perl/current/lib/Rose/DateTime/Parser.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/librose-datetime-perl/current/lib/Rose/DateTime/Parser.pm?rev=54659&op=diff
==============================================================================
--- branches/upstream/librose-datetime-perl/current/lib/Rose/DateTime/Parser.pm (original)
+++ branches/upstream/librose-datetime-perl/current/lib/Rose/DateTime/Parser.pm Tue Mar 23 10:44:16 2010
@@ -147,4 +147,4 @@
 
 =head1 LICENSE
 
-Copyright (c) 2004-2006 by John C. Siracusa.  All rights reserved.  This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
+Copyright (c) 2010 by John C. Siracusa.  All rights reserved.  This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Modified: branches/upstream/librose-datetime-perl/current/lib/Rose/DateTime/Util.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/librose-datetime-perl/current/lib/Rose/DateTime/Util.pm?rev=54659&op=diff
==============================================================================
--- branches/upstream/librose-datetime-perl/current/lib/Rose/DateTime/Util.pm (original)
+++ branches/upstream/librose-datetime-perl/current/lib/Rose/DateTime/Util.pm Tue Mar 23 10:44:16 2010
@@ -18,7 +18,7 @@
   all => \@EXPORT_OK
 );
 
-our $VERSION = '0.533';
+our $VERSION = '0.534';
 
 our $TZ = 'floating';
 our $Debug = 0;
@@ -57,7 +57,14 @@
 
   my $locale_class = DateTime::Locale->load(DateTime->DefaultLocale);
 
-  if($locale_class->date_parts_order eq 'dmy')
+  my $short = $locale_class->date_format_short;
+  
+  $short =~ tr{dmyDMY}{}cd;
+  $short =~ tr{dmyDMY}{dmydmy}s;
+
+  # date_parts_order() is deprecated in DateTime::Locale 0.44+
+  #if($locale_class->date_parts_order eq 'dmy')
+  if($short eq 'dmy')
   {
     return 1;
   }
@@ -808,4 +815,4 @@
 
 =head1 LICENSE
 
-Copyright (c) 2004-2006 by John C. Siracusa.  All rights reserved.  This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
+Copyright (c) 2010 by John C. Siracusa.  All rights reserved.  This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.




More information about the Pkg-perl-cvs-commits mailing list