[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#600461: unblock: libdatetime-format-strptime-perl/1.5000-1



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please consider unblocking libdatetime-format-strptime-perl/1.5000-1.
It adds support for the UTC timezone (a one-line change) and a test for
this support.

See also https://rt.cpan.org/Public/Bug/Display.html?id=59209.

unblock libdatetime-format-strptime-perl/1.5000-1
diff -Nru libdatetime-format-strptime-perl-1.3000/Changes libdatetime-format-strptime-perl-1.5000/Changes
--- libdatetime-format-strptime-perl-1.3000/Changes	2010-06-26 18:57:52.000000000 +0200
+++ libdatetime-format-strptime-perl-1.5000/Changes	2010-10-16 22:26:44.000000000 +0200
@@ -1,8 +1,18 @@
+1.5000 2010-10-16
+
+    - This module did not recognize UTC as a valid time zone. Patch by Danijel
+      Tašov. RT #59209.
+
+1.4000 2010-06-28
+    - Actually update $VERSION in module file. Reported by David Wheeler.
+
 1.3000 2010-06-26
     - Specifiers which allowed for leading space before a number (like %e)
       would cause DateTime.pm to throw an error if the date being parsed
       actually contained leading space. Patch by Alex Vandiver. RT #58459.
 
+    - License is now Artistic 2.0
+
 1.2000 2010-03-19
     - Updated to use non-deprecated DateTime::Locale API
 
diff -Nru libdatetime-format-strptime-perl-1.3000/INSTALL libdatetime-format-strptime-perl-1.5000/INSTALL
--- libdatetime-format-strptime-perl-1.3000/INSTALL	2010-06-26 18:57:52.000000000 +0200
+++ libdatetime-format-strptime-perl-1.5000/INSTALL	2010-10-16 22:26:44.000000000 +0200
@@ -38,7 +38,7 @@
 
 ## Documentation
 
-DateTime-Format-Strptime documentation is available as in POD.
+DateTime-Format-Strptime documentation is available as POD.
 You can run perldoc from a shell to read the documentation:
 
     % perldoc DateTime::Format::Strptime
diff -Nru libdatetime-format-strptime-perl-1.3000/META.json libdatetime-format-strptime-perl-1.5000/META.json
--- libdatetime-format-strptime-perl-1.3000/META.json	2010-06-26 18:57:52.000000000 +0200
+++ libdatetime-format-strptime-perl-1.5000/META.json	2010-10-16 22:26:44.000000000 +0200
@@ -4,7 +4,7 @@
       "Dave Rolsky <autarch@urth.org>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Zilla version 4.101740, CPAN::Meta::Converter version 2.101670",
+   "generated_by" : "Dist::Zilla version 4.102342, CPAN::Meta::Converter version 2.101670",
    "license" : [
       "artistic_2"
    ],
@@ -16,8 +16,7 @@
    "prereqs" : {
       "configure" : {
          "requires" : {
-            "ExtUtils::MakeMaker" : "6.31",
-            "Module::Build" : "0.36"
+            "ExtUtils::MakeMaker" : "6.31"
          }
       },
       "runtime" : {
@@ -25,11 +24,7 @@
             "DateTime" : "0.4304",
             "DateTime::Locale" : "0.45",
             "DateTime::TimeZone" : "0.79",
-            "Params::Validate" : "0.64"
-         }
-      },
-      "test" : {
-         "requires" : {
+            "Params::Validate" : "0.64",
             "Test::More" : "0.88"
          }
       }
@@ -46,6 +41,6 @@
          "web" : "http://hg.urth.org/hg/DateTime-Format-Strptime";
       }
    },
-   "version" : "1.3000"
+   "version" : "1.5000"
 }
 
diff -Nru libdatetime-format-strptime-perl-1.3000/META.yml libdatetime-format-strptime-perl-1.5000/META.yml
--- libdatetime-format-strptime-perl-1.3000/META.yml	2010-06-26 18:57:52.000000000 +0200
+++ libdatetime-format-strptime-perl-1.5000/META.yml	2010-10-16 22:26:44.000000000 +0200
@@ -2,13 +2,11 @@
 abstract: 'Parse and format strp and strf time patterns'
 author:
   - 'Dave Rolsky <autarch@urth.org>'
-build_requires:
-  Test::More: 0.88
+build_requires: {}
 configure_requires:
   ExtUtils::MakeMaker: 6.31
-  Module::Build: 0.36
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.101740, CPAN::Meta::Converter version 2.101670'
+generated_by: 'Dist::Zilla version 4.102342, CPAN::Meta::Converter version 2.101670'
 license: artistic_2
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -19,7 +17,8 @@
   DateTime::Locale: 0.45
   DateTime::TimeZone: 0.79
   Params::Validate: 0.64
+  Test::More: 0.88
 resources:
   bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=DateTime-Format-Strptime
   repository: http://hg.urth.org/hg/DateTime-Format-Strptime
-version: 1.3000
+version: 1.5000
diff -Nru libdatetime-format-strptime-perl-1.3000/Makefile.PL libdatetime-format-strptime-perl-1.5000/Makefile.PL
--- libdatetime-format-strptime-perl-1.3000/Makefile.PL	2010-06-26 18:57:52.000000000 +0200
+++ libdatetime-format-strptime-perl-1.5000/Makefile.PL	2010-10-16 22:26:44.000000000 +0200
@@ -11,12 +11,9 @@
 my %WriteMakefileArgs = (
   'ABSTRACT' => 'Parse and format strp and strf time patterns',
   'AUTHOR' => 'Dave Rolsky <autarch@urth.org>',
-  'BUILD_REQUIRES' => {
-    'Test::More' => '0.88'
-  },
+  'BUILD_REQUIRES' => {},
   'CONFIGURE_REQUIRES' => {
-    'ExtUtils::MakeMaker' => '6.31',
-    'Module::Build' => '0.36'
+    'ExtUtils::MakeMaker' => '6.31'
   },
   'DISTNAME' => 'DateTime-Format-Strptime',
   'EXE_FILES' => [],
@@ -26,9 +23,10 @@
     'DateTime' => '0.4304',
     'DateTime::Locale' => '0.45',
     'DateTime::TimeZone' => '0.79',
-    'Params::Validate' => '0.64'
+    'Params::Validate' => '0.64',
+    'Test::More' => '0.88'
   },
-  'VERSION' => '1.3000',
+  'VERSION' => '1.5000',
   'test' => {
     'TESTS' => 't/*.t'
   }
diff -Nru libdatetime-format-strptime-perl-1.3000/README libdatetime-format-strptime-perl-1.5000/README
--- libdatetime-format-strptime-perl-1.3000/README	2010-06-26 18:57:52.000000000 +0200
+++ libdatetime-format-strptime-perl-1.5000/README	2010-10-16 22:26:44.000000000 +0200
@@ -1,7 +1,7 @@
 
 
 This archive contains the distribution DateTime-Format-Strptime,
-version 1.3000:
+version 1.5000:
 
   Parse and format strp and strf time patterns
 
diff -Nru libdatetime-format-strptime-perl-1.3000/SIGNATURE libdatetime-format-strptime-perl-1.5000/SIGNATURE
--- libdatetime-format-strptime-perl-1.3000/SIGNATURE	2010-06-26 18:57:54.000000000 +0200
+++ libdatetime-format-strptime-perl-1.5000/SIGNATURE	2010-10-16 22:26:47.000000000 +0200
@@ -14,16 +14,16 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-SHA1 6a3a5ad68ac482432aad26c6f8017a9f3042b3ba Changes
-SHA1 c4dacd89bd120b4e3081d47e8dd8dd9fe08cf8ee INSTALL
+SHA1 639eae76a28e3bbe56bf13118f3c13ec13917b30 Changes
+SHA1 91d30b78b85c860e71f72283fbc874ba2c4eaed0 INSTALL
 SHA1 23c628b4a8a36738405ccdacaeb912d2e727b4c0 LICENSE
 SHA1 6ce15893e518d227515664e87be75aebdc70e316 MANIFEST
-SHA1 5056d1dcf4ab4da565a20ecce9a0f721ee0a6dab META.json
-SHA1 f5581084f184dd10cf254fc5f885e6dbc7b6f347 META.yml
-SHA1 2f9b1495c1affde97afad8af67e8dcd909503286 Makefile.PL
-SHA1 ca32aa3ceb200537faab3672e82fed305a64b9e0 README
-SHA1 5f534964a7c112ceea8d6cffbfbbcee35cfa7b7e dist.ini
-SHA1 1d95be020bae621f20e742e6e0fe90c3ccde78bf lib/DateTime/Format/Strptime.pm
+SHA1 e43a307db71807dbf6fbafea707ff201a39451d9 META.json
+SHA1 6b2b7a4d5dab143f69ac11be1693a9edb8fd6982 META.yml
+SHA1 6fa7c82204155cd0894fb2d350d8abfc326a742b Makefile.PL
+SHA1 91be74eaa0ce8371e9f5311af248875c3a457851 README
+SHA1 2222ffe3f727017178ba513401338ffc69abddc6 dist.ini
+SHA1 acbd316444a1a7757475483063205687231648f1 lib/DateTime/Format/Strptime.pm
 SHA1 36028252b2cef83972a10893f6e791335859daf1 t/001_load.t
 SHA1 5400fdb559f023ee6cec3a15726c7181d750ddba t/002_dates.t
 SHA1 39976a62c616193d104b0efca4e5a0e91ba99a1f t/003_every.t
@@ -31,10 +31,10 @@
 SHA1 2d773953c36b8f74b8915f60b3b7bc0191a12e6f t/005_croak.t
 SHA1 7c89a33066f76c9fa41940fd55d52a087be9870e t/006_locales.t
 SHA1 17bad4a308e3f679cfe7bb80044de43dd3cecbb1 t/007_edge.t
-SHA1 579f1a9cb59ac73fcbf9eb9a2e535fa1607153b3 t/008_epoch.t
+SHA1 77fb78edc62d2944c4f45c66000711777432233d t/008_epoch.t
 SHA1 381b87f0fecebd2c48c3537ea47d0da1e4a90d94 t/009_regexp.t
 SHA1 185dc6943ddd46711eee297272fd9e3374719599 t/author-001_all_locales.t
-SHA1 24b525e3c18f37f8022a01ec30de757cefb679ff t/release-eol.t
+SHA1 a032c41ef6887fab1b900669c2d304fab46680e2 t/release-eol.t
 SHA1 961a1e2c92d836c8cad2d34b784cbc75345dec63 t/release-kwalitee.t
 SHA1 455d1dd1867212a665ad5ea4126b572411de300c t/release-no-tabs.t
 SHA1 b015e8b6533ae3c202f1c1644669e3f55980981f t/release-pod-coverage.t
@@ -43,7 +43,7 @@
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.10 (GNU/Linux)
 
-iEYEARECAAYFAkwmMZAACgkQIgMCsV8qvRI2iwCfeYC1hUQ5rNdadSnLCHSlujps
-7lIAoIDYYamd2aF+tpvDWNENLADdQIUZ
-=Hi71
+iEYEARECAAYFAky6CoQACgkQIgMCsV8qvRJuqgCfbbp9Sa9gBh769as6OkgOSUyy
+ldYAniRND/bBWcA9s0m0HQZU2Etdfr6w
+=PcSD
 -----END PGP SIGNATURE-----
diff -Nru libdatetime-format-strptime-perl-1.3000/debian/changelog libdatetime-format-strptime-perl-1.5000/debian/changelog
--- libdatetime-format-strptime-perl-1.3000/debian/changelog	2010-06-28 16:56:22.000000000 +0200
+++ libdatetime-format-strptime-perl-1.5000/debian/changelog	2010-10-17 11:57:35.000000000 +0200
@@ -1,3 +1,13 @@
+libdatetime-format-strptime-perl (1.5000-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/copyright: Refer to "Debian systems" instead of "Debian GNU/Linux
+    systems"; refer to /usr/share/common-licenses/GPL-1.
+  * Bump Standards-Version to 3.9.1.
+  * Update my email address.
+
+ -- Ansgar Burchardt <ansgar@debian.org>  Sun, 17 Oct 2010 11:57:33 +0200
+
 libdatetime-format-strptime-perl (1.3000-1) unstable; urgency=low
 
   * New upstream release.
diff -Nru libdatetime-format-strptime-perl-1.3000/debian/control libdatetime-format-strptime-perl-1.5000/debian/control
--- libdatetime-format-strptime-perl-1.3000/debian/control	2010-06-28 16:56:22.000000000 +0200
+++ libdatetime-format-strptime-perl-1.5000/debian/control	2010-10-17 11:51:39.000000000 +0200
@@ -8,11 +8,11 @@
 Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
 Uploaders: Ernesto Hernández-Novich (USB) <emhn@usb.ve>,
  gregor herrmann <gregoa@debian.org>, Niko Tyni <ntyni@iki.fi>,
- Ryan Niebur <ryan@debian.org>, Ansgar Burchardt <ansgar@43-1.org>
+ Ryan Niebur <ryan@debian.org>, Ansgar Burchardt <ansgar@debian.org>
 Homepage: http://datetime.perl.org/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libdatetime-format-strptime-perl/
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libdatetime-format-strptime-perl/
-Standards-Version: 3.9.0
+Standards-Version: 3.9.1
 
 Package: libdatetime-format-strptime-perl
 Architecture: all
diff -Nru libdatetime-format-strptime-perl-1.3000/debian/copyright libdatetime-format-strptime-perl-1.5000/debian/copyright
--- libdatetime-format-strptime-perl-1.3000/debian/copyright	2010-06-28 16:56:22.000000000 +0200
+++ libdatetime-format-strptime-perl-1.5000/debian/copyright	2010-10-17 11:52:26.000000000 +0200
@@ -207,15 +207,17 @@
       IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.License: Artistic-2.0
 
 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'.
diff -Nru libdatetime-format-strptime-perl-1.3000/dist.ini libdatetime-format-strptime-perl-1.5000/dist.ini
--- libdatetime-format-strptime-perl-1.3000/dist.ini	2010-06-26 18:57:52.000000000 +0200
+++ libdatetime-format-strptime-perl-1.5000/dist.ini	2010-10-16 22:26:44.000000000 +0200
@@ -2,7 +2,7 @@
 author  = Dave Rolsky <autarch@urth.org>
 copyright_year = 2010
 
-version = 1.3000
+version = 1.5000
 
 [@Basic]
 
@@ -27,19 +27,13 @@
 
 [CheckChangeLog]
 
-[Prereq / ConfigureRequires]
-Module::Build = 0.36
-
-[Prereq / TestRequires]
+[Prereqs / TestReqsuires]
 Test::More = 0.88
 
-[Prereq]
-DateTime = 0.4304
-DateTime::Locale = 0.45
+[Prereqs]
+DateTime           = 0.4304
+DateTime::Locale   = 0.45
 DateTime::TimeZone = 0.79
-Params::Validate = 0.64
+Params::Validate   = 0.64
 
 [@Mercurial]
-
-
-
diff -Nru libdatetime-format-strptime-perl-1.3000/lib/DateTime/Format/Strptime.pm libdatetime-format-strptime-perl-1.5000/lib/DateTime/Format/Strptime.pm
--- libdatetime-format-strptime-perl-1.3000/lib/DateTime/Format/Strptime.pm	2010-06-26 18:57:52.000000000 +0200
+++ libdatetime-format-strptime-perl-1.5000/lib/DateTime/Format/Strptime.pm	2010-10-16 22:26:44.000000000 +0200
@@ -1,4 +1,7 @@
 package DateTime::Format::Strptime;
+BEGIN {
+  $DateTime::Format::Strptime::VERSION = '1.5000';
+}
 
 use strict;
 
@@ -10,10 +13,9 @@
 
 use Exporter;
 use vars
-    qw( $VERSION @ISA @EXPORT @EXPORT_OK %ZONEMAP %FORMATS $CROAK $errmsg);
+    qw( @ISA @EXPORT @EXPORT_OK %ZONEMAP %FORMATS $CROAK $errmsg);
 
 @ISA       = 'Exporter';
-$VERSION   = '1.2000';
 @EXPORT_OK = qw( &strftime &strptime );
 @EXPORT    = ();
 
@@ -121,6 +123,7 @@
     'Y'      => '-1200',     'YAKST'  => '+1000',     'YAKT'   => '+0900',
     'YAPT'   => '+1000',     'YDT'    => '-0800',     'YEKST'  => '+0600',
     'YEKT'   => '+0500',     'YST'    => '-0900',     'Z'      => '+0000',
+    'UTC'    => '+0000',
 );
 
 sub new {
@@ -1079,7 +1082,7 @@
 
 =head1 VERSION
 
-version 1.3000
+version 1.5000
 
 =head1 SYNOPSIS
 
@@ -1429,7 +1432,7 @@
 
 =head1 AUTHOR
 
-  Dave Rolsky <autarch@urth.org>
+Dave Rolsky <autarch@urth.org>
 
 =head1 COPYRIGHT AND LICENSE
 
diff -Nru libdatetime-format-strptime-perl-1.3000/t/008_epoch.t libdatetime-format-strptime-perl-1.5000/t/008_epoch.t
--- libdatetime-format-strptime-perl-1.3000/t/008_epoch.t	2010-06-26 18:57:52.000000000 +0200
+++ libdatetime-format-strptime-perl-1.5000/t/008_epoch.t	2010-10-16 22:26:44.000000000 +0200
@@ -2,7 +2,7 @@
 
 # t/008_epoch.t - Epoch (%s) tests
 
-use Test::More tests => 23;
+use Test::More tests => 26;
 use DateTime;
 use DateTime::Format::Strptime;
 
@@ -17,6 +17,15 @@
     epoch     => $time,
 );
 
+# is UTC recognized?
+test(
+    pattern   => "%a %d %b %Y %H:%M:%S %p %Z",
+    time_zone => 'UTC',
+    locale    => 'en_US',
+    input     => "Thu 08 Jul 2010 09:49:02 AM UTC",
+    epoch     => 1278582542,
+);
+
 # diag("Epoch with a no given time_zone assumes 'floating'. (Though when given an epoch, really should assume UTC ..)");
 {
     my $parser = DateTime::Format::Strptime->new(
diff -Nru libdatetime-format-strptime-perl-1.3000/t/release-eol.t libdatetime-format-strptime-perl-1.5000/t/release-eol.t
--- libdatetime-format-strptime-perl-1.3000/t/release-eol.t	2010-06-26 18:57:52.000000000 +0200
+++ libdatetime-format-strptime-perl-1.5000/t/release-eol.t	2010-10-16 22:26:44.000000000 +0200
@@ -13,4 +13,4 @@
 eval 'use Test::EOL';
 plan skip_all => 'Test::EOL required' if $@;
 
-all_perl_files_ok();
+all_perl_files_ok({ trailing_whitespace => 1 });

Reply to: