Hello community,
here is the log from the commit of package perl-DateTime-Format-Strptime for
openSUSE:Factory checked in at 2013-06-13 17:32:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-DateTime-Format-Strptime (Old)
and /work/SRC/openSUSE:Factory/.perl-DateTime-Format-Strptime.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-DateTime-Format-Strptime"
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-DateTime-Format-Strptime/perl-DateTime-Format-Strptime.changes
2011-11-21 12:38:47.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.perl-DateTime-Format-Strptime.new/perl-DateTime-Format-Strptime.changes
2013-06-13 17:32:54.000000000 +0200
@@ -1,0 +2,13 @@
+Mon Jun 10 15:46:45 UTC 2013 - [email protected]
+
+- updated to 1.54
+ - Require DateTime.pm 1.00 because without it tests will break.
+ - A fix in DateTime.pm 1.00 broke a test in this distro. Reported by Anthony
J
+ Lucas. RT #84371.
+ - Shut up "unescaped braces in regex" warning from 5.17.0. RT #77514. Patch
by
+ Zefram.
+ - Packaging cleanup, including listing Test::More as a test prereq, not a
+ runtime prereq. RT #76128.
+- removed obsolete DateTime-Format-Strptime-1.5000-deps.patch
+
+-------------------------------------------------------------------
Old:
----
DateTime-Format-Strptime-1.5000-deps.patch
DateTime-Format-Strptime-1.5000.tar.gz
New:
----
DateTime-Format-Strptime-1.54.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-DateTime-Format-Strptime.spec ++++++
--- /var/tmp/diff_new_pack.uLPLv8/_old 2013-06-13 17:32:54.000000000 +0200
+++ /var/tmp/diff_new_pack.uLPLv8/_new 2013-06-13 17:32:54.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-DateTime-Format-Strptime
#
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,47 +15,40 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
-# norootforbuild
-
Name: perl-DateTime-Format-Strptime
+Version: 1.54
+Release: 0
%define cpan_name DateTime-Format-Strptime
Summary: Parse and format strp and strf time patterns
-Version: 1.5000
-Release: 1
License: Artistic-2.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/DateTime-Format-Strptime/
-#Source:
http://www.cpan.org/modules/by-module/DateTime/DateTime-Format-Strptime-%{version}.tar.gz
-Source: %{cpan_name}-%{version}.tar.gz
-Patch: %{cpan_name}-1.5000-deps.patch
+Source:
http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
-BuildRequires: perl(DateTime) >= 0.44
+BuildRequires: perl(DateTime) >= 1.00
BuildRequires: perl(DateTime::Locale) >= 0.45
BuildRequires: perl(DateTime::TimeZone) >= 0.79
BuildRequires: perl(Params::Validate) >= 0.64
-Requires: perl(DateTime) >= 0.44
+BuildRequires: perl(Test::More) >= 0.88
+#BuildRequires: perl(DateTime::Format::Strptime)
+Requires: perl(DateTime) >= 1.00
Requires: perl(DateTime::Locale) >= 0.45
Requires: perl(DateTime::TimeZone) >= 0.79
Requires: perl(Params::Validate) >= 0.64
+%{perl_requires}
%description
-This module implements most of strptime(3), the POSIX function that is the
-reverse of strftime(3), for DateTime. While strftime takes a DateTime and a
-pattern and returns a string, strptime takes a string and a pattern and
-returns the DateTime object associated.
-
-Authors:
---------
- Rick Measham <[email protected]>
+This module implements most of 'strptime(3)', the POSIX function that is
+the reverse of 'strftime(3)', for 'DateTime'. While 'strftime' takes a
+'DateTime' and a pattern and returns a string, 'strptime' takes a string
+and a pattern and returns the 'DateTime' object associated.
%prep
%setup -q -n %{cpan_name}-%{version}
-%patch -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -66,18 +59,11 @@
%install
%perl_make_install
-# do not perl_process_packlist (noarch)
-# remove .packlist file
-%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
-# remove perllocal.pod file
-%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
+%perl_process_packlist
%perl_gen_filelist
-%clean
-%{__rm} -rf $RPM_BUILD_ROOT
-
%files -f %{name}.files
-%defattr(-,root,root,-)
-%doc Changes dist.ini LICENSE META.json README SIGNATURE
+%defattr(-,root,root,755)
+%doc Changes LICENSE README
%changelog
++++++ DateTime-Format-Strptime-1.5000.tar.gz ->
DateTime-Format-Strptime-1.54.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.5000/Changes
new/DateTime-Format-Strptime-1.54/Changes
--- old/DateTime-Format-Strptime-1.5000/Changes 2010-10-16 22:26:44.000000000
+0200
+++ new/DateTime-Format-Strptime-1.54/Changes 2013-04-03 06:01:26.000000000
+0200
@@ -1,221 +1,279 @@
-1.5000 2010-10-16
+1.54 2013-04-02
- - This module did not recognize UTC as a valid time zone. Patch by Danijel
- Tašov. RT #59209.
+- Require DateTime.pm 1.00 because without it tests will break.
-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
-
-1.1000 2009-07-13 -- Regex Pattern
- - If the pattern you pass in is a regular expression, that will be honored.
- - Changed the locale tests to use require the latest version of Locale
until the target stops moving.
-
-1.0901 2009-05-16 -- Official release of 1.0900_01
-
-1.0900_01 2009-04-18 -- DEVELOPER RELEASE ONLY
- - Makefile.PL changes for Windows users as per issue #16
-
-1.0900 2009-02-22
- - Another pile-o-bugs
- - It seems that I also wasn't seeing notifications from RT
- (please don't use it, use the Gooogle project) so all the
- following are fixed:
- 36672 Started failing mid May
- 23313 Bug handling time zones like America/New_York
- 25555 Module dies even when on_error is 'undef'
- 23768 Olson timezone handling incorrect
- 22450 locale test failing with bleadperl
- 20487 nmake test_more fail (with patch); incorrect
- META.yml
- 12071 format_datetime uses datetime locale rather than
- format locale
- 11863 bug in DateTime::Format::Strptime 1.0601 when using %s
-
- - And a couple from Google:
- #8 Add DateTime::Locale to documentation
- #10 Parsing bug -- can't detect word boundry after month abbr
-
-1.0800 2008-08-07
- - Pile-o-bugs
- - It seems that I wasn't getting notifications from Google
- when people had reported bugs, so there's a pile of fixes
- in this release. Hopefully that fixes everyone's issues.
-
-1.0702 2007-09-19
- - YAML and POD
- - Updated the META.yml file to have the correct 'resources'
- and match the latest spec
- - Updated the docus with a 'resources' section that has the
- same information in it for readers of POD.
- - This version ONLY changes the documentation and so it not a
- required update.
-
-1.0701 2007-09-18
- - The revised locale tests releasese
- - Many people pointed out that while this module hadn't broken
- the tests for the French locale had. This is due to a new
- source for the data in DateTime::Locale.
- - This version ONLY changes the tests and so it not a required
- update.
+1.53 2013-04-02
+
+- A fix in DateTime.pm 1.00 broke a test in this distro. Reported by Anthony J
+ Lucas. RT #84371.
+
+
+1.52 2012-07-01
+
+- Shut up "unescaped braces in regex" warning from 5.17.0. RT #77514. Patch by
+ Zefram.
+
+
+1.51 2012-05-27
+
+- Packaging cleanup, including listing Test::More as a test prereq, not a
+ runtime prereq. RT #76128.
+
+
+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
+
+
+1.1000 2009-07-13 -- Regex Pattern
+
+- If the pattern you pass in is a regular expression, that will be honored.
+
+- Changed the locale tests to use require the latest version of Locale until
+ the target stops moving.
+
+
+1.0901 2009-05-16 -- Official release of 1.0900_01
+
+1.0900_01 2009-04-18
+
+- Makefile.PL changes for Windows users as per issue #16
+
+
+1.0900 2009-02-22
+
+- It seems that I also wasn't seeing notifications from RT (please don't use
+ it, use the Gooogle project) so all the following are fixed:
+
+ - 36672 Started failing mid May
+ - 23313 Bug handling time zones like America/New_York
+ - 25555 Module dies even when on_error is 'undef'
+ - 23768 Olson timezone handling incorrect
+ - 22450 locale test failing with bleadperl
+ - 20487 nmake test_more fail (with patch); incorrect META.yml
+ - 12071 format_datetime uses datetime locale rather than format locale
+ - 11863 bug in DateTime::Format::Strptime 1.0601 when using %s
+
+ - And a couple from Google:
+ - #8 Add DateTime::Locale to documentation
+ - #10 Parsing bug -- can't detect word boundry after month abbr
+
+1.0800 2008-08-07
+
+- It seems that I wasn't getting notifications from Google when people had
+ reported bugs, so there's a pile of fixes in this release. Hopefully that
+ fixes everyone's issues.
+
+1.0702 2007-09-19
+
+- Updated the META.yml file to have the correct 'resources' and match the
+ latest spec
+
+- Updated the docus with a 'resources' section that has the same information
+ in it for readers of POD.
+
+- This version ONLY changes the documentation and so it not a required update.
+
+
+1.0701 2007-09-18
+
+- Many people pointed out that while this module hadn't broken the tests for
+ the French locale had. This is due to a new source for the data in
+ DateTime::Locale.
+
+- This version ONLY changes the tests and so it not a required update.
+
1.0700 Sat, 5 Nov 2005 09:44:10 +1100
- - The 'Twighlight Zone' release
- - Mike Schilli pointed out that strings without time zones
- or constructors without a time zone should be returning
- a DateTime in the floating time zone rather than UTC.
- - Jason Bodnar requested greater allowance for time zones in
- strings .. so I've now added the ability to use an Olson
- time zone identifier with %O. Note that this is a token
- specifically added to Strptime and it WILL NOT WORK with
- DateTime's strftime method.
+
+- Mike Schilli pointed out that strings without time zones or constructors
+ without a time zone should be returning a DateTime in the floating time zone
+ rather than UTC.
+
+- Jason Bodnar requested greater allowance for time zones in strings .. so
+ I've now added the ability to use an Olson time zone identifier with
+ %O. Note that this is a token specifically added to Strptime and it WILL NOT
+ WORK with DateTime's strftime method.
+
1.0601 Wed, 1 Sep 2004 07:52:44 +1000
- - The 'February 30th' test
- - Dave Faraldo and Jonathan Lefter pointed out that one of
- the new Locale tests in t/006... will fail on the 30th
- and 31st of the month as not all months have those days.
- Patch supplied by Jonathan has been applied.
- - This is just a test fix and doesn't alter the way the module
- runs in any way. If you already got 1.06 to run then you don't
- need this.
+
+- Dave Faraldo and Jonathan Lefter pointed out that one of the new Locale
+ tests in t/006... will fail on the 30th and 31st of the month as not all
+ months have those days. Patch supplied by Jonathan has been applied.
+
+- This is just a test fix and doesn't alter the way the module runs in any
+ way. If you already got 1.06 to run then you don't need this.
+
1.0600 Sat, 28 Aug 2004 15:02:47 +1000
- - the 'RedHat' release
- - Fixed bug from RT (#7502) from [email protected]
- that made validation fall over by assuming midnight
- always exists. The patch now assumes Midday exists
- (both he and I assume that DST will never start at
- midday anywhere anytime!)
- - This is a major change and you should install this release if
- you ever use any time_zone other than floating or UTC. And if
- you don't use them today, you may tomorrow - so upgrade OK?
+
+- Fixed bug from RT (#7502) from [email protected] that made validation fall
+ over by assuming midnight always exists. The patch now assumes Midday exists
+ (both he and I assume that DST will never start at midday anywhere anytime!)
+
+- This is a major change and you should install this release if you ever use
+ any time_zone other than floating or UTC. And if you don't use them today,
+ you may tomorrow - so upgrade OK?
+
1.0500 Wed, 18 Aug 2004 17:24:32 +1000
- - the 'Jean Forget' release
- - Adapted and applied patches from Jean Forget to allow
- day names and month names to have \W characters and to
- allow am/pm values from other locales
- - Jean's patch also included some doc patches
- - Patched the synopsis a Jean suggestion to demonstrate
- how to use the non-default error behaviors
- - Added tests for these bugs
- - Added t/more/* and the make test_more target so I can
- test every locale if I want to.
- - It's over a year since I deprecated the language parameter so
- I've now removed it. You've had a year of warnings!
- - This is a major change and you should install this release if
- you use any locale other than en.
+
+- Adapted and applied patches from Jean Forget to allow day names and month
+ names to have \W characters and to allow am/pm values from other locales
+
+- Jean's patch also included some doc patches
+
+- Patched the synopsis a Jean suggestion to demonstrate how to use the
+ non-default error behaviors
+
+- Added tests for these bugs
+
+- Added t/more/* and the make test_more target so I can test every locale if I
+ want to.
+
+- It's over a year since I deprecated the language parameter so I've now
+ removed it. You've had a year of warnings!
+
+- This is a major change and you should install this release if you use any
+ locale other than en.
+
1.0400 Sun, 10 Aug 2003 00:22:00 +1000
- - the 'locale' release
- - Applied patches from Joshua Hoblitt to move the the brand
- new DateTime::Locale rather than the old ::Language modules
- - Implemented %x, %X and %c for locale formats
- - Fixed a bug on the two digit year determinator
- - Added a test for locales known as 004locale.t
- - This is a major change and you should install this release if
- you are using DateTime >= 0.14 (the first release with Locale)
+
+- Applied patches from Joshua Hoblitt to move the the brand new
+ DateTime::Locale rather than the old ::Language modules
+
+- Implemented %x, %X and %c for locale formats
+
+- Fixed a bug on the two digit year determinator
+
+- Added a test for locales known as 004locale.t
+
+- This is a major change and you should install this release if you are using
+ DateTime >= 0.14 (the first release with Locale)
+
1.0302 Sat, 28 Jun 2003 09:15:21 +1000
- - the 'Broken Windows' release
- - Test 004 was failing on Windows due to the path delimiter
- being a backslash rather than a slash. This release should
- also fix Strptime for Mac users, although I've had no
- complaints from such users. (Myself being one of the only
- ones currently using Strptime AFAIK!) Thanks Ron Hill for
- the bug report.
+
+- Test 004 was failing on Windows due to the path delimiter being a backslash
+ rather than a slash. This release should also fix Strptime for Mac users,
+ although I've had no complaints from such users. (Myself being one of the
+ only ones currently using Strptime AFAIK!) Thanks Ron Hill for the bug
+ report.
+
1.0301 Wed, 25 Jun 2003 22:40:12 +1000
- - the 'Day of Year' release
- - Updated to handle the post 0.12 DateTime that now
- validates dates. Still handles old DateTime.
+
+- Updated to handle the post 0.12 DateTime that now validates dates. Still
+ handles old DateTime.
+
1.0300 Sat, 07 Jun 2003 10:40:23 +1000
- - the 'Better way to die' release
- - The above has changed by request of Dave Rolsky and Iain
- Truskett (Thanks!). We now allow each object to have its
- own behavior.
- - The default behavior has been changed to returning undef.
- This was requested by someone (tell me if it was you!) and
- made a lot of sense to me.
- - Never released to CPAN
+
+- The calls to die() have changed by request of Dave Rolsky and Iain Truskett
+ (Thanks!). We now allow each object to have its own behavior.
+
+- The default behavior has been changed to returning undef. This was
+ requested by someone (tell me if it was you!) and made a lot of sense to me.
+
+- Never released to CPAN
+
1.0200 Wed, 28 May 2003 21:02:03 +1000
- - the 'Proclavity to croak' release
- - The docs for Time::Local talk about the 'proclavity to croak'
- which basically means the module croaks easily. So did this
- one until now.
-
- Until now, if you allowed a user to specify a pattern and they
- entered one that was non parsable, this module would croak
- causing your script to croak. This is a Bad Thing (tm).
-
- The behaviour now remains the same, however if you set
- $DateTime::Format::StrpTime::CROAK to false, methods will
- return undef rather than croaking.
- $DateTime::Format::StrpTime::errmsg will tell you what went
- wrong.
-
- The default is to continue to croak. This means you have to
- delibrately turn it off. Hopefully you'll change you script
- to do this at the same time you change it to check the
- return values of the methods :)
+
+- The docs for Time::Local talk about the 'proclivity to croak' which
+ basically means the module croaks easily. So did this one until now.
+
+ Until now, if you allowed a user to specify a pattern and they entered one
+ that was non parsable, this module would croak causing your script to
+ croak. This is a Bad Thing (tm).
+
+ The behaviour now remains the same, however if you set
+ $DateTime::Format::StrpTime::CROAK to false, methods will return undef
+ rather than croaking. $DateTime::Format::StrpTime::errmsg will tell you
+ what went wrong.
+
+ The default is to continue to croak. This means you have to delibrately turn
+ it off. Hopefully you'll change you script to do this at the same time you
+ change it to check the return values of the methods :)
+
1.0103 Wed, 28 May 2003 20:10:57 +1000
- - the 'What's up Docs' release
- - Applied doc patches from Iain Truskett (Thanks!)
- - Clarified parameter discrepancy between synopsis and docs
- (Thanks Chris Winters)
-
-1.0102 Fri, 16 May 2003 07:28:18 + 1000
- - the 'wonky test' release
- - Fixed the same test as above. Think I actually succeeded
- this time!
-
-1.0101 Tue, 13 May 2003 07:58:23 + 1000
- - the 'oldtimers' release
- - Fixed a test that was broken if DateTime::TimeZone was not
- version 0.13 or above.
-
-1.0100 Sun, 11 May 2003 13:54:36 + 1000
- - the 'nanozone' release
- - If we have the latest DateTime we run the test mentioned above
- - Fixed my version format as advised by Iain Truskett
- if it still doesn't work it's because of me, not him
- - Added the ability to handle nanoseconds as requested by
- Michael Goltze.
- - Got Time Zones working, including mapping non-ambiguous TLAs
- offsets and Olsen names (the latter uses the %q token)
-
-1.00.02 Tue, 29 Apr 2003 07:03:19 + 1000
- - the 'please the testers' release
- - Fixed a test that only worked in DateTime was from CVS
- - Fixed two issues noted by Iain Truskett:
- - Removed a diag() in test 1 that was just there for
- testing the test
- - Added a linebreak to the end of the MANIFEST
+
+- Applied doc patches from Iain Truskett (Thanks!)
+
+- Clarified parameter discrepancy between synopsis and docs (Thanks Chris
+ Winters)
+
+
+1.0102 Fri, 16 May 2003 07:28:18 +1000
+
+- Fixed the same test as above. Think I actually succeeded this time!
+
+
+1.0101 Tue, 13 May 2003 07:58:23 +1000
+
+- Fixed a test that was broken if DateTime::TimeZone was not version 0.13 or
+ above.
+
+
+1.0100 Sun, 11 May 2003 13:54:36 +1000
+
+- If we have the latest DateTime we run the test mentioned above
+
+- Fixed my version format as advised by Iain Truskett if it still doesn't work
+ it's because of me, not him
+
+- Added the ability to handle nanoseconds as requested by Michael Goltze.
+
+- Got Time Zones working, including mapping non-ambiguous TLAs offsets and
+ Olsen names (the latter uses the %q token)
+
+
+1.00.02 Tue, 29 Apr 2003 07:03:19 +1000
+
+- Fixed a test that only worked in DateTime was from CVS
+
+- Fixed two issues noted by Iain Truskett:
+
+- Removed a diag() in test 1 that was just there for testing the test
+
+- Added a linebreak to the end of the MANIFEST
+
1.00.01 Mon, 28 Apr 2003 07:12:01 +1000
- - the 'what the hell is that' release
- - removed alien life-forms (characters that didn't ASCIIfy)
- * No API change, just made it so it will install now!
+
+- removed alien life-forms (characters that didn't ASCIIfy)
+
+* No API change, just made it so it will install now!
+
1.00.00 Sun, 27 Apr 2003 17:56:27 +1000
- - first release version
- - first CPAN release
- - added tests
- - should be 100% compatible with DateTime's strftime function
+- first CPAN release
+
+- added tests
-0.01 Fri, 25 Apr 2003 21:30:21 +1000
- - original version - posted to DateTime mailing list
+- should be 100% compatible with DateTime's strftime function
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.5000/LICENSE
new/DateTime-Format-Strptime-1.54/LICENSE
--- old/DateTime-Format-Strptime-1.5000/LICENSE 2010-10-16 22:26:44.000000000
+0200
+++ new/DateTime-Format-Strptime-1.54/LICENSE 2013-04-03 06:01:26.000000000
+0200
@@ -1,8 +1,8 @@
-This software is Copyright (c) 2010 by Dave Rolsky.
+This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
- The Artistic License 2.0
+ The Artistic License 2.0 (GPL Compatible)
The Artistic License 2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.5000/MANIFEST
new/DateTime-Format-Strptime-1.54/MANIFEST
--- old/DateTime-Format-Strptime-1.5000/MANIFEST 2010-10-16
22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/MANIFEST 2013-04-03 06:01:26.000000000
+0200
@@ -6,7 +6,6 @@
META.yml
Makefile.PL
README
-SIGNATURE
dist.ini
lib/DateTime/Format/Strptime.pm
t/001_load.t
@@ -20,8 +19,8 @@
t/009_regexp.t
t/author-001_all_locales.t
t/release-eol.t
-t/release-kwalitee.t
t/release-no-tabs.t
t/release-pod-coverage.t
+t/release-pod-linkcheck.t
t/release-pod-spell.t
-t/release-pod.t
+t/release-pod-syntax.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.5000/META.json
new/DateTime-Format-Strptime-1.54/META.json
--- old/DateTime-Format-Strptime-1.5000/META.json 2010-10-16
22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/META.json 2013-04-03 06:01:26.000000000
+0200
@@ -1,10 +1,11 @@
{
"abstract" : "Parse and format strp and strf time patterns",
"author" : [
- "Dave Rolsky <[email protected]>"
+ "Dave Rolsky <[email protected]>",
+ "Rick Measham <[email protected]>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.102342, CPAN::Meta::Converter
version 2.101670",
+ "generated_by" : "Dist::Zilla version 4.300032, CPAN::Meta::Converter
version 2.120921",
"license" : [
"artistic_2"
],
@@ -16,15 +17,28 @@
"prereqs" : {
"configure" : {
"requires" : {
- "ExtUtils::MakeMaker" : "6.31"
+ "ExtUtils::MakeMaker" : "6.30"
+ }
+ },
+ "develop" : {
+ "requires" : {
+ "Test::Pod" : "1.41"
}
},
"runtime" : {
"requires" : {
- "DateTime" : "0.4304",
+ "Carp" : "0",
+ "DateTime" : "1.00",
"DateTime::Locale" : "0.45",
"DateTime::TimeZone" : "0.79",
+ "Exporter" : "0",
"Params::Validate" : "0.64",
+ "strict" : "0",
+ "vars" : "0"
+ }
+ },
+ "test" : {
+ "requires" : {
"Test::More" : "0.88"
}
}
@@ -36,11 +50,11 @@
"web" :
"http://rt.cpan.org/NoAuth/Bugs.html?Dist=DateTime-Format-Strptime"
},
"repository" : {
- "type" : "hg",
- "url" : "http://hg.urth.org/hg/DateTime-Format-Strptime",
- "web" : "http://hg.urth.org/hg/DateTime-Format-Strptime"
+ "type" : "git",
+ "url" : "git://git.urth.org/DateTime-Format-Strptime.git",
+ "web" : "http://git.urth.org/DateTime-Format-Strptime.git"
}
},
- "version" : "1.5000"
+ "version" : "1.54"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.5000/META.yml
new/DateTime-Format-Strptime-1.54/META.yml
--- old/DateTime-Format-Strptime-1.5000/META.yml 2010-10-16
22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/META.yml 2013-04-03 06:01:26.000000000
+0200
@@ -2,23 +2,28 @@
abstract: 'Parse and format strp and strf time patterns'
author:
- 'Dave Rolsky <[email protected]>'
-build_requires: {}
+ - 'Rick Measham <[email protected]>'
+build_requires:
+ Test::More: 0.88
configure_requires:
- ExtUtils::MakeMaker: 6.31
+ ExtUtils::MakeMaker: 6.30
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.102342, CPAN::Meta::Converter version
2.101670'
+generated_by: 'Dist::Zilla version 4.300032, CPAN::Meta::Converter version
2.120921'
license: artistic_2
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
name: DateTime-Format-Strptime
requires:
- DateTime: 0.4304
+ Carp: 0
+ DateTime: 1.00
DateTime::Locale: 0.45
DateTime::TimeZone: 0.79
+ Exporter: 0
Params::Validate: 0.64
- Test::More: 0.88
+ strict: 0
+ vars: 0
resources:
bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=DateTime-Format-Strptime
- repository: http://hg.urth.org/hg/DateTime-Format-Strptime
-version: 1.5000
+ repository: git://git.urth.org/DateTime-Format-Strptime.git
+version: 1.54
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.5000/Makefile.PL
new/DateTime-Format-Strptime-1.54/Makefile.PL
--- old/DateTime-Format-Strptime-1.5000/Makefile.PL 2010-10-16
22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/Makefile.PL 2013-04-03
06:01:26.000000000 +0200
@@ -4,35 +4,54 @@
-use ExtUtils::MakeMaker 6.31;
+use ExtUtils::MakeMaker 6.30;
my %WriteMakefileArgs = (
- 'ABSTRACT' => 'Parse and format strp and strf time patterns',
- 'AUTHOR' => 'Dave Rolsky <[email protected]>',
- 'BUILD_REQUIRES' => {},
- 'CONFIGURE_REQUIRES' => {
- 'ExtUtils::MakeMaker' => '6.31'
+ "ABSTRACT" => "Parse and format strp and strf time patterns",
+ "AUTHOR" => "Dave Rolsky <autarch\@urth.org>, Rick Measham
<rickm\@cpan.org>",
+ "BUILD_REQUIRES" => {},
+ "CONFIGURE_REQUIRES" => {
+ "ExtUtils::MakeMaker" => "6.30"
},
- 'DISTNAME' => 'DateTime-Format-Strptime',
- 'EXE_FILES' => [],
- 'LICENSE' => 'artistic_2',
- 'NAME' => 'DateTime::Format::Strptime',
- 'PREREQ_PM' => {
- 'DateTime' => '0.4304',
- 'DateTime::Locale' => '0.45',
- 'DateTime::TimeZone' => '0.79',
- 'Params::Validate' => '0.64',
- 'Test::More' => '0.88'
+ "DISTNAME" => "DateTime-Format-Strptime",
+ "EXE_FILES" => [],
+ "LICENSE" => "artistic_2",
+ "NAME" => "DateTime::Format::Strptime",
+ "PREREQ_PM" => {
+ "Carp" => 0,
+ "DateTime" => "1.00",
+ "DateTime::Locale" => "0.45",
+ "DateTime::TimeZone" => "0.79",
+ "Exporter" => 0,
+ "Params::Validate" => "0.64",
+ "strict" => 0,
+ "vars" => 0
},
- 'VERSION' => '1.5000',
- 'test' => {
- 'TESTS' => 't/*.t'
+ "TEST_REQUIRES" => {
+ "Test::More" => "0.88"
+ },
+ "VERSION" => "1.54",
+ "test" => {
+ "TESTS" => "t/*.t"
}
);
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
+ my $tr = delete $WriteMakefileArgs{TEST_REQUIRES};
+ my $br = $WriteMakefileArgs{BUILD_REQUIRES};
+ for my $mod ( keys %$tr ) {
+ if ( exists $br->{$mod} ) {
+ $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod};
+ }
+ else {
+ $br->{$mod} = $tr->{$mod};
+ }
+ }
+}
+
unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
my $pp = $WriteMakefileArgs{PREREQ_PM};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.5000/README
new/DateTime-Format-Strptime-1.54/README
--- old/DateTime-Format-Strptime-1.5000/README 2010-10-16 22:26:44.000000000
+0200
+++ new/DateTime-Format-Strptime-1.54/README 2013-04-03 06:01:26.000000000
+0200
@@ -1,14 +1,14 @@
This archive contains the distribution DateTime-Format-Strptime,
-version 1.5000:
+version 1.54:
Parse and format strp and strf time patterns
-This software is Copyright (c) 2010 by Dave Rolsky.
+This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
- The Artistic License 2.0
+ The Artistic License 2.0 (GPL Compatible)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.5000/SIGNATURE
new/DateTime-Format-Strptime-1.54/SIGNATURE
--- old/DateTime-Format-Strptime-1.5000/SIGNATURE 2010-10-16
22:26:47.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/SIGNATURE 1970-01-01 01:00:00.000000000
+0100
@@ -1,49 +0,0 @@
-This file contains message digests of all files listed in MANIFEST,
-signed via the Module::Signature module, version 0.61.
-
-To verify the content in this distribution, first make sure you have
-Module::Signature installed, then type:
-
- % cpansign -v
-
-It will check each file's integrity, as well as the signature's
-validity. If "==> Signature verified OK! <==" is not displayed,
-the distribution may already have been compromised, and you should
-not run its Makefile.PL or Build.PL.
-
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-SHA1 639eae76a28e3bbe56bf13118f3c13ec13917b30 Changes
-SHA1 91d30b78b85c860e71f72283fbc874ba2c4eaed0 INSTALL
-SHA1 23c628b4a8a36738405ccdacaeb912d2e727b4c0 LICENSE
-SHA1 6ce15893e518d227515664e87be75aebdc70e316 MANIFEST
-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
-SHA1 c77a67c6995a02b136ad84534fda8dc0b7b0e792 t/004_locale_defaults.t
-SHA1 2d773953c36b8f74b8915f60b3b7bc0191a12e6f t/005_croak.t
-SHA1 7c89a33066f76c9fa41940fd55d52a087be9870e t/006_locales.t
-SHA1 17bad4a308e3f679cfe7bb80044de43dd3cecbb1 t/007_edge.t
-SHA1 77fb78edc62d2944c4f45c66000711777432233d t/008_epoch.t
-SHA1 381b87f0fecebd2c48c3537ea47d0da1e4a90d94 t/009_regexp.t
-SHA1 185dc6943ddd46711eee297272fd9e3374719599 t/author-001_all_locales.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
-SHA1 e4d9bc57d938719c9f6e816400f096d496858b8b t/release-pod-spell.t
-SHA1 0bf5c7d045bcd17b72749ea8d57bfc2435913095 t/release-pod.t
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.10 (GNU/Linux)
-
-iEYEARECAAYFAky6CoQACgkQIgMCsV8qvRJuqgCfbbp9Sa9gBh769as6OkgOSUyy
-ldYAniRND/bBWcA9s0m0HQZU2Etdfr6w
-=PcSD
------END PGP SIGNATURE-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.5000/dist.ini
new/DateTime-Format-Strptime-1.54/dist.ini
--- old/DateTime-Format-Strptime-1.5000/dist.ini 2010-10-16
22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/dist.ini 2013-04-03 06:01:26.000000000
+0200
@@ -1,8 +1,12 @@
-name = DateTime-Format-Strptime
-author = Dave Rolsky <[email protected]>
-copyright_year = 2010
+name = DateTime-Format-Strptime
+author = Dave Rolsky <[email protected]>
+author = Rick Measham <[email protected]>
+copyright_holder = Dave Rolsky
-version = 1.5000
+version = 1.54
+
+[NextRelease]
+format = %-8v %{yyyy-MM-dd}d
[@Basic]
@@ -12,28 +16,25 @@
[MetaResources]
bugtracker.web =
http://rt.cpan.org/NoAuth/Bugs.html?Dist=DateTime-Format-Strptime
bugtracker.mailto = [email protected]
-repository.url = http://hg.urth.org/hg/DateTime-Format-Strptime
-repository.web = http://hg.urth.org/hg/DateTime-Format-Strptime
-repository.type = hg
+repository.url = git://git.urth.org/DateTime-Format-Strptime.git
+repository.web = http://git.urth.org/DateTime-Format-Strptime.git
+repository.type = git
-[PodWeaver]
+[SurgicalPodWeaver]
[PkgVersion]
-[KwaliteeTests]
-[NoTabsTests]
-[EOLTests]
-[Signature]
+[ContributorsFromGit]
-[CheckChangeLog]
+[EOLTests]
+[NoTabsTests]
+[PodSyntaxTests]
+;[Test::CPAN::Changes]
+[Test::Pod::LinkCheck]
+;[Test::Pod::No404s]
-[Prereqs / TestReqsuires]
-Test::More = 0.88
+[AutoPrereqs]
-[Prereqs]
-DateTime = 0.4304
-DateTime::Locale = 0.45
-DateTime::TimeZone = 0.79
-Params::Validate = 0.64
+[CheckPrereqsIndexed]
-[@Mercurial]
+[@Git]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/DateTime-Format-Strptime-1.5000/lib/DateTime/Format/Strptime.pm
new/DateTime-Format-Strptime-1.54/lib/DateTime/Format/Strptime.pm
--- old/DateTime-Format-Strptime-1.5000/lib/DateTime/Format/Strptime.pm
2010-10-16 22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/lib/DateTime/Format/Strptime.pm
2013-04-03 06:01:26.000000000 +0200
@@ -1,19 +1,18 @@
package DateTime::Format::Strptime;
-BEGIN {
- $DateTime::Format::Strptime::VERSION = '1.5000';
+{
+ $DateTime::Format::Strptime::VERSION = '1.54';
}
use strict;
-use DateTime;
-use DateTime::Locale;
-use DateTime::TimeZone;
-use Params::Validate qw( validate SCALAR SCALARREF BOOLEAN OBJECT CODEREF );
+use DateTime 1.00;
+use DateTime::Locale 0.45;
+use DateTime::TimeZone 0.79;
+use Params::Validate 0.64 qw( validate SCALAR SCALARREF BOOLEAN OBJECT CODEREF
);
use Carp;
use Exporter;
-use vars
- qw( @ISA @EXPORT @EXPORT_OK %ZONEMAP %FORMATS $CROAK $errmsg);
+use vars qw( @ISA @EXPORT @EXPORT_OK %ZONEMAP %FORMATS $CROAK $errmsg);
@ISA = 'Exporter';
@EXPORT_OK = qw( &strftime &strptime );
@@ -451,7 +450,6 @@
foreach my $month ( @{ $self->{_locale}->month_format_wide } ) {
$month_count++;
- # use bytes;
if ( lc $month eq lc $month_name ) {
$month_number = $month_count;
last;
@@ -464,7 +462,6 @@
{
$month_count++;
- # use bytes;
# When abbreviating, sometimes there's a period, sometimes not.
$month =~ s/\.$//;
$month_name =~ s/\.$//;
@@ -695,7 +692,6 @@
my $dow_number = 0;
foreach my $dow ( @{ $self->{_locale}->day_format_wide } ) {
$dow_count++;
- use bytes;
if ( lc $dow eq lc $dow_name ) {
$dow_number = $dow_count;
last;
@@ -706,7 +702,6 @@
foreach my $dow ( @{ $self->{_locale}->day_format_abbreviated } )
{
$dow_count++;
- use bytes;
if ( lc $dow eq lc $dow_name ) {
$dow_number = $dow_count;
last;
@@ -1015,8 +1010,8 @@
# The Olson timezone name.
- $regex =~ s|%{(\w+)}|(DateTime->can($1)) ? "(.+)" : ".+"|eg;
- $field_list =~ s|(%{(\w+)})|(DateTime->can($2)) ? "#$2#" : $1 |eg;
+ $regex =~ s|%\{(\w+)\}|(DateTime->can($1)) ? "(.+)" : ".+"|eg;
+ $field_list =~ s|(%\{(\w+)\})|(DateTime->can($2)) ? "#$2#" : $1 |eg;
# Any function in DateTime.
@@ -1070,9 +1065,10 @@
}
1;
-# ABSTRACT: Parse and format strp and strf time patterns
+# ABSTRACT: Parse and format strp and strf time patterns
+__END__
=pod
@@ -1082,43 +1078,43 @@
=head1 VERSION
-version 1.5000
+version 1.54
=head1 SYNOPSIS
- use DateTime::Format::Strptime;
+ use DateTime::Format::Strptime;
- my $Strp = new DateTime::Format::Strptime(
- pattern => '%T',
- locale => 'en_AU',
- time_zone => 'Australia/Melbourne',
- );
-
- my $dt = $Strp->parse_datetime('23:16:42');
-
- $Strp->format_datetime($dt);
- # 23:16:42
+ my $strp = DateTime::Format::Strptime->new(
+ pattern => '%T',
+ locale => 'en_AU',
+ time_zone => 'Australia/Melbourne',
+ );
+
+ my $dt = $strp->parse_datetime('23:16:42');
+ $strp->format_datetime($dt);
+ # 23:16:42
- # Croak when things go wrong:
- my $Strp = new DateTime::Format::Strptime(
- pattern => '%T',
- locale => 'en_AU',
- time_zone => 'Australia/Melbourne',
- on_error => 'croak',
- );
-
- $newpattern = $Strp->pattern('%Q');
- # Unidentified token in pattern: %Q in %Q at line 34 of script.pl
-
- # Do something else when things go wrong:
- my $Strp = new DateTime::Format::Strptime(
- pattern => '%T',
- locale => 'en_AU',
- time_zone => 'Australia/Melbourne',
- on_error => \&phone_police,
- );
+ # Croak when things go wrong:
+ my $strp = DateTime::Format::Strptime->new(
+ pattern => '%T',
+ locale => 'en_AU',
+ time_zone => 'Australia/Melbourne',
+ on_error => 'croak',
+ );
+
+ $newpattern = $strp->pattern('%Q');
+
+ # Unidentified token in pattern: %Q in %Q at line 34 of script.pl
+
+ # Do something else when things go wrong:
+ my $strp = DateTime::Format::Strptime->new(
+ pattern => '%T',
+ locale => 'en_AU',
+ time_zone => 'Australia/Melbourne',
+ on_error => \&phone_police,
+ );
=head1 DESCRIPTION
@@ -1132,7 +1128,7 @@
=over 4
-=item * new( pattern=>$strptime_pattern )
+=item * new( pattern => $strptime_pattern )
Creates the format object. You must specify a pattern, you can also
specify a C<time_zone> and a C<locale>. If you specify a time zone
@@ -1150,10 +1146,10 @@
(not undef, 'undef', it's a string not an undefined value)
-This is the default behavior. The module will return undef whenever it
-gets upset. The error can be accessed using the $object->errstr method.
-This is the ideal behaviour for interactive use where a user might
-provide an illegal pattern or a date that doesn't match the pattern.
+This is the default behavior. The module will return undef whenever it gets
+upset. The error can be accessed using the C<< $object->errmsg >> method.
+This is the ideal behaviour for interactive use where a user might provide an
+illegal pattern or a date that doesn't match the pattern.
=item * 'croak'
@@ -1170,7 +1166,7 @@
true value causes the method to return undef. Returning a false value
causes the method to bravely continue):
-sub{$_[0]->{errmsg} = $_[1]; 1},
+ sub { $_[0]->{errmsg} = $_[1]; 1 },
=back
@@ -1235,7 +1231,7 @@
This code emulates a C<$DateTime::Format::Strptime> with
the C<on_error> parameter equal to C<'croak'>:
-C<$Strp->pattern($pattern) or die $DateTime::Format::Strptime::errmsg>
+C<< $strp->pattern($pattern) or die $DateTime::Format::Strptime::errmsg >>
=back
@@ -1246,12 +1242,12 @@
=over 4
-=item * strptime($strptime_pattern, $string)
+=item * strptime( $strptime_pattern, $string )
Given a pattern and a string this function will return a new C<DateTime>
object.
-=item * strftime($strftime_pattern, $datetime)
+=item * strftime( $strftime_pattern, $datetime )
Given a pattern and a C<DateTime> object this function will return a
formatted string.
@@ -1285,7 +1281,7 @@
=item * %d or %e
-The day of month (1-31).
+The day of month (01-31). This will parse single digit numbers as well.
=item * %D
@@ -1308,7 +1304,7 @@
=item * %H
-The hour (0-23).
+The hour (00-23). This will parse single digit numbers as well.
=item * %I
@@ -1320,11 +1316,11 @@
=item * %m
-The month number (1-12).
+The month number (01-12). This will parse single digit numbers as well.
=item * %M
-The minute (0-59).
+The minute (00-59). This will parse single digit numbers as well.
=item * %n
@@ -1384,9 +1380,9 @@
=item * %y
-The year within century (0-99). When a century is not otherwise
-specified, values in the range 69-99 refer to years in the twentieth
-century (1969-1999); values in the range 00-68 refer to years in the
+The year within century (0-99). When a century is not otherwise specified
+(with a value for %C), values in the range 69-99 refer to years in the
+twentieth century (1969-1999); values in the range 00-68 refer to years in the
twenty-first century (2000-2068).
=item * %Y
@@ -1430,20 +1426,26 @@
L<perl>, L<DateTime>, L<DateTime::TimeZone>, L<DateTime::Locale>
-=head1 AUTHOR
+=head1 AUTHORS
+
+=over 4
+
+=item *
Dave Rolsky <[email protected]>
-=head1 COPYRIGHT AND LICENSE
+=item *
-This software is Copyright (c) 2010 by Dave Rolsky.
+Rick Measham <[email protected]>
-This is free software, licensed under:
+=back
- The Artistic License 2.0
+=head1 COPYRIGHT AND LICENSE
-=cut
+This software is Copyright (c) 2013 by Dave Rolsky.
+This is free software, licensed under:
-__END__
+ The Artistic License 2.0 (GPL Compatible)
+=cut
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.5000/t/001_load.t
new/DateTime-Format-Strptime-1.54/t/001_load.t
--- old/DateTime-Format-Strptime-1.5000/t/001_load.t 2010-10-16
22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/t/001_load.t 2013-04-03
06:01:26.000000000 +0200
@@ -2,10 +2,11 @@
# t/001_load.t - check module loading and create testing directory
-use Test::More tests => 2;
+use Test::More 0.88;
BEGIN { use_ok('DateTime::Format::Strptime'); }
my $object = DateTime::Format::Strptime->new( pattern => '%T' );
isa_ok( $object, 'DateTime::Format::Strptime' );
+done_testing();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.5000/t/002_dates.t
new/DateTime-Format-Strptime-1.54/t/002_dates.t
--- old/DateTime-Format-Strptime-1.5000/t/002_dates.t 2010-10-16
22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/t/002_dates.t 2013-04-03
06:01:26.000000000 +0200
@@ -2,7 +2,7 @@
# t/002_basic.t - check module dates in various formats
-use Test::More tests => 19;
+use Test::More 0.88;
use DateTime::Format::Strptime;
use DateTime;
use DateTime::TimeZone;
@@ -34,7 +34,7 @@
[ '%H:%M:%S.%3N', '23:45:56.123' ],
# Complex dates
- [ '%Y;%j = %Y-%m-%d', '2003;56 = 2003-02-25' ],
+ [ '%Y;%j = %Y-%m-%d', '2003;056 = 2003-02-25' ],
[ q|%d %b '%y = %Y-%m-%d|, q|25 Feb '03 = 2003-02-25| ],
# Leading spaces
@@ -101,3 +101,4 @@
'2003 13:45:56 WST', $object->pattern
);
+done_testing();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.5000/t/003_every.t
new/DateTime-Format-Strptime-1.54/t/003_every.t
--- old/DateTime-Format-Strptime-1.5000/t/003_every.t 2010-10-16
22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/t/003_every.t 2013-04-03
06:01:26.000000000 +0200
@@ -1,6 +1,6 @@
# t/002_basic.t - check module dates in various formats
-use Test::More tests => 14;
+use Test::More 0.88;
use DateTime::Format::Strptime;
{
@@ -92,3 +92,5 @@
$name );
}
}
+
+done_testing();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/DateTime-Format-Strptime-1.5000/t/004_locale_defaults.t
new/DateTime-Format-Strptime-1.54/t/004_locale_defaults.t
--- old/DateTime-Format-Strptime-1.5000/t/004_locale_defaults.t 2010-10-16
22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/t/004_locale_defaults.t 2013-04-03
06:01:26.000000000 +0200
@@ -2,7 +2,7 @@
# t/004_locale_defaults.t - check module dates in various formats
-use Test::More tests => 60;
+use Test::More 0.88;
use DateTime::Format::Strptime;
use DateTime;
use DateTime::TimeZone;
@@ -65,3 +65,4 @@
}
}
+done_testing();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.5000/t/005_croak.t
new/DateTime-Format-Strptime-1.54/t/005_croak.t
--- old/DateTime-Format-Strptime-1.5000/t/005_croak.t 2010-10-16
22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/t/005_croak.t 2013-04-03
06:01:26.000000000 +0200
@@ -1,6 +1,6 @@
# t/004_croak.t - make sure we croak when we should
-use Test::More tests => 30;
+use Test::More 0.88;
use DateTime::Format::Strptime;
# 1..2
@@ -140,3 +140,5 @@
is( $object->{errmsg},
'Oops! Teehee! Your two year values (03 and 2002) do not match.',
"Error message should reflect Ambiguous date time string" );
+
+done_testing();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.5000/t/006_locales.t
new/DateTime-Format-Strptime-1.54/t/006_locales.t
--- old/DateTime-Format-Strptime-1.5000/t/006_locales.t 2010-10-16
22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/t/006_locales.t 2013-04-03
06:01:26.000000000 +0200
@@ -2,7 +2,7 @@
# t/002_basic.t - check module dates in various formats
-use Test::More tests => 257;
+use Test::More 0.88;
#use Test::More qw/no_plan/;
use DateTime::Format::Strptime;
@@ -118,3 +118,5 @@
# Make sure the datetime, however, retained its own locale
is( $dt->locale->id, 'fr' )
}
+
+done_testing();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.5000/t/007_edge.t
new/DateTime-Format-Strptime-1.54/t/007_edge.t
--- old/DateTime-Format-Strptime-1.5000/t/007_edge.t 2010-10-16
22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/t/007_edge.t 2013-04-03
06:01:26.000000000 +0200
@@ -2,7 +2,7 @@
# t/007_edge.t - these tests are for edge case bug report errors
-use Test::More tests => 16;
+use Test::More 0.88;
use DateTime;
use DateTime::Format::Strptime;
@@ -103,3 +103,5 @@
is( $parsed->epoch, $arg{epoch} );
}
+
+done_testing();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.5000/t/008_epoch.t
new/DateTime-Format-Strptime-1.54/t/008_epoch.t
--- old/DateTime-Format-Strptime-1.5000/t/008_epoch.t 2010-10-16
22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/t/008_epoch.t 2013-04-03
06:01:26.000000000 +0200
@@ -2,7 +2,7 @@
# t/008_epoch.t - Epoch (%s) tests
-use Test::More tests => 26;
+use Test::More 0.88;
use DateTime;
use DateTime::Format::Strptime;
@@ -84,3 +84,5 @@
is( $parsed->epoch, $arg{epoch} );
}
+
+done_testing();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.5000/t/009_regexp.t
new/DateTime-Format-Strptime-1.54/t/009_regexp.t
--- old/DateTime-Format-Strptime-1.5000/t/009_regexp.t 2010-10-16
22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/t/009_regexp.t 2013-04-03
06:01:26.000000000 +0200
@@ -2,7 +2,7 @@
# t/009_regexp.t - Patterns as regular expressions
-use Test::More tests => 21;
+use Test::More 0.88;
use DateTime;
use DateTime::Format::Strptime;
@@ -59,3 +59,5 @@
is( $parsed->$k, $arg{output}{$k} );
}
}
+
+done_testing();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/DateTime-Format-Strptime-1.5000/t/author-001_all_locales.t
new/DateTime-Format-Strptime-1.54/t/author-001_all_locales.t
--- old/DateTime-Format-Strptime-1.5000/t/author-001_all_locales.t
2010-10-16 22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/t/author-001_all_locales.t
2013-04-03 06:01:26.000000000 +0200
@@ -1,4 +1,3 @@
-#!perl -w
BEGIN {
unless ($ENV{AUTHOR_TESTING}) {
@@ -7,10 +6,10 @@
}
}
+use strict;
+use warnings;
-# t/more/001_all_locales.t - test formatting against every locales
-
-use Test::More qw(no_plan);
+use Test::More 0.88;
use DateTime::Format::Strptime;
use DateTime::Locale;
use DateTime;
@@ -24,6 +23,7 @@
foreach my $day ( 1 .. 7 ) {
my $dt = DateTime->now( locale => $locale )->set( day => $day );
my $input = $dt->strftime($pattern);
+ my $strptime;
eval {
$strptime = DateTime::Format::Strptime->new(
pattern => $pattern,
@@ -49,6 +49,7 @@
my $dt = DateTime->now( locale => $locale )->truncate( to => 'month' )
->set( month => $month );
my $input = $dt->strftime($pattern);
+ my $strptime;
eval {
$strptime = DateTime::Format::Strptime->new(
pattern => $pattern,
@@ -73,6 +74,7 @@
foreach my $hour ( 11, 12 ) {
my $dt = DateTime->now( locale => $locale )->set( hour => $hour );
my $input = $dt->strftime($pattern);
+ my $strptime;
eval {
$strptime = DateTime::Format::Strptime->new(
pattern => $pattern,
@@ -90,3 +92,6 @@
is( $parsed->strftime($pattern), $input, "Matched with Meridian" );
}
}
+
+
+done_testing();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.5000/t/release-kwalitee.t
new/DateTime-Format-Strptime-1.54/t/release-kwalitee.t
--- old/DateTime-Format-Strptime-1.5000/t/release-kwalitee.t 2010-10-16
22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/t/release-kwalitee.t 1970-01-01
01:00:00.000000000 +0100
@@ -1,15 +0,0 @@
-#!perl
-
-BEGIN {
- unless ($ENV{RELEASE_TESTING}) {
- require Test::More;
- Test::More::plan(skip_all => 'these tests are for release candidate
testing');
- }
-}
-
-
-use Test::More;
-
-eval "use Test::Kwalitee";
-plan skip_all => "Test::Kwalitee required for testing kwalitee"
- if $@;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/DateTime-Format-Strptime-1.5000/t/release-pod-coverage.t
new/DateTime-Format-Strptime-1.54/t/release-pod-coverage.t
--- old/DateTime-Format-Strptime-1.5000/t/release-pod-coverage.t
2010-10-16 22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/t/release-pod-coverage.t 2013-04-03
06:01:26.000000000 +0200
@@ -9,7 +9,7 @@
use strict;
use warnings;
-use Test::More;
+use Test::More 0.88;
eval "use Test::Pod::Coverage 1.04";
plan skip_all => "Test::Pod::Coverage 1.04 required for testing POD coverage"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/DateTime-Format-Strptime-1.5000/t/release-pod-linkcheck.t
new/DateTime-Format-Strptime-1.54/t/release-pod-linkcheck.t
--- old/DateTime-Format-Strptime-1.5000/t/release-pod-linkcheck.t
1970-01-01 01:00:00.000000000 +0100
+++ new/DateTime-Format-Strptime-1.54/t/release-pod-linkcheck.t 2013-04-03
06:01:26.000000000 +0200
@@ -0,0 +1,28 @@
+#!perl
+
+BEGIN {
+ unless ($ENV{RELEASE_TESTING}) {
+ require Test::More;
+ Test::More::plan(skip_all => 'these tests are for release candidate
testing');
+ }
+}
+
+
+use strict;
+use warnings;
+use Test::More;
+
+foreach my $env_skip ( qw(
+ SKIP_POD_LINKCHECK
+) ){
+ plan skip_all => "\$ENV{$env_skip} is set, skipping"
+ if $ENV{$env_skip};
+}
+
+eval "use Test::Pod::LinkCheck";
+if ( $@ ) {
+ plan skip_all => 'Test::Pod::LinkCheck required for testing POD';
+}
+else {
+ Test::Pod::LinkCheck->new->all_pod_ok;
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/DateTime-Format-Strptime-1.5000/t/release-pod-spell.t
new/DateTime-Format-Strptime-1.54/t/release-pod-spell.t
--- old/DateTime-Format-Strptime-1.5000/t/release-pod-spell.t 2010-10-16
22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/t/release-pod-spell.t 2013-04-03
06:01:26.000000000 +0200
@@ -9,7 +9,7 @@
use strict;
use warnings;
-use Test::More;
+use Test::More 0.88;
eval "use Test::Spelling";
plan skip_all => "Test::Spelling required for testing POD coverage"
@@ -33,6 +33,7 @@
__DATA__
Measham
POSIX
+Rolsky
STRPTIME
errmsg
formatter
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/DateTime-Format-Strptime-1.5000/t/release-pod-syntax.t
new/DateTime-Format-Strptime-1.54/t/release-pod-syntax.t
--- old/DateTime-Format-Strptime-1.5000/t/release-pod-syntax.t 1970-01-01
01:00:00.000000000 +0100
+++ new/DateTime-Format-Strptime-1.54/t/release-pod-syntax.t 2013-04-03
06:01:26.000000000 +0200
@@ -0,0 +1,15 @@
+#!perl
+
+BEGIN {
+ unless ($ENV{RELEASE_TESTING}) {
+ require Test::More;
+ Test::More::plan(skip_all => 'these tests are for release candidate
testing');
+ }
+}
+
+use Test::More;
+
+eval "use Test::Pod 1.41";
+plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
+
+all_pod_files_ok();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/DateTime-Format-Strptime-1.5000/t/release-pod.t
new/DateTime-Format-Strptime-1.54/t/release-pod.t
--- old/DateTime-Format-Strptime-1.5000/t/release-pod.t 2010-10-16
22:26:44.000000000 +0200
+++ new/DateTime-Format-Strptime-1.54/t/release-pod.t 1970-01-01
01:00:00.000000000 +0100
@@ -1,17 +0,0 @@
-
-BEGIN {
- unless ($ENV{RELEASE_TESTING}) {
- require Test::More;
- Test::More::plan(skip_all => 'these tests are for release candidate
testing');
- }
-}
-
-use strict;
-use warnings;
-
-use Test::More;
-
-eval "use Test::Pod 1.14";
-plan skip_all => "Test::Pod 1.14 required for testing POD" if $@;
-
-all_pod_files_ok();
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]