File-ShareDir-Dist-0.07/000755 000766 000024 00000000000 13341774003 015356 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/author.yml000644 000766 000024 00000000704 13341774003 017404 0ustar00ollisgstaff000000 000000 --- pod_spelling_system: skip: 0 # list of words that are spelled correctly # (regardless of what spell check thinks) # or stuff that I like to spell incorrectly # intentionally stopwords: - Champoux - Yanick - yanick - EUMM pod_coverage: skip: 0 # format is "Class#method" or "Class",regex allowed # for either Class or method. private: - App::Prove::Plugin::ShareDirDist - App::Yath::Plugin::ShareDirDist File-ShareDir-Dist-0.07/INSTALL000644 000766 000024 00000003567 13341774003 016422 0ustar00ollisgstaff000000 000000 This is the Perl distribution File-ShareDir-Dist. Installing File-ShareDir-Dist is straightforward. ## Installation with cpanm If you have cpanm, you only need one line: % cpanm File::ShareDir::Dist If it does not have permission to install modules to the current perl, cpanm will automatically set up and install to a local::lib in your home directory. See the local::lib documentation (https://metacpan.org/pod/local::lib) for details on enabling it in your environment. ## Installing with the CPAN shell Alternatively, if your CPAN shell is set up, you should just be able to do: % cpan File::ShareDir::Dist ## Manual installation As a last resort, you can manually install it. Download the tarball, untar it, install configure prerequisites (see below), then build it: % perl Makefile.PL % make && make test Then install it: % make install On Windows platforms, you should use `dmake` or `nmake`, instead of `make`. If your perl is system-managed, you can create a local::lib in your home directory to install modules to. For details, see the local::lib documentation: https://metacpan.org/pod/local::lib The prerequisites of this distribution will also have to be installed manually. The prerequisites are listed in one of the files: `MYMETA.yml` or `MYMETA.json` generated by running the manual build process described above. ## Configure Prerequisites This distribution requires other modules to be installed before this distribution's installer can be run. They can be found under the "configure_requires" key of META.yml or the "{prereqs}{configure}{requires}" key of META.json. ## Documentation File-ShareDir-Dist documentation is available as POD. You can run `perldoc` from a shell to read the documentation: % perldoc File::ShareDir::Dist For more information on installing Perl modules via CPAN, please see: https://www.cpan.org/modules/INSTALL.html File-ShareDir-Dist-0.07/LICENSE000644 000766 000024 00000043674 13341774003 016401 0ustar00ollisgstaff000000 000000 This software is copyright (c) 2017,2018 by Graham Ollis. 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) 2017,2018 by Graham Ollis. 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) 2017,2018 by Graham Ollis. 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 File-ShareDir-Dist-0.07/Changes000644 000766 000024 00000001523 13341774003 016652 0ustar00ollisgstaff000000 000000 Revision history for File-ShareDir-Dist 0.07 2018-08-30 09:58:24 -0400 - Add File::ShareDir::Dist::Install - Add dist_config function to File::ShareDir::Dist 0.06 2018-07-08 04:20:50 -0400 - App::Yath::Plugin::ShareDirDist inherits from App::Yath::Plugin if installed. (the only way the plugin is useful is if it is installed, but Test2::Harness shouldn't be a dependency for this module). 0.05 2017-09-15 14:11:08 -0400 - Add App::Yath::Plugin::ShareDirDist 0.04 2017-07-27 13:01:18 -0400 - Fix bug where File::Spec wasn't use'd 0.03 2017-07-26 07:40:10 -0400 - First CPAN release - Add support for environment variable PERL_FILE_SHAREDIR_DIST 0.02 2017-07-25 17:06:44 -0400 - Add prove plugin: App::Prove::Plugin::ShareDirDist 0.01 2017-07-25 16:20:35 -0400 - initial version File-ShareDir-Dist-0.07/corpus/000755 000766 000024 00000000000 13341774003 016671 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/MANIFEST000644 000766 000024 00000002103 13341774003 016503 0ustar00ollisgstaff000000 000000 # This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.012. Changes INSTALL LICENSE MANIFEST META.json META.yml Makefile.PL README author.yml corpus/dev1/lib/Foo/Bar/Baz.pm corpus/dev2/lib/Foo/Bar/Baz.pm corpus/dev2/share/word.txt corpus/lib2/auto/share/dist/Foo-Bar-Baz/word.txt corpus/lib3/Foo/Bar/Baz.pm corpus/lib3/auto/share/dist/Foo-Bar-Baz/word.txt corpus/plugin/Foo-Bar-Baz/share/word.txt corpus/share1/word.txt corpus/withconfig/Foo/Bar/Baz.pm corpus/withconfig/auto/share/dist/Foo-Bar-Baz/config.pl corpus/withconfig/auto/share/dist/Foo-Bar-Baz/word.txt dist.ini lib/App/Prove/Plugin/ShareDirDist.pm lib/App/Yath/Plugin/ShareDirDist.pm lib/File/ShareDir/Dist.pm lib/File/ShareDir/Dist/Install.pm t/00_diag.t t/01_use.t t/app_prove_plugin_sharedirdist.t t/app_yath_plugin_sharedirdist.t t/file_sharedir_dist.t t/file_sharedir_dist_install.t xt/author/eol.t xt/author/no_tabs.t xt/author/pod.t xt/author/pod_coverage.t xt/author/pod_spelling_common.t xt/author/pod_spelling_system.t xt/author/strict.t xt/author/version.t xt/release/changes.t xt/release/fixme.t File-ShareDir-Dist-0.07/t/000755 000766 000024 00000000000 13341774003 015621 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/xt/000755 000766 000024 00000000000 13341774003 016011 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/README000644 000766 000024 00000012155 13341774003 016242 0ustar00ollisgstaff000000 000000 NAME File::ShareDir::Dist - Locate per-dist shared files VERSION version 0.07 SYNOPSIS use File::ShareDir::Dist qw( dist_share ); my $dir = dist_share 'Foo-Bar-Baz'; DESCRIPTION File::ShareDir::Dist finds share directories for distributions. It is similar to File::ShareDir with a few differences: Only supports distribution directories. It doesn't support perl modules or perl class directories. I have never really needed anything other than a per-dist share directory. Doesn't compute filenames. Doesn't compute files in the share directory for you. This is what File::Spec or Path::Tiny are for. Doesn't support old style shares. For some reason there are two types. I have never seen or needed the older type. Hopefully doesn't find the wrong directory. It doesn't blindly go finding the first share directory in @INC that matches the dist name. It actually checks to see that it matches the .pm file that goes along with it. That does mean that you need to have a .pm that corresponds to your dist name. This is not always the case for some older historical distributions, but it has been the recommended convention for quite some time. No non-core dependencies. File::ShareDir only has Class::Inspector, but since we are only doing per-dist share directories we don't even need that. The goal of this project is to have no non-core dependencies for the two most recent production versions of Perl. As of this writing that means Perl 5.26 and 5.24. In the future, we may add dependencies on modules that are not part of the Perl core on older Perls. Works in your development tree. Uses the heuristic, for determining if you are in a development tree, and if so, uses the common convention to find the directory named share. If you are using a relative path in @INC, if the directory share is a sibling of that relative entry in @INC and if the last element in that relative path is lib. Example, if you have the directory structure: lib/Foo/Bar/Baz.pm share/data and you invoke perl with % perl -Ilib -MFoo::Bar::Baz -MFile::ShareDir::Dist=dist_share -E 'say dist_share("Foo-Bar-Baz")' dist_share will return the (absolute) path to ./share/data. If you invoked it with: % export PERL5LIB `pwd`/lib perl -MFoo::Bar::Baz -MFile::ShareDir::Dist=dist_share -E 'say dist_share("Foo-Bar-Baz")' it would not. For me this covers most of my needs when developing a Perl module with a share directory. prove foils this heuristic by making @INC absolute paths. To get around that you can use App::Prove::Plugin::ShareDirDist. Built in override. The hash %File::ShareDir::Dist::over can be used to override what dist_share returns. You can also override behavior on the command line using a dash followed by a key value pair joined by the equal sign. In other words: % perl -MFile::ShareDir::Dist=-Foo-Bar-Baz=./share -E 'say File::ShareDir::Dist::dist_share("Foo-Bar-Baz")' /.../share If neither of those work then you can set PERL_FILE_SHAREDIR_DIST to a dist name, directory pair % env PERL_FILE_SHAREDIR_DIST=Foo-Bar-Baz=`pwd`/share perl -MFile::ShareDir::Dist -E 'say File::ShareDir::Dist::dist_share("Foo-Bar-Baz")' For File::ShareDir you have to either mock the dist_dir function or install File::ShareDir::Override. For testing you can use Test::File::ShareDir. I have never understood why such a simple concept needs three modules to do all of this. FUNCTIONS Functions must be explicitly exported. They are not exported by default. dist_share my $dir = dist_share $dist_name; my $dir = dist_share $module_name; Returns the absolute path to the share directory of the given distribution. As a convenience you can also use the "main" module name associated with the distribution. That means if you want the share directory for the dist Foo-Bar-Baz you may use either Foo-Bar-Baz or Foo::Bar::Baz to find it. Returns nothing if no share directory could be found. dist_config [version 0.07] my $config = dist_config $dist_name; Returns the config at runtime as created by File::ShareDir::Dist::Install and install time. ENVIRONMENT PERL_FILE_SHAREDIR_DIST Can be used to set a single dist directory override. CAVEATS All the stuff that is in File::ShareDir but not in this module could be considered either caveats or features depending on your perspective I suppose. SEE ALSO File::ShareDir::Dist::Install App::Prove::Plugin::ShareDirDist App::Yath::Plugin::ShareDirDist AUTHOR Author: Graham Ollis Contributors: Yanick Champoux (yanick) COPYRIGHT AND LICENSE This software is copyright (c) 2017,2018 by Graham Ollis. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. File-ShareDir-Dist-0.07/META.yml000644 000766 000024 00000001641 13341774003 016631 0ustar00ollisgstaff000000 000000 --- abstract: 'Locate per-dist shared files' author: - 'Graham Ollis ' build_requires: Test::More: '0.88' perl: '5.008001' configure_requires: ExtUtils::MakeMaker: '0' perl: '5.008001' dynamic_config: 0 generated_by: 'Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: File-ShareDir-Dist no_index: directory: - corpus requires: File::Copy: '0' perl: '5.008001' resources: bugtracker: https://github.com/plicease/File-ShareDir-Dist/issues homepage: https://metacpan.org/pod/File::ShareDir::Dist repository: git://github.com/plicease/File-ShareDir-Dist.git version: '0.07' x_contributors: - 'Graham Ollis ' - 'Yanick Champoux (yanick)' x_generated_by_perl: v5.29.2 x_serialization_backend: 'YAML::Tiny version 1.73' x_use_unsafe_inc: 0 File-ShareDir-Dist-0.07/lib/000755 000766 000024 00000000000 13341774003 016124 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/Makefile.PL000644 000766 000024 00000003170 13341774003 017331 0ustar00ollisgstaff000000 000000 use strict; use warnings; BEGIN { unless(eval q{ use 5.008001; 1}) { print "Perl 5.008001 or better required\n"; exit; } } # This file was automatically generated by Dist::Zilla::Plugin::Author::Plicease::MakeMaker v2.26. use strict; use warnings; use 5.008001; use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( "ABSTRACT" => "Locate per-dist shared files", "AUTHOR" => "Graham Ollis ", "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => 0 }, "DISTNAME" => "File-ShareDir-Dist", "LICENSE" => "perl", "MIN_PERL_VERSION" => "5.008001", "NAME" => "File::ShareDir::Dist", "PM" => { "lib/App/Prove/Plugin/ShareDirDist.pm" => "\$(INST_LIB)/App/Prove/Plugin/ShareDirDist.pm", "lib/App/Yath/Plugin/ShareDirDist.pm" => "\$(INST_LIB)/App/Yath/Plugin/ShareDirDist.pm", "lib/File/ShareDir/Dist.pm" => "\$(INST_LIB)/File/ShareDir/Dist.pm", "lib/File/ShareDir/Dist/Install.pm" => "\$(INST_LIB)/File/ShareDir/Dist/Install.pm" }, "PREREQ_PM" => { "File::Copy" => 0 }, "TEST_REQUIRES" => { "Test::More" => "0.88" }, "VERSION" => "0.07", "test" => { "TESTS" => "t/*.t" } ); my %FallbackPrereqs = ( "File::Copy" => 0, "Test::More" => "0.88" ); 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);File-ShareDir-Dist-0.07/META.json000644 000766 000024 00000004030 13341774003 016774 0ustar00ollisgstaff000000 000000 { "abstract" : "Locate per-dist shared files", "author" : [ "Graham Ollis " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "File-ShareDir-Dist", "no_index" : { "directory" : [ "corpus" ] }, "prereqs" : { "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0", "perl" : "5.008001" } }, "develop" : { "requires" : { "FindBin" : "0", "Test::CPAN::Changes" : "0", "Test::EOL" : "0", "Test::Fixme" : "0.07", "Test::More" : "0.94", "Test::NoTabs" : "0", "Test::Pod" : "0", "Test::Pod::Coverage" : "0", "Test::Pod::Spelling::CommonMistakes" : "0", "Test::Spelling" : "0", "Test::Strict" : "0", "YAML" : "0" } }, "runtime" : { "requires" : { "File::Copy" : "0", "perl" : "5.008001" } }, "test" : { "requires" : { "Test::More" : "0.88", "perl" : "5.008001" } } }, "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "https://github.com/plicease/File-ShareDir-Dist/issues" }, "homepage" : "https://metacpan.org/pod/File::ShareDir::Dist", "repository" : { "type" : "git", "url" : "git://github.com/plicease/File-ShareDir-Dist.git", "web" : "https://github.com/plicease/File-ShareDir-Dist" } }, "version" : "0.07", "x_contributors" : [ "Graham Ollis ", "Yanick Champoux (yanick)" ], "x_generated_by_perl" : "v5.29.2", "x_serialization_backend" : "Cpanel::JSON::XS version 4.05", "x_use_unsafe_inc" : 0 } File-ShareDir-Dist-0.07/dist.ini000644 000766 000024 00000001422 13341774003 017021 0ustar00ollisgstaff000000 000000 name = File-ShareDir-Dist author = Graham Ollis license = Perl_5 copyright_holder = Graham Ollis copyright_year = 2017,2018 version = 0.07 [@Author::Plicease] :version = 2.20 travis_status = 1 release_tests = 1 installer = Author::Plicease::MakeMaker [RemovePrereqs] remove = strict remove = warnings remove = base remove = overload remove = Exporter remove = File::Spec remove = File::Basename remove = Carp remove = Cwd remove = File::Temp remove = File::Path remove = Data::Dumper remove = File::Find remove = App::Yath::Plugin [Author::Plicease::Upload] cpan = 1 [MetaNoIndex] directory = corpus [Author::Plicease::Thanks] current = Graham Ollis contributor = Yanick Champoux (yanick) File-ShareDir-Dist-0.07/lib/App/000755 000766 000024 00000000000 13341774003 016644 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/lib/File/000755 000766 000024 00000000000 13341774003 017003 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/lib/File/ShareDir/000755 000766 000024 00000000000 13341774003 020504 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/lib/File/ShareDir/Dist/000755 000766 000024 00000000000 13341774003 021407 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/lib/File/ShareDir/Dist.pm000644 000766 000024 00000016136 13341774003 021754 0ustar00ollisgstaff000000 000000 package File::ShareDir::Dist; use strict; use warnings; use 5.008001; use base qw( Exporter ); use File::Spec; our @EXPORT_OK = qw( dist_share dist_config ); # ABSTRACT: Locate per-dist shared files our $VERSION = '0.07'; # VERSION # TODO: Works with PAR our %over; sub dist_share ($) { my($dist_name) = @_; $dist_name =~ s/::/-/g; local $over{$1} = $2 if defined $ENV{PERL_FILE_SHAREDIR_DIST} && $ENV{PERL_FILE_SHAREDIR_DIST} =~ /^(.*?)=(.*)$/; return File::Spec->rel2abs($over{$dist_name}) if $over{$dist_name}; my @pm = split /-/, $dist_name; $pm[-1] .= ".pm"; foreach my $inc (@INC) { my $pm = File::Spec->catfile( $inc, @pm ); if(-f $pm) { my $share = File::Spec->catdir( $inc, qw( auto share dist ), $dist_name ); if(-d $share) { return File::Spec->rel2abs($share); } if(!File::Spec->file_name_is_absolute($inc)) { my($v,$dir) = File::Spec->splitpath( File::Spec->rel2abs($inc), 1 ); my @dirs = File::Spec->splitdir($dir); if(defined $dirs[-1] && $dirs[-1] eq 'lib') { pop @dirs; # pop off the 'lib'; # put humpty dumpty back together again my $share = File::Spec->catdir( File::Spec->catpath($v, File::Spec->catdir(@dirs), '', ), 'share', ); if(-d $share) { return $share; } } } last; } } return; } sub dist_config { my($dist_name) = @_; my $dir = dist_share $dist_name; return {} unless defined $dir && -d $dir; my $fn = File::Spec->catfile($dir, 'config.pl'); return {} unless -f $fn; my $fh; open($fh, '<', $fn) || die "unable to read $fn $!"; my $pl = do { local $/; <$fh> }; close $fh; my $config = eval $pl; die $@ if $@; $config; } sub import { my($class, @args) = @_; my @modify; foreach my $arg (@args) { if($arg =~ /^-(.*?)=(.*)$/) { $over{$1} = $2; } else { push @modify, $arg; } } @_ = ($class, @modify); goto \&Exporter::import; } 1; __END__ =pod =encoding UTF-8 =head1 NAME File::ShareDir::Dist - Locate per-dist shared files =head1 VERSION version 0.07 =head1 SYNOPSIS use File::ShareDir::Dist qw( dist_share ); my $dir = dist_share 'Foo-Bar-Baz'; =head1 DESCRIPTION L finds share directories for distributions. It is similar to L with a few differences: =over 4 =item Only supports distribution directories. It doesn't support perl modules or perl class directories. I have never really needed anything other than a per-dist share directory. =item Doesn't compute filenames. Doesn't compute files in the share directory for you. This is what L or L are for. =item Doesn't support old style shares. For some reason there are two types. I have never seen or needed the older type. =item Hopefully doesn't find the wrong directory. It doesn't blindly go finding the first share directory in @INC that matches the dist name. It actually checks to see that it matches the .pm file that goes along with it. That does mean that you need to have a .pm that corresponds to your dist name. This is not always the case for some older historical distributions, but it has been the recommended convention for quite some time. =item No non-core dependencies. L only has L, but since we are only doing per-dist share directories we don't even need that. The goal of this project is to have no non-core dependencies for the two most recent production versions of Perl. As of this writing that means Perl 5.26 and 5.24. In the future, we C add dependencies on modules that are not part of the Perl core on older Perls. =item Works in your development tree. Uses the heuristic, for determining if you are in a development tree, and if so, uses the common convention to find the directory named C. If you are using a relative path in C<@INC>, if the directory C is a sibling of that relative entry in C<@INC> and if the last element in that relative path is C. Example, if you have the directory structure: lib/Foo/Bar/Baz.pm share/data and you invoke perl with % perl -Ilib -MFoo::Bar::Baz -MFile::ShareDir::Dist=dist_share -E 'say dist_share("Foo-Bar-Baz")' C will return the (absolute) path to ./share/data. If you invoked it with: % export PERL5LIB `pwd`/lib perl -MFoo::Bar::Baz -MFile::ShareDir::Dist=dist_share -E 'say dist_share("Foo-Bar-Baz")' it would not. For me this covers most of my needs when developing a Perl module with a share directory. L foils this heuristic by making C<@INC> absolute paths. To get around that you can use L. =item Built in override. The hash C<%File::ShareDir::Dist::over> can be used to override what C returns. You can also override behavior on the command line using a dash followed by a key value pair joined by the equal sign. In other words: % perl -MFile::ShareDir::Dist=-Foo-Bar-Baz=./share -E 'say File::ShareDir::Dist::dist_share("Foo-Bar-Baz")' /.../share If neither of those work then you can set PERL_FILE_SHAREDIR_DIST to a dist name, directory pair % env PERL_FILE_SHAREDIR_DIST=Foo-Bar-Baz=`pwd`/share perl -MFile::ShareDir::Dist -E 'say File::ShareDir::Dist::dist_share("Foo-Bar-Baz")' For L you have to either mock the C function or install L. For testing you can use L. I have never understood why such a simple concept needs three modules to do all of this. =back =head1 FUNCTIONS Functions must be explicitly exported. They are not exported by default. =head2 dist_share my $dir = dist_share $dist_name; my $dir = dist_share $module_name; Returns the absolute path to the share directory of the given distribution. As a convenience you can also use the "main" module name associated with the distribution. That means if you want the share directory for the dist C you may use either C or C to find it. Returns nothing if no share directory could be found. =head2 dist_config [version 0.07] my $config = dist_config $dist_name; Returns the config at runtime as created by L and install time. =head1 ENVIRONMENT =over 4 =item PERL_FILE_SHAREDIR_DIST Can be used to set a single dist directory override. =back =head1 CAVEATS All the stuff that is in L but not in this module could be considered either caveats or features depending on your perspective I suppose. =head1 SEE ALSO =over =item L =item L =item L =back =head1 AUTHOR Author: Graham Ollis Eplicease@cpan.orgE Contributors: Yanick Champoux (yanick) =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2017,2018 by Graham Ollis. 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 File-ShareDir-Dist-0.07/lib/File/ShareDir/Dist/Install.pm000644 000766 000024 00000011553 13341774003 023360 0ustar00ollisgstaff000000 000000 package File::ShareDir::Dist::Install; use strict; use warnings; use 5.008001; use base qw( Exporter ); use Carp qw( croak ); use File::Spec; our @EXPORT = qw( install install_dir install_config_get install_config_set ); # ABSTRACT: Install per-dist shared files our $VERSION = '0.07'; # VERSION sub install_dir { my($dist_name) = @_; croak "Not a valid dist_name: undef" unless defined $dist_name; croak "Not a valid dist_name: $dist_name" unless $dist_name =~ /^[A-Za-z0-9_][A-Za-z0-9_-]*$/; "blib/lib/auto/share/dist/$dist_name"; } sub _mkpath { my($dist_name) = @_; require File::Path; File::Path::mkpath(install_dir($dist_name), { verbose => 0, mode => 0755 }); } sub install { my($source_dir, $dist_name) = @_; ($source_dir, $dist_name) = @ARGV unless defined $source_dir || defined $dist_name; croak "No such directory: undef" unless defined $source_dir; croak "No such directory: $source_dir" unless -d $source_dir; my $dest_dir = install_dir $dist_name; # Can I just say... # File::Find has a terrible terrible terrible interface. my @files = do { require Cwd; require File::Find; my $save = Cwd::getcwd(); chdir($source_dir) || die "unable to chdir $source_dir"; my @list; File::Find::find(sub { return unless -f $_; push @list, $File::Find::name; }, File::Spec->curdir); chdir $save; @list; }; require File::Basename; require File::Path; require File::Copy; foreach my $file (@files) { my $from = File::Spec->catfile($source_dir, $file); my $to = File::Spec->catfile($dest_dir, $file); my $dir = File::Basename::dirname($to); File::Path::mkpath($dir, { verbose => 0, mode => 0755 }); File::Copy::cp($from, $to) || die "Copy failed $from => $to: $!"; } } sub install_config_get { my($dist_name) = @_; my $fn = File::Spec->catfile(install_dir($dist_name), 'config.pl'); if(-e $fn) { my $fh; open($fh, '<', $fn) || die "error reading $fn $!"; my $pl = do { local $/; <$fh> }; close $fh; my $config = eval $pl; die $@ if $@; return $config; } else { return {}; } } sub install_config_set; sub install_config_set { my($dist_name, $one, $two) = @_; ($dist_name, $one, $two) = @ARGV unless defined $dist_name && defined $one; if(defined $two) { my($key, $value) = ($one, $two); my $config = install_config_get $dist_name; $config->{$key} = $value; return install_config_set $dist_name, $config; } else { my($config) = ($one); croak "config is not a hash!" unless ref $config eq 'HASH'; require Data::Dumper; my $dd = Data::Dumper ->new([$config],['x']) ->Indent(1) ->Terse(0) ->Purity(1) ->Sortkeys(1) ->Dump; my $fh; _mkpath($dist_name); my $fn = File::Spec->catfile(install_dir($dist_name), 'config.pl'); open($fh, '>', $fn) || die "error writing $fn $!"; print $fh 'do { my '; print $fh $dd; print $fh '$x;}'; close $fh; } } 1; __END__ =pod =encoding UTF-8 =head1 NAME File::ShareDir::Dist::Install - Install per-dist shared files =head1 VERSION version 0.07 =head1 SYNOPSIS use File::ShareDir::Dist; install_config_set 'Foo-Bar-Baz' => { key1 => 'value1'; key2 => 'value2'; }; =head1 DESCRIPTION This is L's install-time companion. Unlike L it does not integrate with EUMM out of the box, possibly a feature or a bug depending on your point of view. Provides a simple interface for getting and setting the dist configuration at install time. The dist config is just a C in the share directory that contains a hash that can be read at runtime. =head1 FUNCTIONS =head2 install_dir my $dir = install_dir $dist_name; Returns the directory for the share dir at install time. This will be of the form C. =head2 install install $source_dir, $dist_name; % perl -MFile::ShareDir::Dist= -e install $source_dir $dist_name Install the given source directory to the dist share dir C<$dist_name>. Can be called from Perl, or at the command-line as shown. =head2 install_config_get my $config = install_config_get $dist_name; Get the config for the dist. =head2 install_config_set install_config_set $dist_name, $config; install_config_set $dist_name, $key => $value; % perl -MFile::ShareDir::Dist= -e install_config_set $dist_name $key $value Set the config for the dist. Can be a hash, which REPLACES the existing config, a key/value pair which adds to the config. Can also be run at the command-line as shown. =head1 AUTHOR Author: Graham Ollis Eplicease@cpan.orgE Contributors: Yanick Champoux (yanick) =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2017,2018 by Graham Ollis. 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 File-ShareDir-Dist-0.07/lib/App/Prove/000755 000766 000024 00000000000 13341774003 017737 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/lib/App/Yath/000755 000766 000024 00000000000 13341774003 017551 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/lib/App/Yath/Plugin/000755 000766 000024 00000000000 13341774003 021007 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/lib/App/Yath/Plugin/ShareDirDist.pm000644 000766 000024 00000003037 13341774003 023675 0ustar00ollisgstaff000000 000000 package App::Yath::Plugin::ShareDirDist; use strict; use warnings; use File::Spec; use File::Basename (); # ABSTRACT: A prove plugin that works with File::ShareDir::Dist our $VERSION = '0.07'; # VERSION sub pre_init { if(-d "share") { my $dist_name = File::Basename::basename(File::Spec->rel2abs(".")); $ENV{PERL_FILE_SHAREDIR_DIST} = "$dist_name=share"; } } if(eval { require App::Yath::Plugin }) { our @ISA = ('App::Yath::Plugin'); } 1; __END__ =pod =encoding UTF-8 =head1 NAME App::Yath::Plugin::ShareDirDist - A prove plugin that works with File::ShareDir::Dist =head1 VERSION version 0.07 =head1 SYNOPSIS % yath -p ShareDirDist =head1 DESCRIPTION This plugin sets the override for L based on the current directory name, if there is a C directory. It assumes that the directory name is the same as the dist name. This may not be the case, but it happens to be the convention that I use. =head1 CAVEATS As of this writing, L and L are still B and can change at any time. Documentation is sparse. Obviously use this plugin at your own risk. =head1 SEE ALSO =over 4 =item L =item L =back =head1 AUTHOR Author: Graham Ollis Eplicease@cpan.orgE Contributors: Yanick Champoux (yanick) =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2017,2018 by Graham Ollis. 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 File-ShareDir-Dist-0.07/lib/App/Prove/Plugin/000755 000766 000024 00000000000 13341774003 021175 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/lib/App/Prove/Plugin/ShareDirDist.pm000644 000766 000024 00000002504 13341774003 024061 0ustar00ollisgstaff000000 000000 package App::Prove::Plugin::ShareDirDist; use strict; use warnings; use 5.008001; use File::Spec; use File::Basename (); # ABSTRACT: A prove plugin that works with File::ShareDir::Dist our $VERSION = '0.07'; # VERSION sub load { my($class, $p) = @_; if(-d "share") { my $dist_name = File::Basename::basename(File::Spec->rel2abs(".")); $ENV{PERL_FILE_SHAREDIR_DIST} = "$dist_name=share"; } } 1; __END__ =pod =encoding UTF-8 =head1 NAME App::Prove::Plugin::ShareDirDist - A prove plugin that works with File::ShareDir::Dist =head1 VERSION version 0.07 =head1 SYNOPSIS % prove -PShareDirDist -lv t =head1 DESCRIPTION This plugin sets the override for L based on the current directory name, if there is a C directory. It assumes that the directory name is the same as the dist name. This may not be the case, but it happens to be the convention that I use. =head1 SEE ALSO =over 4 =item L =item L =item L =back =head1 AUTHOR Author: Graham Ollis Eplicease@cpan.orgE Contributors: Yanick Champoux (yanick) =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2017,2018 by Graham Ollis. 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 File-ShareDir-Dist-0.07/xt/author/000755 000766 000024 00000000000 13341774003 017313 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/xt/release/000755 000766 000024 00000000000 13341774003 017431 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/xt/release/fixme.t000644 000766 000024 00000000620 13341774003 020724 0ustar00ollisgstaff000000 000000 use strict; use warnings; use Test::More; BEGIN { plan skip_all => 'test requires Test::Fixme' unless eval q{ use Test::Fixme 0.14; 1 }; }; use Test::Fixme 0.07; use FindBin; use File::Spec; chdir(File::Spec->catdir($FindBin::Bin, File::Spec->updir, File::Spec->updir)); run_tests( match => qr/FIXME/, where => [ grep { -e $_ } qw( bin lib t Makefile.PL Build.PL )], warn => 1, ); File-ShareDir-Dist-0.07/xt/release/changes.t000644 000766 000024 00000001115 13341774003 021224 0ustar00ollisgstaff000000 000000 use strict; use warnings; use Test::More; BEGIN { plan skip_all => 'test requires Test::CPAN::Changes' unless eval q{ use Test::CPAN::Changes; 1 }; }; use Test::CPAN::Changes; use FindBin; use File::Spec; chdir(File::Spec->catdir($FindBin::Bin, File::Spec->updir, File::Spec->updir)); do { my $old = \&Test::Builder::carp; my $new = sub { my($self, @messages) = @_; return if $messages[0] =~ /^Date ".*" is not in the recommend format/; $old->($self, @messages); }; no warnings 'redefine'; *Test::Builder::carp = $new; }; changes_file_ok; done_testing; File-ShareDir-Dist-0.07/xt/author/pod.t000644 000766 000024 00000000474 13341774003 020267 0ustar00ollisgstaff000000 000000 use strict; use warnings; use Test::More; BEGIN { plan skip_all => 'test requires Test::Pod' unless eval q{ use Test::Pod; 1 }; }; use Test::Pod; use FindBin; use File::Spec; chdir(File::Spec->catdir($FindBin::Bin, File::Spec->updir, File::Spec->updir)); all_pod_files_ok( grep { -e $_ } qw( bin lib )); File-ShareDir-Dist-0.07/xt/author/version.t000644 000766 000024 00000001475 13341774003 021174 0ustar00ollisgstaff000000 000000 use strict; use warnings; use Test::More; use FindBin (); BEGIN { plan skip_all => "test requires Test::Version 2.00" unless eval q{ use Test::Version 2.00 qw( version_all_ok ), { has_version => 1, filename_match => sub { $_[0] !~ m{/(ConfigData|Install/Files)\.pm$} }, }; 1 }; plan skip_all => 'test requires YAML' unless eval q{ use YAML; 1; }; } use YAML qw( LoadFile ); use FindBin; use File::Spec; my $config_filename = File::Spec->catfile( $FindBin::Bin, File::Spec->updir, File::Spec->updir, 'author.yml' ); my $config; $config = LoadFile($config_filename) if -r $config_filename; if($config->{version}->{dir}) { note "using dir " . $config->{version}->{dir} } version_all_ok($config->{version}->{dir} ? ($config->{version}->{dir}) : ()); done_testing; File-ShareDir-Dist-0.07/xt/author/eol.t000644 000766 000024 00000000512 13341774003 020255 0ustar00ollisgstaff000000 000000 use strict; use warnings; use Test::More; BEGIN { plan skip_all => 'test requires Test::EOL' unless eval q{ use Test::EOL; 1 }; }; use Test::EOL; use FindBin; use File::Spec; chdir(File::Spec->catdir($FindBin::Bin, File::Spec->updir, File::Spec->updir)); all_perl_files_ok(grep { -e $_ } qw( bin lib t Makefile.PL )); File-ShareDir-Dist-0.07/xt/author/pod_spelling_common.t000644 000766 000024 00000001352 13341774003 023530 0ustar00ollisgstaff000000 000000 use strict; use warnings; use Test::More; BEGIN { plan skip_all => 'test requires Test::Pod::Spelling::CommonMistakes' unless eval q{ use Test::Pod::Spelling::CommonMistakes; 1 }; plan skip_all => 'test requires YAML' unless eval q{ use YAML qw( LoadFile ); 1 }; }; use Test::Pod::Spelling::CommonMistakes; use FindBin; use File::Spec; my $config_filename = File::Spec->catfile( $FindBin::Bin, File::Spec->updir, File::Spec->updir, 'author.yml' ); my $config; $config = LoadFile($config_filename) if -r $config_filename; plan skip_all => 'disabled' if $config->{pod_spelling_common}->{skip}; chdir(File::Spec->catdir($FindBin::Bin, File::Spec->updir, File::Spec->updir)); # TODO: test files in bin too. all_pod_files_ok; File-ShareDir-Dist-0.07/xt/author/strict.t000644 000766 000024 00000001033 13341774003 021005 0ustar00ollisgstaff000000 000000 use strict; use warnings; use Test::More; BEGIN { plan skip_all => 'test requires Test::Strict' unless eval q{ use Test::Strict; 1 }; }; use Test::Strict; use FindBin; use File::Spec; chdir(File::Spec->catdir($FindBin::Bin, File::Spec->updir, File::Spec->updir)); unshift @Test::Strict::MODULES_ENABLING_STRICT, 'ozo', 'Test2::Bundle::SIPS', 'Test2::V0', 'Test2::Bundle::Extended'; note "enabling strict = $_" for @Test::Strict::MODULES_ENABLING_STRICT; all_perl_files_ok( grep { -e $_ } qw( bin lib t Makefile.PL )); File-ShareDir-Dist-0.07/xt/author/pod_coverage.t000644 000766 000024 00000003630 13341774003 022137 0ustar00ollisgstaff000000 000000 use strict; use warnings; use Test::More; BEGIN { plan skip_all => 'test requires 5.010 or better' unless $] >= 5.010; plan skip_all => 'test requires Test::Pod::Coverage' unless eval q{ use Test::Pod::Coverage; 1 }; plan skip_all => 'test requires YAML' unless eval q{ use YAML; 1; }; }; use Test::Pod::Coverage; use YAML qw( LoadFile ); use FindBin; use File::Spec; my $config_filename = File::Spec->catfile( $FindBin::Bin, File::Spec->updir, File::Spec->updir, 'author.yml' ); my $config; $config = LoadFile($config_filename) if -r $config_filename; plan skip_all => 'disabled' if $config->{pod_coverage}->{skip}; chdir(File::Spec->catdir($FindBin::Bin, File::Spec->updir, File::Spec->updir)); my @private_classes; my %private_methods; push @{ $config->{pod_coverage}->{private} }, 'Alien::.*::Install::Files#Inline'; foreach my $private (@{ $config->{pod_coverage}->{private} }) { my($class,$method) = split /#/, $private; if(defined $class && $class ne '') { my $regex = eval 'qr{^' . $class . '$}'; if(defined $method && $method ne '') { push @private_classes, { regex => $regex, method => $method }; } else { push @private_classes, { regex => $regex, all => 1 }; } } elsif(defined $method && $method ne '') { $private_methods{$_} = 1 for split /,/, $method; } } my @classes = all_modules; plan tests => scalar @classes; foreach my $class (@classes) { SKIP: { my($is_private_class) = map { 1 } grep { $class =~ $_->{regex} && $_->{all} } @private_classes; skip "private class: $class", 1 if $is_private_class; my %methods = map {; $_ => 1 } map { split /,/, $_->{method} } grep { $class =~ $_->{regex} } @private_classes; $methods{$_} = 1 for keys %private_methods; my $also_private = eval 'qr{^' . join('|', keys %methods ) . '$}'; pod_coverage_ok $class, { also_private => [$also_private] }; }; } File-ShareDir-Dist-0.07/xt/author/no_tabs.t000644 000766 000024 00000000524 13341774003 021126 0ustar00ollisgstaff000000 000000 use strict; use warnings; use Test::More; BEGIN { plan skip_all => 'test requires Test::NoTabs' unless eval q{ use Test::NoTabs; 1 }; }; use Test::NoTabs; use FindBin; use File::Spec; chdir(File::Spec->catdir($FindBin::Bin, File::Spec->updir, File::Spec->updir)); all_perl_files_ok( grep { -e $_ } qw( bin lib t Makefile.PL )); File-ShareDir-Dist-0.07/xt/author/pod_spelling_system.t000644 000766 000024 00000002372 13341774003 023567 0ustar00ollisgstaff000000 000000 use strict; use warnings; use Test::More; BEGIN { plan skip_all => 'test requires Test::Spelling' unless eval q{ use Test::Spelling; 1 }; plan skip_all => 'test requires YAML' unless eval q{ use YAML; 1; }; }; use Test::Spelling; use YAML qw( LoadFile ); use FindBin; use File::Spec; my $config_filename = File::Spec->catfile( $FindBin::Bin, File::Spec->updir, File::Spec->updir, 'author.yml' ); my $config; $config = LoadFile($config_filename) if -r $config_filename; plan skip_all => 'disabled' if $config->{pod_spelling_system}->{skip}; chdir(File::Spec->catdir($FindBin::Bin, File::Spec->updir, File::Spec->updir)); add_stopwords(@{ $config->{pod_spelling_system}->{stopwords} }); add_stopwords(qw( Plicease stdout stderr stdin subref loopback username os Ollis Mojolicious plicease CPAN reinstall TODO filename filenames login callback callbacks standalone VMS hostname hostnames TCP UDP IP API MSWin32 OpenBSD FreeBSD NetBSD unencrypted WebSocket WebSockets timestamp timestamps poney BackPAN portably RedHat AIX BSD XS FFI perlish optimizations subdirectory RESTful SQLite JavaScript dir plugins munge jQuery namespace PDF PDFs usernames DBI pluggable APIs SSL JSON YAML uncommented Solaris OpenVMS URI URL CGI )); all_pod_files_spelling_ok; File-ShareDir-Dist-0.07/t/file_sharedir_dist_install.t000644 000766 000024 00000007302 13341774003 023361 0ustar00ollisgstaff000000 000000 use strict; use warnings; use Test::More; use File::ShareDir::Dist::Install; use File::Temp qw( tempdir ); use Cwd qw( getcwd ); my $orig = getcwd; subtest 'install_dir' => sub { chdir tempdir( CLEANUP => 1 ); eval { install_dir }; like $@, qr/Not a valid dist_name: undef/; eval { install_dir 'Foo::Bar::Baz' }; like $@, qr/Not a valid dist_name: Foo::Bar::Baz/; my $dir = install_dir 'Foo-Bar-Baz'; ok $dir, 'returns a directory'; note "dir = $dir"; ok !-d $dir, 'directory not created'; }; subtest 'install_config_* (full config)' => sub { chdir tempdir( CLEANUP => 1 ); my $dir = install_dir 'Foo-Bar-Baz'; my $config = install_config_get 'Foo-Bar-Baz'; ok !-d $dir, 'directory created'; is_deeply($config, {}); install_config_set 'Foo-Bar-Baz' => { key1 => 'val1', key2 => 'val2' }; ok -d $dir, 'directory created'; $config = install_config_get 'Foo-Bar-Baz'; is_deeply $config, { key1 => 'val1', key2 => 'val2' }; install_config_set 'Foo-Bar-Baz' => { key3 => 'val3', key4 => 'val4' }; $config = install_config_get 'Foo-Bar-Baz'; is_deeply $config, { key3 => 'val3', key4 => 'val4' }; }; subtest 'install_config_* (key/value)' => sub { chdir tempdir( CLEANUP => 1 ); my $dir = install_dir 'Foo-Bar-Baz'; install_config_set 'Foo-Bar-Baz', key5 => 'val5'; ok -d $dir, 'directory created'; my $config = install_config_get 'Foo-Bar-Baz'; is_deeply $config, { 'key5' => 'val5' }; install_config_set 'Foo-Bar-Baz', key6 => 'val6'; $config = install_config_get 'Foo-Bar-Baz'; is_deeply $config, { 'key5' => 'val5', 'key6' => 'val6' }; }; subtest 'install_config_* (key/value) @ARGV' => sub { chdir tempdir( CLEANUP => 1 ); my $dir = install_dir 'Foo-Bar-Baz'; { local @ARGV = ('Foo-Bar-Baz', key5 => 'val5'); install_config_set; } ok -d $dir, 'directory created'; my $config = install_config_get 'Foo-Bar-Baz'; is_deeply $config, { 'key5' => 'val5' }; }; sub create_faux_share { mkdir 'share'; mkdir 'share/blarpho1'; my $fn = 'share/blarpho1.txt'; my $fh; open $fh, '>', $fn; print $fh "blarpho1\n"; close $fh; $fn = 'share/blarpho1/blarpho2.txt'; open $fh, '>', $fn; print $fh "blarpho2\n"; close $fh; } subtest 'install' => sub { chdir tempdir( CLEANUP => 1 ); eval { install }; like $@, qr/No such directory: undef/; eval { install 'missing' }; like $@, qr/No such directory: missing/; create_faux_share; eval { install 'share' }; like $@, qr/Not a valid dist_name: undef/; eval { install 'share', 'Foo::Bar::Baz' }; like $@, qr/Not a valid dist_name: Foo::Bar::Baz/; install 'share', 'Foo-Bar-Baz'; ok -f 'blib/lib/auto/share/dist/Foo-Bar-Baz/blarpho1.txt'; ok -f 'blib/lib/auto/share/dist/Foo-Bar-Baz/blarpho1/blarpho2.txt'; my $blarpho1 = do { open my $fh, '<', 'blib/lib/auto/share/dist/Foo-Bar-Baz/blarpho1.txt'; local $/; <$fh>; }; my $blarpho2 = do { open my $fh, '<', 'blib/lib/auto/share/dist/Foo-Bar-Baz/blarpho1/blarpho2.txt'; local $/; <$fh>; }; is $blarpho1, "blarpho1\n"; is $blarpho2, "blarpho2\n"; }; subtest 'install @ARGV' => sub { chdir tempdir( CLEANUP => 1 ); create_faux_share; { local @ARGV = ('share', 'Foo-Bar-Baz'); install; } ok -f 'blib/lib/auto/share/dist/Foo-Bar-Baz/blarpho1.txt'; ok -f 'blib/lib/auto/share/dist/Foo-Bar-Baz/blarpho1/blarpho2.txt'; my $blarpho1 = do { open my $fh, '<', 'blib/lib/auto/share/dist/Foo-Bar-Baz/blarpho1.txt'; local $/; <$fh>; }; my $blarpho2 = do { open my $fh, '<', 'blib/lib/auto/share/dist/Foo-Bar-Baz/blarpho1/blarpho2.txt'; local $/; <$fh>; }; is $blarpho1, "blarpho1\n"; is $blarpho2, "blarpho2\n"; }; chdir $orig; done_testing; File-ShareDir-Dist-0.07/t/app_prove_plugin_sharedirdist.t000644 000766 000024 00000000714 13341774003 024126 0ustar00ollisgstaff000000 000000 use strict; use warnings; use Test::More; use App::Prove::Plugin::ShareDirDist; use File::Spec; @INC = map { File::Spec->rel2abs($_) } @INC; delete $ENV{PERL_FILE_SHAREDIR_DIST}; chdir 'corpus/plugin/Foo-Bar-Baz'; App::Prove::Plugin::ShareDirDist->load; ok $ENV{PERL_FILE_SHAREDIR_DIST}, 'PERL_FILE_SHAREDIR_DIST is set'; note "PERL_FILE_SHAREDIR_DIST = $ENV{PERL_FILE_SHAREDIR_DIST}"; is $ENV{PERL_FILE_SHAREDIR_DIST},'Foo-Bar-Baz=share'; done_testing; File-ShareDir-Dist-0.07/t/00_diag.t000644 000766 000024 00000002274 13341774003 017216 0ustar00ollisgstaff000000 000000 use strict; use warnings; use Config; use Test::More tests => 1; # This .t file is generated. # make changes instead to dist.ini my %modules; my $post_diag; $modules{$_} = $_ for qw( ExtUtils::MakeMaker File::Copy Test::More ); my @modules = sort keys %modules; sub spacer () { diag ''; diag ''; diag ''; } pass 'okay'; my $max = 1; $max = $_ > $max ? $_ : $max for map { length $_ } @modules; our $format = "%-${max}s %s"; spacer; my @keys = sort grep /(MOJO|PERL|\A(LC|HARNESS)_|\A(SHELL|LANG)\Z)/i, keys %ENV; if(@keys > 0) { diag "$_=$ENV{$_}" for @keys; if($ENV{PERL5LIB}) { spacer; diag "PERL5LIB path"; diag $_ for split $Config{path_sep}, $ENV{PERL5LIB}; } elsif($ENV{PERLLIB}) { spacer; diag "PERLLIB path"; diag $_ for split $Config{path_sep}, $ENV{PERLLIB}; } spacer; } diag sprintf $format, 'perl ', $]; foreach my $module (@modules) { if(eval qq{ require $module; 1 }) { my $ver = eval qq{ \$$module\::VERSION }; $ver = 'undef' unless defined $ver; diag sprintf $format, $module, $ver; } else { diag sprintf $format, $module, '-'; } } if($post_diag) { spacer; $post_diag->(); } spacer; File-ShareDir-Dist-0.07/t/file_sharedir_dist.t000644 000766 000024 00000013602 13341774003 021633 0ustar00ollisgstaff000000 000000 use strict; use warnings; use overload (); use Test::More; use File::Spec; use File::ShareDir::Dist qw( dist_share dist_config ); sub slurp { my($filename) = @_; open my $fh, '<', $filename; my $data = do { local $/; <$fh> }; close $fh; $data; } subtest 'simple' => sub { subtest 'not there' => sub { local @INC = (File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib1 )))); my @ret = dist_share 'Foo-Bar-Baz'; is_deeply \@ret, []; }; subtest 'there, but not there' => sub { local @INC = (File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib2 )))); my @ret = dist_share 'Foo-Bar-Baz'; is_deeply \@ret, []; }; subtest 'there and there' => sub { local @INC = (File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib3 )))); my @ret = dist_share 'Foo-Bar-Baz'; is $#ret, 0, 'exactly one'; my $dir = $ret[0]; ok -d $dir, 'is a directory'; my $file = File::Spec->catfile($dir, 'word.txt'); ok -f $file, 'has directory'; is slurp($file), "33\n", 'file content matches'; }; subtest 'there and there, using module name' => sub { local @INC = (File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib3 )))); my @ret = dist_share 'Foo::Bar::Baz'; is $#ret, 0, 'exactly one'; my $dir = $ret[0]; ok -d $dir, 'is a directory'; my $file = File::Spec->catfile($dir, 'word.txt'); ok -f $file, 'has directory'; is slurp($file), "33\n", 'file content matches'; }; subtest 'there, but not there, followed by there and there' => sub { local @INC = ( File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib2 ))), File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib3 ))) ); my @ret = dist_share 'Foo-Bar-Baz'; is $#ret, 0, 'exactly one'; my $dir = $ret[0]; ok -d $dir, 'is a directory'; my $file = File::Spec->catfile($dir, 'word.txt'); ok -f $file, 'has directory'; is slurp($file), "33\n", 'file content matches'; }; }; subtest 'from dev' => sub { subtest 'dev without share does not find installed share' => sub { local @INC = ( File::Spec->catdir(qw( corpus dev1 lib )), File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib1 ))), File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib2 ))), File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib3 ))) ); my @ret = dist_share 'Foo-Bar-Baz'; is_deeply \@ret, []; }; subtest 'dev with share' => sub { local @INC = ( File::Spec->catdir(qw( corpus dev2 lib )), File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib1 ))), File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib2 ))), File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib3 ))), @INC, ); my @ret = dist_share 'Foo-Bar-Baz'; is $#ret, 0, 'exactly one'; my $dir = $ret[0]; ok -d $dir, 'is a directory'; my $file = File::Spec->catfile($dir, 'word.txt'); ok -f $file, 'has directory'; is slurp($file), "d2\n", 'file content matches'; }; }; subtest 'override' => sub { subtest 'from hash' => sub { local $File::ShareDir::Dist::over{'Foo-Bar-Baz'} = 'corpus/share1'; local @INC = ( File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib1 ))), File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib2 ))), File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib3 ))) ); my @ret = dist_share 'Foo-Bar-Baz'; is $#ret, 0, 'exactly one'; my $dir = $ret[0]; ok -d $dir, 'is a directory'; my $file = File::Spec->catfile($dir, 'word.txt'); ok -f $file, 'has directory'; is slurp($file), "s1\n", 'file content matches'; }; subtest 'from command line' => sub { local %File::ShareDir::Dist::over; File::ShareDir::Dist->import('-Foo-Bar-Baz=corpus/share1'); local @INC = ( File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib1 ))), File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib2 ))), File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib3 ))), @INC, ); my @ret = dist_share 'Foo-Bar-Baz'; is $#ret, 0, 'exactly one'; my $dir = $ret[0]; ok -d $dir, 'is a directory'; my $file = File::Spec->catfile($dir, 'word.txt'); ok -f $file, 'has directory'; is slurp($file), "s1\n", 'file content matches'; }; subtest 'from env' => sub { local %File::ShareDir::Dist::over; local $ENV{PERL_FILE_SHAREDIR_DIST} = 'Foo-Bar-Baz=corpus/share1'; local @INC = ( File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib1 ))), File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib2 ))), File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib3 ))), @INC, ); my @ret = dist_share 'Foo-Bar-Baz'; is $#ret, 0, 'exactly one'; my $dir = $ret[0]; ok -d $dir, 'is a directory'; my $file = File::Spec->catfile($dir, 'word.txt'); ok -f $file, 'has directory'; is slurp($file), "s1\n", 'file content matches'; }; }; subtest 'dist_config' => sub { subtest 'non-dist' => sub { local @INC = (File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib1 )))); is_deeply( dist_config('Foo-Bar-Baz'), {}, ); }; subtest 'dist, but missing share dir' => sub { local @INC = (File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib2 )))); is_deeply( dist_config('Foo-Bar-Baz'), {}, ); }; subtest 'dist, but missing config.pl' => sub { local @INC = (File::Spec->rel2abs(File::Spec->catdir(qw( corpus lib3 )))); is_deeply( dist_config('Foo-Bar-Baz'), {}, ); }; subtest 'dist, with config.pl' => sub { local @INC = (File::Spec->rel2abs(File::Spec->catdir(qw( corpus withconfig )))); is_deeply( dist_config('Foo-Bar-Baz'), { key1 => 'val1' }, ); }; }; done_testing File-ShareDir-Dist-0.07/t/app_yath_plugin_sharedirdist.t000644 000766 000024 00000000716 13341774003 023742 0ustar00ollisgstaff000000 000000 use strict; use warnings; use Test::More; use App::Yath::Plugin::ShareDirDist; use File::Spec; @INC = map { File::Spec->rel2abs($_) } @INC; delete $ENV{PERL_FILE_SHAREDIR_DIST}; chdir 'corpus/plugin/Foo-Bar-Baz'; App::Yath::Plugin::ShareDirDist->pre_init; ok $ENV{PERL_FILE_SHAREDIR_DIST}, 'PERL_FILE_SHAREDIR_DIST is set'; note "PERL_FILE_SHAREDIR_DIST = $ENV{PERL_FILE_SHAREDIR_DIST}"; is $ENV{PERL_FILE_SHAREDIR_DIST},'Foo-Bar-Baz=share'; done_testing; File-ShareDir-Dist-0.07/t/01_use.t000644 000766 000024 00000000347 13341774003 017106 0ustar00ollisgstaff000000 000000 use strict; use warnings; use Test::More; require_ok 'App::Prove::Plugin::ShareDirDist'; require_ok 'App::Yath::Plugin::ShareDirDist'; require_ok 'File::ShareDir::Dist'; require_ok 'File::ShareDir::Dist::Install'; done_testing; File-ShareDir-Dist-0.07/corpus/lib2/000755 000766 000024 00000000000 13341774003 017521 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/lib3/000755 000766 000024 00000000000 13341774003 017522 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/dev1/000755 000766 000024 00000000000 13341774003 017530 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/plugin/000755 000766 000024 00000000000 13341774003 020167 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/withconfig/000755 000766 000024 00000000000 13341774003 021032 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/dev2/000755 000766 000024 00000000000 13341774003 017531 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/share1/000755 000766 000024 00000000000 13341774003 020054 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/share1/word.txt000644 000766 000024 00000000003 13341774003 021561 0ustar00ollisgstaff000000 000000 s1 File-ShareDir-Dist-0.07/corpus/dev2/lib/000755 000766 000024 00000000000 13341774003 020277 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/dev2/share/000755 000766 000024 00000000000 13341774003 020633 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/dev2/share/word.txt000644 000766 000024 00000000003 13341774003 022340 0ustar00ollisgstaff000000 000000 d2 File-ShareDir-Dist-0.07/corpus/dev2/lib/Foo/000755 000766 000024 00000000000 13341774003 021022 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/dev2/lib/Foo/Bar/000755 000766 000024 00000000000 13341774003 021526 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/dev2/lib/Foo/Bar/Baz.pm000644 000766 000024 00000000066 13341774003 022602 0ustar00ollisgstaff000000 000000 package Foo::Bar::Baz; use strict; use warnings; 1; File-ShareDir-Dist-0.07/corpus/withconfig/auto/000755 000766 000024 00000000000 13341774003 022002 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/withconfig/Foo/000755 000766 000024 00000000000 13341774003 021555 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/withconfig/Foo/Bar/000755 000766 000024 00000000000 13341774003 022261 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/withconfig/Foo/Bar/Baz.pm000644 000766 000024 00000000066 13341774003 023335 0ustar00ollisgstaff000000 000000 package Foo::Bar::Baz; use strict; use warnings; 1; File-ShareDir-Dist-0.07/corpus/withconfig/auto/share/000755 000766 000024 00000000000 13341774003 023104 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/withconfig/auto/share/dist/000755 000766 000024 00000000000 13341774003 024047 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/withconfig/auto/share/dist/Foo-Bar-Baz/000755 000766 000024 00000000000 13341774003 026006 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/withconfig/auto/share/dist/Foo-Bar-Baz/config.pl000644 000766 000024 00000000051 13341774003 027604 0ustar00ollisgstaff000000 000000 do { my $x = { 'key1' => 'val1' }; $x;}File-ShareDir-Dist-0.07/corpus/withconfig/auto/share/dist/Foo-Bar-Baz/word.txt000644 000766 000024 00000000003 13341774003 027513 0ustar00ollisgstaff000000 000000 33 File-ShareDir-Dist-0.07/corpus/plugin/Foo-Bar-Baz/000755 000766 000024 00000000000 13341774003 022126 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/plugin/Foo-Bar-Baz/share/000755 000766 000024 00000000000 13341774003 023230 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/plugin/Foo-Bar-Baz/share/word.txt000644 000766 000024 00000000003 13341774003 024735 0ustar00ollisgstaff000000 000000 pp File-ShareDir-Dist-0.07/corpus/dev1/lib/000755 000766 000024 00000000000 13341774003 020276 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/dev1/lib/Foo/000755 000766 000024 00000000000 13341774003 021021 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/dev1/lib/Foo/Bar/000755 000766 000024 00000000000 13341774003 021525 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/dev1/lib/Foo/Bar/Baz.pm000644 000766 000024 00000000066 13341774003 022601 0ustar00ollisgstaff000000 000000 package Foo::Bar::Baz; use strict; use warnings; 1; File-ShareDir-Dist-0.07/corpus/lib3/auto/000755 000766 000024 00000000000 13341774003 020472 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/lib3/Foo/000755 000766 000024 00000000000 13341774003 020245 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/lib3/Foo/Bar/000755 000766 000024 00000000000 13341774003 020751 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/lib3/Foo/Bar/Baz.pm000644 000766 000024 00000000066 13341774003 022025 0ustar00ollisgstaff000000 000000 package Foo::Bar::Baz; use strict; use warnings; 1; File-ShareDir-Dist-0.07/corpus/lib3/auto/share/000755 000766 000024 00000000000 13341774003 021574 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/lib3/auto/share/dist/000755 000766 000024 00000000000 13341774003 022537 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/lib3/auto/share/dist/Foo-Bar-Baz/000755 000766 000024 00000000000 13341774003 024476 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/lib3/auto/share/dist/Foo-Bar-Baz/word.txt000644 000766 000024 00000000003 13341774003 026203 0ustar00ollisgstaff000000 000000 33 File-ShareDir-Dist-0.07/corpus/lib2/auto/000755 000766 000024 00000000000 13341774003 020471 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/lib2/auto/share/000755 000766 000024 00000000000 13341774003 021573 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/lib2/auto/share/dist/000755 000766 000024 00000000000 13341774003 022536 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/lib2/auto/share/dist/Foo-Bar-Baz/000755 000766 000024 00000000000 13341774003 024475 5ustar00ollisgstaff000000 000000 File-ShareDir-Dist-0.07/corpus/lib2/auto/share/dist/Foo-Bar-Baz/word.txt000644 000766 000024 00000000003 13341774003 026202 0ustar00ollisgstaff000000 000000 22