r75023 - in /trunk/libdatetime-format-pg-perl: ./ debian/ debian/source/ inc/Module/ inc/Module/Install/ lib/DateTime/Format/ t/

ansgar at users.alioth.debian.org ansgar at users.alioth.debian.org
Thu Jun 2 11:14:26 UTC 2011


Author: ansgar
Date: Thu Jun  2 11:14:19 2011
New Revision: 75023

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=75023
Log:
* New upstream release.
* debian/copyright: Update for new upstream release; refer to GPL-1; refer
  to "Debian systems" instead of "Debian GNU/Linux systems".
* Bump Standards-Version to 3.9.2.

Added:
    trunk/libdatetime-format-pg-perl/debian/source/local-options
    trunk/libdatetime-format-pg-perl/inc/Module/Install/Repository.pm
      - copied unchanged from r75020, branches/upstream/libdatetime-format-pg-perl/current/inc/Module/Install/Repository.pm
Removed:
    trunk/libdatetime-format-pg-perl/README
Modified:
    trunk/libdatetime-format-pg-perl/Changes
    trunk/libdatetime-format-pg-perl/MANIFEST
    trunk/libdatetime-format-pg-perl/META.yml
    trunk/libdatetime-format-pg-perl/Makefile.PL
    trunk/libdatetime-format-pg-perl/debian/changelog
    trunk/libdatetime-format-pg-perl/debian/control
    trunk/libdatetime-format-pg-perl/debian/copyright
    trunk/libdatetime-format-pg-perl/inc/Module/Install.pm
    trunk/libdatetime-format-pg-perl/inc/Module/Install/Base.pm
    trunk/libdatetime-format-pg-perl/inc/Module/Install/Can.pm
    trunk/libdatetime-format-pg-perl/inc/Module/Install/Fetch.pm
    trunk/libdatetime-format-pg-perl/inc/Module/Install/Makefile.pm
    trunk/libdatetime-format-pg-perl/inc/Module/Install/Metadata.pm
    trunk/libdatetime-format-pg-perl/inc/Module/Install/Win32.pm
    trunk/libdatetime-format-pg-perl/inc/Module/Install/WriteAll.pm
    trunk/libdatetime-format-pg-perl/lib/DateTime/Format/Pg.pm
    trunk/libdatetime-format-pg-perl/t/format_date.t
    trunk/libdatetime-format-pg-perl/t/parse_infinity.t

Modified: trunk/libdatetime-format-pg-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-pg-perl/Changes?rev=75023&op=diff
==============================================================================
--- trunk/libdatetime-format-pg-perl/Changes (original)
+++ trunk/libdatetime-format-pg-perl/Changes Thu Jun  2 11:14:19 2011
@@ -1,4 +1,9 @@
 Revision history for Perl extension DateTime::Format::Pg.
+
+0.16006  Fri May 27 09:00:00 2011
+    - Repository moved to github
+    - Postgres 8.4 apprently now allows infinity dates. 
+      Applied patch by cmckay (rt #68473)
 
 0.16005  Wed Jun 23 12:15:00 2010
     - Fix edge case in fractional seconds (rt #58612).

Modified: trunk/libdatetime-format-pg-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-pg-perl/MANIFEST?rev=75023&op=diff
==============================================================================
--- trunk/libdatetime-format-pg-perl/MANIFEST (original)
+++ trunk/libdatetime-format-pg-perl/MANIFEST Thu Jun  2 11:14:19 2011
@@ -5,6 +5,7 @@
 inc/Module/Install/Fetch.pm
 inc/Module/Install/Makefile.pm
 inc/Module/Install/Metadata.pm
+inc/Module/Install/Repository.pm
 inc/Module/Install/Win32.pm
 inc/Module/Install/WriteAll.pm
 lib/DateTime/Format/Pg.pm
@@ -12,15 +13,14 @@
 Makefile.PL
 MANIFEST			This list of files
 META.yml
-README
 t/1basic.t
 t/2new-param.t
 t/99-pod-coverage.t
 t/99-pod.t
 t/format_date.t
 t/format_datetime.t
+t/format_fractional.t
 t/format_interval.t
-t/format_fractional.t
 t/parse_date.t
 t/parse_datetime.t
 t/parse_datetime2.t

Modified: trunk/libdatetime-format-pg-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-pg-perl/META.yml?rev=75023&op=diff
==============================================================================
--- trunk/libdatetime-format-pg-perl/META.yml (original)
+++ trunk/libdatetime-format-pg-perl/META.yml Thu Jun  2 11:14:19 2011
@@ -8,7 +8,7 @@
 configure_requires:
   ExtUtils::MakeMaker: 6.42
 distribution_type: module
-generated_by: 'Module::Install version 1.00'
+generated_by: 'Module::Install version 1.01'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -24,4 +24,5 @@
   DateTime::TimeZone: 0.05
 resources:
   license: http://dev.perl.org/licenses/
-version: 0.16005
+  repository: git://github.com/lestrrat/DateTime-Format-Pg.git
+version: 0.16006

Modified: trunk/libdatetime-format-pg-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-pg-perl/Makefile.PL?rev=75023&op=diff
==============================================================================
--- trunk/libdatetime-format-pg-perl/Makefile.PL (original)
+++ trunk/libdatetime-format-pg-perl/Makefile.PL Thu Jun  2 11:14:19 2011
@@ -9,6 +9,7 @@
 requires 'DateTime::TimeZone' => '0.05';
 
 test_requires 'Test::More';
+auto_set_repository;
 
 WriteAll;
 

Modified: trunk/libdatetime-format-pg-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-pg-perl/debian/changelog?rev=75023&op=diff
==============================================================================
--- trunk/libdatetime-format-pg-perl/debian/changelog (original)
+++ trunk/libdatetime-format-pg-perl/debian/changelog Thu Jun  2 11:14:19 2011
@@ -1,8 +1,12 @@
-libdatetime-format-pg-perl (0.16005-2) UNRELEASED; urgency=low
+libdatetime-format-pg-perl (0.16006-1) unstable; urgency=low
 
+  * New upstream release.
   * Update my email address.
+  * debian/copyright: Update for new upstream release; refer to GPL-1; refer
+    to "Debian systems" instead of "Debian GNU/Linux systems".
+  * Bump Standards-Version to 3.9.2.
 
- -- Ansgar Burchardt <ansgar at debian.org>  Mon, 01 Nov 2010 11:16:35 +0100
+ -- Ansgar Burchardt <ansgar at debian.org>  Thu, 02 Jun 2011 13:13:02 +0200
 
 libdatetime-format-pg-perl (0.16005-1) unstable; urgency=low
 

Modified: trunk/libdatetime-format-pg-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-pg-perl/debian/control?rev=75023&op=diff
==============================================================================
--- trunk/libdatetime-format-pg-perl/debian/control (original)
+++ trunk/libdatetime-format-pg-perl/debian/control Thu Jun  2 11:14:19 2011
@@ -8,7 +8,7 @@
 Uploaders: Krzysztof Krzyzaniak (eloy) <eloy at debian.org>,
  gregor herrmann <gregoa at debian.org>, Rene Mayorga <rmayorga at debian.org>,
  Ansgar Burchardt <ansgar at debian.org>, Jonathan Yu <jawnsy at cpan.org>
-Standards-Version: 3.8.4
+Standards-Version: 3.9.2
 Homepage: http://search.cpan.org/dist/DateTime-Format-Pg/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libdatetime-format-pg-perl/
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libdatetime-format-pg-perl/

Modified: trunk/libdatetime-format-pg-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-pg-perl/debian/copyright?rev=75023&op=diff
==============================================================================
--- trunk/libdatetime-format-pg-perl/debian/copyright (original)
+++ trunk/libdatetime-format-pg-perl/debian/copyright Thu Jun  2 11:14:19 2011
@@ -8,13 +8,14 @@
  2003-2005, Claus A. Färber <perl at faerber.muc.de>
 License: Artistic or GPL-1+
 
-Files: ./inc/Module/*
-Copyright: 2002-2010, Adam Kennedy <adamk at cpan.org>
- 2002-2010, Audrey Tang <autrijus at autrijus.org>
- 2002-2010, Brian Ingerson <ingy at cpan.org>
+Files: inc/Module/*
+Copyright:
+ 2002-2011, Adam Kennedy <adamk at cpan.org>
+ 2002-2011, Audrey Tang <autrijus at autrijus.org>
+ 2002-2011, Brian Ingerson <ingy at cpan.org>
 License: Artistic or GPL-1+
 
-Files: ./debian/*
+Files: debian/*
 Copyright:
  2009,      Jonathan Yu <jawnsy at cpan.org>
  2007-2008, Rene Mayorga <rmayorga at debian.org>
@@ -23,15 +24,17 @@
 License: Artistic or GPL-1+
 
 License: Artistic
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the Artistic License, which comes with Perl.
-    On Debian GNU/Linux systems, the complete text of the Artistic License
-    can be found in `/usr/share/common-licenses/Artistic'
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the Artistic License, which comes with Perl.
+ .
+ On Debian systems, the complete text of the Artistic License can be
+ found in `/usr/share/common-licenses/Artistic'.
 
 License: GPL-1+
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 1, or (at your option)
-    any later version.
-    On Debian GNU/Linux systems, the complete text of the GNU General
-    Public License can be found in `/usr/share/common-licenses/GPL'
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 1, or (at your option)
+ any later version.
+ .
+ On Debian systems, the complete text of version 1 of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-1'.

Added: trunk/libdatetime-format-pg-perl/debian/source/local-options
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-pg-perl/debian/source/local-options?rev=75023&op=file
==============================================================================
--- trunk/libdatetime-format-pg-perl/debian/source/local-options (added)
+++ trunk/libdatetime-format-pg-perl/debian/source/local-options Thu Jun  2 11:14:19 2011
@@ -1,0 +1,2 @@
+abort-on-upstream-changes
+unapply-patches

Modified: trunk/libdatetime-format-pg-perl/inc/Module/Install.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-pg-perl/inc/Module/Install.pm?rev=75023&op=diff
==============================================================================
--- trunk/libdatetime-format-pg-perl/inc/Module/Install.pm (original)
+++ trunk/libdatetime-format-pg-perl/inc/Module/Install.pm Thu Jun  2 11:14:19 2011
@@ -31,7 +31,7 @@
 	# This is not enforced yet, but will be some time in the next few
 	# releases once we can make sure it won't clash with custom
 	# Module::Install extensions.
-	$VERSION = '1.00';
+	$VERSION = '1.01';
 
 	# Storage for the pseudo-singleton
 	$MAIN    = undef;
@@ -467,4 +467,4 @@
 
 1;
 
-# Copyright 2008 - 2010 Adam Kennedy.
+# Copyright 2008 - 2011 Adam Kennedy.

Modified: trunk/libdatetime-format-pg-perl/inc/Module/Install/Base.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-pg-perl/inc/Module/Install/Base.pm?rev=75023&op=diff
==============================================================================
--- trunk/libdatetime-format-pg-perl/inc/Module/Install/Base.pm (original)
+++ trunk/libdatetime-format-pg-perl/inc/Module/Install/Base.pm Thu Jun  2 11:14:19 2011
@@ -4,7 +4,7 @@
 use strict 'vars';
 use vars qw{$VERSION};
 BEGIN {
-	$VERSION = '1.00';
+	$VERSION = '1.01';
 }
 
 # Suspend handler for "redefined" warnings

Modified: trunk/libdatetime-format-pg-perl/inc/Module/Install/Can.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-pg-perl/inc/Module/Install/Can.pm?rev=75023&op=diff
==============================================================================
--- trunk/libdatetime-format-pg-perl/inc/Module/Install/Can.pm (original)
+++ trunk/libdatetime-format-pg-perl/inc/Module/Install/Can.pm Thu Jun  2 11:14:19 2011
@@ -9,7 +9,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.00';
+	$VERSION = '1.01';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }

Modified: trunk/libdatetime-format-pg-perl/inc/Module/Install/Fetch.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-pg-perl/inc/Module/Install/Fetch.pm?rev=75023&op=diff
==============================================================================
--- trunk/libdatetime-format-pg-perl/inc/Module/Install/Fetch.pm (original)
+++ trunk/libdatetime-format-pg-perl/inc/Module/Install/Fetch.pm Thu Jun  2 11:14:19 2011
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.00';
+	$VERSION = '1.01';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }

Modified: trunk/libdatetime-format-pg-perl/inc/Module/Install/Makefile.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-pg-perl/inc/Module/Install/Makefile.pm?rev=75023&op=diff
==============================================================================
--- trunk/libdatetime-format-pg-perl/inc/Module/Install/Makefile.pm (original)
+++ trunk/libdatetime-format-pg-perl/inc/Module/Install/Makefile.pm Thu Jun  2 11:14:19 2011
@@ -8,7 +8,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.00';
+	$VERSION = '1.01';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }

Modified: trunk/libdatetime-format-pg-perl/inc/Module/Install/Metadata.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-pg-perl/inc/Module/Install/Metadata.pm?rev=75023&op=diff
==============================================================================
--- trunk/libdatetime-format-pg-perl/inc/Module/Install/Metadata.pm (original)
+++ trunk/libdatetime-format-pg-perl/inc/Module/Install/Metadata.pm Thu Jun  2 11:14:19 2011
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.00';
+	$VERSION = '1.01';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
@@ -515,6 +515,7 @@
 		'GNU Free Documentation license'     => 'unrestricted', 1,
 		'GNU Affero General Public License'  => 'open_source',  1,
 		'(?:Free)?BSD license'               => 'bsd',          1,
+		'Artistic license 2\.0'              => 'artistic_2',   1,
 		'Artistic license'                   => 'artistic',     1,
 		'Apache (?:Software )?license'       => 'apache',       1,
 		'GPL'                                => 'gpl',          1,
@@ -550,9 +551,9 @@
 
 sub _extract_bugtracker {
 	my @links   = $_[0] =~ m#L<(
-	 \Qhttp://rt.cpan.org/\E[^>]+|
-	 \Qhttp://github.com/\E[\w_]+/[\w_]+/issues|
-	 \Qhttp://code.google.com/p/\E[\w_\-]+/issues/list
+	 https?\Q://rt.cpan.org/\E[^>]+|
+	 https?\Q://github.com/\E[\w_]+/[\w_]+/issues|
+	 https?\Q://code.google.com/p/\E[\w_\-]+/issues/list
 	 )>#gx;
 	my %links;
 	@links{@links}=();

Modified: trunk/libdatetime-format-pg-perl/inc/Module/Install/Win32.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-pg-perl/inc/Module/Install/Win32.pm?rev=75023&op=diff
==============================================================================
--- trunk/libdatetime-format-pg-perl/inc/Module/Install/Win32.pm (original)
+++ trunk/libdatetime-format-pg-perl/inc/Module/Install/Win32.pm Thu Jun  2 11:14:19 2011
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.00';
+	$VERSION = '1.01';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }

Modified: trunk/libdatetime-format-pg-perl/inc/Module/Install/WriteAll.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-pg-perl/inc/Module/Install/WriteAll.pm?rev=75023&op=diff
==============================================================================
--- trunk/libdatetime-format-pg-perl/inc/Module/Install/WriteAll.pm (original)
+++ trunk/libdatetime-format-pg-perl/inc/Module/Install/WriteAll.pm Thu Jun  2 11:14:19 2011
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.00';
+	$VERSION = '1.01';
 	@ISA     = qw{Module::Install::Base};
 	$ISCORE  = 1;
 }

Modified: trunk/libdatetime-format-pg-perl/lib/DateTime/Format/Pg.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-pg-perl/lib/DateTime/Format/Pg.pm?rev=75023&op=diff
==============================================================================
--- trunk/libdatetime-format-pg-perl/lib/DateTime/Format/Pg.pm (original)
+++ trunk/libdatetime-format-pg-perl/lib/DateTime/Format/Pg.pm Thu Jun  2 11:14:19 2011
@@ -1,5 +1,4 @@
 package DateTime::Format::Pg;
-# $Id: Pg.pm 4436 2010-06-23 03:14:18Z lestrrat $
 
 use strict;
 use vars qw ($VERSION);
@@ -12,7 +11,7 @@
 use DateTime::TimeZone::UTC;
 use DateTime::TimeZone::Floating;
 
-$VERSION = '0.16005';
+$VERSION = '0.16006';
 $VERSION = eval $VERSION;
 
 our @ISA = ('DateTime::Format::Builder');
@@ -373,7 +372,7 @@
   parsers =>
   {
     parse_date		=> [ $pg_dateonly_iso, $pg_dateonly_sql,
-    			     $pg_dateonly_german, ],
+    			     $pg_dateonly_german, $pg_infinity ],
     parse_timetz	=> [ $pg_timeonly, ],
     parse_timestamptz	=> [ $pg_datetime_iso, $pg_datetime_pg_eu,
                              $pg_datetime_pg_us, $pg_datetime_sql,
@@ -693,7 +692,9 @@
 sub format_date
 {
   my ($self,$dt) = @_;
-  if($dt->year()<=0) {
+  if($dt->is_infinite) {
+    return $dt->isa('DateTime::Infinite::Future') ? 'infinity' : '-infinity';
+  } elsif($dt->year()<=0) {
     return sprintf('%04d-%02d-%02d BC',
       1-$dt->year(),
       $dt->month(),

Modified: trunk/libdatetime-format-pg-perl/t/format_date.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-pg-perl/t/format_date.t?rev=75023&op=diff
==============================================================================
--- trunk/libdatetime-format-pg-perl/t/format_date.t (original)
+++ trunk/libdatetime-format-pg-perl/t/format_date.t Thu Jun  2 11:14:19 2011
@@ -1,5 +1,5 @@
 # $Id: format_date.t 1039 2003-05-30 14:04:49Z cfaerber $
-use Test::More tests => 3;
+use Test::More tests => 5;
 use DateTime 0.10;
 use DateTime::Format::Pg 0.02;
 
@@ -24,3 +24,13 @@
   my $dt = DateTime->new( %{$tests{$result}} );
   is( DateTime::Format::Pg->format_date($dt), $result );
 }
+
+is(
+    DateTime::Format::Pg->format_date(DateTime::Infinite::Future->new),
+    'infinity'
+);
+
+is(
+    DateTime::Format::Pg->format_date(DateTime::Infinite::Past->new),
+    '-infinity'
+);

Modified: trunk/libdatetime-format-pg-perl/t/parse_infinity.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-pg-perl/t/parse_infinity.t?rev=75023&op=diff
==============================================================================
--- trunk/libdatetime-format-pg-perl/t/parse_infinity.t (original)
+++ trunk/libdatetime-format-pg-perl/t/parse_infinity.t Thu Jun  2 11:14:19 2011
@@ -1,9 +1,14 @@
 # $Id: parse_infinity.t 1061 2006-01-07 00:45:49Z lestrrat $
-use Test::More tests => 4;
+use Test::More tests => 6;
 use DateTime::Format::Pg 0.02;
 
 {
   my $dt = DateTime::Format::Pg->parse_datetime('infinity');
+  isa_ok($dt, 'DateTime::Infinite::Future');
+}
+
+{
+  my $dt = DateTime::Format::Pg->parse_date('infinity');
   isa_ok($dt, 'DateTime::Infinite::Future');
 }
 
@@ -18,6 +23,11 @@
 }
 
 {
+  my $dt = DateTime::Format::Pg->parse_date('-infinity');
+  isa_ok($dt, 'DateTime::Infinite::Past');
+}
+
+{
   my $dt = DateTime::Format::Pg->parse_timestamp('-infinity');
   isa_ok($dt, 'DateTime::Infinite::Past');
 }




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