r74352 - in /branches/upstream/libdatetime-perl/current: ./ lib/ lib/DateTime/ t/

periapt-guest at users.alioth.debian.org periapt-guest at users.alioth.debian.org
Fri May 13 22:23:04 UTC 2011


Author: periapt-guest
Date: Fri May 13 22:22:56 2011
New Revision: 74352

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=74352
Log:
[svn-upgrade] new version libdatetime-perl (0.7000)

Modified:
    branches/upstream/libdatetime-perl/current/Build.PL
    branches/upstream/libdatetime-perl/current/Changes
    branches/upstream/libdatetime-perl/current/META.json
    branches/upstream/libdatetime-perl/current/META.yml
    branches/upstream/libdatetime-perl/current/README
    branches/upstream/libdatetime-perl/current/SIGNATURE
    branches/upstream/libdatetime-perl/current/dist.ini
    branches/upstream/libdatetime-perl/current/lib/DateTime.pm
    branches/upstream/libdatetime-perl/current/lib/DateTime/Duration.pm
    branches/upstream/libdatetime-perl/current/lib/DateTime/Helpers.pm
    branches/upstream/libdatetime-perl/current/lib/DateTime/Infinite.pm
    branches/upstream/libdatetime-perl/current/lib/DateTime/LeapSecond.pm
    branches/upstream/libdatetime-perl/current/lib/DateTimePP.pm
    branches/upstream/libdatetime-perl/current/lib/DateTimePPExtra.pm
    branches/upstream/libdatetime-perl/current/t/13strftime.t
    branches/upstream/libdatetime-perl/current/t/release-pp-13strftime.t

Modified: branches/upstream/libdatetime-perl/current/Build.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/Build.PL?rev=74352&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/Build.PL (original)
+++ branches/upstream/libdatetime-perl/current/Build.PL Fri May 13 22:22:56 2011
@@ -7,9 +7,7 @@
 
 my %module_build_args = (
   'build_requires' => {
-    'ExtUtils::CBuilder' => '0',
     'Module::Build' => '0.3601',
-    'Pod::Man' => '1.14',
     'Test::Exception' => '0',
     'Test::More' => '0.88'
   },
@@ -22,7 +20,7 @@
     'Dave Rolsky <autarch at urth.org>'
   ],
   'dist_name' => 'DateTime',
-  'dist_version' => '0.69',
+  'dist_version' => '0.70',
   'license' => 'artistic_2',
   'module_name' => 'DateTime',
   'recommends' => {},

Modified: branches/upstream/libdatetime-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/Changes?rev=74352&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/Changes (original)
+++ branches/upstream/libdatetime-perl/current/Changes Fri May 13 22:22:56 2011
@@ -1,3 +1,9 @@
+0.70   2011-05-09
+
+- Really fix %N, finally. This was breaking the DateTime::Event::Recurrence
+  test suite. Patch by Dagfinn Ilmari Mannsåker.
+
+
 0.69   2011-05-03
 
 - When a DateTime object had nanoseconds == 0, the %N strftime specifier

Modified: branches/upstream/libdatetime-perl/current/META.json
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/META.json?rev=74352&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/META.json (original)
+++ branches/upstream/libdatetime-perl/current/META.json Fri May 13 22:22:56 2011
@@ -16,11 +16,7 @@
    "prereqs" : {
       "build" : {
          "requires" : {
-            "ExtUtils::CBuilder" : 0,
-            "Module::Build" : "0.3601",
-            "Pod::Man" : "1.14",
-            "Test::Exception" : 0,
-            "Test::More" : "0.88"
+            "Module::Build" : "0.3601"
          }
       },
       "configure" : {
@@ -38,6 +34,12 @@
             "Time::Local" : "1.04",
             "perl" : "v5.8.1"
          }
+      },
+      "test" : {
+         "requires" : {
+            "Test::Exception" : 0,
+            "Test::More" : "0.88"
+         }
       }
    },
    "release_status" : "stable",
@@ -52,6 +54,6 @@
          "web" : "http://hg.urth.org/hg/DateTime.pm"
       }
    },
-   "version" : "0.69"
+   "version" : "0.70"
 }
 

Modified: branches/upstream/libdatetime-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/META.yml?rev=74352&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/META.yml (original)
+++ branches/upstream/libdatetime-perl/current/META.yml Fri May 13 22:22:56 2011
@@ -3,9 +3,7 @@
 author:
   - 'Dave Rolsky <autarch at urth.org>'
 build_requires:
-  ExtUtils::CBuilder: 0
   Module::Build: 0.3601
-  Pod::Man: 1.14
   Test::Exception: 0
   Test::More: 0.88
 configure_requires:
@@ -28,4 +26,4 @@
 resources:
   bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=DateTime
   repository: http://hg.urth.org/hg/DateTime.pm
-version: 0.69
+version: 0.70

Modified: branches/upstream/libdatetime-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/README?rev=74352&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/README (original)
+++ branches/upstream/libdatetime-perl/current/README Fri May 13 22:22:56 2011
@@ -1,7 +1,7 @@
 
 
 This archive contains the distribution DateTime,
-version 0.69:
+version 0.70:
 
   A date and time object
 

Modified: branches/upstream/libdatetime-perl/current/SIGNATURE
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/SIGNATURE?rev=74352&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/SIGNATURE (original)
+++ branches/upstream/libdatetime-perl/current/SIGNATURE Fri May 13 22:22:56 2011
@@ -14,29 +14,29 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-SHA1 3de2505fcdb67ce87c9aba585fd0d687aca24919 Build.PL
+SHA1 0a3451fc994019d19536fdba17727410b2eeb24d Build.PL
 SHA1 c951898b770a16da2897d908ab6f9f72057bd570 CREDITS
-SHA1 ccda75458a2d4b92cbf1f5a18ece4c71ee540b3f Changes
+SHA1 0e36d3a4398fa8e89f78925b93f5d13e1f922d92 Changes
 SHA1 c5f2b8434452ecd4c943c59ae2a95abb9d75332d INSTALL
 SHA1 c715d20265d2931c7564fc64abfdc4f8ff33e297 LICENSE
 SHA1 7b4605ca7b50ec52d5a3876ecdf3a932bf6ad709 MANIFEST
-SHA1 70d8a731e6d3b23b15729a573a9ece3c56c4077d META.json
-SHA1 692c9e0b8c636262c56bab7c681ecc1cf228a744 META.yml
-SHA1 600a257c6373abba1e1ddbd6fbf20deff06cd071 README
+SHA1 f82f10f2b49abb5000901de762bd10f51e8aa547 META.json
+SHA1 c53869fa33abbf3be84ad0ce1d5f562e10dba47d META.yml
+SHA1 c0c3277fa94a0dc9dffa0cc30c76fddaf5e01ff4 README
 SHA1 bfc70fbe8fa29484452bea8c2ed4afd55218f2c2 TODO
 SHA1 b67b906c9fbaab9ccac635d623cb4e6064feb8f0 c/leap_seconds.h
 SHA1 4cd12d2a050ab038e519bd1391f77855ba4b24ac c/ppport.h
-SHA1 5f6474faad44c3330746746250a6e9a99092e216 dist.ini
+SHA1 af7cce335b58fd58894c3456a10ccee554f991ff dist.ini
 SHA1 2d1f339f1a2ceb22c2657d7c21983f69bc7456e3 inc/MyModuleBuild.pm
 SHA1 ad083d04f765963b707dab9d566bf17e92fa51e9 leaptab.txt
-SHA1 27bfaa62dc8ddfaa5922122fb7290a653294f268 lib/DateTime.pm
+SHA1 6f23637bfd5585155ca30f965d6c171a868d614b lib/DateTime.pm
 SHA1 d2c3464984dc7567d8ef825a80fc4d5ed3602d0a lib/DateTime.xs
-SHA1 ae7f4b970ff8ed1782538a682f398e68aae052f6 lib/DateTime/Duration.pm
-SHA1 f2373aff745c007e222ba26c2605ccf7f0d02771 lib/DateTime/Helpers.pm
-SHA1 0c7e99965db72bdfbbae119746f3e3d7dbee1d55 lib/DateTime/Infinite.pm
-SHA1 b1a9eba5d4ea408c5f219dc93a97812c838191c7 lib/DateTime/LeapSecond.pm
-SHA1 f2995138dc8cdd21f3ae57027cbcce755c781e87 lib/DateTimePP.pm
-SHA1 6ccf6914088f63c2cfe4e0117965f4be76ca043c lib/DateTimePPExtra.pm
+SHA1 f3362a5be45d072e60b2134daebd9007faf7238d lib/DateTime/Duration.pm
+SHA1 a830a19fce7003ad95d14190b28bff8495555eaa lib/DateTime/Helpers.pm
+SHA1 3434c69eddd304082551c77efd7071d73bf68e39 lib/DateTime/Infinite.pm
+SHA1 c7ad19ac420dab0a860b6b47c9daf7bed3df36b7 lib/DateTime/LeapSecond.pm
+SHA1 fcbecc2737ebd429ad1e9f1f9beb030c4361e6e4 lib/DateTimePP.pm
+SHA1 5b44548c88c6b06bc42153584ee2ed0ec448971b lib/DateTimePPExtra.pm
 SHA1 b7d12ae6a374c314afcf6ee289a1ae309d8a8563 t/00load.t
 SHA1 53ac3a3da64401a86b06ed6dbcc1af01ba7741dd t/01sanity.t
 SHA1 1ced0f94d405f32f687b5a86c245774fabb44b40 t/02last-day.t
@@ -49,7 +49,7 @@
 SHA1 2b6582dbdcc95a3a8c928da233d3c9cefa8193ef t/10subtract.t
 SHA1 26ba2f29d7b049dd1f58cdd25f91d919263b9008 t/11duration.t
 SHA1 9c04679ba62e41c5c0d28fbf5dbc94536827fe65 t/12week.t
-SHA1 ab69254a51e4df66bc8dcac00a2e2e44b064f233 t/13strftime.t
+SHA1 a56cc43cbaccad60ba89897c64bf94e1f3140da5 t/13strftime.t
 SHA1 5a8e5f135d1735c25981b73ce06fd68296372405 t/14locale.t
 SHA1 31d4392975a4d13e6c10145b9e63b4c45350c148 t/15jd.t
 SHA1 78fd6143e323413681f73d94f68382c257f7b67e t/16truncate.t
@@ -100,7 +100,7 @@
 SHA1 ba80cd8fcdb2aa0cedb2a057053d19667e9471aa t/release-pp-10subtract.t
 SHA1 4773be589e9b5406377527e9525d8450e04d5e73 t/release-pp-11duration.t
 SHA1 e69c9d656b6462e7d52bba196ce6f6e878798a59 t/release-pp-12week.t
-SHA1 7f0a1d40a1d509456c9063afa1d009fdc444c376 t/release-pp-13strftime.t
+SHA1 4ed59bb28d7cb6cb2659aba8fd30be3698823fdb t/release-pp-13strftime.t
 SHA1 b7e108865965a5a16d2b64677c7d1d3a9ee1ff03 t/release-pp-14locale.t
 SHA1 585ac7a24117d215cdbf37c211b62dc8a95f6c0c t/release-pp-15jd.t
 SHA1 0c18ef64cdefdd559e24a344868c62439d471ff9 t/release-pp-16truncate.t
@@ -134,7 +134,7 @@
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
-iEYEARECAAYFAk3Ay98ACgkQIgMCsV8qvRLcJQCePvBkkCTu/kbzoWsB0p0xePMb
-dhIAn2N0AAHlXQFzgBAth30vYfR/OjwF
-=64Hr
+iEYEARECAAYFAk3IOkAACgkQIgMCsV8qvRKz3QCaA4xP/vRW2l9eoS7fW1oRkfY0
+w1cAn2kU5PjBkbcLEZTZfT/ABCCwbwDE
+=hwC2
 -----END PGP SIGNATURE-----

Modified: branches/upstream/libdatetime-perl/current/dist.ini
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/dist.ini?rev=74352&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/dist.ini (original)
+++ branches/upstream/libdatetime-perl/current/dist.ini Fri May 13 22:22:56 2011
@@ -3,7 +3,7 @@
 license = Artistic_2_0
 copyright_holder = Dave Rolsky
 
-version = 0.69
+version = 0.70
 
 [NextRelease]
 format = %-6v %{yyyy-MM-dd}d
@@ -54,9 +54,6 @@
 Time::Local        = 1.04
 perl               = v5.8.1
 
-[Prereqs / BuildRequires]
-ExtUtils::CBuilder = 0
-Module::Build      = 0
-Pod::Man           = 1.14
+[Prereqs / TestRequires]
 Test::Exception    = 0
 Test::More         = 0.88

Modified: branches/upstream/libdatetime-perl/current/lib/DateTime.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/lib/DateTime.pm?rev=74352&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/lib/DateTime.pm (original)
+++ branches/upstream/libdatetime-perl/current/lib/DateTime.pm Fri May 13 22:22:56 2011
@@ -1,6 +1,6 @@
 package DateTime;
 BEGIN {
-  $DateTime::VERSION = '0.69';
+  $DateTime::VERSION = '0.70';
 }
 
 use 5.008001;
@@ -1301,14 +1301,12 @@
     my $self = shift;
     my $precision = @_ ? shift : 9;
 
-    if ( $self->{rd_nanosecs} ) {
-        my $divide_by = 10**( 9 - $precision );
-
-        return round( $self->{rd_nanosecs} / $divide_by );
-    }
-    else {
-        return '0' x $precision;
-    }
+    my $divide_by = 10**( 9 - $precision );
+
+    return sprintf(
+        '%0' . $precision . 'u',
+        round( $self->{rd_nanosecs} / $divide_by )
+    );
 }
 
 sub epoch {
@@ -2045,7 +2043,7 @@
 
 package DateTime::_Thawed;
 BEGIN {
-  $DateTime::_Thawed::VERSION = '0.69';
+  $DateTime::_Thawed::VERSION = '0.70';
 }
 
 sub utc_rd_values { @{ $_[0]->{utc_vals} } }
@@ -2066,7 +2064,7 @@
 
 =head1 VERSION
 
-version 0.69
+version 0.70
 
 =head1 SYNOPSIS
 

Modified: branches/upstream/libdatetime-perl/current/lib/DateTime/Duration.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/lib/DateTime/Duration.pm?rev=74352&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/lib/DateTime/Duration.pm (original)
+++ branches/upstream/libdatetime-perl/current/lib/DateTime/Duration.pm Fri May 13 22:22:56 2011
@@ -1,6 +1,6 @@
 package DateTime::Duration;
 BEGIN {
-  $DateTime::Duration::VERSION = '0.69';
+  $DateTime::Duration::VERSION = '0.70';
 }
 
 use strict;
@@ -318,7 +318,7 @@
 
 =head1 VERSION
 
-version 0.69
+version 0.70
 
 =head1 SYNOPSIS
 

Modified: branches/upstream/libdatetime-perl/current/lib/DateTime/Helpers.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/lib/DateTime/Helpers.pm?rev=74352&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/lib/DateTime/Helpers.pm (original)
+++ branches/upstream/libdatetime-perl/current/lib/DateTime/Helpers.pm Fri May 13 22:22:56 2011
@@ -1,6 +1,6 @@
 package DateTime::Helpers;
 BEGIN {
-  $DateTime::Helpers::VERSION = '0.69';
+  $DateTime::Helpers::VERSION = '0.70';
 }
 
 use strict;

Modified: branches/upstream/libdatetime-perl/current/lib/DateTime/Infinite.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/lib/DateTime/Infinite.pm?rev=74352&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/lib/DateTime/Infinite.pm (original)
+++ branches/upstream/libdatetime-perl/current/lib/DateTime/Infinite.pm Fri May 13 22:22:56 2011
@@ -1,6 +1,6 @@
 package DateTime::Infinite;
 BEGIN {
-  $DateTime::Infinite::VERSION = '0.69';
+  $DateTime::Infinite::VERSION = '0.70';
 }
 
 use strict;
@@ -38,7 +38,7 @@
 
 package DateTime::Infinite::Future;
 BEGIN {
-  $DateTime::Infinite::Future::VERSION = '0.69';
+  $DateTime::Infinite::Future::VERSION = '0.70';
 }
 
 use base qw(DateTime::Infinite);
@@ -62,7 +62,7 @@
 
 package DateTime::Infinite::Past;
 BEGIN {
-  $DateTime::Infinite::Past::VERSION = '0.69';
+  $DateTime::Infinite::Past::VERSION = '0.70';
 }
 
 use base qw(DateTime::Infinite);
@@ -98,7 +98,7 @@
 
 =head1 VERSION
 
-version 0.69
+version 0.70
 
 =head1 SYNOPSIS
 

Modified: branches/upstream/libdatetime-perl/current/lib/DateTime/LeapSecond.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/lib/DateTime/LeapSecond.pm?rev=74352&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/lib/DateTime/LeapSecond.pm (original)
+++ branches/upstream/libdatetime-perl/current/lib/DateTime/LeapSecond.pm Fri May 13 22:22:56 2011
@@ -1,6 +1,6 @@
 package DateTime::LeapSecond;
 BEGIN {
-  $DateTime::LeapSecond::VERSION = '0.69';
+  $DateTime::LeapSecond::VERSION = '0.70';
 }
 
 use strict;
@@ -130,7 +130,7 @@
 
 =head1 VERSION
 
-version 0.69
+version 0.70
 
 =head1 SYNOPSIS
 

Modified: branches/upstream/libdatetime-perl/current/lib/DateTimePP.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/lib/DateTimePP.pm?rev=74352&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/lib/DateTimePP.pm (original)
+++ branches/upstream/libdatetime-perl/current/lib/DateTimePP.pm Fri May 13 22:22:56 2011
@@ -1,6 +1,6 @@
 package DateTime;
 BEGIN {
-  $DateTime::VERSION = '0.69';
+  $DateTime::VERSION = '0.70';
 }
 
 use strict;

Modified: branches/upstream/libdatetime-perl/current/lib/DateTimePPExtra.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/lib/DateTimePPExtra.pm?rev=74352&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/lib/DateTimePPExtra.pm (original)
+++ branches/upstream/libdatetime-perl/current/lib/DateTimePPExtra.pm Fri May 13 22:22:56 2011
@@ -1,6 +1,6 @@
 package DateTime;
 BEGIN {
-  $DateTime::VERSION = '0.69';
+  $DateTime::VERSION = '0.70';
 }
 
 use strict;

Modified: branches/upstream/libdatetime-perl/current/t/13strftime.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/t/13strftime.t?rev=74352&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/t/13strftime.t (original)
+++ branches/upstream/libdatetime-perl/current/t/13strftime.t Fri May 13 22:22:56 2011
@@ -311,3 +311,8 @@
 %U => '02'
 %W => '02'
 
+year => 1999, month => 9, day => 7, hour => 13, minute => 2, second => 42, nanosecond => 00012345678
+%N => '012345678'
+%3N => '012'
+%6N => '012346'
+%10N => '0123456780'

Modified: branches/upstream/libdatetime-perl/current/t/release-pp-13strftime.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/t/release-pp-13strftime.t?rev=74352&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/t/release-pp-13strftime.t (original)
+++ branches/upstream/libdatetime-perl/current/t/release-pp-13strftime.t Fri May 13 22:22:56 2011
@@ -323,4 +323,9 @@
 %U => '02'
 %W => '02'
 
-
+year => 1999, month => 9, day => 7, hour => 13, minute => 2, second => 42, nanosecond => 00012345678
+%N => '012345678'
+%3N => '012'
+%6N => '012346'
+%10N => '0123456780'
+




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