DateTime-Format-Duration-1.04/000700 000766 000024 00000000000 12577447567 016434 5ustar00etherstaff000000 000000 DateTime-Format-Duration-1.04/Changes000700 000766 000024 00000005466 12577447567 017745 0ustar00etherstaff000000 000000 Revision history for DateTime-Format-Duration 1.04 2015-09-20 06:17:20Z - converted tooling to Dist::Zilla (fixes RT#48187, RT#82055, RT#53462) - added missing prereq declarations (Params::Validate) - fix ""Unescaped left brace in regex is deprecated" warning in 5.22+ (RT#101607) - remove use of $& to improve executable speed (RT#97667) - fix formatting of code snippets in pod (RT#105323) 1.03 2007-06-01 - the Björn Again release - This has been a looooong time coming, and I've only just managed to get off my arse and fix it thanks to Björn Tackmann. - Fixed test 41 was incorrect. - All other tests were correct, but as date math had changed, we needed to refactor the normalisation - Updated DateTime requirement to 0.30 -- the new math 1.02 2004-04-04 - the 'Mixed Components' release - DateTime::Duration now accepts mixed components so the need to handle them differently has been removed. Old methods remain in place though. See the POD. 1.0101 2004-01-09T02:28:00Z - the 'anonymous tester' release - added 'use warnings' - fixed a missing escape on the whitespace parser - thanks to fairly anonymous CPAN tester! 1.01 2004-01-08 02:19:00Z - the 'Britney Spears' release (oops I did it again) - Removed reliance on DateTime::Event::DST which doesn't exist! - Thanks David Wheeler and Mike Castle - Reorganised code to make it neater - Created new tests for normalising and parsing - Fixed bugs new tests revealed - Moved old, redundant tests to *.old. They should still pass if you want them! 1.0002 2004-01-07 12:35:00Z - quiet release to cpan - This release just fixes some doc bugs I should have fixed last night. Sorry! 1.0001 2004-01-06 09:18:00Z - second release to mailing list - Support for Leap Seconds - Normalise dramtically overhauled and quickened - Docs said normalise and normalize. Code didn't. - Patterns now allowed outside the object - Parsing and Formatting now available without OO interface - Made pretty pictures for explaining normalisation concepts - Changed example formats to not look like DateTimes - Reworded parts of docs to make things clearer - Added a lot of normalisation tests as that's the most likely place to get errors! Thanks to Dave Rolsky for most of the above suggestions. 1.00 2003-12-15 13:29:43Z - Changed name to DateTime::Format::Duration - initial release to mailing list 0.00 2003-11-09 07:39:56Z - original version; created by h2xs 1.22 with options -X -v1.00 --use-new-tests -b5.0.5 -nDateTime::Format::StrfDuration DateTime-Format-Duration-1.04/CONTRIBUTING000644 000766 000024 00000007223 12577447567 020304 0ustar00etherstaff000000 000000 CONTRIBUTING Thank you for considering contributing to this distribution. This file contains instructions that will help you work with the source code. PLEASE NOTE that if you have any questions or difficulties, you can reach the maintainer(s) through the bug queue described later in this document (preferred), or by emailing the releaser directly. You are not required to follow any of the steps in this document to submit a patch or bug report; these are just recommendations, intended to help you (and help us help you faster). The distribution is managed with Dist::Zilla (https://metacpan.org/release/Dist-Zilla). This means than many of the usual files you might expect are not in the repository, but are generated at release time (e.g. Makefile.PL). However, you can run tests directly using the 'prove' tool: $ prove -l $ prove -lv t/some_test_file.t $ prove -lvr t/ In most cases, 'prove' is entirely sufficent for you to test any patches you have. You may need to satisfy some dependencies. The easiest way to satisfy dependencies is to install the last release -- this is available at https://metacpan.org/release/DateTime-Format-Duration. If you use cpanminus, you can do it without downloading the tarball first: $ cpanm --reinstall --installdeps --with-recommends DateTime::Format::Duration Dist::Zilla is a very powerful authoring tool, but requires a number of author-specific plugins. If you would like to use it for contributing, install it from CPAN, then run one of the following commands, depending on your CPAN client: $ cpan `dzil authordeps --missing` or $ dzil authordeps --missing | cpanm You should then also install any additional requirements not needed by the dzil build but may be needed by tests or other development: $ cpan `dzil listdeps --author --missing` or $ dzil listdeps --author --missing | cpanm Or, you can use the 'dzil stale' command to install all requirements at once: $ cpan Dist::Zilla::App::Command::stale $ cpan `dzil stale --all` or $ cpanm Dist::Zilla::App::Command::stale $ dzil stale --all | cpanm You can also do this via cpanm directly: $ cpanm --reinstall --installdeps --with-develop --with-recommends DateTime::Format::Duration Once installed, here are some dzil commands you might try: $ dzil build $ dzil test $ dzil test --release $ dzil xtest $ dzil listdeps --json $ dzil build --notgz You can learn more about Dist::Zilla at http://dzil.org/. The code for this distribution is hosted at GitHub. The repository is: https://github.com/karenetheridge/DateTime-Format-Duration You can submit code changes by forking the repository, pushing your code changes to your clone, and then submitting a pull request. Detailed instructions for doing that is available here: https://help.github.com/articles/creating-a-pull-request If you have found a bug, but do not have an accompanying patch to fix it, you can submit an issue report here: https://rt.cpan.org/Public/Dist/Display.html?Name=DateTime-Format-Duration or via bug-DateTime-Format-Duration@rt.cpan.org. There is also a mailing list available for users of this distribution, at http://lists.perl.org/list/datetime.html. If you send me a patch or pull request, your name and email address will be included in the documentation as a contributor (using the attribution on the commit or patch), unless you specifically request for it not to be. If you wish to be listed under a different name or address, you should submit a pull request to the .mailmap file to contain the correct mapping. This file was generated via Dist::Zilla::Plugin::GenerateFile::ShareDir 0.006 from a template file originating in Dist-Zilla-PluginBundle-Author-ETHER-0.104. DateTime-Format-Duration-1.04/dist.ini000600 000766 000024 00000001263 12577447567 020104 0ustar00etherstaff000000 000000 name = DateTime-Format-Duration author = Rick Measham copyright_holder = Rick Measham copyright_year = 2003 license = Perl_5 [@Author::ETHER] :version = 0.094 changes_version_columns = 8 installer = MakeMaker ; stay 5.6-friendly -remove = Test::CleanNamespaces -remove = Test::Pod::No404s -remove = PodCoverageTests Test::PodSpelling.stopwords[0] = durations Test::PodSpelling.stopwords[1] = linebreak Test::PodSpelling.stopwords[2] = Sep Test::PodSpelling.stopwords[3] = strf Test::PodSpelling.stopwords[4] = timelines [Encoding] encoding = bytes match = ^docs/ [MetaResources] x_MailingList = http://lists.perl.org/list/datetime.html DateTime-Format-Duration-1.04/docs/000700 000766 000024 00000000000 12577447567 017364 5ustar00etherstaff000000 000000 DateTime-Format-Duration-1.04/INSTALL000644 000766 000024 00000002021 12577447567 017472 0ustar00etherstaff000000 000000 This is the Perl distribution DateTime-Format-Duration. Installing DateTime-Format-Duration is straightforward. ## Installation with cpanm If you have cpanm, you only need one line: % cpanm DateTime::Format::Duration If you are installing into a system-wide directory, you may need to pass the "-S" flag to cpanm, which uses sudo to install the module: % cpanm -S DateTime::Format::Duration ## Installing with the CPAN shell Alternatively, if your CPAN shell is set up, you should just be able to do: % cpan DateTime::Format::Duration ## Manual installation As a last resort, you can manually install it. Download the tarball, untar it, then build it: % perl Makefile.PL % make && make test Then install it: % make install If you are installing into a system-wide directory, you may need to run: % sudo make install ## Documentation DateTime-Format-Duration documentation is available as POD. You can run perldoc from a shell to read the documentation: % perldoc DateTime::Format::Duration DateTime-Format-Duration-1.04/lib/000700 000766 000024 00000000000 12577447567 017202 5ustar00etherstaff000000 000000 DateTime-Format-Duration-1.04/LICENCE000644 000766 000024 00000043655 12577447567 017450 0ustar00etherstaff000000 000000 This software is copyright (c) 2003 by Rick Measham. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Terms of the Perl programming language system itself a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- This software is Copyright (c) 2003 by Rick Measham. This is free software, licensed under: The GNU General Public License, Version 1, February 1989 GNU GENERAL PUBLIC LICENSE Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too. When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you". 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy. 2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following: a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option). c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License. d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms. 3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following: a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or, b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or, c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.) Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system. 4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance. 5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. 7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation. 8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy 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. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice That's all there is to it! --- The Artistic License 1.0 --- This software is Copyright (c) 2003 by Rick Measham. This is free software, licensed under: The Artistic License 1.0 The Artistic License Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as ftp.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End DateTime-Format-Duration-1.04/Makefile.PL000644 000766 000024 00000002751 12577447567 020425 0ustar00etherstaff000000 000000 # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.039. use strict; use warnings; use 5.006; use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( "ABSTRACT" => "Format and parse DateTime::Durations", "AUTHOR" => "Rick Measham ", "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => 0 }, "DISTNAME" => "DateTime-Format-Duration", "LICENSE" => "perl", "MIN_PERL_VERSION" => "5.006", "NAME" => "DateTime::Format::Duration", "PREREQ_PM" => { "Carp" => 0, "Data::Dumper" => 0, "DateTime::Duration" => 0, "Exporter" => 0, "Params::Validate" => 0, "constant" => 0, "strict" => 0 }, "TEST_REQUIRES" => { "DateTime" => 0, "ExtUtils::MakeMaker" => 0, "File::Spec" => 0, "Test::More" => 0, "warnings" => 0 }, "VERSION" => "1.04", "test" => { "TESTS" => "t/*.t" } ); my %FallbackPrereqs = ( "Carp" => 0, "Data::Dumper" => 0, "DateTime" => 0, "DateTime::Duration" => 0, "Exporter" => 0, "ExtUtils::MakeMaker" => 0, "File::Spec" => 0, "Params::Validate" => 0, "Test::More" => 0, "constant" => 0, "strict" => 0, "warnings" => 0 ); unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { delete $WriteMakefileArgs{TEST_REQUIRES}; delete $WriteMakefileArgs{BUILD_REQUIRES}; $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs; } delete $WriteMakefileArgs{CONFIGURE_REQUIRES} unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs); DateTime-Format-Duration-1.04/MANIFEST000644 000766 000024 00000001331 12577447567 017575 0ustar00etherstaff000000 000000 # This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.039. CONTRIBUTING Changes INSTALL LICENCE MANIFEST META.json META.yml Makefile.PL README dist.ini docs/figure1.gif docs/figure2.gif docs/figure3.gif lib/DateTime/Format/Duration.pm t/00-report-prereqs.dd t/00-report-prereqs.t t/1_load.t t/2_fmt_normalise.t t/3_fmt_normalise_iso.t t/4_fmt_normalise_no_base.t t/5_fmt_no_normalise.t t/6_parse.t t/7_misc.t t/8_negatives.t xt/author/00-compile.t xt/author/eol.t xt/author/kwalitee.t xt/author/mojibake.t xt/author/no-tabs.t xt/author/pod-spell.t xt/release/changes_has_content.t xt/release/cpan-changes.t xt/release/distmeta.t xt/release/minimum-version.t xt/release/pod-syntax.t xt/release/portability.t DateTime-Format-Duration-1.04/META.json000644 000766 000024 00000115757 12577447567 020107 0ustar00etherstaff000000 000000 { "abstract" : "Format and parse DateTime::Durations", "author" : [ "Rick Measham " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 5.039, CPAN::Meta::Converter version 2.150005", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "DateTime-Format-Duration", "no_index" : { "directory" : [ "t", "xt" ] }, "prereqs" : { "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0", "perl" : "5.006" } }, "develop" : { "recommends" : { "Dist::Zilla::PluginBundle::Author::ETHER" : "0.104" }, "requires" : { "Dist::Zilla" : "5", "Dist::Zilla::Plugin::Authority" : "1.009", "Dist::Zilla::Plugin::AuthorityFromModule" : "0.002", "Dist::Zilla::Plugin::AutoMetaResources" : "0", "Dist::Zilla::Plugin::AutoPrereqs" : "5.038", "Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional" : "0.004", "Dist::Zilla::Plugin::CheckIssues" : "0", "Dist::Zilla::Plugin::CheckPrereqsIndexed" : "0", "Dist::Zilla::Plugin::CheckSelfDependency" : "0", "Dist::Zilla::Plugin::CheckStrictVersion" : "0", "Dist::Zilla::Plugin::ConfirmRelease" : "0", "Dist::Zilla::Plugin::CopyFilesFromRelease" : "0", "Dist::Zilla::Plugin::Encoding" : "0", "Dist::Zilla::Plugin::FileFinder::ByName" : "0", "Dist::Zilla::Plugin::GenerateFile::ShareDir" : "0", "Dist::Zilla::Plugin::Git::Check" : "0", "Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch" : "0.004", "Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts" : "0", "Dist::Zilla::Plugin::Git::Commit" : "2.020", "Dist::Zilla::Plugin::Git::Contributors" : "0.004", "Dist::Zilla::Plugin::Git::Describe" : "0.004", "Dist::Zilla::Plugin::Git::GatherDir" : "2.016", "Dist::Zilla::Plugin::Git::Push" : "0", "Dist::Zilla::Plugin::Git::Remote::Check" : "0", "Dist::Zilla::Plugin::Git::Tag" : "0", "Dist::Zilla::Plugin::GitHub::Update" : "0.40", "Dist::Zilla::Plugin::GithubMeta" : "0.54", "Dist::Zilla::Plugin::InstallGuide" : "0", "Dist::Zilla::Plugin::Keywords" : "0.004", "Dist::Zilla::Plugin::License" : "5.038", "Dist::Zilla::Plugin::MakeMaker" : "0", "Dist::Zilla::Plugin::Manifest" : "0", "Dist::Zilla::Plugin::MetaConfig" : "0", "Dist::Zilla::Plugin::MetaJSON" : "0", "Dist::Zilla::Plugin::MetaNoIndex" : "0", "Dist::Zilla::Plugin::MetaProvides::Package" : "1.15000002", "Dist::Zilla::Plugin::MetaResources" : "0", "Dist::Zilla::Plugin::MetaTests" : "0", "Dist::Zilla::Plugin::MetaYAML" : "0", "Dist::Zilla::Plugin::MinimumPerl" : "1.006", "Dist::Zilla::Plugin::MojibakeTests" : "0.8", "Dist::Zilla::Plugin::NextRelease" : "5.033", "Dist::Zilla::Plugin::PodSyntaxTests" : "0", "Dist::Zilla::Plugin::PodWeaver" : "4.005", "Dist::Zilla::Plugin::Prereqs" : "0", "Dist::Zilla::Plugin::Prereqs::AuthorDeps" : "0", "Dist::Zilla::Plugin::PromptIfStale" : "0", "Dist::Zilla::Plugin::Readme" : "0", "Dist::Zilla::Plugin::ReadmeAnyFromPod" : "0.142180", "Dist::Zilla::Plugin::RewriteVersion::Transitional" : "0.004", "Dist::Zilla::Plugin::Run::AfterBuild" : "0.038", "Dist::Zilla::Plugin::Run::AfterRelease" : "0.038", "Dist::Zilla::Plugin::RunExtraTests" : "0.024", "Dist::Zilla::Plugin::StaticInstall" : "0.005", "Dist::Zilla::Plugin::Test::CPAN::Changes" : "0.008", "Dist::Zilla::Plugin::Test::ChangesHasContent" : "0", "Dist::Zilla::Plugin::Test::Compile" : "2.039", "Dist::Zilla::Plugin::Test::EOL" : "0.17", "Dist::Zilla::Plugin::Test::Kwalitee" : "2.06", "Dist::Zilla::Plugin::Test::MinimumVersion" : "2.000003", "Dist::Zilla::Plugin::Test::NoTabs" : "0.08", "Dist::Zilla::Plugin::Test::PodSpelling" : "2.006001", "Dist::Zilla::Plugin::Test::Portability" : "0", "Dist::Zilla::Plugin::Test::ReportPrereqs" : "0.019", "Dist::Zilla::Plugin::TestRelease" : "0", "Dist::Zilla::Plugin::UploadToCPAN" : "0", "Dist::Zilla::PluginBundle::Author::ETHER" : "0.094", "File::Spec" : "0", "IO::Handle" : "0", "IPC::Open3" : "0", "Pod::Wordlist" : "0", "Software::License::Perl_5" : "0", "Test::CPAN::Changes" : "0.19", "Test::CPAN::Meta" : "0", "Test::EOL" : "0", "Test::Kwalitee" : "1.21", "Test::Mojibake" : "0", "Test::More" : "0.96", "Test::NoTabs" : "0", "Test::Pod" : "1.41", "Test::Spelling" : "0.12", "blib" : "1.01", "perl" : "5.006", "warnings" : "0" } }, "runtime" : { "requires" : { "Carp" : "0", "Data::Dumper" : "0", "DateTime::Duration" : "0", "Exporter" : "0", "Params::Validate" : "0", "constant" : "0", "perl" : "5.006", "strict" : "0" } }, "test" : { "recommends" : { "CPAN::Meta" : "2.120900" }, "requires" : { "DateTime" : "0", "ExtUtils::MakeMaker" : "0", "File::Spec" : "0", "Test::More" : "0", "perl" : "5.006", "warnings" : "0" } } }, "provides" : { "DateTime::Format::Duration" : { "file" : "lib/DateTime/Format/Duration.pm", "version" : "1.04" } }, "release_status" : "stable", "resources" : { "bugtracker" : { "mailto" : "bug-DateTime-Format-Duration@rt.cpan.org", "web" : "https://rt.cpan.org/Public/Dist/Display.html?Name=DateTime-Format-Duration" }, "homepage" : "https://github.com/karenetheridge/DateTime-Format-Duration", "repository" : { "type" : "git", "url" : "https://github.com/karenetheridge/DateTime-Format-Duration.git", "web" : "https://github.com/karenetheridge/DateTime-Format-Duration" }, "x_MailingList" : "http://lists.perl.org/list/datetime.html" }, "version" : "1.04", "x_Dist_Zilla" : { "perl" : { "version" : "5.023002" }, "plugins" : [ { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "develop", "type" : "requires" } }, "name" : "@Author::ETHER/bundle_plugins", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::RewriteVersion::Transitional", "config" : { "Dist::Zilla::Plugin::RewriteVersion" : { "add_tarball_name" : 0, "finders" : [ ":ExecFiles", ":InstallModules" ], "global" : 1, "skip_version_provider" : 0 }, "Dist::Zilla::Plugin::RewriteVersion::Transitional" : {} }, "name" : "@Author::ETHER/RewriteVersion::Transitional", "version" : "0.007" }, { "class" : "Dist::Zilla::Plugin::PromptIfStale", "config" : { "Dist::Zilla::Plugin::PromptIfStale" : { "check_all_plugins" : 0, "check_all_prereqs" : 0, "modules" : [ "Dist::Zilla::PluginBundle::Author::ETHER" ], "phase" : "build", "skip" : [] } }, "name" : "@Author::ETHER/stale modules, build", "version" : "0.047" }, { "class" : "Dist::Zilla::Plugin::PromptIfStale", "config" : { "Dist::Zilla::Plugin::PromptIfStale" : { "check_all_plugins" : 1, "check_all_prereqs" : 1, "modules" : [], "phase" : "release", "skip" : [] } }, "name" : "@Author::ETHER/stale modules, release", "version" : "0.047" }, { "class" : "Dist::Zilla::Plugin::FileFinder::ByName", "name" : "@Author::ETHER/Examples", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::FileFinder::ByName", "name" : "@Author::ETHER/ExtraTestFiles", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::Git::GatherDir", "config" : { "Dist::Zilla::Plugin::GatherDir" : { "exclude_filename" : [ "LICENSE" ], "exclude_match" : [], "follow_symlinks" : 0, "include_dotfiles" : 0, "prefix" : "", "prune_directory" : [], "root" : "." }, "Dist::Zilla::Plugin::Git::GatherDir" : { "include_untracked" : 0 } }, "name" : "@Author::ETHER/Git::GatherDir", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@Author::ETHER/MetaYAML", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@Author::ETHER/MetaJSON", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::Readme", "name" : "@Author::ETHER/Readme", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@Author::ETHER/Manifest", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@Author::ETHER/License", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::GenerateFile::ShareDir", "config" : { "Dist::Zilla::Plugin::GenerateFile::ShareDir" : { "destination_filename" : "CONTRIBUTING", "dist" : "Dist-Zilla-PluginBundle-Author-ETHER", "encoding" : "UTF-8", "has_xs" : 0, "location" : "build", "source_filename" : "CONTRIBUTING" } }, "name" : "@Author::ETHER/generate CONTRIBUTING", "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::InstallGuide", "name" : "@Author::ETHER/InstallGuide", "version" : "1.200006" }, { "class" : "Dist::Zilla::Plugin::Test::Compile", "config" : { "Dist::Zilla::Plugin::Test::Compile" : { "bail_out_on_fail" : "1", "fail_on_warning" : "author", "fake_home" : 0, "filename" : "xt/author/00-compile.t", "module_finder" : [ ":InstallModules" ], "needs_display" : 0, "phase" : "develop", "script_finder" : [ ":PerlExecFiles", "@Author::ETHER/Examples" ], "skips" : [] } }, "name" : "@Author::ETHER/Test::Compile", "version" : "2.054" }, { "class" : "Dist::Zilla::Plugin::Test::NoTabs", "config" : { "Dist::Zilla::Plugin::Test::NoTabs" : { "filename" : "xt/author/no-tabs.t", "finder" : [ ":InstallModules", ":ExecFiles", "@Author::ETHER/Examples", ":TestFiles", "@Author::ETHER/ExtraTestFiles" ] } }, "name" : "@Author::ETHER/Test::NoTabs", "version" : "0.15" }, { "class" : "Dist::Zilla::Plugin::Test::EOL", "config" : { "Dist::Zilla::Plugin::Test::EOL" : { "filename" : "xt/author/eol.t", "finder" : [ ":InstallModules", ":ExecFiles", "@Author::ETHER/Examples", ":TestFiles", "@Author::ETHER/ExtraTestFiles" ], "trailing_whitespace" : "1" } }, "name" : "@Author::ETHER/Test::EOL", "version" : "0.18" }, { "class" : "Dist::Zilla::Plugin::MetaTests", "name" : "@Author::ETHER/MetaTests", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::Test::CPAN::Changes", "name" : "@Author::ETHER/Test::CPAN::Changes", "version" : "0.009" }, { "class" : "Dist::Zilla::Plugin::Test::ChangesHasContent", "name" : "@Author::ETHER/Test::ChangesHasContent", "version" : "0.008" }, { "class" : "Dist::Zilla::Plugin::Test::MinimumVersion", "name" : "@Author::ETHER/Test::MinimumVersion", "version" : "2.000006" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@Author::ETHER/PodSyntaxTests", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::Test::PodSpelling", "name" : "@Author::ETHER/Test::PodSpelling", "version" : "2.006009" }, { "class" : "Dist::Zilla::Plugin::Test::Kwalitee", "config" : { "Dist::Zilla::Plugin::Test::Kwalitee" : { "filename" : "xt/author/kwalitee.t", "skiptest" : [] } }, "name" : "@Author::ETHER/Test::Kwalitee", "version" : "2.11" }, { "class" : "Dist::Zilla::Plugin::MojibakeTests", "name" : "@Author::ETHER/MojibakeTests", "version" : "0.8" }, { "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs", "name" : "@Author::ETHER/Test::ReportPrereqs", "version" : "0.021" }, { "class" : "Dist::Zilla::Plugin::Test::Portability", "name" : "@Author::ETHER/Test::Portability", "version" : "2.000006" }, { "class" : "Dist::Zilla::Plugin::Git::Describe", "name" : "@Author::ETHER/Git::Describe", "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::PodWeaver", "config" : { "Dist::Zilla::Plugin::PodWeaver" : { "config_plugins" : [ "@Author::ETHER" ], "finder" : [ ":InstallModules", ":ExecFiles" ], "plugins" : [ { "class" : "Pod::Weaver::Plugin::EnsurePod5", "name" : "@CorePrep/EnsurePod5", "version" : "4.012" }, { "class" : "Pod::Weaver::Plugin::H1Nester", "name" : "@CorePrep/H1Nester", "version" : "4.012" }, { "class" : "Pod::Weaver::Plugin::SingleEncoding", "name" : "@Author::ETHER/SingleEncoding", "version" : "4.012" }, { "class" : "Pod::Weaver::Plugin::Transformer", "name" : "@Author::ETHER/List", "version" : "4.012" }, { "class" : "Pod::Weaver::Plugin::Transformer", "name" : "@Author::ETHER/Verbatim", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Region", "name" : "@Author::ETHER/header", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Name", "name" : "@Author::ETHER/Name", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Version", "name" : "@Author::ETHER/Version", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Region", "name" : "@Author::ETHER/prelude", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "SYNOPSIS", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "DESCRIPTION", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "OVERVIEW", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "ATTRIBUTES", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "METHODS", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "FUNCTIONS", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "TYPES", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Leftovers", "name" : "@Author::ETHER/Leftovers", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Region", "name" : "@Author::ETHER/postlude", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::GenerateSection", "name" : "@Author::ETHER/generate SUPPORT", "version" : "1.01" }, { "class" : "Pod::Weaver::Section::AllowOverride", "name" : "@Author::ETHER/allow override SUPPORT", "version" : "0.05" }, { "class" : "Pod::Weaver::Section::Authors", "name" : "@Author::ETHER/Authors", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Contributors", "name" : "@Author::ETHER/Contributors", "version" : "0.009" }, { "class" : "Pod::Weaver::Section::Legal", "name" : "@Author::ETHER/Legal", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Region", "name" : "@Author::ETHER/footer", "version" : "4.012" } ] } }, "name" : "@Author::ETHER/PodWeaver", "version" : "4.006" }, { "class" : "Dist::Zilla::Plugin::GithubMeta", "name" : "@Author::ETHER/GithubMeta", "version" : "0.54" }, { "class" : "Dist::Zilla::Plugin::AutoMetaResources", "name" : "@Author::ETHER/AutoMetaResources", "version" : "1.21" }, { "class" : "Dist::Zilla::Plugin::AuthorityFromModule", "config" : { "Dist::Zilla::Plugin::AuthorityFromModule" : { "module" : "DateTime::Format::Duration" }, "Dist::Zilla::Role::ModuleMetadata" : { "Module::Metadata" : "1.000028", "version" : "0.003" } }, "name" : "@Author::ETHER/AuthorityFromModule", "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::Authority", "name" : "@Author::ETHER/Authority", "version" : "1.009" }, { "class" : "Dist::Zilla::Plugin::MetaNoIndex", "name" : "@Author::ETHER/MetaNoIndex", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::MetaProvides::Package", "config" : { "Dist::Zilla::Plugin::MetaProvides::Package" : { "finder" : [ ":InstallModules" ], "finder_objects" : [ { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", "version" : "5.039" } ] }, "Dist::Zilla::Role::MetaProvider::Provider" : { "inherit_missing" : "0", "inherit_version" : "0", "meta_noindex" : "1" } }, "name" : "@Author::ETHER/MetaProvides::Package", "version" : "2.003001" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@Author::ETHER/MetaConfig", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::Keywords", "config" : { "Dist::Zilla::Plugin::Keywords" : { "keywords" : [] } }, "name" : "@Author::ETHER/Keywords", "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::Git::Contributors", "config" : { "Dist::Zilla::Plugin::Git::Contributors" : { "include_authors" : 0, "include_releaser" : 1, "order_by" : "commits", "paths" : [ "." ] } }, "name" : "@Author::ETHER/Git::Contributors", "version" : "0.014" }, { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@Author::ETHER/AutoPrereqs", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::Prereqs::AuthorDeps", "name" : "@Author::ETHER/Prereqs::AuthorDeps", "version" : "0.005" }, { "class" : "Dist::Zilla::Plugin::MinimumPerl", "name" : "@Author::ETHER/MinimumPerl", "version" : "1.006" }, { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "develop", "type" : "recommends" } }, "name" : "@Author::ETHER/pluginbundle_version", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::MakeMaker", "config" : { "Dist::Zilla::Role::TestRunner" : { "default_jobs" : 9 } }, "name" : "@Author::ETHER/MakeMaker", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::StaticInstall", "config" : { "Dist::Zilla::Plugin::StaticInstall" : { "dry_run" : 0, "mode" : "auto" } }, "name" : "@Author::ETHER/StaticInstall", "version" : "0.008" }, { "class" : "Dist::Zilla::Plugin::RunExtraTests", "config" : { "Dist::Zilla::Role::TestRunner" : { "default_jobs" : 9 } }, "name" : "@Author::ETHER/RunExtraTests", "version" : "0.028" }, { "class" : "Dist::Zilla::Plugin::CheckSelfDependency", "config" : { "Dist::Zilla::Plugin::CheckSelfDependency" : { "finder" : [ ":InstallModules" ] }, "Dist::Zilla::Role::ModuleMetadata" : { "Module::Metadata" : "1.000028", "version" : "0.003" } }, "name" : "@Author::ETHER/CheckSelfDependency", "version" : "0.011" }, { "class" : "Dist::Zilla::Plugin::Run::AfterBuild", "config" : { "Dist::Zilla::Plugin::Run::Role::Runner" : { "fatal_errors" : 1, "quiet" : 1, "run" : [ "bash -c \"test -e .ackrc && grep -q -- '--ignore-dir=.latest' .ackrc || echo '--ignore-dir=.latest' >> .ackrc; if [[ `dirname '%d'` != .build ]]; then test -e .ackrc && grep -q -- '--ignore-dir=%d' .ackrc || echo '--ignore-dir=%d' >> .ackrc; fi\"" ] } }, "name" : "@Author::ETHER/.ackrc", "version" : "0.042" }, { "class" : "Dist::Zilla::Plugin::Run::AfterBuild", "config" : { "Dist::Zilla::Plugin::Run::Role::Runner" : { "eval" : [ "if ('%d' =~ /^%n-[.[:xdigit:]]+$/) { unlink '.latest'; symlink '%d', '.latest'; }" ], "fatal_errors" : 1, "quiet" : 1 } }, "name" : "@Author::ETHER/.latest", "version" : "0.042" }, { "class" : "Dist::Zilla::Plugin::CheckStrictVersion", "name" : "@Author::ETHER/CheckStrictVersion", "version" : "0.001" }, { "class" : "Dist::Zilla::Plugin::Git::Check", "config" : { "Dist::Zilla::Plugin::Git::Check" : { "untracked_files" : "die" }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [], "allow_dirty_match" : [], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@Author::ETHER/initial check", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts", "config" : { "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@Author::ETHER/Git::CheckFor::MergeConflicts", "version" : "0.013" }, { "class" : "Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch", "config" : { "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@Author::ETHER/Git::CheckFor::CorrectBranch", "version" : "0.013" }, { "class" : "Dist::Zilla::Plugin::Git::Remote::Check", "name" : "@Author::ETHER/Git::Remote::Check", "version" : "0.2.0" }, { "class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed", "name" : "@Author::ETHER/CheckPrereqsIndexed", "version" : "0.016" }, { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@Author::ETHER/TestRelease", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::Git::Check", "config" : { "Dist::Zilla::Plugin::Git::Check" : { "untracked_files" : "die" }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [], "allow_dirty_match" : [], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@Author::ETHER/after tests", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::CheckIssues", "name" : "@Author::ETHER/CheckIssues", "version" : "0.008" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@Author::ETHER/UploadToCPAN", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::Run::AfterRelease", "config" : { "Dist::Zilla::Plugin::Run::Role::Runner" : { "eval" : [ "unlink 'LICENSE'" ], "fatal_errors" : 1, "quiet" : 1 } }, "name" : "@Author::ETHER/remove old LICENSE", "version" : "0.042" }, { "class" : "Dist::Zilla::Plugin::CopyFilesFromRelease", "config" : { "Dist::Zilla::Plugin::CopyFilesFromRelease" : { "filename" : [ "CONTRIBUTING", "Changes", "INSTALL", "LICENCE", "LICENSE", "ppport.h" ], "match" : [] } }, "name" : "@Author::ETHER/CopyFilesFromRelease", "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod", "config" : { "Dist::Zilla::Role::FileWatcher" : { "version" : "0.006" } }, "name" : "@Author::ETHER/ReadmeAnyFromPod", "version" : "0.150250" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [ "." ], "commit_msg" : "%N-%v%t%n%n%c" }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "Changes", "LICENSE" ], "allow_dirty_match" : [], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@Author::ETHER/release snapshot", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", "config" : { "Dist::Zilla::Plugin::Git::Tag" : { "branch" : null, "changelog" : "Changes", "signed" : 0, "tag" : "v1.04", "tag_format" : "v%v", "tag_message" : "v%v%t" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@Author::ETHER/Git::Tag", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::GitHub::Update", "config" : { "Dist::Zilla::Plugin::GitHub::Update" : { "metacpan" : 1 } }, "name" : "@Author::ETHER/GitHub::Update", "version" : "0.41" }, { "class" : "Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional", "config" : { "Dist::Zilla::Plugin::BumpVersionAfterRelease" : { "finders" : [ ":ExecFiles", ":InstallModules" ], "global" : 1, "munge_makefile_pl" : 1 }, "Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional" : {} }, "name" : "@Author::ETHER/BumpVersionAfterRelease::Transitional", "version" : "0.007" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@Author::ETHER/NextRelease", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], "commit_msg" : "increment $VERSION after %v release" }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "Changes" ], "allow_dirty_match" : [ "(?^:^lib/.*\\.pm$)" ], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@Author::ETHER/post-release commit", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::Git::Push", "config" : { "Dist::Zilla::Plugin::Git::Push" : { "push_to" : [ "origin" ], "remotes_must_exist" : 1 }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@Author::ETHER/Git::Push", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::Run::AfterRelease", "config" : { "Dist::Zilla::Plugin::Run::Role::Runner" : { "fatal_errors" : 0, "quiet" : 0, "run" : [ "REDACTED" ] } }, "name" : "@Author::ETHER/install release", "version" : "0.042" }, { "class" : "Dist::Zilla::Plugin::Run::AfterRelease", "config" : { "Dist::Zilla::Plugin::Run::Role::Runner" : { "eval" : [ "print \"release complete!\\xa\"" ], "fatal_errors" : 1, "quiet" : 1 } }, "name" : "@Author::ETHER/release complete", "version" : "0.042" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@Author::ETHER/ConfirmRelease", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::Encoding", "name" : "Encoding", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::MetaResources", "name" : "MetaResources", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExtraTestFiles", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":PerlExecFiles", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":AllFiles", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":NoFiles", "version" : "5.039" }, { "class" : "Dist::Zilla::Plugin::VerifyPhases", "name" : "@Author::ETHER/PHASE VERIFICATION", "version" : "0.013" } ], "zilla" : { "class" : "Dist::Zilla::Dist::Builder", "config" : { "is_trial" : "0" }, "version" : "5.039" } }, "x_authority" : "cpan:ETHER", "x_authority_from_module" : "DateTime::Format::Duration", "x_contributors" : [ "Karen Etheridge " ], "x_permissions_from_module" : "DateTime::Format::Duration", "x_static_install" : 1 } DateTime-Format-Duration-1.04/META.yml000644 000766 000024 00000054760 12577447567 017733 0ustar00etherstaff000000 000000 --- abstract: 'Format and parse DateTime::Durations' author: - 'Rick Measham ' build_requires: DateTime: '0' ExtUtils::MakeMaker: '0' File::Spec: '0' Test::More: '0' perl: '5.006' warnings: '0' configure_requires: ExtUtils::MakeMaker: '0' perl: '5.006' dynamic_config: 0 generated_by: 'Dist::Zilla version 5.039, CPAN::Meta::Converter version 2.150005' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: DateTime-Format-Duration no_index: directory: - t - xt provides: DateTime::Format::Duration: file: lib/DateTime/Format/Duration.pm version: '1.04' requires: Carp: '0' Data::Dumper: '0' DateTime::Duration: '0' Exporter: '0' Params::Validate: '0' constant: '0' perl: '5.006' strict: '0' resources: MailingList: http://lists.perl.org/list/datetime.html bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=DateTime-Format-Duration homepage: https://github.com/karenetheridge/DateTime-Format-Duration repository: https://github.com/karenetheridge/DateTime-Format-Duration.git version: '1.04' x_Dist_Zilla: perl: version: '5.023002' plugins: - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: develop type: requires name: '@Author::ETHER/bundle_plugins' version: '5.039' - class: Dist::Zilla::Plugin::RewriteVersion::Transitional config: Dist::Zilla::Plugin::RewriteVersion: add_tarball_name: 0 finders: - ':ExecFiles' - ':InstallModules' global: 1 skip_version_provider: 0 Dist::Zilla::Plugin::RewriteVersion::Transitional: {} name: '@Author::ETHER/RewriteVersion::Transitional' version: '0.007' - class: Dist::Zilla::Plugin::PromptIfStale config: Dist::Zilla::Plugin::PromptIfStale: check_all_plugins: 0 check_all_prereqs: 0 modules: - Dist::Zilla::PluginBundle::Author::ETHER phase: build skip: [] name: '@Author::ETHER/stale modules, build' version: '0.047' - class: Dist::Zilla::Plugin::PromptIfStale config: Dist::Zilla::Plugin::PromptIfStale: check_all_plugins: 1 check_all_prereqs: 1 modules: [] phase: release skip: [] name: '@Author::ETHER/stale modules, release' version: '0.047' - class: Dist::Zilla::Plugin::FileFinder::ByName name: '@Author::ETHER/Examples' version: '5.039' - class: Dist::Zilla::Plugin::FileFinder::ByName name: '@Author::ETHER/ExtraTestFiles' version: '5.039' - class: Dist::Zilla::Plugin::Git::GatherDir config: Dist::Zilla::Plugin::GatherDir: exclude_filename: - LICENSE exclude_match: [] follow_symlinks: 0 include_dotfiles: 0 prefix: '' prune_directory: [] root: . Dist::Zilla::Plugin::Git::GatherDir: include_untracked: 0 name: '@Author::ETHER/Git::GatherDir' version: '2.036' - class: Dist::Zilla::Plugin::MetaYAML name: '@Author::ETHER/MetaYAML' version: '5.039' - class: Dist::Zilla::Plugin::MetaJSON name: '@Author::ETHER/MetaJSON' version: '5.039' - class: Dist::Zilla::Plugin::Readme name: '@Author::ETHER/Readme' version: '5.039' - class: Dist::Zilla::Plugin::Manifest name: '@Author::ETHER/Manifest' version: '5.039' - class: Dist::Zilla::Plugin::License name: '@Author::ETHER/License' version: '5.039' - class: Dist::Zilla::Plugin::GenerateFile::ShareDir config: Dist::Zilla::Plugin::GenerateFile::ShareDir: destination_filename: CONTRIBUTING dist: Dist-Zilla-PluginBundle-Author-ETHER encoding: UTF-8 has_xs: 0 location: build source_filename: CONTRIBUTING name: '@Author::ETHER/generate CONTRIBUTING' version: '0.006' - class: Dist::Zilla::Plugin::InstallGuide name: '@Author::ETHER/InstallGuide' version: '1.200006' - class: Dist::Zilla::Plugin::Test::Compile config: Dist::Zilla::Plugin::Test::Compile: bail_out_on_fail: '1' fail_on_warning: author fake_home: 0 filename: xt/author/00-compile.t module_finder: - ':InstallModules' needs_display: 0 phase: develop script_finder: - ':PerlExecFiles' - '@Author::ETHER/Examples' skips: [] name: '@Author::ETHER/Test::Compile' version: '2.054' - class: Dist::Zilla::Plugin::Test::NoTabs config: Dist::Zilla::Plugin::Test::NoTabs: filename: xt/author/no-tabs.t finder: - ':InstallModules' - ':ExecFiles' - '@Author::ETHER/Examples' - ':TestFiles' - '@Author::ETHER/ExtraTestFiles' name: '@Author::ETHER/Test::NoTabs' version: '0.15' - class: Dist::Zilla::Plugin::Test::EOL config: Dist::Zilla::Plugin::Test::EOL: filename: xt/author/eol.t finder: - ':InstallModules' - ':ExecFiles' - '@Author::ETHER/Examples' - ':TestFiles' - '@Author::ETHER/ExtraTestFiles' trailing_whitespace: '1' name: '@Author::ETHER/Test::EOL' version: '0.18' - class: Dist::Zilla::Plugin::MetaTests name: '@Author::ETHER/MetaTests' version: '5.039' - class: Dist::Zilla::Plugin::Test::CPAN::Changes name: '@Author::ETHER/Test::CPAN::Changes' version: '0.009' - class: Dist::Zilla::Plugin::Test::ChangesHasContent name: '@Author::ETHER/Test::ChangesHasContent' version: '0.008' - class: Dist::Zilla::Plugin::Test::MinimumVersion name: '@Author::ETHER/Test::MinimumVersion' version: '2.000006' - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@Author::ETHER/PodSyntaxTests' version: '5.039' - class: Dist::Zilla::Plugin::Test::PodSpelling name: '@Author::ETHER/Test::PodSpelling' version: '2.006009' - class: Dist::Zilla::Plugin::Test::Kwalitee config: Dist::Zilla::Plugin::Test::Kwalitee: filename: xt/author/kwalitee.t skiptest: [] name: '@Author::ETHER/Test::Kwalitee' version: '2.11' - class: Dist::Zilla::Plugin::MojibakeTests name: '@Author::ETHER/MojibakeTests' version: '0.8' - class: Dist::Zilla::Plugin::Test::ReportPrereqs name: '@Author::ETHER/Test::ReportPrereqs' version: '0.021' - class: Dist::Zilla::Plugin::Test::Portability name: '@Author::ETHER/Test::Portability' version: '2.000006' - class: Dist::Zilla::Plugin::Git::Describe name: '@Author::ETHER/Git::Describe' version: '0.006' - class: Dist::Zilla::Plugin::PodWeaver config: Dist::Zilla::Plugin::PodWeaver: config_plugins: - '@Author::ETHER' finder: - ':InstallModules' - ':ExecFiles' plugins: - class: Pod::Weaver::Plugin::EnsurePod5 name: '@CorePrep/EnsurePod5' version: '4.012' - class: Pod::Weaver::Plugin::H1Nester name: '@CorePrep/H1Nester' version: '4.012' - class: Pod::Weaver::Plugin::SingleEncoding name: '@Author::ETHER/SingleEncoding' version: '4.012' - class: Pod::Weaver::Plugin::Transformer name: '@Author::ETHER/List' version: '4.012' - class: Pod::Weaver::Plugin::Transformer name: '@Author::ETHER/Verbatim' version: '4.012' - class: Pod::Weaver::Section::Region name: '@Author::ETHER/header' version: '4.012' - class: Pod::Weaver::Section::Name name: '@Author::ETHER/Name' version: '4.012' - class: Pod::Weaver::Section::Version name: '@Author::ETHER/Version' version: '4.012' - class: Pod::Weaver::Section::Region name: '@Author::ETHER/prelude' version: '4.012' - class: Pod::Weaver::Section::Generic name: SYNOPSIS version: '4.012' - class: Pod::Weaver::Section::Generic name: DESCRIPTION version: '4.012' - class: Pod::Weaver::Section::Generic name: OVERVIEW version: '4.012' - class: Pod::Weaver::Section::Collect name: ATTRIBUTES version: '4.012' - class: Pod::Weaver::Section::Collect name: METHODS version: '4.012' - class: Pod::Weaver::Section::Collect name: FUNCTIONS version: '4.012' - class: Pod::Weaver::Section::Collect name: TYPES version: '4.012' - class: Pod::Weaver::Section::Leftovers name: '@Author::ETHER/Leftovers' version: '4.012' - class: Pod::Weaver::Section::Region name: '@Author::ETHER/postlude' version: '4.012' - class: Pod::Weaver::Section::GenerateSection name: '@Author::ETHER/generate SUPPORT' version: '1.01' - class: Pod::Weaver::Section::AllowOverride name: '@Author::ETHER/allow override SUPPORT' version: '0.05' - class: Pod::Weaver::Section::Authors name: '@Author::ETHER/Authors' version: '4.012' - class: Pod::Weaver::Section::Contributors name: '@Author::ETHER/Contributors' version: '0.009' - class: Pod::Weaver::Section::Legal name: '@Author::ETHER/Legal' version: '4.012' - class: Pod::Weaver::Section::Region name: '@Author::ETHER/footer' version: '4.012' name: '@Author::ETHER/PodWeaver' version: '4.006' - class: Dist::Zilla::Plugin::GithubMeta name: '@Author::ETHER/GithubMeta' version: '0.54' - class: Dist::Zilla::Plugin::AutoMetaResources name: '@Author::ETHER/AutoMetaResources' version: '1.21' - class: Dist::Zilla::Plugin::AuthorityFromModule config: Dist::Zilla::Plugin::AuthorityFromModule: module: DateTime::Format::Duration Dist::Zilla::Role::ModuleMetadata: Module::Metadata: '1.000028' version: '0.003' name: '@Author::ETHER/AuthorityFromModule' version: '0.006' - class: Dist::Zilla::Plugin::Authority name: '@Author::ETHER/Authority' version: '1.009' - class: Dist::Zilla::Plugin::MetaNoIndex name: '@Author::ETHER/MetaNoIndex' version: '5.039' - class: Dist::Zilla::Plugin::MetaProvides::Package config: Dist::Zilla::Plugin::MetaProvides::Package: finder: - ':InstallModules' finder_objects: - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' version: '5.039' Dist::Zilla::Role::MetaProvider::Provider: inherit_missing: '0' inherit_version: '0' meta_noindex: '1' name: '@Author::ETHER/MetaProvides::Package' version: '2.003001' - class: Dist::Zilla::Plugin::MetaConfig name: '@Author::ETHER/MetaConfig' version: '5.039' - class: Dist::Zilla::Plugin::Keywords config: Dist::Zilla::Plugin::Keywords: keywords: [] name: '@Author::ETHER/Keywords' version: '0.006' - class: Dist::Zilla::Plugin::Git::Contributors config: Dist::Zilla::Plugin::Git::Contributors: include_authors: 0 include_releaser: 1 order_by: commits paths: - . name: '@Author::ETHER/Git::Contributors' version: '0.014' - class: Dist::Zilla::Plugin::AutoPrereqs name: '@Author::ETHER/AutoPrereqs' version: '5.039' - class: Dist::Zilla::Plugin::Prereqs::AuthorDeps name: '@Author::ETHER/Prereqs::AuthorDeps' version: '0.005' - class: Dist::Zilla::Plugin::MinimumPerl name: '@Author::ETHER/MinimumPerl' version: '1.006' - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: develop type: recommends name: '@Author::ETHER/pluginbundle_version' version: '5.039' - class: Dist::Zilla::Plugin::MakeMaker config: Dist::Zilla::Role::TestRunner: default_jobs: 9 name: '@Author::ETHER/MakeMaker' version: '5.039' - class: Dist::Zilla::Plugin::StaticInstall config: Dist::Zilla::Plugin::StaticInstall: dry_run: 0 mode: auto name: '@Author::ETHER/StaticInstall' version: '0.008' - class: Dist::Zilla::Plugin::RunExtraTests config: Dist::Zilla::Role::TestRunner: default_jobs: 9 name: '@Author::ETHER/RunExtraTests' version: '0.028' - class: Dist::Zilla::Plugin::CheckSelfDependency config: Dist::Zilla::Plugin::CheckSelfDependency: finder: - ':InstallModules' Dist::Zilla::Role::ModuleMetadata: Module::Metadata: '1.000028' version: '0.003' name: '@Author::ETHER/CheckSelfDependency' version: '0.011' - class: Dist::Zilla::Plugin::Run::AfterBuild config: Dist::Zilla::Plugin::Run::Role::Runner: fatal_errors: 1 quiet: 1 run: - "bash -c \"test -e .ackrc && grep -q -- '--ignore-dir=.latest' .ackrc || echo '--ignore-dir=.latest' >> .ackrc; if [[ `dirname '%d'` != .build ]]; then test -e .ackrc && grep -q -- '--ignore-dir=%d' .ackrc || echo '--ignore-dir=%d' >> .ackrc; fi\"" name: '@Author::ETHER/.ackrc' version: '0.042' - class: Dist::Zilla::Plugin::Run::AfterBuild config: Dist::Zilla::Plugin::Run::Role::Runner: eval: - "if ('%d' =~ /^%n-[.[:xdigit:]]+$/) { unlink '.latest'; symlink '%d', '.latest'; }" fatal_errors: 1 quiet: 1 name: '@Author::ETHER/.latest' version: '0.042' - class: Dist::Zilla::Plugin::CheckStrictVersion name: '@Author::ETHER/CheckStrictVersion' version: '0.001' - class: Dist::Zilla::Plugin::Git::Check config: Dist::Zilla::Plugin::Git::Check: untracked_files: die Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: [] allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: repo_root: . name: '@Author::ETHER/initial check' version: '2.036' - class: Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts config: Dist::Zilla::Role::Git::Repo: repo_root: . name: '@Author::ETHER/Git::CheckFor::MergeConflicts' version: '0.013' - class: Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch config: Dist::Zilla::Role::Git::Repo: repo_root: . name: '@Author::ETHER/Git::CheckFor::CorrectBranch' version: '0.013' - class: Dist::Zilla::Plugin::Git::Remote::Check name: '@Author::ETHER/Git::Remote::Check' version: 0.2.0 - class: Dist::Zilla::Plugin::CheckPrereqsIndexed name: '@Author::ETHER/CheckPrereqsIndexed' version: '0.016' - class: Dist::Zilla::Plugin::TestRelease name: '@Author::ETHER/TestRelease' version: '5.039' - class: Dist::Zilla::Plugin::Git::Check config: Dist::Zilla::Plugin::Git::Check: untracked_files: die Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: [] allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: repo_root: . name: '@Author::ETHER/after tests' version: '2.036' - class: Dist::Zilla::Plugin::CheckIssues name: '@Author::ETHER/CheckIssues' version: '0.008' - class: Dist::Zilla::Plugin::UploadToCPAN name: '@Author::ETHER/UploadToCPAN' version: '5.039' - class: Dist::Zilla::Plugin::Run::AfterRelease config: Dist::Zilla::Plugin::Run::Role::Runner: eval: - "unlink 'LICENSE'" fatal_errors: 1 quiet: 1 name: '@Author::ETHER/remove old LICENSE' version: '0.042' - class: Dist::Zilla::Plugin::CopyFilesFromRelease config: Dist::Zilla::Plugin::CopyFilesFromRelease: filename: - CONTRIBUTING - Changes - INSTALL - LICENCE - LICENSE - ppport.h match: [] name: '@Author::ETHER/CopyFilesFromRelease' version: '0.006' - class: Dist::Zilla::Plugin::ReadmeAnyFromPod config: Dist::Zilla::Role::FileWatcher: version: '0.006' name: '@Author::ETHER/ReadmeAnyFromPod' version: '0.150250' - class: Dist::Zilla::Plugin::Git::Commit config: Dist::Zilla::Plugin::Git::Commit: add_files_in: - . commit_msg: '%N-%v%t%n%n%c' Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: - Changes - LICENSE allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@Author::ETHER/release snapshot' version: '2.036' - class: Dist::Zilla::Plugin::Git::Tag config: Dist::Zilla::Plugin::Git::Tag: branch: ~ changelog: Changes signed: 0 tag: v1.04 tag_format: v%v tag_message: v%v%t Dist::Zilla::Role::Git::Repo: repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@Author::ETHER/Git::Tag' version: '2.036' - class: Dist::Zilla::Plugin::GitHub::Update config: Dist::Zilla::Plugin::GitHub::Update: metacpan: 1 name: '@Author::ETHER/GitHub::Update' version: '0.41' - class: Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional config: Dist::Zilla::Plugin::BumpVersionAfterRelease: finders: - ':ExecFiles' - ':InstallModules' global: 1 munge_makefile_pl: 1 Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional: {} name: '@Author::ETHER/BumpVersionAfterRelease::Transitional' version: '0.007' - class: Dist::Zilla::Plugin::NextRelease name: '@Author::ETHER/NextRelease' version: '5.039' - class: Dist::Zilla::Plugin::Git::Commit config: Dist::Zilla::Plugin::Git::Commit: add_files_in: [] commit_msg: 'increment $VERSION after %v release' Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: - Changes allow_dirty_match: - (?^:^lib/.*\.pm$) changelog: Changes Dist::Zilla::Role::Git::Repo: repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@Author::ETHER/post-release commit' version: '2.036' - class: Dist::Zilla::Plugin::Git::Push config: Dist::Zilla::Plugin::Git::Push: push_to: - origin remotes_must_exist: 1 Dist::Zilla::Role::Git::Repo: repo_root: . name: '@Author::ETHER/Git::Push' version: '2.036' - class: Dist::Zilla::Plugin::Run::AfterRelease config: Dist::Zilla::Plugin::Run::Role::Runner: fatal_errors: 0 quiet: 0 run: - REDACTED name: '@Author::ETHER/install release' version: '0.042' - class: Dist::Zilla::Plugin::Run::AfterRelease config: Dist::Zilla::Plugin::Run::Role::Runner: eval: - 'print "release complete!\xa"' fatal_errors: 1 quiet: 1 name: '@Author::ETHER/release complete' version: '0.042' - class: Dist::Zilla::Plugin::ConfirmRelease name: '@Author::ETHER/ConfirmRelease' version: '5.039' - class: Dist::Zilla::Plugin::Encoding name: Encoding version: '5.039' - class: Dist::Zilla::Plugin::MetaResources name: MetaResources version: '5.039' - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' version: '5.039' - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' version: '5.039' - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' version: '5.039' - class: Dist::Zilla::Plugin::FinderCode name: ':ExtraTestFiles' version: '5.039' - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' version: '5.039' - class: Dist::Zilla::Plugin::FinderCode name: ':PerlExecFiles' version: '5.039' - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' version: '5.039' - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' version: '5.039' - class: Dist::Zilla::Plugin::FinderCode name: ':AllFiles' version: '5.039' - class: Dist::Zilla::Plugin::FinderCode name: ':NoFiles' version: '5.039' - class: Dist::Zilla::Plugin::VerifyPhases name: '@Author::ETHER/PHASE VERIFICATION' version: '0.013' zilla: class: Dist::Zilla::Dist::Builder config: is_trial: '0' version: '5.039' x_authority: cpan:ETHER x_authority_from_module: DateTime::Format::Duration x_contributors: - 'Karen Etheridge ' x_permissions_from_module: DateTime::Format::Duration x_static_install: 1 DateTime-Format-Duration-1.04/README000644 000766 000024 00000000600 12577447567 017322 0ustar00etherstaff000000 000000 This archive contains the distribution DateTime-Format-Duration, version 1.04: Format and parse DateTime::Durations This software is copyright (c) 2003 by Rick Measham. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. This README file was generated by Dist::Zilla::Plugin::Readme v5.039. DateTime-Format-Duration-1.04/t/000700 000766 000024 00000000000 12577447567 016677 5ustar00etherstaff000000 000000 DateTime-Format-Duration-1.04/xt/000700 000766 000024 00000000000 12577447567 017067 5ustar00etherstaff000000 000000 DateTime-Format-Duration-1.04/xt/author/000700 000766 000024 00000000000 12577447567 020371 5ustar00etherstaff000000 000000 DateTime-Format-Duration-1.04/xt/release/000700 000766 000024 00000000000 12577447567 020507 5ustar00etherstaff000000 000000 DateTime-Format-Duration-1.04/xt/release/changes_has_content.t000644 000766 000024 00000002010 12577447567 024674 0ustar00etherstaff000000 000000 #!perl use Test::More tests => 2; note 'Checking Changes'; my $changes_file = 'Changes'; my $newver = '1.04'; my $trial_token = '-TRIAL'; SKIP: { ok(-e $changes_file, "$changes_file file exists") or skip 'Changes is missing', 1; ok(_get_changes($newver), "$changes_file has content for $newver"); } done_testing; # _get_changes copied and adapted from Dist::Zilla::Plugin::Git::Commit # by Jerome Quelin sub _get_changes { my $newver = shift; # parse changelog to find commit message open(my $fh, '<', $changes_file) or die "cannot open $changes_file: $!"; my $changelog = join('', <$fh>); close $fh; my @content = grep { /^$newver(?:$trial_token)?(?:\s+|$)/ ... /^\S/ } # from newver to un-indented split /\n/, $changelog; shift @content; # drop the version line # drop unindented last line and trailing blank lines pop @content while ( @content && $content[-1] =~ /^(?:\S|\s*$)/ ); # return number of non-blank lines return scalar @content; } DateTime-Format-Duration-1.04/xt/release/cpan-changes.t000644 000766 000024 00000000263 12577447567 023236 0ustar00etherstaff000000 000000 #!perl use strict; use warnings; use Test::More 0.96 tests => 2; use_ok('Test::CPAN::Changes'); subtest 'changes_ok' => sub { changes_file_ok('Changes'); }; done_testing(); DateTime-Format-Duration-1.04/xt/release/distmeta.t000644 000766 000024 00000000172 12577447567 022520 0ustar00etherstaff000000 000000 #!perl # This file was automatically generated by Dist::Zilla::Plugin::MetaTests. use Test::CPAN::Meta; meta_yaml_ok(); DateTime-Format-Duration-1.04/xt/release/minimum-version.t000644 000766 000024 00000000266 12577447567 024050 0ustar00etherstaff000000 000000 #!perl use Test::More; eval "use Test::MinimumVersion"; plan skip_all => "Test::MinimumVersion required for testing minimum versions" if $@; all_minimum_version_ok( qq{5.006} ); DateTime-Format-Duration-1.04/xt/release/pod-syntax.t000644 000766 000024 00000000220 12577447567 023006 0ustar00etherstaff000000 000000 #!perl # This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. use Test::More; use Test::Pod 1.41; all_pod_files_ok(); DateTime-Format-Duration-1.04/xt/release/portability.t000644 000766 000024 00000000277 12577447567 023256 0ustar00etherstaff000000 000000 #!perl use strict; use warnings; use Test::More; eval 'use Test::Portability::Files'; plan skip_all => 'Test::Portability::Files required for testing portability' if $@; run_tests(); DateTime-Format-Duration-1.04/xt/author/00-compile.t000644 000766 000024 00000002255 12577447567 022441 0ustar00etherstaff000000 000000 use 5.006; use strict; use warnings; # this test was generated with Dist::Zilla::Plugin::Test::Compile 2.054 use Test::More 0.94; plan tests => 2; my @module_files = ( 'DateTime/Format/Duration.pm' ); # no fake home requested my $inc_switch = -d 'blib' ? '-Mblib' : '-Ilib'; use File::Spec; use IPC::Open3; use IO::Handle; open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!"; my @warnings; for my $lib (@module_files) { # see L my $stderr = IO::Handle->new; my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-e', "require q[$lib]"); binmode $stderr, ':crlf' if $^O eq 'MSWin32'; my @_warnings = <$stderr>; waitpid($pid, 0); is($?, 0, "$lib loaded ok"); shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/ and not eval { require blib; blib->VERSION('1.01') }; if (@_warnings) { warn @_warnings; push @warnings, @_warnings; } } is(scalar(@warnings), 0, 'no warnings found') or diag 'got warnings: ', explain(\@warnings); BAIL_OUT("Compilation problems") if !Test::More->builder->is_passing; DateTime-Format-Duration-1.04/xt/author/eol.t000644 000766 000024 00000001572 12577447567 021354 0ustar00etherstaff000000 000000 use strict; use warnings; # this test was generated with Dist::Zilla::Plugin::Test::EOL 0.18 use Test::More 0.88; use Test::EOL; my @files = ( 'lib/DateTime/Format/Duration.pm', 't/00-report-prereqs.dd', 't/00-report-prereqs.t', 't/1_load.t', 't/2_fmt_normalise.t', 't/3_fmt_normalise_iso.t', 't/4_fmt_normalise_no_base.t', 't/5_fmt_no_normalise.t', 't/6_parse.t', 't/7_misc.t', 't/8_negatives.t', 'xt/author/00-compile.t', 'xt/author/eol.t', 'xt/author/kwalitee.t', 'xt/author/mojibake.t', 'xt/author/no-tabs.t', 'xt/author/pod-spell.t', 'xt/release/changes_has_content.t', 'xt/release/cpan-changes.t', 'xt/release/distmeta.t', 'xt/release/minimum-version.t', 'xt/release/pod-syntax.t', 'xt/release/portability.t' ); eol_unix_ok($_, { trailing_whitespace => 1 }) foreach @files; done_testing; DateTime-Format-Duration-1.04/xt/author/kwalitee.t000644 000766 000024 00000000275 12577447567 022401 0ustar00etherstaff000000 000000 # this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.11 use strict; use warnings; use Test::More 0.88; use Test::Kwalitee 1.21 'kwalitee_ok'; kwalitee_ok(); done_testing; DateTime-Format-Duration-1.04/xt/author/mojibake.t000644 000766 000024 00000000151 12577447567 022346 0ustar00etherstaff000000 000000 #!perl use strict; use warnings qw(all); use Test::More; use Test::Mojibake; all_files_encoding_ok(); DateTime-Format-Duration-1.04/xt/author/no-tabs.t000644 000766 000024 00000001540 12577447567 022133 0ustar00etherstaff000000 000000 use strict; use warnings; # this test was generated with Dist::Zilla::Plugin::Test::NoTabs 0.15 use Test::More 0.88; use Test::NoTabs; my @files = ( 'lib/DateTime/Format/Duration.pm', 't/00-report-prereqs.dd', 't/00-report-prereqs.t', 't/1_load.t', 't/2_fmt_normalise.t', 't/3_fmt_normalise_iso.t', 't/4_fmt_normalise_no_base.t', 't/5_fmt_no_normalise.t', 't/6_parse.t', 't/7_misc.t', 't/8_negatives.t', 'xt/author/00-compile.t', 'xt/author/eol.t', 'xt/author/kwalitee.t', 'xt/author/mojibake.t', 'xt/author/no-tabs.t', 'xt/author/pod-spell.t', 'xt/release/changes_has_content.t', 'xt/release/cpan-changes.t', 'xt/release/distmeta.t', 'xt/release/minimum-version.t', 'xt/release/pod-syntax.t', 'xt/release/portability.t' ); notabs_ok($_) foreach @files; done_testing; DateTime-Format-Duration-1.04/xt/author/pod-spell.t000644 000766 000024 00000000526 12577447567 022472 0ustar00etherstaff000000 000000 use strict; use warnings; use Test::More; # generated by Dist::Zilla::Plugin::Test::PodSpelling 2.006009 use Test::Spelling 0.12; use Pod::Wordlist; add_stopwords(); all_pod_files_spelling_ok( qw( bin lib ) ); __DATA__ irc durations linebreak Sep strf timelines Rick Measham rickm Karen Etheridge ether lib DateTime Format Duration DateTime-Format-Duration-1.04/t/00-report-prereqs.dd000644 000766 000024 00000020620 12577447567 022431 0ustar00etherstaff000000 000000 do { my $x = { 'configure' => { 'requires' => { 'ExtUtils::MakeMaker' => '0', 'perl' => '5.006' } }, 'develop' => { 'recommends' => { 'Dist::Zilla::PluginBundle::Author::ETHER' => '0.104' }, 'requires' => { 'Dist::Zilla' => '5', 'Dist::Zilla::Plugin::Authority' => '1.009', 'Dist::Zilla::Plugin::AuthorityFromModule' => '0.002', 'Dist::Zilla::Plugin::AutoMetaResources' => '0', 'Dist::Zilla::Plugin::AutoPrereqs' => '5.038', 'Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional' => '0.004', 'Dist::Zilla::Plugin::CheckIssues' => '0', 'Dist::Zilla::Plugin::CheckPrereqsIndexed' => '0', 'Dist::Zilla::Plugin::CheckSelfDependency' => '0', 'Dist::Zilla::Plugin::CheckStrictVersion' => '0', 'Dist::Zilla::Plugin::ConfirmRelease' => '0', 'Dist::Zilla::Plugin::CopyFilesFromRelease' => '0', 'Dist::Zilla::Plugin::Encoding' => '0', 'Dist::Zilla::Plugin::FileFinder::ByName' => '0', 'Dist::Zilla::Plugin::GenerateFile::ShareDir' => '0', 'Dist::Zilla::Plugin::Git::Check' => '0', 'Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch' => '0.004', 'Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts' => '0', 'Dist::Zilla::Plugin::Git::Commit' => '2.020', 'Dist::Zilla::Plugin::Git::Contributors' => '0.004', 'Dist::Zilla::Plugin::Git::Describe' => '0.004', 'Dist::Zilla::Plugin::Git::GatherDir' => '2.016', 'Dist::Zilla::Plugin::Git::Push' => '0', 'Dist::Zilla::Plugin::Git::Remote::Check' => '0', 'Dist::Zilla::Plugin::Git::Tag' => '0', 'Dist::Zilla::Plugin::GitHub::Update' => '0.40', 'Dist::Zilla::Plugin::GithubMeta' => '0.54', 'Dist::Zilla::Plugin::InstallGuide' => '0', 'Dist::Zilla::Plugin::Keywords' => '0.004', 'Dist::Zilla::Plugin::License' => '5.038', 'Dist::Zilla::Plugin::MakeMaker' => '0', 'Dist::Zilla::Plugin::Manifest' => '0', 'Dist::Zilla::Plugin::MetaConfig' => '0', 'Dist::Zilla::Plugin::MetaJSON' => '0', 'Dist::Zilla::Plugin::MetaNoIndex' => '0', 'Dist::Zilla::Plugin::MetaProvides::Package' => '1.15000002', 'Dist::Zilla::Plugin::MetaResources' => '0', 'Dist::Zilla::Plugin::MetaTests' => '0', 'Dist::Zilla::Plugin::MetaYAML' => '0', 'Dist::Zilla::Plugin::MinimumPerl' => '1.006', 'Dist::Zilla::Plugin::MojibakeTests' => '0.8', 'Dist::Zilla::Plugin::NextRelease' => '5.033', 'Dist::Zilla::Plugin::PodSyntaxTests' => '0', 'Dist::Zilla::Plugin::PodWeaver' => '4.005', 'Dist::Zilla::Plugin::Prereqs' => '0', 'Dist::Zilla::Plugin::Prereqs::AuthorDeps' => '0', 'Dist::Zilla::Plugin::PromptIfStale' => '0', 'Dist::Zilla::Plugin::Readme' => '0', 'Dist::Zilla::Plugin::ReadmeAnyFromPod' => '0.142180', 'Dist::Zilla::Plugin::RewriteVersion::Transitional' => '0.004', 'Dist::Zilla::Plugin::Run::AfterBuild' => '0.038', 'Dist::Zilla::Plugin::Run::AfterRelease' => '0.038', 'Dist::Zilla::Plugin::RunExtraTests' => '0.024', 'Dist::Zilla::Plugin::StaticInstall' => '0.005', 'Dist::Zilla::Plugin::Test::CPAN::Changes' => '0.008', 'Dist::Zilla::Plugin::Test::ChangesHasContent' => '0', 'Dist::Zilla::Plugin::Test::Compile' => '2.039', 'Dist::Zilla::Plugin::Test::EOL' => '0.17', 'Dist::Zilla::Plugin::Test::Kwalitee' => '2.06', 'Dist::Zilla::Plugin::Test::MinimumVersion' => '2.000003', 'Dist::Zilla::Plugin::Test::NoTabs' => '0.08', 'Dist::Zilla::Plugin::Test::PodSpelling' => '2.006001', 'Dist::Zilla::Plugin::Test::Portability' => '0', 'Dist::Zilla::Plugin::Test::ReportPrereqs' => '0.019', 'Dist::Zilla::Plugin::TestRelease' => '0', 'Dist::Zilla::Plugin::UploadToCPAN' => '0', 'Dist::Zilla::PluginBundle::Author::ETHER' => '0.094', 'File::Spec' => '0', 'IO::Handle' => '0', 'IPC::Open3' => '0', 'Pod::Wordlist' => '0', 'Software::License::Perl_5' => '0', 'Test::CPAN::Changes' => '0.19', 'Test::CPAN::Meta' => '0', 'Test::EOL' => '0', 'Test::Kwalitee' => '1.21', 'Test::Mojibake' => '0', 'Test::More' => '0.96', 'Test::NoTabs' => '0', 'Test::Pod' => '1.41', 'Test::Spelling' => '0.12', 'blib' => '1.01', 'perl' => '5.006', 'warnings' => '0' } }, 'runtime' => { 'requires' => { 'Carp' => '0', 'Data::Dumper' => '0', 'DateTime::Duration' => '0', 'Exporter' => '0', 'Params::Validate' => '0', 'constant' => '0', 'perl' => '5.006', 'strict' => '0' } }, 'test' => { 'recommends' => { 'CPAN::Meta' => '2.120900' }, 'requires' => { 'DateTime' => '0', 'ExtUtils::MakeMaker' => '0', 'File::Spec' => '0', 'Test::More' => '0', 'perl' => '5.006', 'warnings' => '0' } } }; $x; }DateTime-Format-Duration-1.04/t/00-report-prereqs.t000644 000766 000024 00000012731 12577447567 022311 0ustar00etherstaff000000 000000 #!perl use strict; use warnings; # This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.021 use Test::More tests => 1; use ExtUtils::MakeMaker; use File::Spec; # from $version::LAX my $lax_version_re = qr/(?: undef | (?: (?:[0-9]+) (?: \. | (?:\.[0-9]+) (?:_[0-9]+)? )? | (?:\.[0-9]+) (?:_[0-9]+)? ) | (?: v (?:[0-9]+) (?: (?:\.[0-9]+)+ (?:_[0-9]+)? )? | (?:[0-9]+)? (?:\.[0-9]+){2,} (?:_[0-9]+)? ) )/x; # hide optional CPAN::Meta modules from prereq scanner # and check if they are available my $cpan_meta = "CPAN::Meta"; my $cpan_meta_pre = "CPAN::Meta::Prereqs"; my $HAS_CPAN_META = eval "require $cpan_meta; $cpan_meta->VERSION('2.120900')" && eval "require $cpan_meta_pre"; ## no critic # Verify requirements? my $DO_VERIFY_PREREQS = 1; sub _max { my $max = shift; $max = ( $_ > $max ) ? $_ : $max for @_; return $max; } sub _merge_prereqs { my ($collector, $prereqs) = @_; # CPAN::Meta::Prereqs object if (ref $collector eq $cpan_meta_pre) { return $collector->with_merged_prereqs( CPAN::Meta::Prereqs->new( $prereqs ) ); } # Raw hashrefs for my $phase ( keys %$prereqs ) { for my $type ( keys %{ $prereqs->{$phase} } ) { for my $module ( keys %{ $prereqs->{$phase}{$type} } ) { $collector->{$phase}{$type}{$module} = $prereqs->{$phase}{$type}{$module}; } } } return $collector; } my @include = qw( ); my @exclude = qw( ); # Add static prereqs to the included modules list my $static_prereqs = do 't/00-report-prereqs.dd'; # Merge all prereqs (either with ::Prereqs or a hashref) my $full_prereqs = _merge_prereqs( ( $HAS_CPAN_META ? $cpan_meta_pre->new : {} ), $static_prereqs ); # Add dynamic prereqs to the included modules list (if we can) my ($source) = grep { -f } 'MYMETA.json', 'MYMETA.yml'; if ( $source && $HAS_CPAN_META ) { if ( my $meta = eval { CPAN::Meta->load_file($source) } ) { $full_prereqs = _merge_prereqs($full_prereqs, $meta->prereqs); } } else { $source = 'static metadata'; } my @full_reports; my @dep_errors; my $req_hash = $HAS_CPAN_META ? $full_prereqs->as_string_hash : $full_prereqs; # Add static includes into a fake section for my $mod (@include) { $req_hash->{other}{modules}{$mod} = 0; } for my $phase ( qw(configure build test runtime develop other) ) { next unless $req_hash->{$phase}; next if ($phase eq 'develop' and not $ENV{AUTHOR_TESTING}); for my $type ( qw(requires recommends suggests conflicts modules) ) { next unless $req_hash->{$phase}{$type}; my $title = ucfirst($phase).' '.ucfirst($type); my @reports = [qw/Module Want Have/]; for my $mod ( sort keys %{ $req_hash->{$phase}{$type} } ) { next if $mod eq 'perl'; next if grep { $_ eq $mod } @exclude; my $file = $mod; $file =~ s{::}{/}g; $file .= ".pm"; my ($prefix) = grep { -e File::Spec->catfile($_, $file) } @INC; my $want = $req_hash->{$phase}{$type}{$mod}; $want = "undef" unless defined $want; $want = "any" if !$want && $want == 0; my $req_string = $want eq 'any' ? 'any version required' : "version '$want' required"; if ($prefix) { my $have = MM->parse_version( File::Spec->catfile($prefix, $file) ); $have = "undef" unless defined $have; push @reports, [$mod, $want, $have]; if ( $DO_VERIFY_PREREQS && $HAS_CPAN_META && $type eq 'requires' ) { if ( $have !~ /\A$lax_version_re\z/ ) { push @dep_errors, "$mod version '$have' cannot be parsed ($req_string)"; } elsif ( ! $full_prereqs->requirements_for( $phase, $type )->accepts_module( $mod => $have ) ) { push @dep_errors, "$mod version '$have' is not in required range '$want'"; } } } else { push @reports, [$mod, $want, "missing"]; if ( $DO_VERIFY_PREREQS && $type eq 'requires' ) { push @dep_errors, "$mod is not installed ($req_string)"; } } } if ( @reports ) { push @full_reports, "=== $title ===\n\n"; my $ml = _max( map { length $_->[0] } @reports ); my $wl = _max( map { length $_->[1] } @reports ); my $hl = _max( map { length $_->[2] } @reports ); if ($type eq 'modules') { splice @reports, 1, 0, ["-" x $ml, "", "-" x $hl]; push @full_reports, map { sprintf(" %*s %*s\n", -$ml, $_->[0], $hl, $_->[2]) } @reports; } else { splice @reports, 1, 0, ["-" x $ml, "-" x $wl, "-" x $hl]; push @full_reports, map { sprintf(" %*s %*s %*s\n", -$ml, $_->[0], $wl, $_->[1], $hl, $_->[2]) } @reports; } push @full_reports, "\n"; } } } if ( @full_reports ) { diag "\nVersions for all modules listed in $source (including optional ones):\n\n", @full_reports; } if ( @dep_errors ) { diag join("\n", "\n*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***\n", "The following REQUIRED prerequisites were not satisfied:\n", @dep_errors, "\n" ); } pass; # vim: ts=4 sts=4 sw=4 et: DateTime-Format-Duration-1.04/t/1_load.t000700 000766 000024 00000000323 12577447567 020224 0ustar00etherstaff000000 000000 use Test::More tests => 2; BEGIN { use_ok('DateTime::Format::Duration') }; $strf = DateTime::Format::Duration->new( normalise => 0, pattern => '%F %r', ); isa_ok($strf, 'DateTime::Format::Duration'); DateTime-Format-Duration-1.04/t/2_fmt_normalise.t000700 000766 000024 00000013631 12577447567 022153 0ustar00etherstaff000000 000000 # Before `make install' is performed this script should be runnable with # `make test'. After `make install' it should work as `perl 1.t' use warnings; use DateTime; use DateTime::Duration; use DateTime::Format::Duration; ######################### use Test::More tests=>52; my $x = 0; # Test Counter $strf = DateTime::Format::Duration->new( base => DateTime->new( year=> 2004, time_zone=>"Australia/Melbourne" ), pattern => '%P%F %r', ); $strf->{diagnostic} = join('',@ARGV) =~ /\!/; test( ['0000-00-00 00:00:01', '0000-00-00 00:00:01'], ['0000-00-00 00:00:59', '0000-00-00 00:00:59'], ['0000-00-00 00:00:60', '0000-00-00 00:01:00'], ['0000-00-00 00:00:61', '0000-00-00 00:01:01'], ['0000-00-00 00:00:119', '0000-00-00 00:01:59'], ['0000-00-00 00:00:120', '0000-00-00 00:02:00'], ['0000-00-00 00:00:121', '0000-00-00 00:02:01'], ['0000-00-00 00:01:00', '0000-00-00 00:01:00'], ['0000-00-00 00:59:00', '0000-00-00 00:59:00'], ['0000-00-00 00:60:00', '0000-00-00 01:00:00'], ['0000-00-00 00:61:00', '0000-00-00 01:01:00'], ['0000-00-00 00:01:59', '0000-00-00 00:01:59'], ['0000-00-00 00:01:60', '0000-00-00 00:02:00'], ['0000-00-00 00:01:61', '0000-00-00 00:02:01'], ['0000-00-00 00:59:60', '0000-00-00 01:00:00'], ['0000-00-00 00:60:60', '0000-00-00 01:01:00'], ['0000-00-00 01:00:00', '0000-00-00 01:00:00'], ['0000-00-00 23:00:00', '0000-00-00 23:00:00'], ['0000-00-00 24:00:00', '0000-00-01 00:00:00'], ['0000-00-00 25:00:00', '0000-00-01 01:00:00'], ['0000-00-00 01:59:00', '0000-00-00 01:59:00'], ['0000-00-00 01:60:00', '0000-00-00 02:00:00'], ['0000-00-00 01:61:00', '0000-00-00 02:01:00'], ['0000-00-00 23:60:00', '0000-00-01 00:00:00'], ['0000-00-00 24:60:00', '0000-00-01 01:00:00'], ['0000-00-00 00:00:86400', '0000-00-01 00:00:00'], # Overflows ['0000-00-00 00:1440:00', '0000-00-01 00:00:00'], ['0000-00-00 240:00:00', '0000-00-10 00:00:00',], ['0000-00-45 00:00:00', '0000-01-14 00:00:00',], ['0000-240-00 00:00:00', '0020-00-00 00:00:00',], ['0000-00-00 00:00:-86400', '-0000-00-01 00:00:00'], # Underflows ['0000-00-00 00:-1440:00', '-0000-00-01 00:00:00'], ['0000-00-00 -240:00:00', '-0000-00-10 00:00:00',], ['0000-00--45 00:00:00', '-0000-01-14 00:00:00',], ['0000--240-00 00:00:00', '-0020-00-00 00:00:00',], ['0000-00-00 00:00:-01', '-0000-00-00 00:00:01'], ['0000-00-00 00:00:-59', '-0000-00-00 00:00:59'], ['0000-00-00 00:00:-60', '-0000-00-00 00:01:00'], ['0000-00-00 00:00:-61', '-0000-00-00 00:01:01'], ['0000-00-00 -01:01:-01', '-0000-00-00 00:59:01'], # Mixed positivity ); # DST Changeovers are easier to see if we use better bases: $strf->set_base(DateTime->new( year=> 2004, month=>3, day=>27, time_zone=>"Australia/Melbourne" )); test( ['0000-00-00 48:00:00', '0000-00-01 23:00:00', 'DST ends, Day is 25 hours long'], ['0000-00-02 -48:00:00', '0000-00-00 01:00:00'], ['0000-00-02 00:00:00', '0000-00-02 00:00:00'], # days are days, they don't change ['0000-00-00 24:00:00', '0000-00-01 00:00:00'], # hours not crossing the DST don't change ); $strf->set_base(DateTime->new( year=> 2004, month=>10, day=>30, time_zone=>"Australia/Melbourne" )); test( ['0000-00-00 48:00:00', '0000-00-02 01:00:00', 'DST starts, Day is 23 hours long'], ['0000-00-02 -48:00:00', '-0000-00-00 01:00:00'], ['0000-00-02 00:00:00', '0000-00-02 00:00:00'], # days are days, they don't change ['0000-00-00 24:00:00', '0000-00-01 00:00:00'], # hours not crossing the DST don't change ); # Leap Seconds are easier to see if we use better bases: $strf->set_base(DateTime->new( year=> 1998, month=>12, day=>31, hour=>23, minute=>58, time_zone=>"UTC" )); test( ['0000-00-00 00:01:120', '0000-00-00 00:02:59', 'Leap Second adds an extra second to one of the minutes.'], ['0000-00-00 00:01:60', '0000-00-00 00:01:60'], ['0000-00-00 00:03:00', '0000-00-00 00:03:00'], ['0000-00-00 00:00:60', '0000-00-00 00:01:00'], ); # ------------------ TESTING ROUTINES ------------------------- sub test { my @tests = @_; foreach my $test (@tests) { my $w = ($x++ < 9) ? 22 : 21; next unless in_range($x); diag($test->[2]) if $test->[2]; is( $strf->format_duration_from_deltas( $strf->parse_duration_as_deltas( $test->[0] ) ), $test->[1], sprintf("Test %2d: %${w}s should %s %s", $x, $test->[0], ($test->[0] eq $test->[1]) ? 'stay ':'become', $test->[1]) # . (($test->[2]) ? sprintf(" (%s)",$test->[2]) : '') ) or diag( "If you send an error report, please include the output of:\n $^X $0 $x!" ); } } sub in_range { # see if this test is in our list of tests: return 1 unless $ARGV[0]; my $test = shift; $argv = join(',', @ARGV); $argv=~s/,\.\.,/../g; $argv=~s/,,/,/g; $argv=~s/\!//; return 1 if $argv=~/\b$test\b/; foreach my $part( split(/,\s*/, $argv) ) { my ($start, $end) = $part =~ /(\d+)\s*\.\.\s*(\d+)/; ($start, $end) = ($end, $start) if $end < $start; next if $start > $test; return 1 if $end > $test } return 0; } sub Dump { eval{ require Data::Dumper }; return "" if $@; return Data::Dumper::Dumper(@_) } # Oct 30 (24 hrs) # Oct 31 (25 hrs) # Nov 1 (24 hrs) # #-----------|-----------#------------|-----------#-----------|-----------# # 48 Hours == 1 day, 24 hours: #-----------------------------------------------# #---- 1 day ------------#------ 24 hours -------# # 2 Days, -48 Hours == 1 hour: #------------------- 2 days --------------------# #------------------ 48 hours ------------------# # 1 hour DateTime-Format-Duration-1.04/t/3_fmt_normalise_iso.t000700 000766 000024 00000010737 12577447567 023032 0ustar00etherstaff000000 000000 # Before `make install' is performed this script should be runnable with # `make test'. After `make install' it should work as `perl 1.t' use warnings; use DateTime; use DateTime::Duration; use DateTime::Format::Duration; ######################### use Test::More tests=>40; my $x = 0; # Test Counter $strf = DateTime::Format::Duration->new( normalise => 'ISO', pattern => '%P%F %r', ); $strf->{diagnostic} = join('',@ARGV) =~ /\!/; test( ['0000-00-00 00:00:01', '0000-00-00 00:00:01'], ['0000-00-00 00:00:59', '0000-00-00 00:00:59'], ['0000-00-00 00:00:60', '0000-00-00 00:01:00'], ['0000-00-00 00:00:61', '0000-00-00 00:01:01'], ['0000-00-00 00:00:119', '0000-00-00 00:01:59'], ['0000-00-00 00:00:120', '0000-00-00 00:02:00'], ['0000-00-00 00:00:121', '0000-00-00 00:02:01'], ['0000-00-00 00:01:00', '0000-00-00 00:01:00'], ['0000-00-00 00:59:00', '0000-00-00 00:59:00'], ['0000-00-00 00:60:00', '0000-00-00 01:00:00'], ['0000-00-00 00:61:00', '0000-00-00 01:01:00'], ['0000-00-00 00:01:59', '0000-00-00 00:01:59'], ['0000-00-00 00:01:60', '0000-00-00 00:02:00'], ['0000-00-00 00:01:61', '0000-00-00 00:02:01'], ['0000-00-00 00:59:60', '0000-00-00 01:00:00'], ['0000-00-00 00:60:60', '0000-00-00 01:01:00'], ['0000-00-00 01:00:00', '0000-00-00 01:00:00'], ['0000-00-00 23:00:00', '0000-00-00 23:00:00'], ['0000-00-00 24:00:00', '0000-00-01 00:00:00'], ['0000-00-00 25:00:00', '0000-00-01 01:00:00'], ['0000-00-00 01:59:00', '0000-00-00 01:59:00'], ['0000-00-00 01:60:00', '0000-00-00 02:00:00'], ['0000-00-00 01:61:00', '0000-00-00 02:01:00'], ['0000-00-00 23:60:00', '0000-00-01 00:00:00'], ['0000-00-00 24:60:00', '0000-00-01 01:00:00'], ['0000-00-00 00:00:86400', '0000-00-01 00:00:00'], # Overflows ['0000-00-00 00:1440:00', '0000-00-01 00:00:00'], ['0000-00-00 240:00:00', '0000-00-10 00:00:00',], ['0000-00-45 00:00:00', '0000-01-15 00:00:00',], ['0000-240-00 00:00:00', '0020-00-00 00:00:00',], ['0000-00-00 00:00:-86400', '-0000-00-01 00:00:00'], # Underflows ['0000-00-00 00:-1440:00', '-0000-00-01 00:00:00'], ['0000-00-00 -240:00:00', '-0000-00-10 00:00:00',], ['0000-00--45 00:00:00', '-0000-01-15 00:00:00',], ['0000--240-00 00:00:00', '-0020-00-00 00:00:00',], ['0000-00-00 00:00:-01', '-0000-00-00 00:00:01'], ['0000-00-00 00:00:-59', '-0000-00-00 00:00:59'], ['0000-00-00 00:00:-60', '-0000-00-00 00:01:00'], ['0000-00-00 00:00:-61', '-0000-00-00 00:01:01'], ['0000-00-00 -01:01:-01', '-0000-00-00 00:59:01'], # Mixed positivity ); # ------------------ TESTING ROUTINES ------------------------- sub test { my @tests = @_; foreach my $test (@tests) { my $w = ($x++ < 9) ? 22 : 21; next unless in_range($x); diag($test->[2]) if $test->[2]; is( $strf->format_duration_from_deltas( $strf->parse_duration_as_deltas( $test->[0] ) ), $test->[1], sprintf("Test %2d: %${w}s should %s %s", $x, $test->[0], ($test->[0] eq $test->[1]) ? 'stay ':'become', $test->[1]) # . (($test->[2]) ? sprintf(" (%s)",$test->[2]) : '') ) or diag( "If you send an error report, please include the output of:\n $^X $0 $x!" ); } } sub in_range { # see if this test is in our list of tests: return 1 unless $ARGV[0]; my $test = shift; $argv = join(',', @ARGV); $argv=~s/,\.\.,/../g; $argv=~s/,,/,/g; $argv=~s/\!//; return 1 if $argv=~/\b$test\b/; foreach my $part( split(/,\s*/, $argv) ) { my ($start, $end) = $part =~ /(\d+)\s*\.\.\s*(\d+)/; ($start, $end) = ($end, $start) if $end < $start; next if $start > $test; return 1 if $end > $test } return 0; } sub Dump { eval{ require Data::Dumper }; return "" if $@; return Data::Dumper::Dumper(@_) } # Oct 30 (24 hrs) # Oct 31 (25 hrs) # Nov 1 (24 hrs) # #-----------|-----------#------------|-----------#-----------|-----------# # 48 Hours == 1 day, 24 hours: #-----------------------------------------------# #---- 1 day ------------#------ 24 hours -------# # 2 Days, -48 Hours == 1 hour: #------------------- 2 days --------------------# #------------------ 48 hours ------------------# # 1 hour DateTime-Format-Duration-1.04/t/4_fmt_normalise_no_base.t000700 000766 000024 00000010733 12577447567 023643 0ustar00etherstaff000000 000000 # Before `make install' is performed this script should be runnable with # `make test'. After `make install' it should work as `perl 1.t' use warnings; use DateTime; use DateTime::Duration; use DateTime::Format::Duration; ######################### use Test::More tests=>40; my $x = 0; # Test Counter $strf = DateTime::Format::Duration->new( normalise => 1, pattern => '%P%F %r', ); $strf->{diagnostic} = join('',@ARGV) =~ /\!/; test( ['0000-00-00 00:00:01', '0000-00-00 00:00:01'], ['0000-00-00 00:00:59', '0000-00-00 00:00:59'], ['0000-00-00 00:00:60', '0000-00-00 00:01:00'], ['0000-00-00 00:00:61', '0000-00-00 00:01:01'], ['0000-00-00 00:00:119', '0000-00-00 00:01:59'], ['0000-00-00 00:00:120', '0000-00-00 00:02:00'], ['0000-00-00 00:00:121', '0000-00-00 00:02:01'], ['0000-00-00 00:01:00', '0000-00-00 00:01:00'], ['0000-00-00 00:59:00', '0000-00-00 00:59:00'], ['0000-00-00 00:60:00', '0000-00-00 01:00:00'], ['0000-00-00 00:61:00', '0000-00-00 01:01:00'], ['0000-00-00 00:01:59', '0000-00-00 00:01:59'], ['0000-00-00 00:01:60', '0000-00-00 00:02:00'], ['0000-00-00 00:01:61', '0000-00-00 00:02:01'], ['0000-00-00 00:59:60', '0000-00-00 01:00:00'], ['0000-00-00 00:60:60', '0000-00-00 01:01:00'], ['0000-00-00 01:00:00', '0000-00-00 01:00:00'], ['0000-00-00 23:00:00', '0000-00-00 23:00:00'], ['0000-00-00 24:00:00', '0000-00-01 00:00:00'], ['0000-00-00 25:00:00', '0000-00-01 01:00:00'], ['0000-00-00 01:59:00', '0000-00-00 01:59:00'], ['0000-00-00 01:60:00', '0000-00-00 02:00:00'], ['0000-00-00 01:61:00', '0000-00-00 02:01:00'], ['0000-00-00 23:60:00', '0000-00-01 00:00:00'], ['0000-00-00 24:60:00', '0000-00-01 01:00:00'], ['0000-00-00 00:00:86400', '0000-00-01 00:00:00'], # Overflows ['0000-00-00 00:1440:00', '0000-00-01 00:00:00'], ['0000-00-00 240:00:00', '0000-00-10 00:00:00',], ['0000-00-45 00:00:00', '0000-00-45 00:00:00',], ['0000-240-00 00:00:00', '0020-00-00 00:00:00',], ['0000-00-00 00:00:-86400', '-0000-00-01 00:00:00'], # Underflows ['0000-00-00 00:-1440:00', '-0000-00-01 00:00:00'], ['0000-00-00 -240:00:00', '-0000-00-10 00:00:00',], ['0000-00--45 00:00:00', '-0000-00-45 00:00:00',], ['0000--240-00 00:00:00', '-0020-00-00 00:00:00',], ['0000-00-00 00:00:-01', '-0000-00-00 00:00:01'], ['0000-00-00 00:00:-59', '-0000-00-00 00:00:59'], ['0000-00-00 00:00:-60', '-0000-00-00 00:01:00'], ['0000-00-00 00:00:-61', '-0000-00-00 00:01:01'], ['0000-00-00 -01:01:-01', '-0000-00-00 00:59:01'], # Mixed positivity ); # ------------------ TESTING ROUTINES ------------------------- sub test { my @tests = @_; foreach my $test (@tests) { my $w = ($x++ < 9) ? 22 : 21; next unless in_range($x); diag($test->[2]) if $test->[2]; is( $strf->format_duration_from_deltas( $strf->parse_duration_as_deltas( $test->[0] ) ), $test->[1], sprintf("Test %2d: %${w}s should %s %s", $x, $test->[0], ($test->[0] eq $test->[1]) ? 'stay ':'become', $test->[1]) # . (($test->[2]) ? sprintf(" (%s)",$test->[2]) : '') ) or diag( "If you send an error report, please include the output of:\n $^X $0 $x!" ); } } sub in_range { # see if this test is in our list of tests: return 1 unless $ARGV[0]; my $test = shift; $argv = join(',', @ARGV); $argv=~s/,\.\.,/../g; $argv=~s/,,/,/g; $argv=~s/\!//; return 1 if $argv=~/\b$test\b/; foreach my $part( split(/,\s*/, $argv) ) { my ($start, $end) = $part =~ /(\d+)\s*\.\.\s*(\d+)/; ($start, $end) = ($end, $start) if $end < $start; next if $start > $test; return 1 if $end > $test } return 0; } sub Dump { eval{ require Data::Dumper }; return "" if $@; return Data::Dumper::Dumper(@_) } # Oct 30 (24 hrs) # Oct 31 (25 hrs) # Nov 1 (24 hrs) # #-----------|-----------#------------|-----------#-----------|-----------# # 48 Hours == 1 day, 24 hours: #-----------------------------------------------# #---- 1 day ------------#------ 24 hours -------# # 2 Days, -48 Hours == 1 hour: #------------------- 2 days --------------------# #------------------ 48 hours ------------------# # 1 hour DateTime-Format-Duration-1.04/t/5_fmt_no_normalise.t000700 000766 000024 00000010752 12577447567 022653 0ustar00etherstaff000000 000000 # Before `make install' is performed this script should be runnable with # `make test'. After `make install' it should work as `perl 1.t' use warnings; use DateTime; use DateTime::Duration; use DateTime::Format::Duration; ######################### use Test::More tests=>40; my $x = 0; # Test Counter $strf = DateTime::Format::Duration->new( normalise => 0, pattern => '%P%F %r', ); $strf->{diagnostic} = join('',@ARGV) =~ /\!/; test( ['0000-00-00 00:00:01', '0000-00-00 00:00:01'], ['0000-00-00 00:00:59', '0000-00-00 00:00:59'], ['0000-00-00 00:00:60', '0000-00-00 00:00:60'], ['0000-00-00 00:00:61', '0000-00-00 00:00:61'], ['0000-00-00 00:00:119', '0000-00-00 00:00:119'], ['0000-00-00 00:00:120', '0000-00-00 00:00:120'], ['0000-00-00 00:00:121', '0000-00-00 00:00:121'], ['0000-00-00 00:01:00', '0000-00-00 00:01:00'], ['0000-00-00 00:59:00', '0000-00-00 00:59:00'], ['0000-00-00 00:60:00', '0000-00-00 00:60:00'], ['0000-00-00 00:61:00', '0000-00-00 00:61:00'], ['0000-00-00 00:01:59', '0000-00-00 00:01:59'], ['0000-00-00 00:01:60', '0000-00-00 00:01:60'], ['0000-00-00 00:01:61', '0000-00-00 00:01:61'], ['0000-00-00 00:59:60', '0000-00-00 00:59:60'], ['0000-00-00 00:60:60', '0000-00-00 00:60:60'], ['0000-00-00 01:00:00', '0000-00-00 01:00:00'], ['0000-00-00 23:00:00', '0000-00-00 23:00:00'], ['0000-00-00 24:00:00', '0000-00-00 24:00:00'], ['0000-00-00 25:00:00', '0000-00-00 25:00:00'], ['0000-00-00 01:59:00', '0000-00-00 01:59:00'], ['0000-00-00 01:60:00', '0000-00-00 01:60:00'], ['0000-00-00 01:61:00', '0000-00-00 01:61:00'], ['0000-00-00 23:60:00', '0000-00-00 23:60:00'], ['0000-00-00 24:60:00', '0000-00-00 24:60:00'], ['0000-00-00 00:00:86400', '0000-00-00 00:00:86400'], # Overflows ['0000-00-00 00:1440:00', '0000-00-00 00:1440:00'], ['0000-00-00 240:00:00', '0000-00-00 240:00:00',], ['0000-00-45 00:00:00', '0000-00-45 00:00:00',], ['0000-240-00 00:00:00', '0000-240-00 00:00:00',], ['0000-00-00 00:00:-86400', '0000-00-00 00:00:-86400'], # Underflows ['0000-00-00 00:-1440:00', '0000-00-00 00:-1440:00'], ['0000-00-00 -240:00:00', '0000-00-00 -240:00:00',], ['0000-00--45 00:00:00', '0000-00--45 00:00:00',], ['0000--240-00 00:00:00', '0000--240-00 00:00:00',], ['0000-00-00 00:00:-01', '0000-00-00 00:00:-1'], ['0000-00-00 00:00:-59', '0000-00-00 00:00:-59'], ['0000-00-00 00:00:-60', '0000-00-00 00:00:-60'], ['0000-00-00 00:00:-61', '0000-00-00 00:00:-61'], ['0000-00-00 -01:01:-01', '0000-00-00 -1:01:-1'], # Mixed positivity ); # ------------------ TESTING ROUTINES ------------------------- sub test { my @tests = @_; foreach my $test (@tests) { my $w = ($x++ < 9) ? 22 : 21; next unless in_range($x); diag($test->[2]) if $test->[2]; is( $strf->format_duration_from_deltas( $strf->parse_duration_as_deltas( $test->[0] ) ), $test->[1], sprintf("Test %2d: %${w}s should %s %s", $x, $test->[0], ($test->[0] eq $test->[1]) ? 'stay ':'become', $test->[1]) # . (($test->[2]) ? sprintf(" (%s)",$test->[2]) : '') ) or diag( "If you send an error report, please include the output of:\n $^X $0 $x!" ); } } sub in_range { # see if this test is in our list of tests: return 1 unless $ARGV[0]; my $test = shift; $argv = join(',', @ARGV); $argv=~s/,\.\.,/../g; $argv=~s/,,/,/g; $argv=~s/\!//; return 1 if $argv=~/\b$test\b/; foreach my $part( split(/,\s*/, $argv) ) { my ($start, $end) = $part =~ /(\d+)\s*\.\.\s*(\d+)/; ($start, $end) = ($end, $start) if $end < $start; next if $start > $test; return 1 if $end > $test } return 0; } sub Dump { eval{ require Data::Dumper }; return "" if $@; return Data::Dumper::Dumper(@_) } # Oct 30 (24 hrs) # Oct 31 (25 hrs) # Nov 1 (24 hrs) # #-----------|-----------#------------|-----------#-----------|-----------# # 48 Hours == 1 day, 24 hours: #-----------------------------------------------# #---- 1 day ------------#------ 24 hours -------# # 2 Days, -48 Hours == 1 hour: #------------------- 2 days --------------------# #------------------ 48 hours ------------------# # 1 hour DateTime-Format-Duration-1.04/t/6_parse.t000700 000766 000024 00000007551 12577447567 020436 0ustar00etherstaff000000 000000 # Before `make install' is performed this script should be runnable with # `make test'. After `make install' it should work as `perl 1.t' use warnings; use DateTime; use DateTime::Duration; use DateTime::Format::Duration; ######################### use Test::More tests=>24; my $x = 0; # Test Counter my $debug = 0; $debug = 2 if join('',@ARGV) =~ /\!/; test( ['%C', '20', '2000-00-00 00:00:00.000000000', '%P%F %r.%N', 'Individual Components'], ['%d', '02', '0000-00-02 00:00:00.000000000'], ['%e', '2', '0000-00-02 00:00:00.000000000'], ['%H', '02', '0000-00-00 02:00:00.000000000'], ['%I', '02', '0000-00-00 02:00:00.000000000'], ['%j', '02', '0000-00-02 00:00:00.000000000'], ['%k', '2', '0000-00-00 02:00:00.000000000'], ['%l', '2', '0000-00-00 02:00:00.000000000'], ['%m', '02', '0000-02-00 00:00:00.000000000'], ['%M', '02', '0000-00-00 00:02:00.000000000'], ['%n', ' ', '0000-00-00 00:00:00.000000000'], ['%N', '2', '0000-00-00 00:00:00.000000002'], ['%s', '2', '0000-00-00 00:00:02.000000000'], ['%S', '02', '0000-00-00 00:00:02.000000000'], ['%t', ' ', '0000-00-00 00:00:00.000000000'], ['%u', '02', '0000-00-02 00:00:00.000000000'], ['%V', '2', '0000-00-14 00:00:00.000000000'], ['%W', '1.5', '0000-00-10 12:00:00.000000000'], ['%y', '2', '0002-00-00 00:00:00.000000000'], ['%Y', '0002', '0002-00-00 00:00:00.000000000'], ['%F', '0002-03-04', '0002-03-04 00:00:00.000000000', '%P%F %r.%N', 'Group Components'], ['%r', '02:03:04', '0000-00-00 02:03:04.000000000'], ['%R', '02:03', '0000-00-00 02:03:00.000000000'], ['%T', '-02:-03:-04', '-0000-00-00 02:03:04.000000000'], ); # ------------------ TESTING ROUTINES ------------------------- sub test { my @tests = @_; foreach my $test (@tests) { $x++; next unless in_range($x); diag($test->[4]) if $test->[4]; is( DateTime::Format::Duration::strfduration( pattern => $test->[3] || '%P%F %r.%N', normalise => 1, duration => DateTime::Format::Duration::strpduration( pattern => $test->[0], duration => $test->[1], as_deltas=> 0, debug => $debug, ), debug => $debug, ), $test->[2], sprintf("Test %2d: %s as %s should be %s", $x, $test->[1], $test->[0], $test->[2]) # . (($test->[2]) ? sprintf(" (%s)",$test->[2]) : '') ) or diag( "If you send an error report, please include the output of:\n $^X $0 $x!" ); } } sub in_range { # see if this test is in our list of tests: return 1 unless $ARGV[0]; my $test = shift; $argv = join(',', @ARGV); $argv=~s/,\.\.,/../g; $argv=~s/,,/,/g; $argv=~s/\!//; return 1 if $argv=~/\b$test\b/; foreach my $part( split(/,\s*/, $argv) ) { my ($start, $end) = $part =~ /(\d+)\s*\.\.\s*(\d+)/; ($start, $end) = ($end, $start) if $end and $start and $end < $start; next if $start and $test and $start > $test; return 1 if $end and $test and $end > $test } return 0; } sub Dump { eval{ require Data::Dumper }; return "" if $@; return Data::Dumper::Dumper(@_) } # Oct 30 (24 hrs) # Oct 31 (25 hrs) # Nov 1 (24 hrs) # #-----------|-----------#------------|-----------#-----------|-----------# # 48 Hours == 1 day, 24 hours: #-----------------------------------------------# #---- 1 day ------------#------ 24 hours -------# # 2 Days, -48 Hours == 1 hour: #------------------- 2 days --------------------# #------------------ 48 hours ------------------# # 1 hour DateTime-Format-Duration-1.04/t/7_misc.t000700 000766 000024 00000002520 12577447567 020247 0ustar00etherstaff000000 000000 use Test::More tests => 7; use warnings; use DateTime; use DateTime::Duration; use DateTime::Format::Duration; $strf = DateTime::Format::Duration->new( base => DateTime->new(year=>2003), pattern => '%V weeks, %u days', ); $duration = DateTime::Duration->new( days => 17 ); is( $strf->format_duration( $duration ), '2 weeks, 3 days', '17 days = 2 weeks, 3 days' ); $strf = DateTime::Format::Duration->new( pattern => '%N %6N %3N', ); $duration = DateTime::Duration->new( days => 17, nanoseconds => 654321987 ); is( $strf->format_duration( $duration ), '654321987 654321 654', 'Nanosecond precision' ); $strf = DateTime::Format::Duration->new( pattern => '%V', base => DateTime->new( year => 2003 ), ); $duration = DateTime::Duration->new( days => 22, hours => 36 ); is( $strf->format_duration( $duration ), '3', '22 days, 36 hours as integer weeks' ); $strf->set_pattern('%W'); is( $strf->format_duration( $duration ), '3.357142857', '22 days, 36 hours as floating weeks' ); $strf->set_pattern('%j'); is( $strf->format_duration( $duration ), '23', '22 days, 36 hours as days' ); $strf->set_pattern('%s'); is( $strf->format_duration( $duration ), (22*24*60*60) + (36*60*60), '22 days, 36 hours as seconds' ); $strf->set_pattern('%u'); is( $strf->format_duration( $duration ), '2', '22 days, 36 hours as days modulus 7' ); DateTime-Format-Duration-1.04/t/8_negatives.t000700 000766 000024 00000005324 12577447567 021307 0ustar00etherstaff000000 000000 use warnings; use DateTime; use DateTime::Duration; use DateTime::Format::Duration; ######################### use Test::More tests=>5; $strf = DateTime::Format::Duration->new( base => DateTime->new( year=> 2003 ), pattern => '%F %r', ); @tests = ( { # 1 & 2 pattern => '%P%F %r', duration => { years => 2, months => 1, days => 22, hours => 11, minutes => -9, }, diagnostic => 0, expect => '0002-01-22 10:51:00', expect_duration => '-0002-01-22 11:09:00', title => 'Mixed values with minor negative value', }, { # 3 & 4 pattern => '%P%F %r', duration => { minutes => -1, }, diagnostic => 0, expect => '-0000-00-00 00:01:00', expect_duration => '-0000-00-00 00:01:00', title => 'Single negative value', }, { # 5 & 6 pattern => '%P%F %r', duration => { years => -2, months => 1, days => 22, hours => 11, minutes => -9, }, diagnostic => 0, expect => '-0001-10-05 13:09:00', expect_duration => '-0002-01-22 11:09:00', title => 'Mixed values with minor and major negatives', }, { # 7 & 8 pattern => '%P%F %r', duration => { years => -2, months => -1, days => -22, hours => -11, minutes => -9, }, diagnostic => 0, expect => '-0002-01-22 11:09:00', expect_duration => '-0002-01-22 11:09:00', title => 'All negative values', }, { # 7 & 8 pattern => '%P%F %r', duration => { years => 2, months => 1, days => 22, hours => 11, minutes => 9, }, diagnostic => 0, expect => '0002-01-22 11:09:00', expect_duration => '0002-01-22 11:09:00', title => 'All positive values', }, ); foreach my $test (@tests) { $test->{title} ||= $test->{pattern}; $strf->set_pattern( $test->{pattern} ); $strf->{diagnostic} = 1 if $test->{diagnostic}; is( $strf->format_duration_from_deltas( %{$test->{duration}} ), $test->{expect}, $test->{title} ) or diag( "Failed on " . $test->{pattern} . "\n" . "Got: " . Dump( $test->{duration} )); $strf->{diagnostic} = 0; } sub Dump { eval{ require Data::Dumper }; return "" if $@; return Data::Dumper::Dumper(@_) } DateTime-Format-Duration-1.04/lib/DateTime/000700 000766 000024 00000000000 12577447567 020676 5ustar00etherstaff000000 000000 DateTime-Format-Duration-1.04/lib/DateTime/Format/000700 000766 000024 00000000000 12577447567 022126 5ustar00etherstaff000000 000000 DateTime-Format-Duration-1.04/lib/DateTime/Format/Duration.pm000700 000766 000024 00000106060 12577447567 024257 0ustar00etherstaff000000 000000 package DateTime::Format::Duration; # git description: v1.03a-16-g3f2a121 # ABSTRACT: Format and parse DateTime::Durations use Params::Validate qw( validate SCALAR OBJECT ARRAYREF HASHREF UNDEF ); use Carp; use DateTime::Duration; use constant MAX_NANOSECONDS => 1000000000; # 1E9 = almost 32 bits use strict; require Exporter; our @ISA = qw/Exporter/; our @EXPORT_OK = qw/strpduration strfduration/; our %EXPORT_TAGS = (ALL => [qw/strpduration strfduration/]); our $VERSION = '1.04'; #--------------------------------------------------------------------------- # CONSTRUCTORS #--------------------------------------------------------------------------- sub new { my $class = shift; my %args = validate( @_, { pattern => { type => SCALAR, optional => 1 }, base => { type => OBJECT | UNDEF, default => undef }, normalise => { type => SCALAR, default => 0 }, normalize => { type => SCALAR, default => 0 }, }); $args{normalise} ||= delete $args{normalize}; $args{normalise} = 1 if $args{base}; return bless \%args, $class; } #--------------------------------------------------------------------------- # SETTERS AND ACCESSORS #--------------------------------------------------------------------------- sub pattern { croak("No arguments should be passed to pattern. Use set_pattern() instead.") if $_[1]; $_[0]->{pattern} or undef } sub set_pattern { my $self = shift; my $newpattern = shift; $self->{parser} = ''; $self->{pattern} = $newpattern; return $self; } sub base { croak("No arguments should be passed to base. Use set_base() instead.") if $_[1]; $_[0]->{base} or undef } sub set_base { my $self = shift; my $newbase = shift; croak("Argument to set_base() must be a DateTime object.") unless ref($newbase) eq 'DateTime'; $self->{base} = $newbase; return $self; } sub normalising { croak("No arguments should be passed to normalising. Use set_normalising() instead.") if $_[1]; ($_[0]->{normalise}) ? 1 : 0 } *normalizing = \&normalising; *normalizing = \&normalising; sub set_normalising { my $self = shift; my $new = shift; $self->{normalise} = ($new) ? 1 : 0; return $self; } *set_normalizing = \&set_normalising; *set_normalizing = \&set_normalising; #--------------------------------------------------------------------------- # DATA #--------------------------------------------------------------------------- my %formats = ( 'C' => sub { int( $_[0]->{years} / 100 ) }, 'd' => sub { sprintf( '%02d', $_[0]->{days} ) }, 'e' => sub { sprintf( '%d', $_[0]->{days} ) }, 'F' => sub { sprintf( '%04d-%02d-%02d', $_[0]->{years}, $_[0]->{months}, $_[0]->{days} ) }, 'H' => sub { sprintf( '%02d', $_[0]->{hours} ) }, 'I' => sub { sprintf( '%02d', $_[0]->{hours} ) }, 'j' => sub { $_[1]->as_days($_[0]) }, 'k' => sub { sprintf( '%2d', $_[0]->{hours} ) }, 'l' => sub { sprintf( '%2d', $_[0]->{hours} ) }, 'm' => sub { sprintf( '%02d', $_[0]->{months} ) }, 'M' => sub { sprintf( '%02d', $_[0]->{minutes} ) }, 'n' => sub { "\n" }, # should this be OS-sensitive?" 'N' => sub { _format_nanosecs(@_) }, 'p' => sub { ($_[0]->{negative}) ? '-' : '+' }, 'P' => sub { ($_[0]->{negative}) ? '-' : '' }, 'r' => sub { sprintf('%02d:%02d:%02d', $_[0]->{hours}, $_[0]->{minutes}, $_[0]->{seconds} ) }, 'R' => sub { sprintf('%02d:%02d', $_[0]->{hours}, $_[0]->{minutes}) }, 's' => sub { $_[1]->as_seconds($_[0]) }, 'S' => sub { sprintf( '%02d', $_[0]->{seconds} ) }, 't' => sub { "\t" }, #" 'T' => sub { sprintf('%s%02d:%02d:%02d', ($_[0]->{negative}) ? '-' : '', $_[0]->{hours}, $_[0]->{minutes}, $_[0]->{seconds} ) }, 'u' => sub { $_[1]->as_days($_[0]) % 7 }, 'V' => sub { $_[1]->as_weeks($_[0]) }, 'W' => sub { int(($_[1]->as_seconds($_[0]) / (60*60*24*7))*1_000_000_000) / 1_000_000_000 }, 'y' => sub { sprintf( '%02d', substr( $_[0]->{years}, -2 ) ) }, 'Y' => sub { return $_[0]->{years} }, '%' => sub { '%' }, ); #--------------------------------------------------------------------------- # METHODS #--------------------------------------------------------------------------- sub format_duration { my $self = shift; my $duration; my @formats; if ( scalar(@_) == 1 ) { $duration = shift; @formats = ($self->pattern) if $self->pattern; } else { my %args = validate( @_, { pattern => { type => SCALAR | ARRAYREF, default => $self->pattern }, duration => { type => OBJECT }, }); $duration = $args{duration}; @formats = ref($args{pattern}) ? @{$args{pattern}} : ($args{pattern}); } croak("No formats defined") unless @formats; my %duration = ($self->normalising) ? $self->normalise( $duration ) : $duration->deltas; return $self->format_duration_from_deltas( pattern => [@formats], %duration ); } sub format_duration_from_deltas { my $self = shift; my %args = validate( @_, { pattern => { type => SCALAR | ARRAYREF, default => $self->pattern }, negative => { type => SCALAR, default => 0 }, years => { type => SCALAR, default => 0 }, months => { type => SCALAR, default => 0 }, days => { type => SCALAR, default => 0 }, hours => { type => SCALAR, default => 0 }, minutes => { type => SCALAR, default => 0 }, seconds => { type => SCALAR, default => 0 }, nanoseconds => { type => SCALAR, default => 0 }, }); my @formats = ref($args{pattern}) ? @{$args{pattern}} : ($args{pattern}); delete $args{pattern}; my %duration = ($self->normalising) ? $self->normalise( %args ) : %args; my @r; foreach my $f (@formats) { # regex from Date::Format - thanks Graham! $f =~ s/ %(\d*)([%a-zA-MO-Z]) # N returns from the left rather than the right / $formats{$2} ? ($1) ? sprintf("%0$1d", substr($formats{$2}->(\%duration, $self),$1*-1) ) : $formats{$2}->(\%duration, $self) : $1 /sgex; # %3N $f =~ s/ %(\d*)N / $formats{N}->(\%duration, $1) /sgex; return $f unless wantarray; push @r, $f; } return @r; } sub parse_duration { my $self = shift; DateTime::Duration->new( $self->parse_duration_as_deltas(@_) ); } sub parse_duration_as_deltas { my ( $self, $time_string ) = @_; local $^W = undef; # Variables from the parser my ( $centuries,$years, $months, $weeks, $days, $hours, $minutes, $seconds, $nanoseconds ); # Variables for DateTime my ( $Years, $Months, $Days, $Hours, $Minutes, $Seconds, $Nanoseconds, ) = (); # Run the parser my $parser = $self->{parser} || $self->_build_parser; eval($parser); die "Parser ($parser) died:$@" if $@; $years += ($centuries * 100); $days += ($weeks * 7 ); return ( years => $years || 0, months => $months || 0, days => $days || 0, hours => $hours || 0, minutes => $minutes || 0, seconds => $seconds || 0, nanoseconds => $nanoseconds || 0, ); } #--------------------------------------------------------------------------- # UTILITY FUNCTIONS #--------------------------------------------------------------------------- sub normalise { my $self = shift; return $self->normalise_no_base(@_) if ( ($self->{normalising} and $self->{normalising} =~ /^ISO$/i) or not $self->base ); my %delta = (ref($_[0]) =~/^DateTime::Duration/) ? $_[0]->deltas : @_; if (delete $delta{negative}) { foreach (keys %delta) { $delta{$_} *= -1 } } if ($self->{diagnostic}) {require Data::Dumper; print 'Pre Normalise: ' . Data::Dumper::Dumper( \%delta );} my $start = $self->base->clone; my $end = $self->base->clone; # Can't just add the hash as ->add(%delta) because of mixed positivity: foreach (qw/years months days hours minutes seconds nanoseconds/) { $end->add( $_ => $delta{$_}||0 ); print "Adding $delta{$_} $_: " . $end->datetime . "\n" if $self->{diagnostic}; } my %new_delta; my $set_negative = 0; if ($start > $end) { ($start, $end) = ($end, $start); $set_negative = 1; } # Creeping method: $new_delta{years} = $end->year - $start->year; printf("Adding %d years: %s\n", $new_delta{years}, $start->clone->add( %new_delta )->datetime) if $self->{diagnostic}; $new_delta{months} = $end->month - $start->month; printf("Adding %d months: %s\n", $new_delta{months}, $start->clone->add( %new_delta )->datetime) if $self->{diagnostic}; $new_delta{days} = $end->day - $start->day; printf("Adding %d days: %s\n", $new_delta{days}, $start->clone->add( %new_delta )->datetime) if $self->{diagnostic}; $new_delta{hours} = $end->hour - $start->hour; printf("Adding %d hours: %s\n", $new_delta{hours}, $start->clone->add( %new_delta )->datetime) if $self->{diagnostic}; $new_delta{minutes} = $end->minute - $start->minute; printf("Adding %d minutes: %s\n", $new_delta{minutes}, $start->clone->add( %new_delta )->datetime) if $self->{diagnostic}; $new_delta{seconds} = $end->second - $start->second; printf("Adding %d seconds: %s\n", $new_delta{seconds}, $start->clone->add( %new_delta )->datetime) if $self->{diagnostic}; $new_delta{nanoseconds} = $end->nanosecond - $start->nanosecond; printf("Adding %d nanoseconds: %s\n", $new_delta{nanoseconds}, $start->clone->add( %new_delta )->datetime) if $self->{diagnostic}; if( $new_delta{nanoseconds} < 0 ){ $new_delta{nanoseconds} += MAX_NANOSECONDS; $new_delta{seconds}--; printf("Oops: Adding %d nanoseconds, %d seconds: %s\n", $new_delta{nanoseconds}, $new_delta{seconds}, $start->clone->add( %new_delta )->datetime) if $self->{diagnostic}; } if( $new_delta{seconds} < 0 ){ $new_delta{seconds} += $end->clone->truncate( to => 'minute' )->subtract( seconds => 1 )->second + 1; $new_delta{minutes}--; printf("Oops: Adding %d seconds, %d minutes: %s\n", $new_delta{seconds}, $new_delta{minutes}, $start->clone->add( %new_delta )->datetime) if $self->{diagnostic}; } if( $new_delta{minutes} < 0 ){ $new_delta{minutes} += 60; $new_delta{hours}--; printf("Oops: Adding %d minutes, %d hours: %s\n", $new_delta{minutes}, $new_delta{hours}, $start->clone->add( %new_delta )->datetime) if $self->{diagnostic}; } if( $new_delta{hours} < 0 ){ $new_delta{hours} += _hours_in_day($end->clone->truncate( to => 'day' )->subtract( seconds => 5 )); $new_delta{days}--; printf("Oops: Adding %d hours, %d days: %s\n", $new_delta{hours}, $new_delta{days}, $start->clone->add( %new_delta )->datetime) if $self->{diagnostic}; } if( $new_delta{days} < 0 ){ # Thought this was correct .. I was wrong, but I want to leave it here anyway # $new_delta{days} += $end->clone->truncate( to => 'month' )->subtract( seconds => 5 )->day; $new_delta{days} += $start->clone->truncate( to => 'month' )->add(months => 1)->subtract( seconds => 5 )->day; $new_delta{months}--; printf("Oops: Adding %d days, %d months: %s\n", $new_delta{days}, $new_delta{months}, $start->clone->add( %new_delta )->datetime) if $self->{diagnostic}; } if( $new_delta{months} < 0 ){ $new_delta{months} += 12; $new_delta{years}--; printf("Oops: Adding %d months, %d years: %s\n", $new_delta{months}, $new_delta{years}, $start->clone->add( %new_delta )->datetime) if $self->{diagnostic}; } $new_delta{negative} = $set_negative; if ($self->{diagnostic}) {require Data::Dumper; print 'Post Normalisation: ' . Data::Dumper::Dumper( \%new_delta );} return %new_delta } *normalize = \&normalise; *normalize = \&normalise; sub normalise_no_base { my $self = shift; my %delta = (ref($_[0]) =~/^DateTime::Duration/) ? $_[0]->deltas : @_; if (delete $delta{negative}) { foreach (keys %delta) { $delta{$_} *= -1 } } foreach(qw/years months days hours minutes seconds nanoseconds/) { $delta{$_} ||= 0; } if ($self->{diagnostic}) { require Data::Dumper; print 'Pre Baseless Normalise: ' . Data::Dumper::Dumper( \%delta ); } # Remove any decimals: $delta{nanoseconds} += (MAX_NANOSECONDS * ($delta{seconds} - int($delta{seconds}))); $delta{seconds} = int($delta{seconds}); $delta{seconds} += (60 * ($delta{minutes} - int($delta{minutes}))); $delta{minutes} = int($delta{minutes}); $delta{minutes} += (60 * ($delta{hours} - int($delta{hours}))); $delta{hours} = int($delta{hours}); $delta{hours} += (24 * ($delta{days} - int($delta{days}))); $delta{days} = int($delta{days}); $delta{days} += (30 * ($delta{months} - int($delta{months}))); $delta{months} = int($delta{months}); ($delta{nanoseconds}, $delta{seconds}) = _set_max($delta{nanoseconds}, MAX_NANOSECONDS, $delta{seconds}); ($delta{seconds}, $delta{minutes}) = _set_max($delta{seconds}, 60, $delta{minutes}); ($delta{minutes}, $delta{hours}) = _set_max($delta{minutes}, 60, $delta{hours} ); ($delta{hours}, $delta{days}) = _set_max($delta{hours}, 24, $delta{days} ); ($delta{days}, $delta{months}) = _set_max($delta{days}, 30, $delta{months} ) if $self->{normalise} =~ /^iso$/i; ($delta{months}, $delta{years}) = _set_max($delta{months}, 12, $delta{years} ); if ($self->{diagnostic}) { require Data::Dumper; print 'Post Baseless Normalise: ' . Data::Dumper::Dumper( \%delta ); } %delta = _denegate( %delta ); if ($self->{diagnostic}) { require Data::Dumper; print 'Post Denegation: ' . Data::Dumper::Dumper( \%delta ); } return %delta; } *normalize_no_base = \&normalise_no_base; *normalize_no_base = \&normalise_no_base; sub as_weeks { my $self = shift; return int($self->as_seconds($_[0]) / (7*24*60*60)); } sub as_days { my $self = shift; return int($self->as_seconds($_[0]) / (24*60*60)); } sub as_seconds { my $self = shift; my %delta = (ref($_[0])) ? %{$_[0]} : @_; if (delete $delta{negative}) {foreach( keys %delta ) { $delta{$_} *= -1 }}; unless ($self->base) { my $seconds = $delta{nanoseconds} / MAX_NANOSECONDS; $seconds += $delta{seconds}; $seconds += $delta{minutes} * 60; $seconds += $delta{hours} * (60*60); $seconds += $delta{days} * (24*60*60); $seconds += $delta{months} * (30*24*60*60); $seconds += $delta{years} * (12*30*24*60*60); return $seconds; } my $dt1 = $self->base + DateTime::Duration->new( %delta ); return int(($dt1->{utc_rd_days} - $self->base->{utc_rd_days}) * (24*60*60)) + ($dt1->{utc_rd_secs} - $self->base->{utc_rd_secs}); } sub debug_level{ my $self = shift; my $level = shift; if ($level > 0) { Params::Validate::validation_options( on_fail => \&Carp::confess, ); } else { Params::Validate::validation_options( on_fail => undef, ); } $self->{diagnostic} = ($level) ? $level-1 : 0; } #--------------------------------------------------------------------------- # EXPORTABLE FUNCTIONS #--------------------------------------------------------------------------- sub strfduration { #format my %args = validate( @_, { pattern => { type => SCALAR | ARRAYREF }, duration => { type => OBJECT }, normalise => { type => SCALAR, optional => 1 }, base => { type => OBJECT, optional => 1 }, debug => { type => SCALAR, default => 0 }, }); my $new = DateTime::Format::Duration->new( pattern => $args{pattern}, base => $args{base}, normalise=> $args{normalise}, ); $new->debug_level( $args{debug } ); return $new->format_duration( $args{duration} ); } sub strpduration { #parse my %args = validate( @_, { pattern => { type => SCALAR | ARRAYREF }, duration => { type => SCALAR }, base => { type => OBJECT, optional => 1 }, as_deltas => { type => SCALAR, default => 0 }, debug => { type => SCALAR, default => 0 }, }); my $new = DateTime::Format::Duration->new( pattern => $args{pattern}, base => $args{base}, ); $new->debug_level( $args{debug} ); return $new->parse_duration( $args{duration} ) unless $args{as_deltas}; return $new->parse_duration_as_deltas( $args{duration} ); } #--------------------------------------------------------------------------- # INTERNAL FUNCTIONS #--------------------------------------------------------------------------- sub _format_nanosecs { my %deltas = %{+shift}; my $precision = shift; my $ret = sprintf( "%09d", $deltas{nanoseconds} ); return $ret unless $precision; # default = 9 digits my ( $int, $frac ) = split(/[.,]/, $deltas{nanoseconds}); $ret .= $frac if $frac; return substr( $ret, 0, $precision ); } sub _build_parser { my $self = shift; my $regex = my $field_list = shift || $self->pattern; my @fields = $field_list =~ m/(%\{\w+\}|%\d*.)/g; $field_list = join('',@fields); my $tempdur = DateTime::Duration->new( seconds => 0 ); # Created just so we can do $tempdt->can(..) # I'm absoutely certain there's a better way to do this: $regex=~s|([\/\.\-])|\\$1|g; $regex =~ s/%[Tr]/%H:%M:%S/g; $field_list =~ s/%[Tr]/%H%M%S/g; # %T is the time as %H:%M:%S. $regex =~ s/%R/%H:%M/g; $field_list =~ s/%R/%H%M/g; #is the time as %H:%M. $regex =~ s|%F|%Y\\-%m\\-%d|g; $field_list =~ s|%F|%Y%m%d|g; #is the same as %Y-%m-%d # Negative and Positive $regex =~ s/%P/[+-]?/g; $field_list =~ s/%P//g;#negative#/g; # Numerated places: # Centuries: $regex =~ s/%(\d*)[C]/($1) ? " *([+-]?\\d{$1})" : " *([+-]?\\d+)"/eg; $field_list =~ s/%(\d*)[C]/#centuries#/g; # Years: $regex =~ s/%(\d*)[Yy]/($1) ? " *([+-]?\\d{$1})" : " *([+-]?\\d+)"/eg; $field_list =~ s/%(\d*)[Yy]/#years#/g; # Months: $regex =~ s/%(\d*)[m]/($1) ? " *([+-]?\\d{$1})" : " *([+-]?\\d+)"/eg; $field_list =~ s/%(\d*)[m]/#months#/g; # Weeks: $regex =~ s/%(\d*)[GV]/($1) ? " *([+-]?\\d{$1})" : " *([+-]?\\d+)"/eg; $field_list =~ s/%(\d*)[GV]/#weeks#/g; $regex =~ s/%\d*[W]/" *([+-]?\\d+\\.?\\d*)"/eg; $field_list =~ s/%\d*[W]/#weeks#/g; # Days: $regex =~ s/%(\d*)[deju]/($1) ? " *([+-]?\\d{$1})" : " *([+-]?\\d+)"/eg; $field_list =~ s/%(\d*)[deju]/#days#/g; # Hours: $regex =~ s/%(\d*)[HIkl]/($1) ? " *([+-]?\\d{$1})" : " *([+-]?\\d+)"/eg; $field_list =~ s/%(\d*)[HIkl]/#hours#/g; # Minutes: $regex =~ s/%(\d*)[M]/($1) ? " *([+-]?\\d{$1})" : " *([+-]?\\d+)"/eg; $field_list =~ s/%(\d*)[M]/#minutes#/g; # Seconds: $regex =~ s/%(\d*)[sS]/($1) ? " *([+-]?\\d{$1})" : " *([+-]?\\d+)"/eg; $field_list =~ s/%(\d*)[sS]/#seconds#/g; # Nanoseconds: $regex =~ s/%(\d*)[N]/($1) ? " *([+-]?\\d{$1})" : " *([+-]?\\d+)"/eg; $field_list =~ s/%(\d*)[N]/#nanoseconds#/g; # Any function in DateTime. $regex =~ s|%\{(\w+)}|($tempdur->can($1)) ? "(.+)" : ".+"|eg; $field_list =~ s|(%\{(\w+)})|($tempdur->can($2)) ? "#$2#" : $1 |eg; # White space: $regex =~ s/%(\d*)[tn]/($1) ? "\\s{$1}" : "\\s+"/eg; $field_list =~ s/%(\d*)[tn]//g; # is replaced by %. $regex =~ s/%%/%/g; $field_list =~ s/%%//g; $field_list=~s/#([a-z0-9_]+)#/\$$1, /gi; $field_list=~s/,\s*$//; croak("Unknown symbols in parse: $1") if $field_list=~/(\%\w)/g; $self->{parser} = qq|($field_list) = \$time_string =~ /$regex/|; } sub _set_max { #$$_[0] should roll over to the next $$_[2] when it reaches $_[1] #seconds should roll over to the next minute when it reaches 60. my ($small, $max, $large) = @_; #warn "$small should roll over to the next $large when it reaches $max\n"; $large += int($small / $max); $small = ($small < 0) ? $small % -$max : $small % $max; return ($small, $large); } sub _denegate { my %delta = @_; my ($negatives, $positives); foreach(qw/years months days hours minutes seconds nanoseconds/) { if ($delta{$_} < 0) { $negatives++; } elsif ($delta{$_} > 0) { $positives++; } # ignore == 0 } if ($negatives and not $positives) { foreach(qw/years months days hours minutes seconds nanoseconds/) { if ($delta{$_} < 0) { $delta{$_} *= -1 } $delta{$_} ||= 0; } $delta{negative} = 1; } elsif ($negatives and $positives) { # Work to match largest component my $make = ''; foreach(qw/years months days hours minutes seconds nanoseconds/) { if ($delta{$_} < 0) { $make = 'negative'; last; } elsif ($delta{$_} > 0) { $make = 'positive'; last; } } if ($make) { ($delta{seconds}, $delta{minutes}) = _make($make,$delta{seconds}, 60, $delta{minutes}); ($delta{minutes}, $delta{hours}) = _make($make,$delta{minutes}, 60, $delta{hours} ); ($delta{hours}, $delta{days}) = _make($make,$delta{hours}, 24, $delta{days} ); ($delta{months}, $delta{years}) = _make($make,$delta{months}, 12, $delta{years} ); %delta = _denegate(%delta); } } return %delta } sub _make { my ($make, $small, $max, $large) = @_; while ($small < 0 and $make eq 'positive') { $small += $max; $large -= 1; } while ($small > 0 and $make eq 'negative') { $small -= $max; $large += 1; } return ($small, $large); } sub _hours_in_day{ my $day = shift; return ( $day->clone->truncate( to => 'day' )->add( days => 1 )->epoch - $day->clone->truncate( to => 'day' )->epoch ) / (60 * 60) } 1; __END__ =pod =encoding UTF-8 =head1 NAME DateTime::Format::Duration - Format and parse DateTime::Durations =head1 VERSION version 1.04 =head1 SYNOPSIS use DateTime::Format::Duration; $d = DateTime::Format::Duration->new( pattern => '%Y years, %m months, %e days, '. '%H hours, %M minutes, %S seconds' ); print $d->format_duration( DateTime::Duration->new( years => 3, months => 5, days => 1, hours => 6, minutes => 15, seconds => 45, nanoseconds => 12000 ) ); # 3 years, 5 months, 1 days, 6 hours, 15 minutes, 45 seconds $duration = $d->parse_duration( '3 years, 5 months, 1 days, 6 hours, 15 minutes, 45 seconds' ); # Returns DateTime::Duration object print $d->format_duration_from_deltas( years => 3, months => 5, days => 1, hours => 6, minutes => 15, seconds => 45, nanoseconds => 12000 ); # 3 years, 5 months, 1 days, 6 hours, 15 minutes, 45 seconds %deltas = $d->parse_duration_as_deltas( '3 years, 5 months, 1 days, 6 hours, 15 minutes, 45 seconds' ); # Returns hash: # (years=>3, months=>5, days=>1, hours=>6, minutes=>15, seconds=>45) =head1 ABSTRACT This module formats and parses L objects as well as other durations representations. =head1 CONSTRUCTOR This module contains a single constructor: =over 4 =item * C The C constructor takes the following attributes: =over 4 =item * C<< pattern => $string >> This is a strf type pattern detailing the format of the duration. See the L sections below for more information. =item * C<< normalise => $one_or_zero_or_ISO >> =item * C<< normalize => $one_or_zero_or_ISO >> This determines whether durations are 'normalised'. For example, does 120 seconds become 2 minutes? Setting this value to true without also setting a C means we will normalise without a base. See the L section below. =item * C<< base => $datetime_object >> If a base DateTime is given then that is the normalisation date. Setting this attribute overrides the above option and sets normalise to true. =back =back =head1 METHODS L has the following methods: =over 4 =item * C =item * C<< format_duration( duration => $dt_duration, pattern => $pattern ) >> Returns a string representing a L object in the format set by the pattern. If the first form is used, the pattern is taken from the object. If the object has no pattern then this method will croak. =item * C =item * C<< format_duration_from_deltas( %deltas, pattern => $pattern ) >> As above, this method returns a string representing a duration in the format set by the pattern. However this method takes a hash of values. Permissible hash keys are C and C as well as C which, if true, inverses the duration. (C<< years => -1 >> is the same as C<< years => 1, negative=>1 >>) =item * C This method takes a string and returns a L object that is the equivalent according to the pattern. =item * C Once again, this method is the same as above, however it returns a hash rather than an object. =item * C =item * C Returns a hash of deltas after normalising the input. See the L section below for more information. =back =head1 ACCESSORS =over 4 =item * C Returns the current pattern. =item * C Returns the current base. =item * C Indicates whether or not the durations are being normalised. =back =head1 SETTERS All setters return the object so that they can be strung together. =over 4 =item * C Sets the pattern and returns the object. =item * C Sets the base L and returns the object. =item * C Turns normalising on or off and returns the object. =back =head1 NOTES =head2 Patterns This module uses a similar set of patterns to L. These patterns have been kept as close as possible to the original time-based patterns. =over 4 =item * %C The number of hundreds of years in the duration. 400 years would return 4. This is similar to centuries. =item * %d The number of days zero-padded to two digits. 2 days returns 02. 22 days returns 22 and 220 days returns 220. =item * %e The number of days. =item * %F Equivalent of %Y-%m-%d =item * %H The number of hours zero-padded to two digits. =item * %I Same as %H =item * %j The duration expressed in whole days. 36 hours returns 1 =item * %k The hours without any padding =item * %l Same as %k =item * %m The months, zero-padded to two digits =item * %M The minutes, zero-padded to two digits =item * %n A linebreak when formatting and any whitespace when parsing =item * %N Nanoseconds - see note on precision at end =item * %p Either a '+' or a '-' indicating the positiveness of the duration =item * %P A '-' for negative durations and nothing for positive durations. =item * %r Equivalent of %H:%M:%S =item * %R Equivalent of %H:%M =item * %s Returns the value as seconds. 1 day, 5 seconds return 86405 =item * %S Returns the seconds, zero-padded to two digits =item * %t A tab character when formatting or any whitespace when parsing =item * %T Equivalent of %P%H:%M:%S =item * %u Days after weeks are removed. 4 days returns 4, but 22 days returns 1 (22 days is three weeks, 1 day) =item * %V Duration expressed as weeks. 355 days returns 52. =item * %W Duration expressed as floating weeks. 10 days, 12 hours returns 1.5 weeks. =item * %y Years in the century. 145 years returns 45. =item * %Y Years, zero-padded to four digits =item * %% A '%' symbol =back B can be changed for any and all the above values. For all but nanoseconds (%N), the precision is the zero-padding. To change the precision insert a number between the '%' and the letter. For example: 1 year formatted with %6Y would return 000001 rather than the default 0001. Likewise, to remove padding %1Y would just return a 1. Nanosecond precision is the other way (nanoseconds are fractional and thus should be right padded). 123456789 nanoseconds formatted with %3N would return 123 and formatted as %12N would return 123456789000. =head2 Normalisation This module contains a complex method for normalising durations. The method ensures that the values for all components are as close to zero as possible. Rather than returning 68 minutes, it is normalised to 1 hour, 8 minutes. The complexity comes from three places: =over 4 =item * Mixed positive and negative components The duration of 1 day, minus 2 hours is easy to normalise in your head to 22 hours. However consider something more complex such as -2 years, +1 month, +22 days, +11 hours, -9 minutes. This module works from lowest to highest precision to calculate the duration. So, based on a C of 2004-03-28T00:00:00 the following transformations take place: 2003-01-01T00:00:00 - 2 years = 2001-01-01T00:00:00 === -2 years 2001-01-01T00:00:00 + 1 month = 2001-02-01T00:00:00 === -1 year, 11 months 2001-02-01T00:00:00 + 22 days = 2001-02-23T00:00:00 === -1yr, 10mths, 6days 2001-02-22T00:00:00 + 11 hours = 2001-02-23T11:00:00 === -1y, 10m, 6d, 13h 2001-02-22T11:00:00 - 9 minutes = 2001-02-23T10:51:00 === -1y, 10m, 6d, 13h, 9m =for comment TODO: replace via Pod::Weaver with the base64'd inline image; see Pod::Weaver::Section::Ditaa =for html =for man See: https://raw.githubusercontent.com/karenetheridge/DateTime-Format-Duration/master/docs/figure1.gif Figure 1 illustrates that, with the given base, -2 years, +1 month, +22 days, +11 hours, -9 minutes is normalised to -1 year, 10 months, 6 days, 13 hours and 9 minutes. =item * Months of unequal length. Unfortunately months can have 28, 29, 30 or 31 days and it can change from year to year. Thus if I wanted to normalise 2 months it could be any of 59 (Feb-Mar), 60 (Feb-Mar in a leap year), 61 (Mar-Apr, Apr-May, May-Jun, Jun-Jul, Aug-Sep, Sep-Oct, Oct-Nov or Nov-Dec) or 62 days (Dec-Jan or Jul-Aug). Because of this the module uses a base datetime for its calculations. If we use the base 2003-01-01T00:00:00 then two months would be 59 days (2003-03-01 - 2003-01-01) =item * The order of components Components will always be assessed from lowest to highest precision (years, months, days, hours, minutes, seconds, nanoseconds). This can really change things. Consider the duration of 1 day, 24 hours. Normally this will normalise to 2 days. However, consider changes to Daylight Savings. On the changes to and from DST days have 25 and 23 hours. If we take the base DateTime as midnight on the day DST ends (when there's 25 hours in the day), and add 1 day, 24 hours we end up at midnight 2 days later. So our duration normalises to two days. However, if we add 24 hours, 1 day we end up at 11pm on the next day! Why is this? Because midnight + 24 hours = 11pm (there's 25 hours on this day!), then we add 1 day and end up at 11pm on the following day. =for html =for man See: https://raw.githubusercontent.com/karenetheridge/DateTime-Format-Duration/master/docs/figure2.gif Figure 2 illustrates the above problem on timelines. =item * Leap years and leap seconds Leap years and seconds further add to the confusion in normalisation. Leap seconds mean there are minutes that are 61 seconds long, thus 130 seconds can be 2 minutes, 10 seconds or 2 minutes 9 seconds, depending on the base DateTime. Similarly leap years mean a day can have 23, 24 or 25 hours. =for html =for man See: https://raw.githubusercontent.com/karenetheridge/DateTime-Format-Duration/master/docs/figure3.gif Figure 3 shows how leaps are calculated on timelines. =back =head2 Normalising without a base This module includes two ways to normalise without a base. =over 4 =item * Standard Normalisation Using standard normalisation without a base, 45 days will stay as 45 days as there is no way to accurately convert to months. However the following assumptions will be made: There are 24 hours in a day and there are 60 seconds in a minute. =item * ISO Normalisation In ISO8601v2000, Section 5.5.3.2 says that "The values used must not exceed the 'carry-over points' of 12 months, 30 days, 24 hours, 60 minutes and 60 seconds". Thus if you set the normalise option of the constructor, or use set_normalising to 'ISO', months will be normalised to 30 days. =back =head2 Deltas vs Duration Objects This module can bypass duration objects and just work with delta hashes. This used to be of greatest value with earlier versions of DateTime::Duration when DateTime::Duration assumed a duration with one negative component was a negative duration (that is, -2 hours, 34 minutes was assumed to be -2 hours, -34 minutes). These extra methods have been left in here firstly for backwards-compatibility but also as an added 'syntactic sugar'. Consider these two equivalent expressions: $one = $o->format_duration( DateTime::Duration->new( years => -2, days => 13, hours => -1 ) ); $two = $o->format_duration_from_deltas( years => -2, days => 13, hours => -1 ); These both create the same string in $one and $two, but if you don't already have a DateTime::Duration object, the later looks cleaner. =head1 SEE ALSO datetime@perl.org mailing list http://datetime.perl.org/ =head1 SUPPORT Bugs may be submitted through L (or L). There is also a mailing list available for users of this distribution, at L. I am also usually active on irc, as 'ether' at C. =head1 AUTHOR Rick Measham =head1 CONTRIBUTOR =for stopwords Karen Etheridge Karen Etheridge =head1 COPYRIGHT AND LICENCE This software is copyright (c) 2003 by Rick Measham. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut DateTime-Format-Duration-1.04/docs/figure1.gif000700 000766 000024 00000052177 12577447567 021434 0ustar00etherstaff000000 000000 GIF89ah ?Z(|uryyyBBB(((!,@` dihlp,tmx|pH,6 389PP9 S>Gdzpy-TQw2$~S&zp"zgsQUM[%su`Tjln"N[O[ygS$WYrVl$Nq%[W``bxs}[nsj%#pnKPfZO[c|~ɧI ,M'*\x JHEt@FI8|Pd ÈuFN&5F43O u.$pF$ 2л$#q(j" Wf2LРք i TY&hǬ% s'ɤF@ '&N2kzIo 3Ŕ@= ֈ\k!}س׍oNj#I˃ 22Ь܅pgTh9 gDwHOӫ_Ͼ/Hi+}[E EAUr @0@ 8  8 L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