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

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Wed Mar 17 17:31:54 UTC 2010


Author: jawnsy-guest
Date: Wed Mar 17 17:31:36 2010
New Revision: 54422

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

Modified:
    branches/upstream/libdatetime-perl/current/Build.PL
    branches/upstream/libdatetime-perl/current/Changes
    branches/upstream/libdatetime-perl/current/MANIFEST
    branches/upstream/libdatetime-perl/current/META.yml
    branches/upstream/libdatetime-perl/current/SIGNATURE
    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/t/29overload.t
    branches/upstream/libdatetime-perl/current/xt/pod-coverage.t
    branches/upstream/libdatetime-perl/current/xt/pod.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=54422&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/Build.PL (original)
+++ branches/upstream/libdatetime-perl/current/Build.PL Wed Mar 17 17:31:36 2010
@@ -32,8 +32,7 @@
         resources => {
             homepage   => 'http://datetime.perl.org/',
             bugtracker => 'http://rt.cpan.org/NoAuth/Bugs.html?Dist=DateTime',
-            repository =>
-                'https://perl-date-time.svn.sourceforge.net/svnroot/perl-date-time',
+            repository => 'http://hg.urth.org/hg/DateTime.pm',
         },
     },
 );
@@ -46,7 +45,7 @@
 $builder->create_build_script();
 
 sub _make_pp_tests {
-    return unless -d '.svn';
+    return unless -d '.hg';
 
     require File::Slurp;
     File::Slurp->import(qw( read_file write_file ));

Modified: branches/upstream/libdatetime-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/Changes?rev=54422&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/Changes (original)
+++ branches/upstream/libdatetime-perl/current/Changes Wed Mar 17 17:31:36 2010
@@ -1,3 +1,11 @@
+0.55   2010-03-16
+
+- Get all tests passing on 5.6.2. Thanks to Zefram for help spotting the
+  problems.
+
+- Moved code to my hg repo at http://hg.urth.org/hg/DateTime.pm.
+
+
 0.54   2010-03-14
 
 - Bumped the DateTime::TimeZone prereq to 1.09 to force people to use a modern

Modified: branches/upstream/libdatetime-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/MANIFEST?rev=54422&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/MANIFEST (original)
+++ branches/upstream/libdatetime-perl/current/MANIFEST Wed Mar 17 17:31:36 2010
@@ -14,8 +14,6 @@
 lib/DateTimePPExtra.pm
 LICENSE
 MANIFEST			This list of files
-META.yml
-README
 t/00load.t
 t/01sanity.t
 t/02last_day.t
@@ -66,4 +64,6 @@
 xt/pod.t
 xt/test-all-my-deps.t
 xt/versions-match.t
+README
+META.yml
 SIGNATURE    Added here by Module::Build

Modified: branches/upstream/libdatetime-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/META.yml?rev=54422&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/META.yml (original)
+++ branches/upstream/libdatetime-perl/current/META.yml Wed Mar 17 17:31:36 2010
@@ -18,23 +18,23 @@
 provides:
   DateTime:
     file: lib/DateTime.pm
-    version: 0.54
+    version: 0.55
   DateTime::Duration:
     file: lib/DateTime/Duration.pm
-    version: 0.54
+    version: 0.55
   DateTime::Helpers:
     file: lib/DateTime/Helpers.pm
-    version: 0.54
+    version: 0.55
   DateTime::Infinite:
     file: lib/DateTime/Infinite.pm
-    version: 0.54
+    version: 0.55
   DateTime::Infinite::Future:
     file: lib/DateTime/Infinite.pm
   DateTime::Infinite::Past:
     file: lib/DateTime/Infinite.pm
   DateTime::LeapSecond:
     file: lib/DateTime/LeapSecond.pm
-    version: 0.54
+    version: 0.55
 requires:
   DateTime::Locale: 0.41
   DateTime::TimeZone: 1.09
@@ -45,5 +45,5 @@
   bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=DateTime
   homepage: http://datetime.perl.org/
   license: http://dev.perl.org/licenses/
-  repository: https://perl-date-time.svn.sourceforge.net/svnroot/perl-date-time
-version: 0.54
+  repository: http://hg.urth.org/hg/DateTime.pm
+version: 0.55

Modified: branches/upstream/libdatetime-perl/current/SIGNATURE
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/SIGNATURE?rev=54422&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/SIGNATURE (original)
+++ branches/upstream/libdatetime-perl/current/SIGNATURE Wed Mar 17 17:31:36 2010
@@ -14,23 +14,23 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-SHA1 9f94d8085b9b1cd480239ca8f251e3ff3ff82f1c Build.PL
+SHA1 1eceda32a116dafaabc50116c1e050ab39d1eb50 Build.PL
 SHA1 c951898b770a16da2897d908ab6f9f72057bd570 CREDITS
-SHA1 9e42454a290d01fb74b24534824ce0dd7382972c Changes
+SHA1 f4fb55e1efa8ae51778d32ba47d365d3eff5021b Changes
 SHA1 f235ba4160673bcb7c9d58c2f09dbc7fc0efadea LICENSE
-SHA1 a861ee0593a84eb80ec09ace9bb27e5738336c77 MANIFEST
-SHA1 c016801e981f69eec9d1e2ec41399b1beff90299 META.yml
+SHA1 654fe53bcaf7eef085b70f3593d56772aad3d5ba MANIFEST
+SHA1 eb0200386fbc4a68cb508f235743a7758768370c META.yml
 SHA1 e85a71097c54532732588a826ee29218aa67913b README
 SHA1 bfc70fbe8fa29484452bea8c2ed4afd55218f2c2 TODO
 SHA1 b67b906c9fbaab9ccac635d623cb4e6064feb8f0 c/leap_seconds.h
 SHA1 4cd12d2a050ab038e519bd1391f77855ba4b24ac c/ppport.h
 SHA1 ad083d04f765963b707dab9d566bf17e92fa51e9 leaptab.txt
-SHA1 2899e5bae144aa2c6df38b8825be4918f186bcb4 lib/DateTime.pm
+SHA1 af3253d6943b1c8e38b8f90c1fe211cb6418b2f2 lib/DateTime.pm
 SHA1 29dc49f4971ca3979c95cad28b4782b4ad8fc134 lib/DateTime.xs
-SHA1 db0df2eb247d63ef01e48c4e3fa84707878d9fff lib/DateTime/Duration.pm
-SHA1 39a0f2806aa6e635442b85ac4a02b78e3c3650b7 lib/DateTime/Helpers.pm
-SHA1 07b01cabe8a936484412abb5072809af60918ee3 lib/DateTime/Infinite.pm
-SHA1 f40c4da759e5ae4c7288b10590693129cb2790af lib/DateTime/LeapSecond.pm
+SHA1 c947ec3624fa1e500186a5e73a1f60bc59d30d2b lib/DateTime/Duration.pm
+SHA1 a2d5072afd6c4f7d46fe07de21ef61f2b3b09c1b lib/DateTime/Helpers.pm
+SHA1 2e9eae12b26bf71128fa1080e6ab8972bc5cd208 lib/DateTime/Infinite.pm
+SHA1 79f7c8eade38901f70cc37e94fbdd462a48e3a2e lib/DateTime/LeapSecond.pm
 SHA1 ef2a8d4fa5568978666f3a65eb5fd424d7695139 lib/DateTimePP.pm
 SHA1 8b7b49d4452aed583ed4b97e78fdb005d57b3214 lib/DateTimePPExtra.pm
 SHA1 b7d12ae6a374c314afcf6ee289a1ae309d8a8563 t/00load.t
@@ -61,7 +61,7 @@
 SHA1 325f679dc35ef3a3c351de0e5e8af9eff0a1cee3 t/26dt_leapsecond_pm.t
 SHA1 206e3a8378faeea6f28cf87736e9423dca73a7f0 t/27delta.t
 SHA1 8c5ef007a02b682b62b1b59ce9f50f66ee5ceb55 t/28dow.t
-SHA1 d52ef26a0639314fb9c37445b4710c5a47fa8c48 t/29overload.t
+SHA1 a7412e75ccee904071d74974803e7e2dabd36f51 t/29overload.t
 SHA1 4f0ddcfaaf1d7f0717ae258d7a263f6af8442840 t/30future_tz.t
 SHA1 2fb04336a2cc74928ad49924dd9a5d15ccb12548 t/31formatter.t
 SHA1 0bb9689be25539ba57171323832aa21066e759ad t/32leap_second2.t
@@ -77,15 +77,15 @@
 SHA1 f1b64f5240f5516555b7c8e9c5542e92379ba67d t/42duration_class.t
 SHA1 9f788a8482e8853ae20dd302ce409eca4841db32 t/43new-params.t
 SHA1 a7e493153959c6911c368021060fadcb4417771e tools/leap_seconds_header.pl
-SHA1 c64452c2ae9e7591f030f244c32ee7a0d6127280 xt/pod-coverage.t
+SHA1 7c3b0dd41d426dd367954a8dd2f181ac658cefc0 xt/pod-coverage.t
 SHA1 8f2d6abfdfe28c368ad10e8245ca6fcba3fddb1b xt/pod-spell.t
-SHA1 97ed15ef2850f8ef89ad8767a429fc75cd33da1d xt/pod.t
+SHA1 9bb24d755c9e2fbf5d9b7db34df15637ccd8e3f6 xt/pod.t
 SHA1 7777662e0ccaa68f0b41cc851f4055fda762925e xt/test-all-my-deps.t
 SHA1 77c2097d14aed2044af6b012101019980455f218 xt/versions-match.t
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.9 (GNU/Linux)
 
-iEYEARECAAYFAkudPKUACgkQIgMCsV8qvRLIxQCfcB+6v+WbCtLHpLjDR4qUG7YK
-6boAnjYK9sPcUrn2iPuzEAjqtVzDi5W0
-=Yzog
+iEYEARECAAYFAkuftTsACgkQIgMCsV8qvRJ35ACfTHFMas40s8gRDN9gTMlB1Fu5
+n3IAoIbh1nt1Nyu5Q0Bkz1Jduas/8nKq
+=nl2P
 -----END PGP SIGNATURE-----

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=54422&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/lib/DateTime.pm (original)
+++ branches/upstream/libdatetime-perl/current/lib/DateTime.pm Wed Mar 17 17:31:36 2010
@@ -11,7 +11,7 @@
 our $VERSION;
 
 BEGIN {
-    $VERSION = '0.54';
+    $VERSION = '0.55';
 
     my $loaded = 0;
     unless ( $ENV{PERL_DATETIME_PP} ) {
@@ -1766,7 +1766,8 @@
         return $sign * ( "$dt1" cmp "$dt2" );
     }
     else {
-        goto $dt1->can('_compare_overload');
+        my $meth = $dt1->can('_compare_overload');
+        goto $meth;
     }
 }
 

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=54422&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/lib/DateTime/Duration.pm (original)
+++ branches/upstream/libdatetime-perl/current/lib/DateTime/Duration.pm Wed Mar 17 17:31:36 2010
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '0.54';
+our $VERSION = '0.55';
 
 use Carp ();
 use DateTime;

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=54422&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/lib/DateTime/Helpers.pm (original)
+++ branches/upstream/libdatetime-perl/current/lib/DateTime/Helpers.pm Wed Mar 17 17:31:36 2010
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '0.54';
+our $VERSION = '0.55';
 
 use Scalar::Util ();
 

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=54422&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/lib/DateTime/Infinite.pm (original)
+++ branches/upstream/libdatetime-perl/current/lib/DateTime/Infinite.pm Wed Mar 17 17:31:36 2010
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '0.54';
+our $VERSION = '0.55';
 
 use DateTime;
 use DateTime::TimeZone;

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=54422&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/lib/DateTime/LeapSecond.pm (original)
+++ branches/upstream/libdatetime-perl/current/lib/DateTime/LeapSecond.pm Wed Mar 17 17:31:36 2010
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '0.54';
+our $VERSION = '0.55';
 
 use vars qw( $VERSION );
 use vars qw( @RD @LEAP_SECONDS %RD_LENGTH );

Modified: branches/upstream/libdatetime-perl/current/t/29overload.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/t/29overload.t?rev=54422&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/t/29overload.t (original)
+++ branches/upstream/libdatetime-perl/current/t/29overload.t Wed Mar 17 17:31:36 2010
@@ -18,19 +18,19 @@
     );
 
     my $before_string = '2050-01-15T20:10:09';
-    my $dt_string     = '2050-01-15T20:10:10';
+    my $same_string   = '2050-01-15T20:10:10';
     my $after_string  = '2050-01-15T20:10:11';
 
-    is( "$dt", $dt_string, 'stringification overloading' );
-    ok( $dt eq $dt_string, 'eq overloading true' );
+    is( "$dt", $same_string, 'stringification overloading' );
+    ok( $dt eq $same_string, 'eq overloading true' );
     ok( !( $dt eq $after_string ), 'eq overloading false' );
     ok( $dt ne $after_string, 'ne overloading true' );
-    ok( !( $dt ne $dt_string ), 'ne overloading false' );
+    ok( !( $dt ne $same_string ), 'ne overloading false' );
 
-    is( $dt cmp $dt_string,    0,  'cmp overloading' );
+    is( $dt cmp $same_string,  0,  'cmp overloading' );
     is( $dt cmp $after_string, -1, '  less than' );
-    ok( $dt lt $after_string,   'lt overloading' );
-    ok( !( $dt lt $dt_string ), '  not' );
+    ok( $dt lt $after_string,     'lt overloading' );
+    ok( !( $dt lt $same_string ), '  not' );
 
     {
 
@@ -45,27 +45,29 @@
         }
     }
 
-    my $same   = Other::Date->new($dt_string);
-    my $after  = Other::Date->new($after_string);
-    my $before = Other::Date->new($before_string);
-    ok $dt eq $same, "DateTime eq non-DateTime overloaded object true";
-    ok !( $dt eq $after ), "  eq false";
-    ok $dt ne $after, "  ne true";
-    ok !( $dt ne $same ), "  ne false";
+    my $same_od   = Other::Date->new($same_string);
+    my $after_od  = Other::Date->new($after_string);
+    my $before_od = Other::Date->new($before_string);
 
-    is( $dt cmp $same,  0,  'cmp overloading' );
-    is( $dt cmp $after, -1, '  lt overloading' );
-    ok( $dt lt $after,     'lt overloading' );
-    ok( !( $dt lt $same ), '  not' );
+    ok( $dt eq $same_od, "DateTime eq non-DateTime overloaded object true" );
+    ok( !( $dt eq $after_od ), "  eq false" );
+    ok( $dt ne $after_od, "  ne true" );
+    ok( !( $dt ne $same_od ), "  ne false" );
+
+    is( $dt cmp $same_od,  0,  'cmp overloading' );
+    is( $dt cmp $after_od, -1, '  lt overloading' );
+    ok( $dt lt $after_od,     'lt overloading' );
+    ok( !( $dt lt $same_od ), '  not' );
 
     is_deeply(
         [
-            sort { $a cmp $b } $same, $after, $before, $dt, $dt_string,
-            $after_string, $before_string
+            map { $_ . ' - ' . ( ref $_ || 'no ref' ) }
+                sort { $a cmp $b or ref $a cmp ref $b } $same_od, $after_od,
+            $before_od, $dt, $same_string, $after_string, $before_string
         ],
         [
-            $before, $before_string, $dt, $same, $dt_string, $after,
-            $after_string
+            map { $_ . ' - ' . ( ref $_ || 'no ref' ) } $before_string,
+            $before_od, $same_string, $dt, $same_od, $after_string, $after_od
         ],
         "eq sort"
     );

Modified: branches/upstream/libdatetime-perl/current/xt/pod-coverage.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/xt/pod-coverage.t?rev=54422&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/xt/pod-coverage.t (original)
+++ branches/upstream/libdatetime-perl/current/xt/pod-coverage.t Wed Mar 17 17:31:36 2010
@@ -3,9 +3,6 @@
 use warnings;
 
 use Test::More;
-
-plan skip_all => 'This test is only run for the module author'
-    unless -d '.svn' || $ENV{IS_MAINTAINER};
 
 eval "use Test::Pod::Coverage 1.04";
 plan skip_all => "Test::Pod::Coverage 1.04 required for testing POD coverage"

Modified: branches/upstream/libdatetime-perl/current/xt/pod.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdatetime-perl/current/xt/pod.t?rev=54422&op=diff
==============================================================================
--- branches/upstream/libdatetime-perl/current/xt/pod.t (original)
+++ branches/upstream/libdatetime-perl/current/xt/pod.t Wed Mar 17 17:31:36 2010
@@ -3,9 +3,6 @@
 
 use Test::More;
 
-plan skip_all => 'This test is only run for the module author'
-    unless -d '.svn' || $ENV{IS_MAINTAINER};
-
 eval "use Test::Pod 1.14";
 plan skip_all => "Test::Pod 1.14 required for testing POD" if $@;
 




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