r20442 - in /trunk/libregexp-common-time-perl: Build.PL META.yml Makefile.PL README SIGNATURE debian/changelog lib/Regexp/Common/time.pm

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Tue May 27 16:25:32 UTC 2008


Author: gregoa
Date: Tue May 27 16:25:31 2008
New Revision: 20442

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=20442
Log:
New upstream release.

Modified:
    trunk/libregexp-common-time-perl/Build.PL
    trunk/libregexp-common-time-perl/META.yml
    trunk/libregexp-common-time-perl/Makefile.PL
    trunk/libregexp-common-time-perl/README
    trunk/libregexp-common-time-perl/SIGNATURE
    trunk/libregexp-common-time-perl/debian/changelog
    trunk/libregexp-common-time-perl/lib/Regexp/Common/time.pm

Modified: trunk/libregexp-common-time-perl/Build.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libregexp-common-time-perl/Build.PL?rev=20442&op=diff
==============================================================================
--- trunk/libregexp-common-time-perl/Build.PL (original)
+++ trunk/libregexp-common-time-perl/Build.PL Tue May 27 16:25:31 2008
@@ -10,6 +10,12 @@
     build_requires =>
     {
      'Test::More'      =>  '0.40',
+     'Regexp::Common'  =>  0,
+     'POSIX'           =>  0,
+    },
+    requires =>
+    {
+     'Regexp::Common'  =>  0,
      'POSIX'           =>  0,
     },
     sign => 1,

Modified: trunk/libregexp-common-time-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libregexp-common-time-perl/META.yml?rev=20442&op=diff
==============================================================================
--- trunk/libregexp-common-time-perl/META.yml (original)
+++ trunk/libregexp-common-time-perl/META.yml Tue May 27 16:25:31 2008
@@ -1,20 +1,24 @@
 ---
 name: Regexp-Common-time
-version: 0.02
+version: 0.03
 author:
   - 'Eric J. Roode <eroode at barrack.com>'
 abstract: Date and time regexps.
 license: perl
 resources:
   license: http://dev.perl.org/licenses/
+requires:
+  POSIX: 0
+  Regexp::Common: 0
 build_requires:
   POSIX: 0
+  Regexp::Common: 0
   Test::More: 0.40
 provides:
   Regexp::Common::time:
     file: lib/Regexp/Common/time.pm
-    version: 0.02
-generated_by: Module::Build version 0.280801
+    version: 0.03
+generated_by: Module::Build version 0.2805
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.2.html
   version: 1.2

Modified: trunk/libregexp-common-time-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libregexp-common-time-perl/Makefile.PL?rev=20442&op=diff
==============================================================================
--- trunk/libregexp-common-time-perl/Makefile.PL (original)
+++ trunk/libregexp-common-time-perl/Makefile.PL Tue May 27 16:25:31 2008
@@ -7,8 +7,9 @@
     PREREQ_PM         =>
     {
      'Test::More'      =>  '0.40',
+     'Regexp::Common'  =>  0,
      'POSIX'           =>  0,
-    }
+    },
     ($] >= 5.005 ?     ## Add these new keywords supported since 5.005
       (ABSTRACT_FROM  => 'lib/Regexp/Common/time.pm', # retrieve abstract from module
        AUTHOR         => 'eroode <eroode at barrack.com>') : ()),

Modified: trunk/libregexp-common-time-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libregexp-common-time-perl/README?rev=20442&op=diff
==============================================================================
--- trunk/libregexp-common-time-perl/README (original)
+++ trunk/libregexp-common-time-perl/README Tue May 27 16:25:31 2008
@@ -1,4 +1,4 @@
-Regexp::Common::time v0.02
+Regexp::Common::time v0.03
 ==========================
 
 This is a Regexp::Common plugin that provides regular expressions for
@@ -10,6 +10,10 @@
     2005 April 2        April 2, 2005       2 APR 05
     05APRIL02           APR022005           02 April 2005
     20050402            040205              02042005
+
+      ISO 8601            RFC 2822
+  2008-05-24T21:46:01   25 May 2008 21:46:01 +0500
+
 
 It can also handle time formats like:
 
@@ -57,7 +61,7 @@
 
 COPYRIGHT AND LICENSE
 
-Copyright (c) 2005-2008 by Eric J. Roode, ROODE I<-at-> cpan I<-dot-> org
+Copyright (c) 2005-2008 by Eric J. Roode, ROODE -at- cpan -dot- org
 
 All rights reserved.
 
@@ -73,6 +77,6 @@
 are no undiscovered bugs, and no warranty is made as to suitability to
 any given use, including merchantability.  Should this module cause
 your house to burn down, your dog to collapse, your heart-lung machine
-to fail, your spouse to desert you, or George Bush to be re-elected, I
-can offer only my sincere sympathy and apologies, and promise to
+to fail, your spouse to desert you, or George Bush to be re-elected,
+I can offer only my sincere sympathy and apologies, and promise to
 endeavor to improve the software.

Modified: trunk/libregexp-common-time-perl/SIGNATURE
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libregexp-common-time-perl/SIGNATURE?rev=20442&op=diff
==============================================================================
--- trunk/libregexp-common-time-perl/SIGNATURE (original)
+++ trunk/libregexp-common-time-perl/SIGNATURE Tue May 27 16:25:31 2008
@@ -14,14 +14,14 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-SHA1 0b2f17a3c19f3abcdb51ca228ef0f4594da8ff8c Build.PL
+SHA1 e18d5ce13b858ce4170edc152f0b215e6bc535ec Build.PL
 SHA1 7b18399be1767b0882ed809438f0b0c21a674201 Changes
 SHA1 938071f3d3ae0b2ab9e77332a651c274e33b17c5 MANIFEST
 SHA1 af38155153ca6edd302b444b260fc2c8a4652a7b MANIFEST.SKIP
-SHA1 1a86c1de5e1f170ce0c950350ad3c60498b2ffd8 META.yml
-SHA1 878b0c030b541e958b13514a49876259052fdb63 Makefile.PL
-SHA1 3a7b3b345b84a5accc485ffd01e179c5a858729a README
-SHA1 6f4615665a85969b654e8a9e166b8a76c924cffd lib/Regexp/Common/time.pm
+SHA1 4d40d3f0bb572a87c3f25603cf1042512352d587 META.yml
+SHA1 85e5cef5d60a3a2d38ef296d6b3d517c9293bcea Makefile.PL
+SHA1 5bc0f14e9aff4ca3239bcd22bd0257947a07a103 README
+SHA1 3c6118cf94dbe7f7013088180d06c2f17efe85a5 lib/Regexp/Common/time.pm
 SHA1 a1d093f11bafe2e27c50ac27a8a5bc1cfb1f9d4b t/0-signature.t
 SHA1 a40253b3c8eb0594a3e000a102344dc4307577e0 t/1-load.t
 SHA1 17c2f0ae4f6b44054f1fda206dc8f72839ce5e05 t/american.t
@@ -38,7 +38,7 @@
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.9 (Cygwin)
 
-iEYEARECAAYFAkg3NBMACgkQwoSYc5qQVqqcLwCfYolMjCc1SaXanYX1gDFACr0C
-S8IAni/a9gLfoFL4GlWzwASW2DYEV4l/
-=nWvu
+iEYEARECAAYFAkg5absACgkQwoSYc5qQVqp6kwCeIEwmsDyMJ6jWFIQUsgLFOyVn
+mmgAnig16RCcKU5lu6c7eW4+0WBVNmQs
+=+Csf
 -----END PGP SIGNATURE-----

Modified: trunk/libregexp-common-time-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libregexp-common-time-perl/debian/changelog?rev=20442&op=diff
==============================================================================
--- trunk/libregexp-common-time-perl/debian/changelog (original)
+++ trunk/libregexp-common-time-perl/debian/changelog Tue May 27 16:25:31 2008
@@ -1,4 +1,4 @@
-libregexp-common-time-perl (0.02-1) UNRELEASED; urgency=low
+libregexp-common-time-perl (0.03-1) UNRELEASED; urgency=low
 
   TODO:
   - the new "license" (cf. README and time.pm) looks "interesting"

Modified: trunk/libregexp-common-time-perl/lib/Regexp/Common/time.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libregexp-common-time-perl/lib/Regexp/Common/time.pm?rev=20442&op=diff
==============================================================================
--- trunk/libregexp-common-time-perl/lib/Regexp/Common/time.pm (original)
+++ trunk/libregexp-common-time-perl/lib/Regexp/Common/time.pm Tue May 27 16:25:31 2008
@@ -8,21 +8,28 @@
 
 =head1 VERSION
 
-This is version 0.02 of Regexp::Common::time, May 23, 2008.
+This is version 0.03 of Regexp::Common::time, May 25, 2008.
 
 =cut
 
 use strict;
 package Regexp::Common::time;
-$Regexp::Common::time::VERSION = '0.02';
+$Regexp::Common::time::VERSION = '0.03';
 use Regexp::Common qw(pattern);
 use POSIX;
 
 sub _croak { require Carp; goto &Carp::croak}
 
 my $can_locale;
+my $can_posix;
 BEGIN
 {
+    eval
+    {
+        $can_posix = 0;
+        require POSIX;
+        $can_posix = 1;
+    };
     eval
     {
         $can_locale = 0;
@@ -479,7 +486,7 @@
 {
     # Do nothing if locale has not changed since we set it up
     my $current_locale;
-    $current_locale = POSIX::setlocale(POSIX::LC_TIME());
+    $current_locale = $can_posix?  POSIX::setlocale(POSIX::LC_TIME())  :  q{};
     $current_locale = q{} if  !defined $current_locale;
 
     # No changes needed
@@ -935,8 +942,8 @@
 
 =head1 ISO-8601 DATE/TIME MATCHING
 
-The C<$RE{time}{iso}> pattern will match many (most? all?) strings
-formatted as recommended by ISO-8601.  The canonical ISO-8601 form is:
+The C<$RE{time}{iso}> pattern will match most (all?) strings formatted
+as recommended by ISO-8601.  The canonical ISO-8601 form is:
 
     YYYY-MM-DDTHH:MM:SS
 
@@ -991,11 +998,11 @@
 ignores the weekday, as it is redundant and only supplied for human
 readability.
 
-RFC 2822 requires that older, obsolete date forms be specified as
-well; for example, alphanumeric time zone codes (e.g. EDT).  This
-module's C<mail> allows for these obsolete date forms.  If you want
-to match only the proper date forms recommended by RFC 2822, you can
-use the C<MAIL> pattern instead.
+RFC 2822 requires that older, obsolete date forms be allowed as well;
+for example, alphanumeric time zone codes (e.g. EDT).  This module's
+C<mail> allows for these obsolete date forms.  If you want to match
+only the proper date forms recommended by RFC 2822, you can use the
+C<MAIL> pattern instead.
 
 In either case, C<mail> or C<MAIL>, the pattern generated is very
 flexible about whitespace.  The main differences are: with C<MAIL>,
@@ -1279,6 +1286,7 @@
 
 C<  $4  -> the day
 
+
 The fuzzy m/d/y patterns capture
 
 C<  $1  -> the entire match
@@ -1289,6 +1297,7 @@
 
 C<  $4  -> the year
 
+
 The fuzzy d/m/y patterns capture
 
 C<  $1  -> the entire match
@@ -1299,6 +1308,7 @@
 
 C<  $4  -> the year
 
+
 The fuzzy h/m/s pattern captures
 
 C<  $1  -> the entire match
@@ -1310,6 +1320,7 @@
 C<  $4  -> the second  (C<undef> if omitted)
 
 C<  $5  -> the am/pm indicator (C<undef> if omitted)
+
 
 =head1 EXAMPLES
 
@@ -1372,10 +1383,9 @@
 
 Requires L<Regexp::Common>, of course.
 
-Also requires L<POSIX>.
-
-If L<I18N::Langinfo> is available, this module will use it; otherwise,
-it will use hardcoded English values for month and weekday names.
+If L<POSIX> and L<I18N::Langinfo> are available, this module will use
+them; otherwise, it will use hardcoded English values for month and
+weekday names.
 
 L<Test::More> is required for the test suite.
 
@@ -1413,9 +1423,9 @@
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.9 (Cygwin)
 
-iEYEARECAAYFAkg3L5MACgkQwoSYc5qQVqqTQQCfeUeObeFdusp29rHMCMUbhkkU
-9wEAn19gjUe9ANUTzl34VG4tVh9zfXlq
-=FXwZ
+iEYEARECAAYFAkg5ZYoACgkQwoSYc5qQVqr8wACfaNljWjMNpy28FvdjpZuWMWmr
+VaAAnjpB6xwlDeoSQrKpFdehQIghzX+X
+=qPP1
 -----END PGP SIGNATURE-----
 
 =end gpg




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