r62185 - in /trunk/libdatetime-format-flexible-perl: Changes META.yml Makefile.PL debian/changelog debian/compat debian/control debian/copyright debian/rules debian/source/ debian/source/format lib/DateTime/Format/Flexible.pm t/base.t
ansgar-guest at users.alioth.debian.org
ansgar-guest at users.alioth.debian.org
Sun Aug 29 11:45:58 UTC 2010
Author: ansgar-guest
Date: Sun Aug 29 11:45:50 2010
New Revision: 62185
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=62185
Log:
* New upstream release (0.16).
* Add build-dep on libtest-mocktime-perl.
* No longer run POD tests, remove build-dep on libtest-pod-perl and
libtest-pod-coverage-perl.
* Remove build-dep on perl (>= 5.10) | libmodule-pluggable-perl as stable
already has perl 5.10.
* debian/copyright: Refer to /usr/share/common-licenses/GPL-1; refer to
"Debian systems" instead of "Debian GNU/Linux systems".
* Use source format 3.0 (quilt).
* Use debhelper compat level 8.
* Bump Standards-Version to 3.9.1.
* Add myself to Uploaders.
Added:
trunk/libdatetime-format-flexible-perl/debian/source/
trunk/libdatetime-format-flexible-perl/debian/source/format
Modified:
trunk/libdatetime-format-flexible-perl/Changes
trunk/libdatetime-format-flexible-perl/META.yml
trunk/libdatetime-format-flexible-perl/Makefile.PL
trunk/libdatetime-format-flexible-perl/debian/changelog
trunk/libdatetime-format-flexible-perl/debian/compat
trunk/libdatetime-format-flexible-perl/debian/control
trunk/libdatetime-format-flexible-perl/debian/copyright
trunk/libdatetime-format-flexible-perl/debian/rules
trunk/libdatetime-format-flexible-perl/lib/DateTime/Format/Flexible.pm
trunk/libdatetime-format-flexible-perl/t/base.t
Modified: trunk/libdatetime-format-flexible-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-flexible-perl/Changes?rev=62185&op=diff
==============================================================================
--- trunk/libdatetime-format-flexible-perl/Changes (original)
+++ trunk/libdatetime-format-flexible-perl/Changes Sun Aug 29 11:45:50 2010
@@ -1,4 +1,7 @@
Revision history for Perl module DateTime::Format::Flexible
+
+0.16 Thu Aug 25 2010
+ - make sure 'now' means now and not when the module loaded unless user has set a base (thanks Ryan Voots rt #60731)
0.15 Mon Mar 10 2010
- fix tests for DateTime string overloading problem (thanks Andreas Koenig and Michael Schwern)
Modified: trunk/libdatetime-format-flexible-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-flexible-perl/META.yml?rev=62185&op=diff
==============================================================================
--- trunk/libdatetime-format-flexible-perl/META.yml (original)
+++ trunk/libdatetime-format-flexible-perl/META.yml Sun Aug 29 11:45:50 2010
@@ -1,19 +1,28 @@
--- #YAML:1.0
-name: DateTime-Format-Flexible
-version: 0.15
-abstract: DateTime::Format::Flexible - Flexibly parse strings and turn them into DateTime objects.
-license: perl
-author:
+name: DateTime-Format-Flexible
+version: 0.16
+abstract: DateTime::Format::Flexible - Flexibly parse strings and turn them into DateTime objects.
+author:
- Tom Heady (cpan at punch.net)
-generated_by: ExtUtils::MakeMaker version 6.42
-distribution_type: module
-requires:
- DateTime: 0
- DateTime::Format::Builder: 0.74
- DateTime::TimeZone: 0
- List::MoreUtils: 0
- Module::Pluggable: 0
- Test::Simple: 0.44
+license: perl
+distribution_type: module
+configure_requires:
+ ExtUtils::MakeMaker: 0
+build_requires:
+ ExtUtils::MakeMaker: 0
+requires:
+ DateTime: 0
+ DateTime::Format::Builder: 0.74
+ DateTime::TimeZone: 0
+ List::MoreUtils: 0
+ Module::Pluggable: 0
+ Test::MockTime: 0
+ Test::Simple: 0.44
+no_index:
+ directory:
+ - t
+ - inc
+generated_by: ExtUtils::MakeMaker version 6.55_02
meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.3.html
- version: 1.3
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
Modified: trunk/libdatetime-format-flexible-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-flexible-perl/Makefile.PL?rev=62185&op=diff
==============================================================================
--- trunk/libdatetime-format-flexible-perl/Makefile.PL (original)
+++ trunk/libdatetime-format-flexible-perl/Makefile.PL Sun Aug 29 11:45:50 2010
@@ -10,6 +10,7 @@
ABSTRACT => 'DateTime::Format::Flexible - Flexibly parse strings and turn them into DateTime objects.',
PREREQ_PM => {
'Test::Simple' => 0.44, # <-- auto added for tests
+ 'Test::MockTime' => 0,
'DateTime::Format::Builder' => 0.74, # length parameter can now be an arrayref
'DateTime' => 0,
'DateTime::TimeZone' => 0,
Modified: trunk/libdatetime-format-flexible-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-flexible-perl/debian/changelog?rev=62185&op=diff
==============================================================================
--- trunk/libdatetime-format-flexible-perl/debian/changelog (original)
+++ trunk/libdatetime-format-flexible-perl/debian/changelog Sun Aug 29 11:45:50 2010
@@ -1,11 +1,23 @@
-libdatetime-format-flexible-perl (0.15-1) UNRELEASED; urgency=low
+libdatetime-format-flexible-perl (0.16-1) unstable; urgency=low
- Fixes tests, no need to upload
- IGNORE-VERSION: 0.15-1
+ [ Jonathan Yu ]
+ * New upstream release (0.15).
- * New upstream release
+ [ Ansgar Burchardt ]
+ * New upstream release (0.16).
+ * Add build-dep on libtest-mocktime-perl.
+ * No longer run POD tests, remove build-dep on libtest-pod-perl and
+ libtest-pod-coverage-perl.
+ * Remove build-dep on perl (>= 5.10) | libmodule-pluggable-perl as stable
+ already has perl 5.10.
+ * debian/copyright: Refer to /usr/share/common-licenses/GPL-1; refer to
+ "Debian systems" instead of "Debian GNU/Linux systems".
+ * Use source format 3.0 (quilt).
+ * Use debhelper compat level 8.
+ * Bump Standards-Version to 3.9.1.
+ * Add myself to Uploaders.
- -- Jonathan Yu <jawnsy at cpan.org> Thu, 11 Mar 2010 19:20:56 -0500
+ -- Ansgar Burchardt <ansgar at 43-1.org> Sun, 29 Aug 2010 20:45:35 +0900
libdatetime-format-flexible-perl (0.14-1) unstable; urgency=low
Modified: trunk/libdatetime-format-flexible-perl/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-flexible-perl/debian/compat?rev=62185&op=diff
==============================================================================
--- trunk/libdatetime-format-flexible-perl/debian/compat (original)
+++ trunk/libdatetime-format-flexible-perl/debian/compat Sun Aug 29 11:45:50 2010
@@ -1,1 +1,1 @@
-7
+8
Modified: trunk/libdatetime-format-flexible-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-flexible-perl/debian/control?rev=62185&op=diff
==============================================================================
--- trunk/libdatetime-format-flexible-perl/debian/control (original)
+++ trunk/libdatetime-format-flexible-perl/debian/control Sun Aug 29 11:45:50 2010
@@ -1,15 +1,14 @@
Source: libdatetime-format-flexible-perl
Section: perl
Priority: optional
-Build-Depends: debhelper (>= 7.0.50~)
-Build-Depends-Indep: perl, libtest-pod-perl,
- libdatetime-timezone-perl, libdatetime-perl,
- liblist-moreutils-perl, perl (>= 5.10) | libmodule-pluggable-perl,
- libdatetime-format-builder-perl (>= 0.74), libtest-pod-coverage-perl
+Build-Depends: debhelper (>= 8)
+Build-Depends-Indep: perl, libdatetime-timezone-perl, libdatetime-perl,
+ liblist-moreutils-perl, libdatetime-format-builder-perl (>= 0.74),
+ libtest-mocktime-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Uploaders: Jonathan Yu <jawnsy at cpan.org>, Ryan Niebur <ryan at debian.org>,
- gregor herrmann <gregoa at debian.org>
-Standards-Version: 3.8.4
+ gregor herrmann <gregoa at debian.org>, Ansgar Burchardt <ansgar at 43-1.org>
+Standards-Version: 3.9.1
Homepage: http://search.cpan.org/dist/DateTime-Format-Flexible/
Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libdatetime-format-flexible-perl/
Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libdatetime-format-flexible-perl/
@@ -18,7 +17,6 @@
Architecture: all
Depends: ${perl:Depends}, ${misc:Depends}, libdatetime-perl,
libdatetime-timezone-perl, liblist-moreutils-perl,
- perl (>= 5.10) | libmodule-pluggable-perl,
libdatetime-format-builder-perl (>= 0.74)
Description: Perl module to transform strings into DateTime objects
DateTime::Format::Flexible is designed to transform arbitrary date/time
Modified: trunk/libdatetime-format-flexible-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-flexible-perl/debian/copyright?rev=62185&op=diff
==============================================================================
--- trunk/libdatetime-format-flexible-perl/debian/copyright (original)
+++ trunk/libdatetime-format-flexible-perl/debian/copyright Sun Aug 29 11:45:50 2010
@@ -17,8 +17,8 @@
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'
+ On Debian systems, the complete text of the Artistic License
+ can be found in `/usr/share/common-licenses/Artistic'.
License: Artistic-2.0
Copyright (c) 2000-2006, The Perl Foundation.
@@ -217,5 +217,5 @@
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'
+ 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'.
Modified: trunk/libdatetime-format-flexible-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-flexible-perl/debian/rules?rev=62185&op=diff
==============================================================================
--- trunk/libdatetime-format-flexible-perl/debian/rules (original)
+++ trunk/libdatetime-format-flexible-perl/debian/rules Sun Aug 29 11:45:50 2010
@@ -2,6 +2,3 @@
%:
dh $@
-
-override_dh_auto_test:
- TEST_POD=1 dh_auto_test
Added: trunk/libdatetime-format-flexible-perl/debian/source/format
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-flexible-perl/debian/source/format?rev=62185&op=file
==============================================================================
--- trunk/libdatetime-format-flexible-perl/debian/source/format (added)
+++ trunk/libdatetime-format-flexible-perl/debian/source/format Sun Aug 29 11:45:50 2010
@@ -1,0 +1,1 @@
+3.0 (quilt)
Modified: trunk/libdatetime-format-flexible-perl/lib/DateTime/Format/Flexible.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-flexible-perl/lib/DateTime/Format/Flexible.pm?rev=62185&op=diff
==============================================================================
--- trunk/libdatetime-format-flexible-perl/lib/DateTime/Format/Flexible.pm (original)
+++ trunk/libdatetime-format-flexible-perl/lib/DateTime/Format/Flexible.pm Sun Aug 29 11:45:50 2010
@@ -2,7 +2,7 @@
use strict;
use warnings;
-our $VERSION = '0.15';
+our $VERSION = '0.16';
use base 'DateTime::Format::Builder';
@@ -76,12 +76,13 @@
use DateTime::TimeZone;
use DateTime::Format::Builder 0.74;
-my $base_dt = DateTime->now;
+my $base_dt;
+
sub base
{
my ( $self , $dt ) = @_;
$base_dt = $dt if ( $dt );
- return $base_dt;
+ return $base_dt || DateTime->now;
}
my $formats =
Modified: trunk/libdatetime-format-flexible-perl/t/base.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdatetime-format-flexible-perl/t/base.t?rev=62185&op=diff
==============================================================================
--- trunk/libdatetime-format-flexible-perl/t/base.t (original)
+++ trunk/libdatetime-format-flexible-perl/t/base.t Sun Aug 29 11:45:50 2010
@@ -3,13 +3,26 @@
use strict;
use warnings;
-use Test::More tests => 2;
+use Test::More tests => 3;
+use Test::MockTime ();
use DateTime::Format::Flexible;
my $base = 'DateTime::Format::Flexible';
# my ( $base_dt ) = $base->parse_datetime( '2005-06-07T13:14:15' );
# $base->base( $base_dt );
+
+
+{
+ my $dt = DateTime::Format::Flexible->parse_datetime( 'now' );
+ Test::MockTime::set_relative_time( 120 );
+ my $dt2 = DateTime::Format::Flexible->parse_datetime( 'now' );
+
+ isnt( $dt->datetime, $dt2->datetime, 'parsing now is not always the same as module load' );
+
+ diag( $dt->datetime .' => '. $dt2->datetime );
+}
+
my $base_dt = DateTime->new( year => 2009, month => 6, day => 22 );
More information about the Pkg-perl-cvs-commits
mailing list