Devel-PartialDump-0.17/000755 000767 000024 00000000000 12246447373 015210 5ustar00etherstaff000000 000000 Devel-PartialDump-0.17/Build.PL000644 000767 000024 00000000071 12246447373 016502 0ustar00etherstaff000000 000000 use 5.006001; use Module::Build::Tiny 0.030; Build_PL(); Devel-PartialDump-0.17/Changes000644 000767 000024 00000003655 12246447373 016514 0ustar00etherstaff000000 000000 Revision history for Devel-PartialDump 0.17 2013-11-30 20:47:47Z - many fixes (thanks, Steven Lee!) - attribute list_delim is now being used in list dumps - setting attribute max_length to 0 now shortens more, to '...' - fixed use of = in array/hash ref objects - extra test coverage 0.16 2013-11-24 00:43:48Z - Moose dependency removed, resolving circular dependency in Moose's recommended prereqs (thanks, David Golden!) - converted packaging to Dist::Zilla 0.15 2011-05-05 - Bump dependency on namespace::clean to 0.20, as requested by doy++. 0.14 2011-04-25 - Don't go into an infinite loop when dumping references to references. Also, dump LVALUE references properly. (doy) 0.13 2010-01-08 - Merge NUFFIN/Devel-PartialDump-0.12.tar.gz and FLORA/Devel-PartialDump-0.12.tar.gz. - Add Test::Warn to PREREQ_PM - patch by Ranguard 0.12 2009-12-21 (NUFFIN) - no more Any::Moose 0.12 2009-11-08 (FLORA) - Update example output in the docs with the JSON-like format 0.11 2009-11-06 - unbreak tests 0.10 2009-11-05 - Make formatting configurable, and change to resemble JSON by default 0.09 2009-06-30 - Add some example output to the documentation - Update version control notice 0.08 2009-05-16 - Switch to Any::Moose (rafl) 0.07 2008-09-29 - Skip tests if Test::Warn is not installed 0.06 2008-07-30 - add override_carp import option, which replaces Carp's argument formatting with Devel::PartialDump::dump 0.05 2008-07-24 - Ugh... another dep fix 0.04 2008-07-24 - Fix bad deps 0.03 2008-07-24 - use Mouse & Sub::Exporter - optional Carp replacement exports 0.02 2008-03-30 - fixed DESCRIPTION, which just trailed off mid sentance - Add the C method - Add optional exports 0.01 2008-03-19 - Initial release Devel-PartialDump-0.17/CONTRIBUTING000644 000767 000024 00000005152 12246447373 017045 0ustar00etherstaff000000 000000 CONTRIBUTING Thank you for considering contributing to this distribution. This file contains instructions that will help you work with the source code. The distribution is managed with 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/Devel-PartialDump. If you use cpanminus, you can do it without downloading the tarball first: $ cpanm --reinstall --installdeps --with-recommends Devel::PartialDump 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` $ 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` $ dzil listdeps --author --missing | cpanm You can also do this via cpanm directly: $ cpanm --reinstall --installdeps --with-develop --with-recommends Devel::PartialDump 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 main repository is: https://github.com/karenetheridge/Devel-PartialDump. 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/ 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=Devel-PartialDump or via bug-Devel-PartialDump@rt.cpan.org. This is also a good place to send your questions about the usage of this distribution. This file was generated via Dist::Zilla::Plugin::GenerateFile::ShareDir 0.002 from a template file originating in Dist-Zilla-PluginBundle-Author-ETHER-0.041. Devel-PartialDump-0.17/dist.ini000644 000767 000024 00000000713 12246447373 016655 0ustar00etherstaff000000 000000 name = Devel-PartialDump author = יובל קוג'מן (Yuval Kogman) license = Perl_5 copyright_holder = יובל קוג'מן (Yuval Kogman) copyright_year = 2008 [@Author::ETHER] Authority.authority = cpan:NUFFIN server = github -remove = PodCoverageTests -remove = Test::UnusedVars ; $depth not used [Prereqs / DevelopRequires] Test::Warnings = 0 ; authordep Pod::Weaver::Section::Contributors [ContributorsFromGit] Devel-PartialDump-0.17/INSTALL000644 000767 000024 00000001746 12246447373 016251 0ustar00etherstaff000000 000000 This is the Perl distribution Devel-PartialDump. Installing Devel-PartialDump is straightforward. ## Installation with cpanm If you have cpanm, you only need one line: % cpanm Devel::PartialDump 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 Devel::PartialDump ## Installing with the CPAN shell Alternatively, if your CPAN shell is set up, you should just be able to do: % cpan Devel::PartialDump ## Manual installation As a last resort, you can manually install it. Download the tarball, untar it, then build it: % perl Build.PL % ./Build && ./Build test Then install it: % ./Build install If you are installing into a system-wide directory, you may need to run: % sudo ./Build install ## Documentation Devel-PartialDump documentation is available as POD. You can run perldoc from a shell to read the documentation: % perldoc Devel::PartialDump Devel-PartialDump-0.17/lib/000755 000767 000024 00000000000 12246447373 015756 5ustar00etherstaff000000 000000 Devel-PartialDump-0.17/LICENSE000644 000767 000024 00000043760 12246447373 016227 0ustar00etherstaff000000 000000 This software is copyright (c) 2008 by יובל קוג'מן (Yuval Kogman). 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) 2008 by יובל קוג'מן (Yuval Kogman). 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, Suite 500, Boston, MA 02110-1335 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) 2008 by יובל קוג'מן (Yuval Kogman). 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 Devel-PartialDump-0.17/Makefile.PL000644 000767 000024 00000006371 12246447373 017171 0ustar00etherstaff000000 000000 # This Makefile.PL for Devel-PartialDump was generated by # Dist::Zilla::Plugin::MakeMaker::Fallback 0.004. # Don't edit it but the dist.ini used to construct it. use strict; use warnings; BEGIN { my %configure_requires = ( 'ExtUtils::MakeMaker' => '6.30', 'Module::Build::Tiny' => '0.030', ); my @missing = grep { ! eval "require $_; $_->VERSION($configure_requires{$_}); 1" } keys %configure_requires; if (not @missing) { print "Congratulations, your toolchain understands 'configure_requires'!\n\n"; } else { warn <<'EOW'; *** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING *** If you're seeing this warning, your toolchain is really, really old and you'll almost certainly have problems installing CPAN modules from this century. But never fear, dear user, for we have the technology to fix this! If you're using CPAN.pm to install things, then you can upgrade it using: cpan CPAN If you're using CPANPLUS to install things, then you can upgrade it using: cpanp CPANPLUS If you're using cpanminus, you shouldn't be seeing this message in the first place, so please file an issue on github. If you're installing manually, please retrain your fingers to run Build.PL when present instead. This public service announcement was brought to you by the Perl Toolchain Gang, the irc.perl.org #toolchain IRC channel, and the number 42. EOW sleep 10 if -t STDIN && (-t STDOUT || !(-f STDOUT || -c STDOUT)); } } use 5.006001; use ExtUtils::MakeMaker 6.30; my %WriteMakefileArgs = ( "ABSTRACT" => "Partial dumping of data structures, optimized for argument printing.", "AUTHOR" => "\x{5d9}\x{5d5}\x{5d1}\x{5dc} \x{5e7}\x{5d5}\x{5d2}'\x{5de}\x{5df} (Yuval Kogman) ", "BUILD_REQUIRES" => {}, "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => "6.30", "Module::Build::Tiny" => "0.030" }, "DISTNAME" => "Devel-PartialDump", "EXE_FILES" => [], "LICENSE" => "perl", "NAME" => "Devel::PartialDump", "PREREQ_PM" => { "Carp" => 0, "Carp::Heavy" => 0, "Class::Tiny" => 0, "Scalar::Util" => 0, "Sub::Exporter" => 0, "namespace::clean" => 0, "strict" => 0, "warnings" => 0 }, "TEST_REQUIRES" => { "ExtUtils::MakeMaker" => 0, "File::Spec::Functions" => 0, "List::Util" => 0, "Test::More" => 0, "Test::Warn" => 0, "if" => 0, "ok" => 0, "overload" => 0 }, "VERSION" => "0.17", "test" => { "TESTS" => "t/*.t" } ); unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { my $tr = delete $WriteMakefileArgs{TEST_REQUIRES}; my $br = $WriteMakefileArgs{BUILD_REQUIRES}; for my $mod ( keys %$tr ) { if ( exists $br->{$mod} ) { $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod}; } else { $br->{$mod} = $tr->{$mod}; } } } unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) { my $br = delete $WriteMakefileArgs{BUILD_REQUIRES}; my $pp = $WriteMakefileArgs{PREREQ_PM}; for my $mod ( keys %$br ) { if ( exists $pp->{$mod} ) { $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod}; } else { $pp->{$mod} = $br->{$mod}; } } } delete $WriteMakefileArgs{CONFIGURE_REQUIRES} unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs); Devel-PartialDump-0.17/MANIFEST000644 000767 000024 00000001034 12246447373 016337 0ustar00etherstaff000000 000000 Build.PL CONTRIBUTING Changes INSTALL LICENSE MANIFEST META.json META.yml Makefile.PL README README.md dist.ini lib/Devel/PartialDump.pm t/00-report-prereqs.t t/basic.t t/exports.t t/objects.t weaver.ini xt/author/00-compile.t xt/author/pod-spell.t xt/release/changes_has_content.t xt/release/cpan-changes.t xt/release/distmeta.t xt/release/eol.t xt/release/kwalitee.t xt/release/minimum-version.t xt/release/mojibake.t xt/release/no-tabs.t xt/release/pod-no404s.t xt/release/pod-syntax.t xt/release/portability.t xt/release/test-version.t Devel-PartialDump-0.17/META.json000644 000767 000024 00000057375 12246447373 016652 0ustar00etherstaff000000 000000 { "abstract" : "Partial dumping of data structures, optimized for argument printing.", "author" : [ "\u05d9\u05d5\u05d1\u05dc \u05e7\u05d5\u05d2'\u05de\u05df (Yuval Kogman) " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 5.006, CPAN::Meta::Converter version 2.132830", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Devel-PartialDump", "no_index" : { "directory" : [ "t", "xt", "examples" ] }, "prereqs" : { "configure" : { "requires" : { "ExtUtils::MakeMaker" : "6.30", "Module::Build::Tiny" : "0.030" } }, "develop" : { "recommends" : { "Dist::Zilla::PluginBundle::Author::ETHER" : "0.041" }, "requires" : { "Dist::Zilla" : "5.006", "Dist::Zilla::Plugin::ContributorsFromGit" : "0", "Dist::Zilla::Plugin::GitHub::Update" : "0", "Dist::Zilla::Plugin::GithubMeta" : "0", "Dist::Zilla::Plugin::MakeMaker::Fallback" : "0", "Dist::Zilla::Plugin::ModuleBuildTiny" : "0.004", "Dist::Zilla::Plugin::Prereqs" : "0", "Dist::Zilla::PluginBundle::Author::ETHER" : "0", "File::Spec" : "0", "IO::Handle" : "0", "IPC::Open3" : "0", "Pod::Weaver::Section::Contributors" : "0", "Test::CPAN::Changes" : "0.19", "Test::CPAN::Meta" : "0", "Test::Kwalitee" : "1.12", "Test::More" : "0.94", "Test::NoTabs" : "0", "Test::Pod" : "1.41", "Test::Warnings" : "0" } }, "runtime" : { "requires" : { "Carp" : "0", "Carp::Heavy" : "0", "Class::Tiny" : "0", "Scalar::Util" : "0", "Sub::Exporter" : "0", "namespace::clean" : "0", "perl" : "5.006001", "strict" : "0", "warnings" : "0" } }, "test" : { "recommends" : { "CPAN::Meta" : "0", "CPAN::Meta::Requirements" : "0" }, "requires" : { "ExtUtils::MakeMaker" : "0", "File::Spec::Functions" : "0", "List::Util" : "0", "Test::More" : "0", "Test::Warn" : "0", "if" : "0", "ok" : "0", "overload" : "0" } } }, "provides" : { "Devel::PartialDump" : { "file" : "lib/Devel/PartialDump.pm", "version" : "0.17" } }, "release_status" : "stable", "resources" : { "bugtracker" : { "mailto" : "bug-Devel-PartialDump@rt.cpan.org", "web" : "https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-PartialDump" }, "homepage" : "https://github.com/karenetheridge/Devel-PartialDump", "repository" : { "type" : "git", "url" : "https://github.com/karenetheridge/Devel-PartialDump.git", "web" : "https://github.com/karenetheridge/Devel-PartialDump" } }, "version" : "0.17", "x_Dist_Zilla" : { "perl" : { "version" : "5.019006" }, "plugins" : [ { "class" : "Dist::Zilla::Plugin::Git::NextVersion", "name" : "@Author::ETHER/Git::NextVersion", "version" : "2.017" }, { "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/build", "version" : "0.014" }, { "class" : "Dist::Zilla::Plugin::PromptIfStale", "config" : { "Dist::Zilla::Plugin::PromptIfStale" : { "check_all_plugins" : "1", "check_all_prereqs" : "1", "modules" : [], "phase" : "release", "skip" : [ "Dist::Zilla::Plugin::Git::Check", "Dist::Zilla::Plugin::Git::Commit", "Dist::Zilla::Plugin::Git::GatherDir", "Dist::Zilla::Plugin::Git::NextVersion", "Dist::Zilla::Plugin::Git::Push", "Dist::Zilla::Plugin::Git::Tag", "Dist::Zilla::Plugin::Git::Init" ] } }, "name" : "@Author::ETHER/release", "version" : "0.014" }, { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@Author::ETHER/ExecDir", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::ShareDir", "name" : "@Author::ETHER/ShareDir", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::FileFinder::ByName", "name" : "@Author::ETHER/Examples", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::Git::GatherDir", "name" : "@Author::ETHER/Git::GatherDir", "version" : "2.017" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@Author::ETHER/MetaYAML", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@Author::ETHER/MetaJSON", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@Author::ETHER/License", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::Readme", "name" : "@Author::ETHER/Readme", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@Author::ETHER/Manifest", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::GenerateFile::ShareDir", "config" : { "Dist::Zilla::Plugin::GenerateFile::ShareDir" : { "destination_filename" : "CONTRIBUTING", "dist" : "Dist-Zilla-PluginBundle-Author-ETHER", "encoding" : "UTF-8", "source_filename" : "CONTRIBUTING" } }, "name" : "@Author::ETHER/GenerateFile::ShareDir", "version" : "0.002" }, { "class" : "Dist::Zilla::Plugin::Test::Compile", "config" : { "Dist::Zilla::Plugin::Test::Compile" : { "filename" : "xt/author/00-compile.t", "module_finder" : [ ":InstallModules" ], "script_finder" : [ ":ExecFiles", "@Author::ETHER/Examples" ] } }, "name" : "@Author::ETHER/Test::Compile", "version" : "2.038" }, { "class" : "Dist::Zilla::Plugin::Test::NoTabs", "config" : { "Dist::Zilla::Plugin::Test::NoTabs" : { "module_finder" : [ ":InstallModules" ], "script_finder" : [ ":ExecFiles", "@Author::ETHER/Examples" ] } }, "name" : "@Author::ETHER/Test::NoTabs", "version" : "0.05" }, { "class" : "Dist::Zilla::Plugin::EOLTests", "name" : "@Author::ETHER/EOLTests", "version" : "0.02" }, { "class" : "Dist::Zilla::Plugin::MetaTests", "name" : "@Author::ETHER/MetaTests", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::Test::Version", "name" : "@Author::ETHER/Test::Version", "version" : "0.002004" }, { "class" : "Dist::Zilla::Plugin::Test::CPAN::Changes", "name" : "@Author::ETHER/Test::CPAN::Changes", "version" : "0.008" }, { "class" : "Dist::Zilla::Plugin::Test::ChangesHasContent", "name" : "@Author::ETHER/Test::ChangesHasContent", "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::Test::MinimumVersion", "name" : "@Author::ETHER/Test::MinimumVersion", "version" : "2.000005" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@Author::ETHER/PodSyntaxTests", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::Test::PodSpelling", "name" : "@Author::ETHER/Test::PodSpelling", "version" : "2.006001" }, { "class" : "Dist::Zilla::Plugin::Test::Pod::No404s", "name" : "@Author::ETHER/Test::Pod::No404s", "version" : "1.001" }, { "class" : "Dist::Zilla::Plugin::Test::Kwalitee", "name" : "@Author::ETHER/Test::Kwalitee", "version" : "2.07" }, { "class" : "Dist::Zilla::Plugin::MojibakeTests", "name" : "@Author::ETHER/MojibakeTests", "version" : "0.5" }, { "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs", "name" : "@Author::ETHER/Test::ReportPrereqs", "version" : "0.010" }, { "class" : "Dist::Zilla::Plugin::Test::Portability", "name" : "@Author::ETHER/Test::Portability", "version" : "2.000005" }, { "class" : "Dist::Zilla::Plugin::PruneCruft", "name" : "@Author::ETHER/PruneCruft", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@Author::ETHER/ManifestSkip", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::Authority", "name" : "@Author::ETHER/Authority", "version" : "1.006" }, { "class" : "Dist::Zilla::Plugin::Git::Describe", "name" : "@Author::ETHER/Git::Describe", "version" : "0.003" }, { "class" : "Dist::Zilla::Plugin::PkgVersion", "name" : "@Author::ETHER/PkgVersion", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::PodWeaver", "config" : { "Dist::Zilla::Plugin::PodWeaver" : { "finder" : [ ":InstallModules", ":ExecFiles" ], "plugins" : [ { "class" : "Pod::Weaver::Plugin::EnsurePod5", "name" : "@CorePrep/EnsurePod5", "version" : "4.004" }, { "class" : "Pod::Weaver::Plugin::H1Nester", "name" : "@CorePrep/H1Nester", "version" : "4.004" }, { "class" : "Pod::Weaver::Plugin::SingleEncoding", "name" : "@Default/SingleEncoding", "version" : "4.004" }, { "class" : "Pod::Weaver::Section::Name", "name" : "@Default/Name", "version" : "4.004" }, { "class" : "Pod::Weaver::Section::Version", "name" : "@Default/Version", "version" : "4.004" }, { "class" : "Pod::Weaver::Section::Region", "name" : "@Default/prelude", "version" : "4.004" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "SYNOPSIS", "version" : "4.004" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "DESCRIPTION", "version" : "4.004" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "OVERVIEW", "version" : "4.004" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "ATTRIBUTES", "version" : "4.004" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "METHODS", "version" : "4.004" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "FUNCTIONS", "version" : "4.004" }, { "class" : "Pod::Weaver::Section::Leftovers", "name" : "@Default/Leftovers", "version" : "4.004" }, { "class" : "Pod::Weaver::Section::Region", "name" : "@Default/postlude", "version" : "4.004" }, { "class" : "Pod::Weaver::Section::Authors", "name" : "@Default/Authors", "version" : "4.004" }, { "class" : "Pod::Weaver::Section::Legal", "name" : "@Default/Legal", "version" : "4.004" }, { "class" : "Pod::Weaver::Plugin::Transformer", "name" : "-Transformer", "version" : "4.004" }, { "class" : "Pod::Weaver::Plugin::StopWords", "name" : "-StopWords", "version" : "1.008" }, { "class" : "Pod::Weaver::Section::Contributors", "name" : "Contributors", "version" : "0.006" } ] } }, "name" : "@Author::ETHER/PodWeaver", "version" : "4.002" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@Author::ETHER/NextRelease", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod", "name" : "@Author::ETHER/ReadmeAnyFromPod", "version" : "0.133290" }, { "class" : "Dist::Zilla::Plugin::GithubMeta", "name" : "@Author::ETHER/GithubMeta", "version" : "0.42" }, { "class" : "Dist::Zilla::Plugin::AutoMetaResources", "name" : "@Author::ETHER/AutoMetaResources", "version" : "1.20" }, { "class" : "Dist::Zilla::Plugin::MetaNoIndex", "name" : "@Author::ETHER/MetaNoIndex", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "@Author::ETHER/MetaProvides::Package/AUTOVIV/:InstallModulesPM", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::MetaProvides::Package", "config" : { "Dist::Zilla::Plugin::MetaProvides::Package" : {}, "Dist::Zilla::Role::MetaProvider::Provider" : { "inherit_missing" : "1", "inherit_version" : "1", "meta_noindex" : "1" } }, "name" : "@Author::ETHER/MetaProvides::Package", "version" : "1.15000001" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@Author::ETHER/MetaConfig", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@Author::ETHER/AutoPrereqs", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::Prereqs::AuthorDeps", "name" : "@Author::ETHER/Prereqs::AuthorDeps", "version" : "0.002" }, { "class" : "Dist::Zilla::Plugin::MinimumPerl", "name" : "@Author::ETHER/MinimumPerl", "version" : "1.003" }, { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "develop", "type" : "requires" } }, "name" : "@Author::ETHER/installer_requirements", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "develop", "type" : "recommends" } }, "name" : "@Author::ETHER/pluginbundle_version", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::RunExtraTests", "name" : "@Author::ETHER/RunExtraTests", "version" : "0.016" }, { "class" : "Dist::Zilla::Plugin::MakeMaker::Fallback", "name" : "@Author::ETHER/MakeMaker::Fallback", "version" : "0.004" }, { "class" : "Dist::Zilla::Plugin::ModuleBuildTiny", "name" : "@Author::ETHER/ModuleBuildTiny", "version" : "0.005" }, { "class" : "Dist::Zilla::Plugin::InstallGuide", "name" : "@Author::ETHER/InstallGuide", "version" : "1.200002" }, { "class" : "Dist::Zilla::Plugin::CheckSelfDependency", "name" : "@Author::ETHER/CheckSelfDependency", "version" : "0.005" }, { "class" : "Dist::Zilla::Plugin::Run::AfterBuild", "name" : "@Author::ETHER/Run::AfterBuild", "version" : "0.020" }, { "class" : "Dist::Zilla::Plugin::Git::Check", "name" : "@Author::ETHER/initial check", "version" : "2.017" }, { "class" : "Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts", "name" : "@Author::ETHER/Git::CheckFor::MergeConflicts", "version" : "0.008" }, { "class" : "Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch", "name" : "@Author::ETHER/Git::CheckFor::CorrectBranch", "version" : "0.008" }, { "class" : "Dist::Zilla::Plugin::Git::Remote::Check", "name" : "@Author::ETHER/Git::Remote::Check", "version" : "0.1.2" }, { "class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed", "name" : "@Author::ETHER/CheckPrereqsIndexed", "version" : "0.009" }, { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@Author::ETHER/TestRelease", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::Git::Check", "name" : "@Author::ETHER/after tests", "version" : "2.017" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@Author::ETHER/UploadToCPAN", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::CopyFilesFromRelease", "name" : "@Author::ETHER/CopyFilesFromRelease", "version" : "0.001" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "name" : "@Author::ETHER/Git::Commit", "version" : "2.017" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", "name" : "@Author::ETHER/Git::Tag", "version" : "2.017" }, { "class" : "Dist::Zilla::Plugin::GitHub::Update", "name" : "@Author::ETHER/GitHub::Update", "version" : "0.35" }, { "class" : "Dist::Zilla::Plugin::Git::Push", "name" : "@Author::ETHER/Git::Push", "version" : "2.017" }, { "class" : "Dist::Zilla::Plugin::InstallRelease", "name" : "@Author::ETHER/InstallRelease", "version" : "0.008" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@Author::ETHER/ConfirmRelease", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "develop", "type" : "requires" } }, "name" : "@Author::ETHER/via_options", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "develop", "type" : "requires" } }, "name" : "DevelopRequires", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::ContributorsFromGit", "name" : "ContributorsFromGit", "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", "version" : "5.006" } ], "zilla" : { "class" : "Dist::Zilla::Dist::Builder", "config" : { "is_trial" : "0" }, "version" : "5.006" } }, "x_authority" : "cpan:NUFFIN", "x_contributors" : [ "David Golden ", "Florian Ragwitz ", "Jesse Luehrs ", "Karen Etheridge ", "Leo Lapworth ", "Steven Lee " ] } Devel-PartialDump-0.17/META.yml000644 000767 000024 00000035741 12246447373 016473 0ustar00etherstaff000000 000000 --- abstract: 'Partial dumping of data structures, optimized for argument printing.' author: - "יובל קוג'מן (Yuval Kogman) " build_requires: ExtUtils::MakeMaker: 0 File::Spec::Functions: 0 List::Util: 0 Test::More: 0 Test::Warn: 0 if: 0 ok: 0 overload: 0 configure_requires: ExtUtils::MakeMaker: 6.30 Module::Build::Tiny: 0.030 dynamic_config: 0 generated_by: 'Dist::Zilla version 5.006, CPAN::Meta::Converter version 2.132830' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: 1.4 name: Devel-PartialDump no_index: directory: - t - xt - examples provides: Devel::PartialDump: file: lib/Devel/PartialDump.pm version: 0.17 requires: Carp: 0 Carp::Heavy: 0 Class::Tiny: 0 Scalar::Util: 0 Sub::Exporter: 0 namespace::clean: 0 perl: 5.006001 strict: 0 warnings: 0 resources: bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-PartialDump homepage: https://github.com/karenetheridge/Devel-PartialDump repository: https://github.com/karenetheridge/Devel-PartialDump.git version: 0.17 x_Dist_Zilla: perl: version: 5.019006 plugins: - class: Dist::Zilla::Plugin::Git::NextVersion name: '@Author::ETHER/Git::NextVersion' version: 2.017 - 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/build' version: 0.014 - class: Dist::Zilla::Plugin::PromptIfStale config: Dist::Zilla::Plugin::PromptIfStale: check_all_plugins: 1 check_all_prereqs: 1 modules: [] phase: release skip: - Dist::Zilla::Plugin::Git::Check - Dist::Zilla::Plugin::Git::Commit - Dist::Zilla::Plugin::Git::GatherDir - Dist::Zilla::Plugin::Git::NextVersion - Dist::Zilla::Plugin::Git::Push - Dist::Zilla::Plugin::Git::Tag - Dist::Zilla::Plugin::Git::Init name: '@Author::ETHER/release' version: 0.014 - class: Dist::Zilla::Plugin::ExecDir name: '@Author::ETHER/ExecDir' version: 5.006 - class: Dist::Zilla::Plugin::ShareDir name: '@Author::ETHER/ShareDir' version: 5.006 - class: Dist::Zilla::Plugin::FileFinder::ByName name: '@Author::ETHER/Examples' version: 5.006 - class: Dist::Zilla::Plugin::Git::GatherDir name: '@Author::ETHER/Git::GatherDir' version: 2.017 - class: Dist::Zilla::Plugin::MetaYAML name: '@Author::ETHER/MetaYAML' version: 5.006 - class: Dist::Zilla::Plugin::MetaJSON name: '@Author::ETHER/MetaJSON' version: 5.006 - class: Dist::Zilla::Plugin::License name: '@Author::ETHER/License' version: 5.006 - class: Dist::Zilla::Plugin::Readme name: '@Author::ETHER/Readme' version: 5.006 - class: Dist::Zilla::Plugin::Manifest name: '@Author::ETHER/Manifest' version: 5.006 - class: Dist::Zilla::Plugin::GenerateFile::ShareDir config: Dist::Zilla::Plugin::GenerateFile::ShareDir: destination_filename: CONTRIBUTING dist: Dist-Zilla-PluginBundle-Author-ETHER encoding: UTF-8 source_filename: CONTRIBUTING name: '@Author::ETHER/GenerateFile::ShareDir' version: 0.002 - class: Dist::Zilla::Plugin::Test::Compile config: Dist::Zilla::Plugin::Test::Compile: filename: xt/author/00-compile.t module_finder: - ':InstallModules' script_finder: - ':ExecFiles' - '@Author::ETHER/Examples' name: '@Author::ETHER/Test::Compile' version: 2.038 - class: Dist::Zilla::Plugin::Test::NoTabs config: Dist::Zilla::Plugin::Test::NoTabs: module_finder: - ':InstallModules' script_finder: - ':ExecFiles' - '@Author::ETHER/Examples' name: '@Author::ETHER/Test::NoTabs' version: 0.05 - class: Dist::Zilla::Plugin::EOLTests name: '@Author::ETHER/EOLTests' version: 0.02 - class: Dist::Zilla::Plugin::MetaTests name: '@Author::ETHER/MetaTests' version: 5.006 - class: Dist::Zilla::Plugin::Test::Version name: '@Author::ETHER/Test::Version' version: 0.002004 - class: Dist::Zilla::Plugin::Test::CPAN::Changes name: '@Author::ETHER/Test::CPAN::Changes' version: 0.008 - class: Dist::Zilla::Plugin::Test::ChangesHasContent name: '@Author::ETHER/Test::ChangesHasContent' version: 0.006 - class: Dist::Zilla::Plugin::Test::MinimumVersion name: '@Author::ETHER/Test::MinimumVersion' version: 2.000005 - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@Author::ETHER/PodSyntaxTests' version: 5.006 - class: Dist::Zilla::Plugin::Test::PodSpelling name: '@Author::ETHER/Test::PodSpelling' version: 2.006001 - class: Dist::Zilla::Plugin::Test::Pod::No404s name: '@Author::ETHER/Test::Pod::No404s' version: 1.001 - class: Dist::Zilla::Plugin::Test::Kwalitee name: '@Author::ETHER/Test::Kwalitee' version: 2.07 - class: Dist::Zilla::Plugin::MojibakeTests name: '@Author::ETHER/MojibakeTests' version: 0.5 - class: Dist::Zilla::Plugin::Test::ReportPrereqs name: '@Author::ETHER/Test::ReportPrereqs' version: 0.010 - class: Dist::Zilla::Plugin::Test::Portability name: '@Author::ETHER/Test::Portability' version: 2.000005 - class: Dist::Zilla::Plugin::PruneCruft name: '@Author::ETHER/PruneCruft' version: 5.006 - class: Dist::Zilla::Plugin::ManifestSkip name: '@Author::ETHER/ManifestSkip' version: 5.006 - class: Dist::Zilla::Plugin::Authority name: '@Author::ETHER/Authority' version: 1.006 - class: Dist::Zilla::Plugin::Git::Describe name: '@Author::ETHER/Git::Describe' version: 0.003 - class: Dist::Zilla::Plugin::PkgVersion name: '@Author::ETHER/PkgVersion' version: 5.006 - class: Dist::Zilla::Plugin::PodWeaver config: Dist::Zilla::Plugin::PodWeaver: finder: - ':InstallModules' - ':ExecFiles' plugins: - class: Pod::Weaver::Plugin::EnsurePod5 name: '@CorePrep/EnsurePod5' version: 4.004 - class: Pod::Weaver::Plugin::H1Nester name: '@CorePrep/H1Nester' version: 4.004 - class: Pod::Weaver::Plugin::SingleEncoding name: '@Default/SingleEncoding' version: 4.004 - class: Pod::Weaver::Section::Name name: '@Default/Name' version: 4.004 - class: Pod::Weaver::Section::Version name: '@Default/Version' version: 4.004 - class: Pod::Weaver::Section::Region name: '@Default/prelude' version: 4.004 - class: Pod::Weaver::Section::Generic name: SYNOPSIS version: 4.004 - class: Pod::Weaver::Section::Generic name: DESCRIPTION version: 4.004 - class: Pod::Weaver::Section::Generic name: OVERVIEW version: 4.004 - class: Pod::Weaver::Section::Collect name: ATTRIBUTES version: 4.004 - class: Pod::Weaver::Section::Collect name: METHODS version: 4.004 - class: Pod::Weaver::Section::Collect name: FUNCTIONS version: 4.004 - class: Pod::Weaver::Section::Leftovers name: '@Default/Leftovers' version: 4.004 - class: Pod::Weaver::Section::Region name: '@Default/postlude' version: 4.004 - class: Pod::Weaver::Section::Authors name: '@Default/Authors' version: 4.004 - class: Pod::Weaver::Section::Legal name: '@Default/Legal' version: 4.004 - class: Pod::Weaver::Plugin::Transformer name: '-Transformer' version: 4.004 - class: Pod::Weaver::Plugin::StopWords name: '-StopWords' version: 1.008 - class: Pod::Weaver::Section::Contributors name: Contributors version: 0.006 name: '@Author::ETHER/PodWeaver' version: 4.002 - class: Dist::Zilla::Plugin::NextRelease name: '@Author::ETHER/NextRelease' version: 5.006 - class: Dist::Zilla::Plugin::ReadmeAnyFromPod name: '@Author::ETHER/ReadmeAnyFromPod' version: 0.133290 - class: Dist::Zilla::Plugin::GithubMeta name: '@Author::ETHER/GithubMeta' version: 0.42 - class: Dist::Zilla::Plugin::AutoMetaResources name: '@Author::ETHER/AutoMetaResources' version: 1.20 - class: Dist::Zilla::Plugin::MetaNoIndex name: '@Author::ETHER/MetaNoIndex' version: 5.006 - class: Dist::Zilla::Plugin::FinderCode name: '@Author::ETHER/MetaProvides::Package/AUTOVIV/:InstallModulesPM' version: 5.006 - class: Dist::Zilla::Plugin::MetaProvides::Package config: Dist::Zilla::Plugin::MetaProvides::Package: {} Dist::Zilla::Role::MetaProvider::Provider: inherit_missing: 1 inherit_version: 1 meta_noindex: 1 name: '@Author::ETHER/MetaProvides::Package' version: 1.15000001 - class: Dist::Zilla::Plugin::MetaConfig name: '@Author::ETHER/MetaConfig' version: 5.006 - class: Dist::Zilla::Plugin::AutoPrereqs name: '@Author::ETHER/AutoPrereqs' version: 5.006 - class: Dist::Zilla::Plugin::Prereqs::AuthorDeps name: '@Author::ETHER/Prereqs::AuthorDeps' version: 0.002 - class: Dist::Zilla::Plugin::MinimumPerl name: '@Author::ETHER/MinimumPerl' version: 1.003 - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: develop type: requires name: '@Author::ETHER/installer_requirements' version: 5.006 - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: develop type: recommends name: '@Author::ETHER/pluginbundle_version' version: 5.006 - class: Dist::Zilla::Plugin::RunExtraTests name: '@Author::ETHER/RunExtraTests' version: 0.016 - class: Dist::Zilla::Plugin::MakeMaker::Fallback name: '@Author::ETHER/MakeMaker::Fallback' version: 0.004 - class: Dist::Zilla::Plugin::ModuleBuildTiny name: '@Author::ETHER/ModuleBuildTiny' version: 0.005 - class: Dist::Zilla::Plugin::InstallGuide name: '@Author::ETHER/InstallGuide' version: 1.200002 - class: Dist::Zilla::Plugin::CheckSelfDependency name: '@Author::ETHER/CheckSelfDependency' version: 0.005 - class: Dist::Zilla::Plugin::Run::AfterBuild name: '@Author::ETHER/Run::AfterBuild' version: 0.020 - class: Dist::Zilla::Plugin::Git::Check name: '@Author::ETHER/initial check' version: 2.017 - class: Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts name: '@Author::ETHER/Git::CheckFor::MergeConflicts' version: 0.008 - class: Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch name: '@Author::ETHER/Git::CheckFor::CorrectBranch' version: 0.008 - class: Dist::Zilla::Plugin::Git::Remote::Check name: '@Author::ETHER/Git::Remote::Check' version: 0.1.2 - class: Dist::Zilla::Plugin::CheckPrereqsIndexed name: '@Author::ETHER/CheckPrereqsIndexed' version: 0.009 - class: Dist::Zilla::Plugin::TestRelease name: '@Author::ETHER/TestRelease' version: 5.006 - class: Dist::Zilla::Plugin::Git::Check name: '@Author::ETHER/after tests' version: 2.017 - class: Dist::Zilla::Plugin::UploadToCPAN name: '@Author::ETHER/UploadToCPAN' version: 5.006 - class: Dist::Zilla::Plugin::CopyFilesFromRelease name: '@Author::ETHER/CopyFilesFromRelease' version: 0.001 - class: Dist::Zilla::Plugin::Git::Commit name: '@Author::ETHER/Git::Commit' version: 2.017 - class: Dist::Zilla::Plugin::Git::Tag name: '@Author::ETHER/Git::Tag' version: 2.017 - class: Dist::Zilla::Plugin::GitHub::Update name: '@Author::ETHER/GitHub::Update' version: 0.35 - class: Dist::Zilla::Plugin::Git::Push name: '@Author::ETHER/Git::Push' version: 2.017 - class: Dist::Zilla::Plugin::InstallRelease name: '@Author::ETHER/InstallRelease' version: 0.008 - class: Dist::Zilla::Plugin::ConfirmRelease name: '@Author::ETHER/ConfirmRelease' version: 5.006 - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: develop type: requires name: '@Author::ETHER/via_options' version: 5.006 - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: develop type: requires name: DevelopRequires version: 5.006 - class: Dist::Zilla::Plugin::ContributorsFromGit name: ContributorsFromGit version: 0.006 - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' version: 5.006 - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' version: 5.006 - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' version: 5.006 - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' version: 5.006 - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' version: 5.006 - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' version: 5.006 zilla: class: Dist::Zilla::Dist::Builder config: is_trial: 0 version: 5.006 x_authority: cpan:NUFFIN x_contributors: - 'David Golden ' - 'Florian Ragwitz ' - 'Jesse Luehrs ' - 'Karen Etheridge ' - 'Leo Lapworth ' - 'Steven Lee ' Devel-PartialDump-0.17/README000644 000767 000024 00000000551 12246447373 016071 0ustar00etherstaff000000 000000 This archive contains the distribution Devel-PartialDump, version 0.17: Partial dumping of data structures, optimized for argument printing. This software is copyright (c) 2008 by יובל קוג'מן (Yuval Kogman). This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Devel-PartialDump-0.17/README.md000644 000767 000024 00000013652 12246447373 016476 0ustar00etherstaff000000 000000 # NAME Devel::PartialDump - Partial dumping of data structures, optimized for argument printing. # VERSION version 0.17 # SYNOPSIS use Devel::PartialDump; sub foo { print "foo called with args: " . Devel::PartialDump->new->dump(@_); } use Devel::PartialDump qw(warn); # warn is overloaded to create a concise dump instead of stringifying $some_bad_data warn "this made a boo boo: ", $some_bad_data # DESCRIPTION This module is a data dumper optimized for logging of arbitrary parameters. It attempts to truncate overly verbose data, in a way that is hopefully more useful for diagnostics warnings than warn Dumper(@stuff); Unlike other data dumping modules there are no attempts at correctness or cross referencing, this is only meant to provide a slightly deeper look into the data in question. There is a default recursion limit, and a default truncation of long lists, and the dump is formatted on one line (new lines in strings are escaped), to aid in readability. You can enable it temporarily by importing functions like `warn`, `croak` etc to get more informative errors during development, or even use it as: BEGIN { local $@; eval "use Devel::PartialDump qw(...)" } to get DWIM formatting only if it's installed, without introducing a dependency. # SAMPLE OUTPUT - `"foo"` "foo" - `"foo" => "bar"` foo: "bar" - `foo => "bar", gorch => [ 1, "bah" ]` foo: "bar", gorch: [ 1, "bah" ] - `[ { foo => ["bar"] } ]` [ { foo: ARRAY(0x9b265d0) } ] - `[ 1 .. 10 ]` [ 1, 2, 3, 4, 5, 6, ... ] - `"foo\nbar"` "foo\nbar" - `"foo" . chr(1)` "foo\x{1}" # ATTRIBUTES - max\_length The maximum character length of the dump. Anything bigger than this will be truncated. Not defined by default. - max\_elements The maximum number of elements (array elements or pairs in a hash) to print. Defaults to 6. - max\_depth The maximum level of recursion. Defaults to 2. - stringify Whether or not to let objects stringify themselves, instead of using ["StrVal" in overload](https://metacpan.org/pod/overload#StrVal) to avoid side effects. Defaults to false (no overloading). - pairs Whether or not to autodetect named args as pairs in the main `dump` function. If this attribute is true, and the top level value list is even sized, and every odd element is not a reference, then it will dumped as pairs instead of a list. # EXPORTS All exports are optional, nothing is exported by default. This module uses [Sub::Exporter](https://metacpan.org/pod/Sub::Exporter), so exports can be renamed, curried, etc. - warn - show - show\_scalar - croak - carp - confess - cluck - dump See the various methods for behavior documentation. These methods will use `$Devel::PartialDump::default_dumper` as the invocant if the first argument is not blessed and `isa` [Devel::PartialDump](https://metacpan.org/pod/Devel::PartialDump), so they can be used as functions too. Particularly `warn` can be used as a drop in replacement for the built in warn: warn "blah blah: ", $some_data; by importing use Devel::PartialDump qw(warn); `$some_data` will be have some of it's data dumped. - $default\_dumper The default dumper object to use for export style calls. Can be assigned to to alter behavior globally. This is generally useful when using the `warn` export as a drop in replacement for `CORE::warn`. # METHODS - warn @blah A wrapper for `dump` that prints strings plainly. - show @blah - show\_scalar $x Like `warn`, but instead of returning the value from `warn` it returns its arguments, so it can be used in the middle of an expression. Note that my $x = show foo(); will actually evaluate `foo` in list context, so if you only want to dump a single element and retain scalar context use my $x = show_scalar foo(); which has a prototype of `$` (as opposed to taking a list). This is similar to the venerable Ingy's fabulous and amazing [XXX](https://metacpan.org/pod/XXX) module. - carp - croak - confess - cluck Drop in replacements for [Carp](https://metacpan.org/pod/Carp) exports, that format their arguments like `warn`. - dump @stuff Returns a one line, human readable, concise dump of @stuff. If called in void context, will `warn` with the dump. Truncates the dump according to `max_length` if specified. - dump\_as\_list $depth, @stuff - dump\_as\_pairs $depth, @stuff Dump `@stuff` using the various formatting functions. Dump as pairs returns comma delimited pairs with `=>` between the key and the value. Dump as list returns a comma delimited dump of the values. - format $depth, $value - format\_key $depth, $key - format\_object $depth, $object - format\_ref $depth, $Ref - format\_array $depth, $array\_ref - format\_hash $depth, $hash\_ref - format\_undef $depth, undef - format\_string $depth, $string - format\_number $depth, $number - quote $string The various formatting methods. You can override these to provide a custom format. `format_array` and `format_hash` recurse with `$depth + 1` into `dump_as_list` and `dump_as_pairs` respectively. `format_ref` delegates to `format_array` and `format_hash` and does the `max_depth` tracking. It will simply stringify the ref if the recursion limit has been reached. # AUTHOR יובל קוג'מן (Yuval Kogman) # COPYRIGHT AND LICENSE This software is copyright (c) 2008 by יובל קוג'מן (Yuval Kogman). This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. # CONTRIBUTORS - David Golden - Florian Ragwitz - Jesse Luehrs - Karen Etheridge - Leo Lapworth - Steven Lee Devel-PartialDump-0.17/t/000755 000767 000024 00000000000 12246447373 015453 5ustar00etherstaff000000 000000 Devel-PartialDump-0.17/weaver.ini000644 000767 000024 00000000114 12246447373 017176 0ustar00etherstaff000000 000000 [@Default] [-Transformer] transformer = List [-StopWords] [Contributors] Devel-PartialDump-0.17/xt/000755 000767 000024 00000000000 12246447373 015643 5ustar00etherstaff000000 000000 Devel-PartialDump-0.17/xt/author/000755 000767 000024 00000000000 12246447373 017145 5ustar00etherstaff000000 000000 Devel-PartialDump-0.17/xt/release/000755 000767 000024 00000000000 12246447373 017263 5ustar00etherstaff000000 000000 Devel-PartialDump-0.17/xt/release/changes_has_content.t000644 000767 000024 00000002010 12246447373 023436 0ustar00etherstaff000000 000000 #!perl use Test::More tests => 2; note 'Checking Changes'; my $changes_file = 'Changes'; my $newver = '0.17'; 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; } Devel-PartialDump-0.17/xt/release/cpan-changes.t000644 000767 000024 00000000263 12246447373 022000 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(); Devel-PartialDump-0.17/xt/release/distmeta.t000644 000767 000024 00000000217 12246447373 021262 0ustar00etherstaff000000 000000 #!perl use Test::More; eval "use Test::CPAN::Meta"; plan skip_all => "Test::CPAN::Meta required for testing META.yml" if $@; meta_yaml_ok(); Devel-PartialDump-0.17/xt/release/eol.t000644 000767 000024 00000000240 12246447373 020223 0ustar00etherstaff000000 000000 use strict; use warnings; use Test::More; eval 'use Test::EOL'; plan skip_all => 'Test::EOL required' if $@; all_perl_files_ok({ trailing_whitespace => 1 }); Devel-PartialDump-0.17/xt/release/kwalitee.t000644 000767 000024 00000000166 12246447373 021260 0ustar00etherstaff000000 000000 # this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.07 use strict; use warnings; use Test::Kwalitee; Devel-PartialDump-0.17/xt/release/minimum-version.t000644 000767 000024 00000000271 12246447373 022606 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.008001} ); Devel-PartialDump-0.17/xt/release/mojibake.t000644 000767 000024 00000000406 12246447373 021231 0ustar00etherstaff000000 000000 #!perl use strict; use warnings qw(all); use Test::More; ## no critic (ProhibitStringyEval, RequireCheckingReturnValueOfEval) eval q(use Test::Mojibake); plan skip_all => q(Test::Mojibake required for source encoding testing) if $@; all_files_encoding_ok(); Devel-PartialDump-0.17/xt/release/no-tabs.t000644 000767 000024 00000000347 12246447373 021017 0ustar00etherstaff000000 000000 use strict; use warnings; # this test was generated with Dist::Zilla::Plugin::Test::NoTabs 0.05 use Test::More 0.88; use Test::NoTabs; my @files = ( 'lib/Devel/PartialDump.pm' ); notabs_ok($_) foreach @files; done_testing; Devel-PartialDump-0.17/xt/release/pod-no404s.t000644 000767 000024 00000000527 12246447373 021263 0ustar00etherstaff000000 000000 #!perl use strict; use warnings; use Test::More; foreach my $env_skip ( qw( SKIP_POD_NO404S AUTOMATED_TESTING ) ){ plan skip_all => "\$ENV{$env_skip} is set, skipping" if $ENV{$env_skip}; } eval "use Test::Pod::No404s"; if ( $@ ) { plan skip_all => 'Test::Pod::No404s required for testing POD'; } else { all_pod_files_ok(); } Devel-PartialDump-0.17/xt/release/pod-syntax.t000644 000767 000024 00000000212 12246447373 021551 0ustar00etherstaff000000 000000 #!perl use Test::More; eval "use Test::Pod 1.41"; plan skip_all => "Test::Pod 1.41 required for testing POD" if $@; all_pod_files_ok(); Devel-PartialDump-0.17/xt/release/portability.t000644 000767 000024 00000000276 12246447373 022017 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(); Devel-PartialDump-0.17/xt/release/test-version.t000644 000767 000024 00000000643 12246447373 022115 0ustar00etherstaff000000 000000 use strict; use warnings; use Test::More; # generated by Dist::Zilla::Plugin::Test::Version 0.002004 BEGIN { eval "use Test::Version; 1;" or die $@; } my @imports = ( 'version_all_ok' ); my $params = { is_strict => 1, has_version => 1, }; push @imports, $params if version->parse( $Test::Version::VERSION ) >= version->parse('1.002'); Test::Version->import(@imports); version_all_ok; done_testing; Devel-PartialDump-0.17/xt/author/00-compile.t000644 000767 000024 00000002027 12246447373 021200 0ustar00etherstaff000000 000000 use 5.006; use strict; use warnings; # this test was generated with Dist::Zilla::Plugin::Test::Compile 2.038 use Test::More 0.94 tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0); my @module_files = ( 'Devel/PartialDump.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 $stderr = IO::Handle->new; binmode $stderr, ':crlf' if $^O eq 'MSWin32'; my @warnings; for my $lib (@module_files) { # see L my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-e', "require q[$lib]"); my @_warnings = <$stderr>; waitpid($pid, 0); is($?, 0, "$lib loaded ok"); if (@_warnings) { warn @_warnings; push @warnings, @_warnings; } } is(scalar(@warnings), 0, 'no warnings found') if $ENV{AUTHOR_TESTING}; BAIL_OUT("Compilation problems") if !Test::More->builder->is_passing; Devel-PartialDump-0.17/xt/author/pod-spell.t000644 000767 000024 00000000633 12246447373 021233 0ustar00etherstaff000000 000000 use strict; use warnings; use Test::More; # generated by Dist::Zilla::Plugin::Test::PodSpelling 2.006001 use Test::Spelling 0.12; use Pod::Wordlist; add_stopwords(); all_pod_files_spelling_ok( qw( bin lib ) ); __DATA__ יובל קוג Yuval Kogman nothingmuch David Golden dagolden Florian Ragwitz rafl Jesse Luehrs doy Karen Etheridge ether Leo Lapworth web Steven Lee stevenwh lib Devel PartialDump Devel-PartialDump-0.17/t/00-report-prereqs.t000644 000767 000024 00000006765 12246447373 021065 0ustar00etherstaff000000 000000 #!perl use strict; use warnings; # This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.010 use Test::More tests => 1; use ExtUtils::MakeMaker; use File::Spec::Functions; use List::Util qw/max/; my @modules = qw( CPAN::Meta CPAN::Meta::Requirements Carp Carp::Heavy Class::Tiny ExtUtils::MakeMaker File::Spec::Functions List::Util Module::Build::Tiny Scalar::Util Sub::Exporter Test::More Test::Warn if namespace::clean ok overload perl strict warnings ); my %exclude = map {; $_ => 1 } qw( ); my ($source) = grep { -f $_ } qw/MYMETA.json MYMETA.yml META.json/; $source = "META.yml" unless defined $source; # replace modules with dynamic results from MYMETA.json if we can # (hide CPAN::Meta from prereq scanner) my $cpan_meta = "CPAN::Meta"; my $cpan_meta_req = "CPAN::Meta::Requirements"; my $all_requires; if ( -f $source && eval "require $cpan_meta" ) { ## no critic if ( my $meta = eval { CPAN::Meta->load_file($source) } ) { # Get ALL modules mentioned in META (any phase/type) my $prereqs = $meta->prereqs; delete $prereqs->{develop} if not $ENV{AUTHOR_TESTING}; my %uniq = map {$_ => 1} map { keys %$_ } map { values %$_ } values %$prereqs; $uniq{$_} = 1 for @modules; # don't lose any static ones @modules = sort grep { ! $exclude{$_} } keys %uniq; # If verifying, merge 'requires' only for major phases if ( 1 ) { $prereqs = $meta->effective_prereqs; # get the object, not the hash if (eval "require $cpan_meta_req; 1") { ## no critic $all_requires = $cpan_meta_req->new; for my $phase ( qw/configure build test runtime/ ) { $all_requires->add_requirements( $prereqs->requirements_for($phase, 'requires') ); } } } } } my @reports = [qw/Version Module/]; my @dep_errors; my $req_hash = defined($all_requires) ? $all_requires->as_string_hash : {}; for my $mod ( @modules ) { next if $mod eq 'perl'; my $file = $mod; $file =~ s{::}{/}g; $file .= ".pm"; my ($prefix) = grep { -e catfile($_, $file) } @INC; if ( $prefix ) { my $ver = MM->parse_version( catfile($prefix, $file) ); $ver = "undef" unless defined $ver; # Newer MM should do this anyway push @reports, [$ver, $mod]; if ( 1 && $all_requires ) { my $req = $req_hash->{$mod}; if ( defined $req && length $req ) { if ( ! defined eval { version->parse($ver) } ) { push @dep_errors, "$mod version '$ver' cannot be parsed (version '$req' required)"; } elsif ( ! $all_requires->accepts_module( $mod => $ver ) ) { push @dep_errors, "$mod version '$ver' is not in required range '$req'"; } } } } else { push @reports, ["missing", $mod]; if ( 1 && $all_requires ) { my $req = $req_hash->{$mod}; if ( defined $req && length $req ) { push @dep_errors, "$mod is not installed (version '$req' required)"; } } } } if ( @reports ) { my $vl = max map { length $_->[0] } @reports; my $ml = max map { length $_->[1] } @reports; splice @reports, 1, 0, ["-" x $vl, "-" x $ml]; diag "\nVersions for all modules listed in $source (including optional ones):\n", map {sprintf(" %*s %*s\n",$vl,$_->[0],-$ml,$_->[1])} @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=2 sts=2 sw=2 et: Devel-PartialDump-0.17/t/basic.t000644 000767 000024 00000005462 12246447373 016730 0ustar00etherstaff000000 000000 use strict; use warnings FATAL => 'all'; use Test::More; use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; use ok 'Devel::PartialDump'; our $d = Devel::PartialDump->new; is( $d->dump("foo"), '"foo"', "simple value" ); is( $d->dump(undef), "undef", "undef" ); is( $d->dump("foo" => "bar"), 'foo: "bar"', "named params" ); is( $d->dump( \"foo" => "bar" ), '\\"foo", "bar"', "not named params" ); is( $d->dump("foo\nbar"), '"foo\nbar"', "newline" ); is( $d->dump("foo" . chr(1)), '"foo\x{1}"', "non printable" ); my $foo = "foo"; is( $d->dump(\substr($foo, 0)), '\\"foo"', "reference to lvalue"); is( $d->dump(\\"foo"), '\\\\"foo"', "reference to reference" ); subtest 'max_length' => sub { my @list = 1 .. 10; local $d = Devel::PartialDump->new( pairs => 0, max_elements => undef, ); $d->max_length(undef); is( $d->dump(@list), '1, 2, 3, 4, 5, 6, 7, 8, 9, 10', 'undefined'); $d->max_length(100); is( $d->dump(@list), '1, 2, 3, 4, 5, 6, 7, 8, 9, 10', 'high'); $d->max_length(10); is( $d->dump(@list), '1, 2, 3...', 'low' ); $d->max_length(0); is( $d->dump(@list), '...', 'zero' ); }; subtest 'max_elements for lists' => sub { my @list = 1 .. 10; local $d = Devel::PartialDump->new( pairs => 0 ); $d->max_elements(undef); is( $d->dump(@list), '1, 2, 3, 4, 5, 6, 7, 8, 9, 10', 'undefined' ); $d->max_elements(100); is( $d->dump(@list), '1, 2, 3, 4, 5, 6, 7, 8, 9, 10', 'high' ); $d->max_elements(6); is( $d->dump(@list), '1, 2, 3, 4, 5, 6, ...', 'low' ); $d->max_elements(0); is( $d->dump(@list), '...', 'zero' ); }; subtest 'max_elements for pairs' => sub { my @list = 1 .. 10; local $d = Devel::PartialDump->new( pairs => 1 ); $d->max_elements(undef); is( $d->dump(@list), '1: 2, 3: 4, 5: 6, 7: 8, 9: 10', 'undefined' ); $d->max_elements(100); is( $d->dump(@list), '1: 2, 3: 4, 5: 6, 7: 8, 9: 10', 'high' ); $d->max_elements(3); is( $d->dump(@list), '1: 2, 3: 4, 5: 6, ...', 'low' ); $d->max_elements(0); is( $d->dump(@list), '...', 'zero' ); }; subtest 'max_depth' => sub { local $d = Devel::PartialDump->new; my $data = { foo => ["bar"], gorch => { 1 => ["bah"] } }; $d->max_depth(10); is( $d->dump($data), '{ foo: [ "bar" ], gorch: { 1: [ "bah" ] } }', "high" ); $d->max_depth(2); like( $d->dump($data), qr/^\{ foo: \[ "bar" \], gorch: \{ 1: ARRAY\(0x[a-z0-9]+\) \} \}/, "low" ); $d->max_depth(0); like( $d->dump($data), qr/^HASH\(0x[a-z0-9]+\)/, "zero" ); }; { local $d = Devel::PartialDump->new( pairs => 0, list_delim => ',' ); is( $d->dump("foo", "bar"), '"foo","bar"', "list_delim" ); } { local $d = Devel::PartialDump->new( pairs => 1, pair_delim => '=>' ); is( $d->dump("foo" => "bar"), 'foo=>"bar"', "pair_delim" ); } done_testing; Devel-PartialDump-0.17/t/exports.t000644 000767 000024 00000001171 12246447373 017344 0ustar00etherstaff000000 000000 use strict; use warnings FATAL => 'all'; use Test::More; use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; use Test::Warn; # for 'carped' { package Foo; use ok 'Devel::PartialDump' => qw(warn show carp dump); sub w { warn ["foo"] } sub c { carp ["foo"] } sub d { dump ["foo"] } sub s { show ["foo"] } } can_ok( Foo => qw(warn show carp dump) ); warning_like { Foo::w } qr/foo/, 'warn'; warning_like { Foo::c } { carped => qr/foo/ }, 'carp'; warning_is { like( Foo::d, qr/foo/, "dump" ) } [], "dump doesn't warn"; warning_like { is_deeply( Foo::s, ["foo"], "show" ) } qr/foo/, "show warns"; done_testing; Devel-PartialDump-0.17/t/objects.t000644 000767 000024 00000003155 12246447373 017275 0ustar00etherstaff000000 000000 use strict; use warnings; use Test::More; package My::Object::Hash; { use overload '""' => \&stringify; sub new { my $class = shift; bless { value => $_[0] }, $class; } sub stringify { $_[0]->{value} } } package My::Object::Array; { use overload '""' => \&stringify; sub new { my $class = shift; bless [$_[0]], $class; } sub stringify { $_[0]->[0] } } package My::Object::Scalar; { use overload '""' => \&stringify; sub new { my $class = shift; my $arg = shift; bless \$arg, $class; } sub stringify { ${$_[0]} } } package main; use ok 'Devel::PartialDump'; my $hash = My::Object::Hash->new('foo'); my $array = My::Object::Array->new('foo'); my $scalar = My::Object::Scalar->new('foo'); subtest 'dump' => sub { my $d = Devel::PartialDump->new( objects => 1, stringify => 0 ); is( $d->dump($hash), 'My::Object::Hash={ value: "foo" }' ); is( $d->dump($array), 'My::Object::Array=[ "foo" ]' ); is( $d->dump($scalar), 'My::Object::Scalar=\"foo"' ); }; subtest 'string value' => sub { my $d = Devel::PartialDump->new( objects => 0, stringify => 0 ); like( $d->dump($hash), qr/^My::Object::Hash=HASH\(0x[a-z0-9]+\)$/ ); like( $d->dump($array), qr/^My::Object::Array=ARRAY\(0x[a-z0-9]+\)$/ ); like( $d->dump($scalar), qr/^My::Object::Scalar=SCALAR\(0x[a-z0-9]+\)$/ ); }; subtest 'string overload' => sub { my $d = Devel::PartialDump->new( objects => 0, stringify => 1 ); is( $d->dump($hash), 'foo' ); is( $d->dump($array), 'foo' ); is( $d->dump($scalar), 'foo' ); }; done_testing; Devel-PartialDump-0.17/lib/Devel/000755 000767 000024 00000000000 12246447373 017015 5ustar00etherstaff000000 000000 Devel-PartialDump-0.17/lib/Devel/PartialDump.pm000644 000767 000024 00000032346 12246447373 021605 0ustar00etherstaff000000 000000 use strict; use warnings; package Devel::PartialDump; { $Devel::PartialDump::VERSION = '0.17'; } # git description: v0.16-10-g3303cfd BEGIN { $Devel::PartialDump::AUTHORITY = 'cpan:NUFFIN'; } # ABSTRACT: Partial dumping of data structures, optimized for argument printing. use Carp (); use Scalar::Util qw(looks_like_number reftype blessed); use namespace::clean; use Class::Tiny { max_length => undef, max_elements => 6, max_depth => 2, stringify => 0, pairs => 1, objects => 1, list_delim => ", ", pair_delim => ": ", }; use Sub::Exporter -setup => { exports => [qw(dump warn show show_scalar croak carp confess cluck $default_dumper)], groups => { easy => [qw(dump warn show show_scalar carp croak)], carp => [qw(croak carp)], }, collectors => { override_carp => sub { no warnings 'redefine'; require Carp::Heavy; *Carp::caller_info = \&replacement_caller_info; }, }, }; # a replacement for Carp::caller_info sub replacement_caller_info { my $i = shift(@_) + 1; package DB; { $DB::VERSION = '0.17'; } # git description: v0.16-10-g3303cfd BEGIN { $DB::AUTHORITY = 'cpan:NUFFIN'; } my %call_info; @call_info{ qw(pack file line sub has_args wantarray evaltext is_require) } = caller($i); return unless (defined $call_info{pack}); my $sub_name = Carp::get_subname(\%call_info); if ($call_info{has_args}) { $sub_name .= '(' . Devel::PartialDump::dump(@DB::args) . ')'; } $call_info{sub_name} = $sub_name; return wantarray() ? %call_info : \%call_info; } sub warn_str { my ( @args ) = @_; my $self; if ( blessed($args[0]) and $args[0]->isa(__PACKAGE__) ) { $self = shift @args; } else { $self = our $default_dumper; } return $self->_join( map { !ref($_) && defined($_) ? $_ : $self->dump($_) } @args ); } sub warn { Carp::carp(warn_str(@_)); } foreach my $f ( qw(carp croak confess cluck) ) { no warnings 'redefine'; eval "sub $f { local \$Carp::CarpLevel = \$Carp::CarpLevel + 1; Carp::$f(warn_str(\@_)); }"; } sub show { my ( @args ) = @_; my $self; if ( blessed($args[0]) and $args[0]->isa(__PACKAGE__) ) { $self = shift @args; } else { $self = our $default_dumper; } $self->warn(@args); return ( @args == 1 ? $args[0] : @args ); } sub show_scalar ($) { goto \&show } sub _join { my ( $self, @strings ) = @_; my $ret = ""; if ( @strings ) { my $sep = $, || $" || " "; my $re = qr/(?: \s| \Q$sep\E )$/x; my $last = pop @strings; foreach my $string ( @strings ) { $ret .= $string; $ret .= $sep unless $string =~ $re; } $ret .= $last; } return $ret; } sub dump { my ( @args ) = @_; my $self; if ( blessed($args[0]) and $args[0]->isa(__PACKAGE__) ) { $self = shift @args; } else { $self = our $default_dumper; } my $method = "dump_as_" . ( $self->should_dump_as_pairs(@args) ? "pairs" : "list" ); my $dump = $self->$method(1, @args); if ( defined $self->max_length and length($dump) > $self->max_length ) { my $max_length = $self->max_length - 3; $max_length = 0 if $max_length < 0; substr( $dump, $max_length, length($dump) - $max_length ) = '...'; } if ( not defined wantarray ) { CORE::warn "$dump\n"; } else { return $dump; } } sub should_dump_as_pairs { my ( $self, @what ) = @_; return unless $self->pairs; return if @what % 2 != 0; # must be an even list for ( my $i = 0; $i < @what; $i += 2 ) { return if ref $what[$i]; # plain strings are keys } return 1; } sub dump_as_pairs { my ( $self, $depth, @what ) = @_; my $truncated; if ( defined $self->max_elements and ( @what / 2 ) > $self->max_elements ) { $truncated = 1; @what = splice(@what, 0, $self->max_elements * 2 ); } return join( $self->list_delim, $self->_dump_as_pairs($depth, @what), ($truncated ? "..." : ()) ); } sub _dump_as_pairs { my ( $self, $depth, @what ) = @_; return unless @what; my ( $key, $value, @rest ) = @what; return ( ( $self->format_key($depth, $key) . $self->pair_delim . $self->format($depth, $value) ), $self->_dump_as_pairs($depth, @rest), ); } sub dump_as_list { my ( $self, $depth, @what ) = @_; my $truncated; if ( defined $self->max_elements and @what > $self->max_elements ) { $truncated = 1; @what = splice(@what, 0, $self->max_elements ); } return join( $self->list_delim, ( map { $self->format($depth, $_) } @what ), ($truncated ? "..." : ()) ); } sub format { my ( $self, $depth, $value ) = @_; defined($value) ? ( ref($value) ? ( blessed($value) ? $self->format_object($depth, $value) : $self->format_ref($depth, $value) ) : ( looks_like_number($value) ? $self->format_number($depth, $value) : $self->format_string($depth, $value) ) ) : $self->format_undef($depth, $value), } sub format_key { my ( $self, $depth, $key ) = @_; return $key; } sub format_ref { my ( $self, $depth, $ref ) = @_; if ( $depth > $self->max_depth ) { return overload::StrVal($ref); } else { my $reftype = reftype($ref); $reftype = 'SCALAR' if $reftype eq 'REF' || $reftype eq 'LVALUE'; my $method = "format_" . lc $reftype; if ( $self->can($method) ) { return $self->$method( $depth, $ref ); } else { return overload::StrVal($ref); } } } sub format_array { my ( $self, $depth, $array ) = @_; my $class = blessed($array) || ''; $class .= "=" if $class; return $class . "[ " . $self->dump_as_list($depth + 1, @$array) . " ]"; } sub format_hash { my ( $self, $depth, $hash ) = @_; my $class = blessed($hash) || ''; $class .= "=" if $class; return $class . "{ " . $self->dump_as_pairs($depth + 1, map { $_ => $hash->{$_} } sort keys %$hash) . " }"; } sub format_scalar { my ( $self, $depth, $scalar ) = @_; my $class = blessed($scalar) || ''; $class .= "=" if $class; return $class . "\\" . $self->format($depth + 1, $$scalar); } sub format_object { my ( $self, $depth, $object ) = @_; if ( $self->objects ) { return $self->format_ref($depth, $object); } else { return $self->stringify ? "$object" : overload::StrVal($object); } } sub format_string { my ( $self, $depth, $str ) =@_; # FIXME use String::Escape ? # remove vertical whitespace $str =~ s/\n/\\n/g; $str =~ s/\r/\\r/g; # reformat nonprintables $str =~ s/(\P{IsPrint})/"\\x{" . sprintf("%x", ord($1)) . "}"/ge; $self->quote($str); } sub quote { my ( $self, $str ) = @_; qq{"$str"}; } sub format_undef { "undef" } sub format_number { my ( $self, $depth, $value ) = @_; return "$value"; } our $default_dumper = __PACKAGE__->new; 1; __END__ =pod =encoding UTF-8 =for :stopwords יובל קוג'מן (Yuval Kogman) David Steven Lee Golden Florian Ragwitz Jesse Luehrs Karen Etheridge Leo Lapworth autodetect Ingy =head1 NAME Devel::PartialDump - Partial dumping of data structures, optimized for argument printing. =head1 VERSION version 0.17 =head1 SYNOPSIS use Devel::PartialDump; sub foo { print "foo called with args: " . Devel::PartialDump->new->dump(@_); } use Devel::PartialDump qw(warn); # warn is overloaded to create a concise dump instead of stringifying $some_bad_data warn "this made a boo boo: ", $some_bad_data =head1 DESCRIPTION This module is a data dumper optimized for logging of arbitrary parameters. It attempts to truncate overly verbose data, in a way that is hopefully more useful for diagnostics warnings than warn Dumper(@stuff); Unlike other data dumping modules there are no attempts at correctness or cross referencing, this is only meant to provide a slightly deeper look into the data in question. There is a default recursion limit, and a default truncation of long lists, and the dump is formatted on one line (new lines in strings are escaped), to aid in readability. You can enable it temporarily by importing functions like C, C etc to get more informative errors during development, or even use it as: BEGIN { local $@; eval "use Devel::PartialDump qw(...)" } to get DWIM formatting only if it's installed, without introducing a dependency. =head1 SAMPLE OUTPUT =over 4 =item C<< "foo" >> "foo" =item C<< "foo" => "bar" >> foo: "bar" =item C<< foo => "bar", gorch => [ 1, "bah" ] >> foo: "bar", gorch: [ 1, "bah" ] =item C<< [ { foo => ["bar"] } ] >> [ { foo: ARRAY(0x9b265d0) } ] =item C<< [ 1 .. 10 ] >> [ 1, 2, 3, 4, 5, 6, ... ] =item C<< "foo\nbar" >> "foo\nbar" =item C<< "foo" . chr(1) >> "foo\x{1}" =back =head1 ATTRIBUTES =over 4 =item max_length The maximum character length of the dump. Anything bigger than this will be truncated. Not defined by default. =item max_elements The maximum number of elements (array elements or pairs in a hash) to print. Defaults to 6. =item max_depth The maximum level of recursion. Defaults to 2. =item stringify Whether or not to let objects stringify themselves, instead of using L to avoid side effects. Defaults to false (no overloading). =item pairs Whether or not to autodetect named args as pairs in the main C function. If this attribute is true, and the top level value list is even sized, and every odd element is not a reference, then it will dumped as pairs instead of a list. =back =head1 EXPORTS All exports are optional, nothing is exported by default. This module uses L, so exports can be renamed, curried, etc. =over 4 =item warn =item show =item show_scalar =item croak =item carp =item confess =item cluck =item dump See the various methods for behavior documentation. These methods will use C<$Devel::PartialDump::default_dumper> as the invocant if the first argument is not blessed and C L, so they can be used as functions too. Particularly C can be used as a drop in replacement for the built in warn: warn "blah blah: ", $some_data; by importing use Devel::PartialDump qw(warn); C<$some_data> will be have some of it's data dumped. =item $default_dumper The default dumper object to use for export style calls. Can be assigned to to alter behavior globally. This is generally useful when using the C export as a drop in replacement for C. =back =head1 METHODS =over 4 =item warn @blah A wrapper for C that prints strings plainly. =item show @blah =item show_scalar $x Like C, but instead of returning the value from C it returns its arguments, so it can be used in the middle of an expression. Note that my $x = show foo(); will actually evaluate C in list context, so if you only want to dump a single element and retain scalar context use my $x = show_scalar foo(); which has a prototype of C<$> (as opposed to taking a list). This is similar to the venerable Ingy's fabulous and amazing L module. =item carp =item croak =item confess =item cluck Drop in replacements for L exports, that format their arguments like C. =item dump @stuff Returns a one line, human readable, concise dump of @stuff. If called in void context, will C with the dump. Truncates the dump according to C if specified. =item dump_as_list $depth, @stuff =item dump_as_pairs $depth, @stuff Dump C<@stuff> using the various formatting functions. Dump as pairs returns comma delimited pairs with C<< => >> between the key and the value. Dump as list returns a comma delimited dump of the values. =item format $depth, $value =item format_key $depth, $key =item format_object $depth, $object =item format_ref $depth, $Ref =item format_array $depth, $array_ref =item format_hash $depth, $hash_ref =item format_undef $depth, undef =item format_string $depth, $string =item format_number $depth, $number =item quote $string The various formatting methods. You can override these to provide a custom format. C and C recurse with C<$depth + 1> into C and C respectively. C delegates to C and C and does the C tracking. It will simply stringify the ref if the recursion limit has been reached. =back =head1 AUTHOR יובל קוג'מן (Yuval Kogman) =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2008 by יובל קוג'מן (Yuval Kogman). This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =head1 CONTRIBUTORS =over 4 =item * David Golden =item * Florian Ragwitz =item * Jesse Luehrs =item * Karen Etheridge =item * Leo Lapworth =item * Steven Lee =back =cut