MooseX-Types-Path-Tiny-0.007/000755 000767 000024 00000000000 12255433010 016116 5ustar00etherstaff000000 000000 MooseX-Types-Path-Tiny-0.007/Build.PL000644 000767 000024 00000000066 12255433010 017414 0ustar00etherstaff000000 000000 use 5.006; use Module::Build::Tiny 0.030; Build_PL(); MooseX-Types-Path-Tiny-0.007/Changes000644 000767 000024 00000002131 12255433010 017406 0ustar00etherstaff000000 000000 Revision history for 4346544968 0.007 2013-12-22 00:44:49Z - add missing authority data to module and metadata 0.006 2013-06-21 15:01:15 PDT-0700 (Karen Etheridge) - re-release with my plugin bundle, fixing associated metadata. 0.005 2013-06-21 13:11:26 America/Vancouver - split apart MooseX::Types::Path::Tiny and Types::Path::Tiny into their own distributions. This dist has reverted back to MooseX-Types-Path-Tiny as of version 0.002, and to using MooseX::Types -- the Type::Tiny version is available in the separate Types-Path-Tiny distribution. - Perl prereq remains at v5.8.1 0.004 2013-06-21 13:05:55 America/New_York - Bumped Type::Tiny prereq to avoid known bugs in it 0.003 2013-06-20 16:01:13 America/New_York - Converted to Type::Tiny; works with Moose or Moo now - Dropped Perl prereq to v5.8.1 0.002 2013-02-12 09:35:41 America/New_York - Bump Moose version prereq to 2, just in case anyone out there still has version 1 installed. 0.001 2013-01-31 10:45:24 America/New_York - First release MooseX-Types-Path-Tiny-0.007/CONTRIBUTING000644 000767 000024 00000005414 12255433010 017754 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/MooseX-Types-Path-Tiny. If you use cpanminus, you can do it without downloading the tarball first: $ cpanm --reinstall --installdeps --with-recommends MooseX::Types::Path::Tiny 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 MooseX::Types::Path::Tiny 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/moosex-types-path-tiny. 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=MooseX-Types-Path-Tiny or via bug-MooseX-Types-Path-Tiny@rt.cpan.org. There is also a mailing list available for users of this distribution, at http://lists.perl.org/list/moose.html. There is also an irc channel available for users of this distribution, at irc://irc.perl.org/#moose. This file was generated via Dist::Zilla::Plugin::GenerateFile::ShareDir 0.003 from a template file originating in Dist-Zilla-PluginBundle-Author-ETHER-0.043. MooseX-Types-Path-Tiny-0.007/dist.ini000644 000767 000024 00000001076 12255433010 017566 0ustar00etherstaff000000 000000 name = MooseX-Types-Path-Tiny author = David Golden license = Apache_2_0 copyright_holder = David Golden copyright_year = 2013 [@Author::ETHER] :version = 0.041 Authority.authority = cpan:DAGOLDEN Test::MinimumVersion.max_target_perl = 5.008001 ; authordep Pod::Weaver = 4 ; authordep Pod::Weaver::Section::Contributors [ContributorsFromGit] [Test::Perl::Critic] ; authordep Perl::Critic::Policy::Lax::ProhibitStringyEval::ExceptForRequire [MetaResources] x_IRC = irc://irc.perl.org/#moose x_MailingList = http://lists.perl.org/list/moose.html MooseX-Types-Path-Tiny-0.007/INSTALL000644 000767 000024 00000002021 12255433010 017142 0ustar00etherstaff000000 000000 This is the Perl distribution MooseX-Types-Path-Tiny. Installing MooseX-Types-Path-Tiny is straightforward. ## Installation with cpanm If you have cpanm, you only need one line: % cpanm MooseX::Types::Path::Tiny 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 MooseX::Types::Path::Tiny ## Installing with the CPAN shell Alternatively, if your CPAN shell is set up, you should just be able to do: % cpan MooseX::Types::Path::Tiny ## 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 MooseX-Types-Path-Tiny documentation is available as POD. You can run perldoc from a shell to read the documentation: % perldoc MooseX::Types::Path::Tiny MooseX-Types-Path-Tiny-0.007/lib/000755 000767 000024 00000000000 12255433010 016664 5ustar00etherstaff000000 000000 MooseX-Types-Path-Tiny-0.007/LICENSE000644 000767 000024 00000026354 12255433010 017135 0ustar00etherstaff000000 000000 This software is Copyright (c) 2013 by David Golden. This is free software, licensed under: The Apache License, Version 2.0, January 2004 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. MooseX-Types-Path-Tiny-0.007/Makefile.PL000644 000767 000024 00000007052 12255433010 020074 0ustar00etherstaff000000 000000 # This Makefile.PL for MooseX-Types-Path-Tiny was generated by # Dist::Zilla::Plugin::MakeMaker::Fallback 0.005. # 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 { $ENV{PERL_MM_FALLBACK_SILENCE_WARNING} or 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. ---- * Alternatively, you are doing something overly clever, in which case you should consider setting the 'prefer_installer' config option in CPAN.pm, or 'prefer_makefile' in CPANPLUS, to 'mb" and '0' respectively. You can also silence this warning for future installations by setting the PERL_MM_FALLBACK_SILENCE_WARNING environment variable. EOW sleep 10 if -t STDIN && (-t STDOUT || !(-f STDOUT || -c STDOUT)); } } use 5.006; use ExtUtils::MakeMaker 6.30; my %WriteMakefileArgs = ( "ABSTRACT" => "Path::Tiny types and coercions for Moose", "AUTHOR" => "David Golden ", "BUILD_REQUIRES" => {}, "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => "6.30", "Module::Build::Tiny" => "0.030" }, "DISTNAME" => "MooseX-Types-Path-Tiny", "EXE_FILES" => [], "LICENSE" => "apache", "NAME" => "MooseX::Types::Path::Tiny", "PREREQ_PM" => { "Moose" => 2, "MooseX::Types" => 0, "MooseX::Types::Moose" => 0, "MooseX::Types::Stringlike" => 0, "Path::Tiny" => 0, "strict" => 0, "warnings" => 0 }, "TEST_REQUIRES" => { "ExtUtils::MakeMaker" => 0, "File::Spec::Functions" => 0, "File::Temp" => "0.18", "File::pushd" => 0, "List::Util" => 0, "Test::Fatal" => 0, "Test::More" => "0.96" }, "VERSION" => "0.007", "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); MooseX-Types-Path-Tiny-0.007/MANIFEST000644 000767 000024 00000001163 12255433010 017250 0ustar00etherstaff000000 000000 Build.PL CONTRIBUTING Changes INSTALL LICENSE MANIFEST META.json META.yml Makefile.PL README README.md dist.ini lib/MooseX/Types/Path/Tiny.pm perlcritic.rc t/00-report-prereqs.t t/basic.t t/error.t tidyall.ini weaver.ini xt/author/00-compile.t xt/author/critic.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-coverage.t xt/release/pod-no404s.t xt/release/pod-syntax.t xt/release/portability.t xt/release/test-version.t xt/release/unused-vars.t MooseX-Types-Path-Tiny-0.007/META.json000644 000767 000024 00000057434 12255433010 017554 0ustar00etherstaff000000 000000 { "abstract" : "Path::Tiny types and coercions for Moose", "author" : [ "David Golden " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 5.006, CPAN::Meta::Converter version 2.133380", "license" : [ "apache_2_0" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "MooseX-Types-Path-Tiny", "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.043" }, "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::MetaResources" : "0", "Dist::Zilla::Plugin::ModuleBuildTiny" : "0.004", "Dist::Zilla::Plugin::Test::Perl::Critic" : "0", "Dist::Zilla::PluginBundle::Author::ETHER" : "0.041", "File::Spec" : "0", "IO::Handle" : "0", "IPC::Open3" : "0", "Perl::Critic::Policy::Lax::ProhibitStringyEval::ExceptForRequire" : "0", "Pod::Coverage::TrustPod" : "0", "Pod::Weaver" : "4", "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::Pod::Coverage" : "1.08" } }, "runtime" : { "requires" : { "Moose" : "2", "MooseX::Types" : "0", "MooseX::Types::Moose" : "0", "MooseX::Types::Stringlike" : "0", "Path::Tiny" : "0", "perl" : "5.006", "strict" : "0", "warnings" : "0" } }, "test" : { "recommends" : { "CPAN::Meta" : "0", "CPAN::Meta::Requirements" : "0" }, "requires" : { "ExtUtils::MakeMaker" : "0", "File::Spec::Functions" : "0", "File::Temp" : "0.18", "File::pushd" : "0", "List::Util" : "0", "Test::Fatal" : "0", "Test::More" : "0.96" } } }, "provides" : { "MooseX::Types::Path::Tiny" : { "file" : "lib/MooseX/Types/Path/Tiny.pm", "version" : "0.007" } }, "release_status" : "stable", "resources" : { "bugtracker" : { "mailto" : "bug-MooseX-Types-Path-Tiny@rt.cpan.org", "web" : "https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Types-Path-Tiny" }, "homepage" : "https://github.com/karenetheridge/moosex-types-path-tiny", "repository" : { "type" : "git", "url" : "https://github.com/karenetheridge/moosex-types-path-tiny.git", "web" : "https://github.com/karenetheridge/moosex-types-path-tiny" }, "x_IRC" : "irc://irc.perl.org/#moose", "x_MailingList" : "http://lists.perl.org/list/moose.html" }, "version" : "0.007", "x_Dist_Zilla" : { "perl" : { "version" : "5.019006" }, "plugins" : [ { "class" : "Dist::Zilla::Plugin::Git::NextVersion", "name" : "@Author::ETHER/Git::NextVersion", "version" : "2.019" }, { "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.015" }, { "class" : "Dist::Zilla::Plugin::PromptIfStale", "config" : { "Dist::Zilla::Plugin::PromptIfStale" : { "check_all_plugins" : "1", "check_all_prereqs" : "1", "modules" : [], "phase" : "release", "skip" : [] } }, "name" : "@Author::ETHER/release", "version" : "0.015" }, { "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.019" }, { "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.003" }, { "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.039" }, { "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.06" }, { "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::UnusedVars", "name" : "@Author::ETHER/Test::UnusedVars", "version" : "2.000005" }, { "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::PodCoverageTests", "name" : "@Author::ETHER/PodCoverageTests", "version" : "5.006" }, { "class" : "Dist::Zilla::Plugin::Test::PodSpelling", "name" : "@Author::ETHER/Test::PodSpelling", "version" : "2.006002" }, { "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.005" }, { "class" : "Pod::Weaver::Plugin::H1Nester", "name" : "@CorePrep/H1Nester", "version" : "4.005" }, { "class" : "Pod::Weaver::Plugin::SingleEncoding", "name" : "@Default/SingleEncoding", "version" : "4.005" }, { "class" : "Pod::Weaver::Section::Name", "name" : "@Default/Name", "version" : "4.005" }, { "class" : "Pod::Weaver::Section::Version", "name" : "@Default/Version", "version" : "4.005" }, { "class" : "Pod::Weaver::Section::Region", "name" : "@Default/prelude", "version" : "4.005" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "SYNOPSIS", "version" : "4.005" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "DESCRIPTION", "version" : "4.005" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "OVERVIEW", "version" : "4.005" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "ATTRIBUTES", "version" : "4.005" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "METHODS", "version" : "4.005" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "FUNCTIONS", "version" : "4.005" }, { "class" : "Pod::Weaver::Section::Leftovers", "name" : "@Default/Leftovers", "version" : "4.005" }, { "class" : "Pod::Weaver::Section::Region", "name" : "@Default/postlude", "version" : "4.005" }, { "class" : "Pod::Weaver::Section::Authors", "name" : "@Default/Authors", "version" : "4.005" }, { "class" : "Pod::Weaver::Section::Legal", "name" : "@Default/Legal", "version" : "4.005" }, { "class" : "Pod::Weaver::Plugin::Transformer", "name" : "-Transformer", "version" : "4.005" }, { "class" : "Pod::Weaver::Plugin::StopWords", "name" : "-StopWords", "version" : "1.008" }, { "class" : "Pod::Weaver::Section::Contributors", "name" : "Contributors", "version" : "0.007" } ] } }, "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.133360" }, { "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.005" }, { "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.006" }, { "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.019" }, { "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.019" }, { "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.019" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", "name" : "@Author::ETHER/Git::Tag", "version" : "2.019" }, { "class" : "Dist::Zilla::Plugin::GitHub::Update", "name" : "@Author::ETHER/GitHub::Update", "version" : "0.36" }, { "class" : "Dist::Zilla::Plugin::Git::Push", "name" : "@Author::ETHER/Git::Push", "version" : "2.019" }, { "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::ContributorsFromGit", "name" : "ContributorsFromGit", "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::Test::Perl::Critic", "name" : "Test::Perl::Critic", "version" : "2.112410" }, { "class" : "Dist::Zilla::Plugin::MetaResources", "name" : "MetaResources", "version" : "5.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:DAGOLDEN", "x_contributors" : [ "Karen Etheridge ", "Toby Inkster " ] } MooseX-Types-Path-Tiny-0.007/META.yml000644 000767 000024 00000035516 12255433010 017401 0ustar00etherstaff000000 000000 --- abstract: 'Path::Tiny types and coercions for Moose' author: - 'David Golden ' build_requires: ExtUtils::MakeMaker: 0 File::Spec::Functions: 0 File::Temp: 0.18 File::pushd: 0 List::Util: 0 Test::Fatal: 0 Test::More: 0.96 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.133380' license: apache meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: 1.4 name: MooseX-Types-Path-Tiny no_index: directory: - t - xt - examples provides: MooseX::Types::Path::Tiny: file: lib/MooseX/Types/Path/Tiny.pm version: 0.007 requires: Moose: 2 MooseX::Types: 0 MooseX::Types::Moose: 0 MooseX::Types::Stringlike: 0 Path::Tiny: 0 perl: 5.006 strict: 0 warnings: 0 resources: IRC: irc://irc.perl.org/#moose MailingList: http://lists.perl.org/list/moose.html bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Types-Path-Tiny homepage: https://github.com/karenetheridge/moosex-types-path-tiny repository: https://github.com/karenetheridge/moosex-types-path-tiny.git version: 0.007 x_Dist_Zilla: perl: version: 5.019006 plugins: - class: Dist::Zilla::Plugin::Git::NextVersion name: '@Author::ETHER/Git::NextVersion' version: 2.019 - 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.015 - class: Dist::Zilla::Plugin::PromptIfStale config: Dist::Zilla::Plugin::PromptIfStale: check_all_plugins: 1 check_all_prereqs: 1 modules: [] phase: release skip: [] name: '@Author::ETHER/release' version: 0.015 - 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.019 - 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.003 - 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.039 - 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.06 - 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::UnusedVars name: '@Author::ETHER/Test::UnusedVars' version: 2.000005 - 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::PodCoverageTests name: '@Author::ETHER/PodCoverageTests' version: 5.006 - class: Dist::Zilla::Plugin::Test::PodSpelling name: '@Author::ETHER/Test::PodSpelling' version: 2.006002 - 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.005 - class: Pod::Weaver::Plugin::H1Nester name: '@CorePrep/H1Nester' version: 4.005 - class: Pod::Weaver::Plugin::SingleEncoding name: '@Default/SingleEncoding' version: 4.005 - class: Pod::Weaver::Section::Name name: '@Default/Name' version: 4.005 - class: Pod::Weaver::Section::Version name: '@Default/Version' version: 4.005 - class: Pod::Weaver::Section::Region name: '@Default/prelude' version: 4.005 - class: Pod::Weaver::Section::Generic name: SYNOPSIS version: 4.005 - class: Pod::Weaver::Section::Generic name: DESCRIPTION version: 4.005 - class: Pod::Weaver::Section::Generic name: OVERVIEW version: 4.005 - class: Pod::Weaver::Section::Collect name: ATTRIBUTES version: 4.005 - class: Pod::Weaver::Section::Collect name: METHODS version: 4.005 - class: Pod::Weaver::Section::Collect name: FUNCTIONS version: 4.005 - class: Pod::Weaver::Section::Leftovers name: '@Default/Leftovers' version: 4.005 - class: Pod::Weaver::Section::Region name: '@Default/postlude' version: 4.005 - class: Pod::Weaver::Section::Authors name: '@Default/Authors' version: 4.005 - class: Pod::Weaver::Section::Legal name: '@Default/Legal' version: 4.005 - class: Pod::Weaver::Plugin::Transformer name: '-Transformer' version: 4.005 - class: Pod::Weaver::Plugin::StopWords name: '-StopWords' version: 1.008 - class: Pod::Weaver::Section::Contributors name: Contributors version: 0.007 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.133360 - 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.005 - 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.006 - 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.019 - 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.019 - 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.019 - class: Dist::Zilla::Plugin::Git::Tag name: '@Author::ETHER/Git::Tag' version: 2.019 - class: Dist::Zilla::Plugin::GitHub::Update name: '@Author::ETHER/GitHub::Update' version: 0.36 - class: Dist::Zilla::Plugin::Git::Push name: '@Author::ETHER/Git::Push' version: 2.019 - 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::ContributorsFromGit name: ContributorsFromGit version: 0.006 - class: Dist::Zilla::Plugin::Test::Perl::Critic name: Test::Perl::Critic version: 2.112410 - class: Dist::Zilla::Plugin::MetaResources name: MetaResources version: 5.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:DAGOLDEN x_contributors: - 'Karen Etheridge ' - 'Toby Inkster ' MooseX-Types-Path-Tiny-0.007/perlcritic.rc000644 000767 000024 00000001072 12255433010 020604 0ustar00etherstaff000000 000000 severity = 5 verbose = 8 [Variables::ProhibitPunctuationVars] allow = $@ $! [TestingAndDebugging::ProhibitNoStrict] allow = refs # Turn these off [-BuiltinFunctions::ProhibitStringyEval] [-ControlStructures::ProhibitPostfixControls] [-ControlStructures::ProhibitUnlessBlocks] [-Documentation::RequirePodSections] [-InputOutput::ProhibitInteractiveTest] [-References::ProhibitDoubleSigils] [-RegularExpressions::RequireExtendedFormatting] [-InputOutput::ProhibitTwoArgOpen] [-Modules::ProhibitEvilModules] # Turn this on [Lax::ProhibitStringyEval::ExceptForRequire] MooseX-Types-Path-Tiny-0.007/README000644 000767 000024 00000000415 12255433010 016776 0ustar00etherstaff000000 000000 This archive contains the distribution MooseX-Types-Path-Tiny, version 0.007: Path::Tiny types and coercions for Moose This software is Copyright (c) 2013 by David Golden. This is free software, licensed under: The Apache License, Version 2.0, January 2004 MooseX-Types-Path-Tiny-0.007/README.md000644 000767 000024 00000005337 12255433010 017405 0ustar00etherstaff000000 000000 # NAME MooseX::Types::Path::Tiny - Path::Tiny types and coercions for Moose # VERSION version 0.007 # SYNOPSIS ### specification of type constraint with coercion package Foo; use Moose; use MooseX::Types::Path::Tiny qw/Path AbsPath/; has filename => ( is => 'ro', isa => Path, coerce => 1, ); has directory => ( is => 'ro', isa => AbsPath, coerce => 1, ); ### usage in code Foo->new( filename => 'foo.txt' ); # coerced to Path::Tiny Foo->new( directory => '.' ); # coerced to path('.')->absolute # DESCRIPTION This module provides [Path::Tiny](https://metacpan.org/pod/Path::Tiny) types for Moose. It handles two important types of coercion: - coercing objects with overloaded stringification - coercing to absolute paths It also can check to ensure that files or directories exist. # SUBTYPES This module uses [MooseX::Types](https://metacpan.org/pod/MooseX::Types) to define the following subtypes. ## Path `Path` ensures an attribute is a [Path::Tiny](https://metacpan.org/pod/Path::Tiny) object. Strings and objects with overloaded stringification may be coerced. ## AbsPath `AbsPath` is a subtype of `Path` (above), but coerces to an absolute path. ## File, AbsFile These are just like `Path` and `AbsPath`, except they check `-f` to ensure the file actually exists on the filesystem. ## Dir, AbsDir These are just like `Path` and `AbsPath`, except they check `-d` to ensure the directory actually exists on the filesystem. # CAVEATS ## Path vs File vs Dir `Path` just ensures you have a [Path::Tiny](https://metacpan.org/pod/Path::Tiny) object. `File` and `Dir` check the filesystem. Don't use them unless that's really what you want. ## Usage with File::Temp Be careful if you pass in a File::Temp object. Because the argument is stringified during coercion into a Path::Tiny object, no reference to the original File::Temp argument is held. Be sure to hold an external reference to it to avoid immediate cleanup of the temporary file or directory at the end of the enclosing scope. A better approach is to use Path::Tiny's own `tempfile` or `tempdir` constructors, which hold the reference for you. Foo->new( filename => Path::Tiny->tempfile ); # SEE ALSO - [Path::Tiny](https://metacpan.org/pod/Path::Tiny) - [Moose::Manual::Types](https://metacpan.org/pod/Moose::Manual::Types) - [Types::Path::Tiny](https://metacpan.org/pod/Types::Path::Tiny) # AUTHOR David Golden # COPYRIGHT AND LICENSE This software is Copyright (c) 2013 by David Golden. This is free software, licensed under: The Apache License, Version 2.0, January 2004 # CONTRIBUTORS - Karen Etheridge - Toby Inkster MooseX-Types-Path-Tiny-0.007/t/000755 000767 000024 00000000000 12255433010 016361 5ustar00etherstaff000000 000000 MooseX-Types-Path-Tiny-0.007/tidyall.ini000644 000767 000024 00000000240 12255433010 020255 0ustar00etherstaff000000 000000 ; Install Code::TidyAll ; run "tidyall -a" to tidy all files ; run "tidyall -g" to tidy only files modified from git [PerlTidy] select = {lib,t}/**/*.{pl,pm,t} MooseX-Types-Path-Tiny-0.007/weaver.ini000644 000767 000024 00000000114 12255433010 020104 0ustar00etherstaff000000 000000 [@Default] [-Transformer] transformer = List [-StopWords] [Contributors] MooseX-Types-Path-Tiny-0.007/xt/000755 000767 000024 00000000000 12255433010 016551 5ustar00etherstaff000000 000000 MooseX-Types-Path-Tiny-0.007/xt/author/000755 000767 000024 00000000000 12255433010 020053 5ustar00etherstaff000000 000000 MooseX-Types-Path-Tiny-0.007/xt/release/000755 000767 000024 00000000000 12255433010 020171 5ustar00etherstaff000000 000000 MooseX-Types-Path-Tiny-0.007/xt/release/changes_has_content.t000644 000767 000024 00000002011 12255433010 024345 0ustar00etherstaff000000 000000 #!perl use Test::More tests => 2; note 'Checking Changes'; my $changes_file = 'Changes'; my $newver = '0.007'; 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; } MooseX-Types-Path-Tiny-0.007/xt/release/cpan-changes.t000644 000767 000024 00000000263 12255433010 022706 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(); MooseX-Types-Path-Tiny-0.007/xt/release/distmeta.t000644 000767 000024 00000000217 12255433010 022170 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(); MooseX-Types-Path-Tiny-0.007/xt/release/eol.t000644 000767 000024 00000000240 12255433010 021131 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 }); MooseX-Types-Path-Tiny-0.007/xt/release/kwalitee.t000644 000767 000024 00000000166 12255433010 022166 0ustar00etherstaff000000 000000 # this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.07 use strict; use warnings; use Test::Kwalitee; MooseX-Types-Path-Tiny-0.007/xt/release/minimum-version.t000644 000767 000024 00000000271 12255433010 023514 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} ); MooseX-Types-Path-Tiny-0.007/xt/release/mojibake.t000644 000767 000024 00000000406 12255433010 022137 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(); MooseX-Types-Path-Tiny-0.007/xt/release/no-tabs.t000644 000767 000024 00000000354 12255433010 021723 0ustar00etherstaff000000 000000 use strict; use warnings; # this test was generated with Dist::Zilla::Plugin::Test::NoTabs 0.06 use Test::More 0.88; use Test::NoTabs; my @files = ( 'lib/MooseX/Types/Path/Tiny.pm' ); notabs_ok($_) foreach @files; done_testing; MooseX-Types-Path-Tiny-0.007/xt/release/pod-coverage.t000644 000767 000024 00000000527 12255433010 022735 0ustar00etherstaff000000 000000 #!perl use Test::More; eval "use Test::Pod::Coverage 1.08"; plan skip_all => "Test::Pod::Coverage 1.08 required for testing POD coverage" if $@; eval "use Pod::Coverage::TrustPod"; plan skip_all => "Pod::Coverage::TrustPod required for testing POD coverage" if $@; all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' }); MooseX-Types-Path-Tiny-0.007/xt/release/pod-no404s.t000644 000767 000024 00000000527 12255433010 022171 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(); } MooseX-Types-Path-Tiny-0.007/xt/release/pod-syntax.t000644 000767 000024 00000000212 12255433010 022457 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(); MooseX-Types-Path-Tiny-0.007/xt/release/portability.t000644 000767 000024 00000000276 12255433010 022725 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(); MooseX-Types-Path-Tiny-0.007/xt/release/test-version.t000644 000767 000024 00000000643 12255433010 023023 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; MooseX-Types-Path-Tiny-0.007/xt/release/unused-vars.t000644 000767 000024 00000000207 12255433010 022631 0ustar00etherstaff000000 000000 #!perl use Test::More; eval "use Test::Vars"; plan skip_all => "Test::Vars required for testing unused vars" if $@; all_vars_ok(); MooseX-Types-Path-Tiny-0.007/xt/author/00-compile.t000644 000767 000024 00000002044 12255433010 022105 0ustar00etherstaff000000 000000 use 5.006; use strict; use warnings; # this test was generated with Dist::Zilla::Plugin::Test::Compile 2.039 use Test::More 0.94 tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0); my @module_files = ( 'MooseX/Types/Path/Tiny.pm' ); # no fake home requested my $inc_switch = -d 'blib' ? '-Mblib' : '-Ilib'; use File::Spec; use IPC::Open3; use IO::Handle; open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!"; my @warnings; for my $lib (@module_files) { # see L my $stderr = IO::Handle->new; my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-e', "require q[$lib]"); binmode $stderr, ':crlf' if $^O eq 'MSWin32'; my @_warnings = <$stderr>; waitpid($pid, 0); is($?, 0, "$lib loaded ok"); 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; MooseX-Types-Path-Tiny-0.007/xt/author/critic.t000644 000767 000024 00000000435 12255433010 021517 0ustar00etherstaff000000 000000 #!perl use strict; use warnings; use Test::More; use English qw(-no_match_vars); eval "use Test::Perl::Critic"; plan skip_all => 'Test::Perl::Critic required to criticise code' if $@; Test::Perl::Critic->import( -profile => "perlcritic.rc" ) if -e "perlcritic.rc"; all_critic_ok(); MooseX-Types-Path-Tiny-0.007/xt/author/pod-spell.t000644 000767 000024 00000000476 12255433010 022146 0ustar00etherstaff000000 000000 use strict; use warnings; use Test::More; # generated by Dist::Zilla::Plugin::Test::PodSpelling 2.006002 use Test::Spelling 0.12; use Pod::Wordlist; add_stopwords(); all_pod_files_spelling_ok( qw( bin lib ) ); __DATA__ David Golden dagolden Karen Etheridge ether Toby Inkster mail lib MooseX Types Path Tiny MooseX-Types-Path-Tiny-0.007/t/00-report-prereqs.t000644 000767 000024 00000006777 12255433010 021776 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 ExtUtils::MakeMaker File::Spec::Functions File::Temp File::pushd List::Util Module::Build::Tiny Moose MooseX::Types MooseX::Types::Moose MooseX::Types::Stringlike Path::Tiny Test::Fatal Test::More 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: MooseX-Types-Path-Tiny-0.007/t/basic.t000644 000767 000024 00000010011 12255433010 017620 0ustar00etherstaff000000 000000 use strict; use warnings; use Test::More 0.96; use File::Temp 0.18; use File::pushd qw/tempd/; use Path::Tiny; { package Foo; use Moose; use MooseX::Types::Path::Tiny qw/Path File Dir/; has a_path => ( is => 'ro', isa => Path, coerce => 1 ); has a_file => ( is => 'ro', isa => File, coerce => 1 ); has a_dir => ( is => 'ro', isa => Dir, coerce => 1 ); } { package AbsFoo; use Moose; use MooseX::Types::Path::Tiny qw/AbsPath AbsFile AbsDir/; has a_path => ( is => 'ro', isa => AbsPath, coerce => 1 ); has a_file => ( is => 'ro', isa => AbsFile, coerce => 1 ); has a_dir => ( is => 'ro', isa => AbsDir, coerce => 1 ); } my $tf = File::Temp->new; my $td = File::Temp->newdir; my @cases = ( # Path { label => "coerce string to Path", absolute => 0, attr => "a_path", input => "./foo", }, { label => "coerce object to Path", absolute => 0, attr => "a_path", input => $tf, }, { label => "coerce array ref to Path", absolute => 0, attr => "a_path", input => [qw/foo bar/], }, # AbsPath { label => "coerce string to AbsPath", absolute => 1, attr => "a_path", input => "./foo", }, { label => "coerce Path to AbsPath", absolute => 1, attr => "a_path", input => path($tf), }, { label => "coerce object to AbsPath", absolute => 1, attr => "a_path", input => $tf, }, { label => "coerce array ref to AbsPath", absolute => 1, attr => "a_path", input => [qw/foo bar/], }, # File { label => "coerce string to File", absolute => 0, attr => "a_file", input => "$tf", }, { label => "coerce object to File", absolute => 0, attr => "a_file", input => $tf, }, { label => "coerce array ref to File", absolute => 0, attr => "a_file", input => [$tf], }, # Dir { label => "coerce string to Dir", absolute => 0, attr => "a_dir", input => "$td", }, { label => "coerce object to Dir", absolute => 0, attr => "a_dir", input => $td, }, { label => "coerce array ref to Dir", absolute => 0, attr => "a_dir", input => [$td], }, # AbsFile { label => "coerce string to AbsFile", absolute => 1, attr => "a_file", input => "$tf", }, { label => "coerce object to AbsFile", absolute => 1, attr => "a_file", input => $tf, }, { label => "coerce array ref to AbsFile", absolute => 1, attr => "a_file", input => [$tf], }, # AbsDir { label => "coerce string to AbsDir", absolute => 1, attr => "a_dir", input => "$td", }, { label => "coerce object to AbsDir", absolute => 1, attr => "a_dir", input => $td, }, { label => "coerce array ref to AbsDir", absolute => 1, attr => "a_dir", input => [$td], }, ); for my $c (@cases) { subtest $c->{label} => sub { my $wd = tempd; my $class = $c->{absolute} ? "AbsFoo" : "Foo"; my $attr = $c->{attr}; my $input = $c->{input}; my $expected = path( ref $input eq 'ARRAY' ? @$input : $input ); $expected = $expected->absolute if $c->{absolute}; my $obj = eval { $class->new( $attr => $input ); }; is( $@, '', "object created without exception" ); isa_ok( $obj->$attr, "Path::Tiny", $attr ); is( $obj->$attr, $expected, "$attr set correctly" ); }; } done_testing; # COPYRIGHT MooseX-Types-Path-Tiny-0.007/t/error.t000644 000767 000024 00000002401 12255433010 017674 0ustar00etherstaff000000 000000 use strict; use warnings; use Test::More 0.96; use Test::Fatal; use Path::Tiny; { package Foo; use Moose; use MooseX::Types::Path::Tiny qw/Path File Dir/; has a_path => ( is => 'ro', isa => Path, coerce => 1 ); has a_file => ( is => 'ro', isa => File, coerce => 1 ); has a_dir => ( is => 'ro', isa => Dir, coerce => 1 ); } { package AbsFoo; use Moose; use MooseX::Types::Path::Tiny qw/AbsPath AbsFile AbsDir/; has a_path => ( is => 'ro', isa => AbsPath, coerce => 1 ); has a_file => ( is => 'ro', isa => AbsFile, coerce => 1 ); has a_dir => ( is => 'ro', isa => AbsDir, coerce => 1 ); } my $err_re = qr/does not exist/; ok( exception { Foo->new( a_path => {} ) }, "Error on Path for {}" ); like( exception { Foo->new( a_file => "aalkdjalkdfs" ) }, $err_re, "Error on File for nonexistent" ); like( exception { Foo->new( a_dir => "aalkdjalkdfs" ) }, $err_re, "Error on Dir for nonexistent" ); ok( exception { AbsFoo->new( a_path => {} ) }, "Error on Path for {}" ); like( exception { AbsFoo->new( a_file => "aalkdjalkdfs" ) }, $err_re, "Error on File for nonexistent" ); like( exception { AbsFoo->new( a_dir => "aalkdjalkdfs" ) }, $err_re, "Error on Dir for nonexistent" ); done_testing; # COPYRIGHT MooseX-Types-Path-Tiny-0.007/lib/MooseX/000755 000767 000024 00000000000 12255433010 020076 5ustar00etherstaff000000 000000 MooseX-Types-Path-Tiny-0.007/lib/MooseX/Types/000755 000767 000024 00000000000 12255433010 021202 5ustar00etherstaff000000 000000 MooseX-Types-Path-Tiny-0.007/lib/MooseX/Types/Path/000755 000767 000024 00000000000 12255433010 022076 5ustar00etherstaff000000 000000 MooseX-Types-Path-Tiny-0.007/lib/MooseX/Types/Path/Tiny.pm000644 000767 000024 00000011045 12255433010 023360 0ustar00etherstaff000000 000000 use strict; use warnings; package MooseX::Types::Path::Tiny; { $MooseX::Types::Path::Tiny::VERSION = '0.007'; } # git description: v0.006-8-g0efc97e BEGIN { $MooseX::Types::Path::Tiny::AUTHORITY = 'cpan:DAGOLDEN'; } # ABSTRACT: Path::Tiny types and coercions for Moose use Moose 2; use MooseX::Types::Stringlike qw/Stringable/; use MooseX::Types::Moose qw/Str ArrayRef/; use MooseX::Types -declare => [qw( Path AbsPath File AbsFile Dir AbsDir )]; use Path::Tiny (); #<<< subtype Path, as 'Path::Tiny'; subtype AbsPath, as Path, where { $_->is_absolute }; subtype File, as Path, where { $_->is_file }, message { "File '$_' does not exist" }; subtype Dir, as Path, where { $_->is_dir }, message { "Directory '$_' does not exist" }; subtype AbsFile, as AbsPath, where { $_->is_file }, message { "File '$_' does not exist" }; subtype AbsDir, as AbsPath, where { $_->is_dir }, message { "Directory '$_' does not exist" }; #>>> for my $type ( 'Path::Tiny', Path, File, Dir ) { coerce( $type, from Str() => via { Path::Tiny::path($_) }, from Stringable() => via { Path::Tiny::path($_) }, from ArrayRef() => via { Path::Tiny::path(@$_) }, ); } for my $type ( AbsPath, AbsFile, AbsDir ) { coerce( $type, from 'Path::Tiny' => via { $_->absolute }, from Str() => via { Path::Tiny::path($_)->absolute }, from Stringable() => via { Path::Tiny::path($_)->absolute }, from ArrayRef() => via { Path::Tiny::path(@$_)->absolute }, ); } ### optionally add Getopt option type (adapted from MooseX::Types:Path::Class ##eval { require MooseX::Getopt; }; ##if ( !$@ ) { ## MooseX::Getopt::OptionTypeMap->add_option_type_to_map( $_, '=s', ) ## for ( 'Path::Tiny', Path ); ##} 1; =pod =encoding UTF-8 =for :stopwords David Golden Karen Etheridge Toby Inkster coercions SUBTYPES subtype subtypes AbsPath AbsFile AbsDir =head1 NAME MooseX::Types::Path::Tiny - Path::Tiny types and coercions for Moose =head1 VERSION version 0.007 =head1 SYNOPSIS ### specification of type constraint with coercion package Foo; use Moose; use MooseX::Types::Path::Tiny qw/Path AbsPath/; has filename => ( is => 'ro', isa => Path, coerce => 1, ); has directory => ( is => 'ro', isa => AbsPath, coerce => 1, ); ### usage in code Foo->new( filename => 'foo.txt' ); # coerced to Path::Tiny Foo->new( directory => '.' ); # coerced to path('.')->absolute =head1 DESCRIPTION This module provides L types for Moose. It handles two important types of coercion: =over 4 =item * coercing objects with overloaded stringification =item * coercing to absolute paths =back It also can check to ensure that files or directories exist. =head1 SUBTYPES This module uses L to define the following subtypes. =head2 Path C ensures an attribute is a L object. Strings and objects with overloaded stringification may be coerced. =head2 AbsPath C is a subtype of C (above), but coerces to an absolute path. =head2 File, AbsFile These are just like C and C, except they check C<-f> to ensure the file actually exists on the filesystem. =head2 Dir, AbsDir These are just like C and C, except they check C<-d> to ensure the directory actually exists on the filesystem. =head1 CAVEATS =head2 Path vs File vs Dir C just ensures you have a L object. C and C check the filesystem. Don't use them unless that's really what you want. =head2 Usage with File::Temp Be careful if you pass in a File::Temp object. Because the argument is stringified during coercion into a Path::Tiny object, no reference to the original File::Temp argument is held. Be sure to hold an external reference to it to avoid immediate cleanup of the temporary file or directory at the end of the enclosing scope. A better approach is to use Path::Tiny's own C or C constructors, which hold the reference for you. Foo->new( filename => Path::Tiny->tempfile ); =head1 SEE ALSO =over 4 =item * L =item * L =item * L =back =head1 AUTHOR David Golden =head1 COPYRIGHT AND LICENSE This software is Copyright (c) 2013 by David Golden. This is free software, licensed under: The Apache License, Version 2.0, January 2004 =head1 CONTRIBUTORS =over 4 =item * Karen Etheridge =item * Toby Inkster =back =cut __END__ # vim: ts=4 sts=4 sw=4 et: