@@ -1,3 +1,4 @@
+# This Build.PL for MooseX-Types-Path-Tiny was generated by Dist::Zilla::Plugin::ModuleBuildTiny 0.006.
use 5.006;
-use Module::Build::Tiny 0.030;
+use Module::Build::Tiny 0.034;
Build_PL();
@@ -54,8 +54,8 @@ Once installed, here are some dzil commands you might try:
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.
+The code for this distribution is hosted at GitHub. The 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:
@@ -74,5 +74,5 @@ 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.
+This file was generated via Dist::Zilla::Plugin::GenerateFile::ShareDir 0.005 from a
+template file originating in Dist-Zilla-PluginBundle-Author-ETHER-0.050.
@@ -1,12 +1,22 @@
-Revision history for 4346544968
+Revision history for 4351647224
+
+0.010 2014-02-16 22:02:29Z
+ - if eval problem in "use if" in 0.009
+
+0.009 2014-02-16 21:57:00Z
+ - only clean namespaces when MooseX::Types is new enough that our declared
+ types are installed as methods
+
+0.008 2014-02-16 21:20:46Z
+ - new Paths, AbsPaths types, for coercable ArrayRefs
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)
+0.006 2013-06-21 22:01:15Z
- re-release with my plugin bundle, fixing associated metadata.
-0.005 2013-06-21 13:11:26 America/Vancouver
+0.005 2013-06-21 20:11:26Z
- 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
@@ -1,3 +1,4 @@
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.013.
Build.PL
CONTRIBUTING
Changes
@@ -13,14 +14,18 @@ dist.ini
lib/MooseX/Types/Path/Tiny.pm
perlcritic.rc
t/00-report-prereqs.t
+t/06-fully-qualified.t
+t/arrayref.t
t/basic.t
t/error.t
+t/zzz-check-breaks.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/clean-namespaces.t
xt/release/cpan-changes.t
xt/release/distmeta.t
xt/release/eol.t
@@ -4,7 +4,7 @@
"David Golden <dagolden@cpan.org>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 5.006, CPAN::Meta::Converter version 2.133380",
+ "generated_by" : "Dist::Zilla version 5.013, CPAN::Meta::Converter version 2.133380",
"license" : [
"apache_2_0"
],
@@ -17,28 +17,31 @@
"directory" : [
"t",
"xt",
- "examples"
+ "examples",
+ "share"
]
},
"prereqs" : {
"configure" : {
"requires" : {
"ExtUtils::MakeMaker" : "6.30",
- "Module::Build::Tiny" : "0.030"
+ "Module::Build::Tiny" : "0.034"
}
},
"develop" : {
"recommends" : {
- "Dist::Zilla::PluginBundle::Author::ETHER" : "0.043"
+ "Dist::Zilla::PluginBundle::Author::ETHER" : "0.050"
},
"requires" : {
- "Dist::Zilla" : "5.006",
+ "Dist::Zilla" : "5.013",
"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::Prereqs" : "0",
+ "Dist::Zilla::Plugin::Test::CheckBreaks" : "0",
"Dist::Zilla::Plugin::Test::Perl::Critic" : "0",
"Dist::Zilla::PluginBundle::Author::ETHER" : "0.041",
"File::Spec" : "0",
@@ -50,6 +53,7 @@
"Pod::Weaver::Section::Contributors" : "0",
"Test::CPAN::Changes" : "0.19",
"Test::CPAN::Meta" : "0",
+ "Test::CleanNamespaces" : "0",
"Test::Kwalitee" : "1.12",
"Test::More" : "0.94",
"Test::NoTabs" : "0",
@@ -64,6 +68,7 @@
"MooseX::Types::Moose" : "0",
"MooseX::Types::Stringlike" : "0",
"Path::Tiny" : "0",
+ "if" : "0",
"perl" : "5.006",
"strict" : "0",
"warnings" : "0"
@@ -72,7 +77,7 @@
"test" : {
"recommends" : {
"CPAN::Meta" : "0",
- "CPAN::Meta::Requirements" : "0"
+ "CPAN::Meta::Requirements" : "2.120900"
},
"requires" : {
"ExtUtils::MakeMaker" : "0",
@@ -81,14 +86,15 @@
"File::pushd" : "0",
"List::Util" : "0",
"Test::Fatal" : "0",
- "Test::More" : "0.96"
+ "Test::More" : "0.96",
+ "version" : "0"
}
}
},
"provides" : {
"MooseX::Types::Path::Tiny" : {
"file" : "lib/MooseX/Types/Path/Tiny.pm",
- "version" : "0.007"
+ "version" : "0.010"
}
},
"release_status" : "stable",
@@ -97,19 +103,19 @@
"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",
+ "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"
+ "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",
+ "version" : "0.010",
"x_Dist_Zilla" : {
"perl" : {
- "version" : "5.019006"
+ "version" : "5.019008"
},
"plugins" : [
{
@@ -131,7 +137,7 @@
}
},
"name" : "@Author::ETHER/build",
- "version" : "0.015"
+ "version" : "0.017"
},
{
"class" : "Dist::Zilla::Plugin::PromptIfStale",
@@ -145,22 +151,22 @@
}
},
"name" : "@Author::ETHER/release",
- "version" : "0.015"
+ "version" : "0.017"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@Author::ETHER/ExecDir",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@Author::ETHER/ShareDir",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::FileFinder::ByName",
"name" : "@Author::ETHER/Examples",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::Git::GatherDir",
@@ -170,27 +176,27 @@
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@Author::ETHER/MetaYAML",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@Author::ETHER/MetaJSON",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@Author::ETHER/License",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
"name" : "@Author::ETHER/Readme",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@Author::ETHER/Manifest",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::GenerateFile::ShareDir",
@@ -202,8 +208,8 @@
"source_filename" : "CONTRIBUTING"
}
},
- "name" : "@Author::ETHER/GenerateFile::ShareDir",
- "version" : "0.003"
+ "name" : "@Author::ETHER/generate CONTRIBUTING",
+ "version" : "0.005"
},
{
"class" : "Dist::Zilla::Plugin::Test::Compile",
@@ -246,7 +252,7 @@
{
"class" : "Dist::Zilla::Plugin::MetaTests",
"name" : "@Author::ETHER/MetaTests",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::Test::Version",
@@ -276,12 +282,12 @@
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@Author::ETHER/PodSyntaxTests",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::PodCoverageTests",
"name" : "@Author::ETHER/PodCoverageTests",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::Test::PodSpelling",
@@ -306,7 +312,7 @@
{
"class" : "Dist::Zilla::Plugin::Test::ReportPrereqs",
"name" : "@Author::ETHER/Test::ReportPrereqs",
- "version" : "0.010"
+ "version" : "0.013"
},
{
"class" : "Dist::Zilla::Plugin::Test::Portability",
@@ -314,21 +320,6 @@
"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"
@@ -336,7 +327,12 @@
{
"class" : "Dist::Zilla::Plugin::PkgVersion",
"name" : "@Author::ETHER/PkgVersion",
- "version" : "5.006"
+ "version" : "5.013"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Authority",
+ "name" : "@Author::ETHER/Authority",
+ "version" : "1.006"
},
{
"class" : "Dist::Zilla::Plugin::PodWeaver",
@@ -350,87 +346,87 @@
{
"class" : "Pod::Weaver::Plugin::EnsurePod5",
"name" : "@CorePrep/EnsurePod5",
- "version" : "4.005"
+ "version" : "4.006"
},
{
"class" : "Pod::Weaver::Plugin::H1Nester",
"name" : "@CorePrep/H1Nester",
- "version" : "4.005"
+ "version" : "4.006"
},
{
"class" : "Pod::Weaver::Plugin::SingleEncoding",
"name" : "@Default/SingleEncoding",
- "version" : "4.005"
+ "version" : "4.006"
},
{
"class" : "Pod::Weaver::Section::Name",
"name" : "@Default/Name",
- "version" : "4.005"
+ "version" : "4.006"
},
{
"class" : "Pod::Weaver::Section::Version",
"name" : "@Default/Version",
- "version" : "4.005"
+ "version" : "4.006"
},
{
"class" : "Pod::Weaver::Section::Region",
"name" : "@Default/prelude",
- "version" : "4.005"
+ "version" : "4.006"
},
{
"class" : "Pod::Weaver::Section::Generic",
"name" : "SYNOPSIS",
- "version" : "4.005"
+ "version" : "4.006"
},
{
"class" : "Pod::Weaver::Section::Generic",
"name" : "DESCRIPTION",
- "version" : "4.005"
+ "version" : "4.006"
},
{
"class" : "Pod::Weaver::Section::Generic",
"name" : "OVERVIEW",
- "version" : "4.005"
+ "version" : "4.006"
},
{
"class" : "Pod::Weaver::Section::Collect",
"name" : "ATTRIBUTES",
- "version" : "4.005"
+ "version" : "4.006"
},
{
"class" : "Pod::Weaver::Section::Collect",
"name" : "METHODS",
- "version" : "4.005"
+ "version" : "4.006"
},
{
"class" : "Pod::Weaver::Section::Collect",
"name" : "FUNCTIONS",
- "version" : "4.005"
+ "version" : "4.006"
},
{
"class" : "Pod::Weaver::Section::Leftovers",
"name" : "@Default/Leftovers",
- "version" : "4.005"
+ "version" : "4.006"
},
{
"class" : "Pod::Weaver::Section::Region",
"name" : "@Default/postlude",
- "version" : "4.005"
+ "version" : "4.006"
},
{
"class" : "Pod::Weaver::Section::Authors",
"name" : "@Default/Authors",
- "version" : "4.005"
+ "version" : "4.006"
},
{
"class" : "Pod::Weaver::Section::Legal",
"name" : "@Default/Legal",
- "version" : "4.005"
+ "version" : "4.006"
},
{
"class" : "Pod::Weaver::Plugin::Transformer",
"name" : "-Transformer",
- "version" : "4.005"
+ "version" : "4.006"
},
{
"class" : "Pod::Weaver::Plugin::StopWords",
@@ -446,12 +442,12 @@
}
},
"name" : "@Author::ETHER/PodWeaver",
- "version" : "4.002"
+ "version" : "4.005"
},
{
"class" : "Dist::Zilla::Plugin::NextRelease",
"name" : "@Author::ETHER/NextRelease",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod",
@@ -471,17 +467,23 @@
{
"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"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::MetaProvides::Package",
"config" : {
- "Dist::Zilla::Plugin::MetaProvides::Package" : {},
+ "Dist::Zilla::Plugin::MetaProvides::Package" : {
+ "finder" : [
+ ":InstallModules"
+ ],
+ "finder_objects" : [
+ {
+ "class" : "Dist::Zilla::Plugin::FinderCode",
+ "name" : ":InstallModules",
+ "version" : "5.013"
+ }
+ ]
+ },
"Dist::Zilla::Role::MetaProvider::Provider" : {
"inherit_missing" : "1",
"inherit_version" : "1",
@@ -489,17 +491,17 @@
}
},
"name" : "@Author::ETHER/MetaProvides::Package",
- "version" : "1.15000001"
+ "version" : "2.000001"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@Author::ETHER/MetaConfig",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::AutoPrereqs",
"name" : "@Author::ETHER/AutoPrereqs",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs::AuthorDeps",
@@ -520,7 +522,7 @@
}
},
"name" : "@Author::ETHER/installer_requirements",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -531,22 +533,22 @@
}
},
"name" : "@Author::ETHER/pluginbundle_version",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::RunExtraTests",
"name" : "@Author::ETHER/RunExtraTests",
- "version" : "0.016"
+ "version" : "0.017"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker::Fallback",
"name" : "@Author::ETHER/MakeMaker::Fallback",
- "version" : "0.005"
+ "version" : "0.006"
},
{
"class" : "Dist::Zilla::Plugin::ModuleBuildTiny",
"name" : "@Author::ETHER/ModuleBuildTiny",
- "version" : "0.005"
+ "version" : "0.006"
},
{
"class" : "Dist::Zilla::Plugin::InstallGuide",
@@ -555,8 +557,15 @@
},
{
"class" : "Dist::Zilla::Plugin::CheckSelfDependency",
+ "config" : {
+ "Dist::Zilla::Plugin::CheckSelfDependency" : {
+ "finder" : [
+ ":InstallModules"
+ ]
+ }
+ },
"name" : "@Author::ETHER/CheckSelfDependency",
- "version" : "0.006"
+ "version" : "0.007"
},
{
"class" : "Dist::Zilla::Plugin::Run::AfterBuild",
@@ -571,12 +580,12 @@
{
"class" : "Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts",
"name" : "@Author::ETHER/Git::CheckFor::MergeConflicts",
- "version" : "0.008"
+ "version" : "0.009"
},
{
"class" : "Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch",
"name" : "@Author::ETHER/Git::CheckFor::CorrectBranch",
- "version" : "0.008"
+ "version" : "0.009"
},
{
"class" : "Dist::Zilla::Plugin::Git::Remote::Check",
@@ -586,12 +595,12 @@
{
"class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed",
"name" : "@Author::ETHER/CheckPrereqsIndexed",
- "version" : "0.009"
+ "version" : "0.010"
},
{
"class" : "Dist::Zilla::Plugin::TestRelease",
"name" : "@Author::ETHER/TestRelease",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::Git::Check",
@@ -601,7 +610,7 @@
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
"name" : "@Author::ETHER/UploadToCPAN",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::CopyFilesFromRelease",
@@ -634,11 +643,6 @@
"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" : {
@@ -647,7 +651,12 @@
}
},
"name" : "@Author::ETHER/via_options",
- "version" : "5.006"
+ "version" : "5.013"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::ConfirmRelease",
+ "name" : "@Author::ETHER/ConfirmRelease",
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::ContributorsFromGit",
@@ -662,37 +671,63 @@
{
"class" : "Dist::Zilla::Plugin::MetaResources",
"name" : "MetaResources",
- "version" : "5.006"
+ "version" : "5.013"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Prereqs",
+ "config" : {
+ "Dist::Zilla::Plugin::Prereqs" : {
+ "phase" : "develop",
+ "type" : "requires"
+ }
+ },
+ "name" : "DevelopRequires",
+ "version" : "5.013"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Test::CheckBreaks",
+ "name" : "Test::CheckBreaks",
+ "version" : "0.006"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":IncModules",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
- "version" : "5.006"
+ "version" : "5.013"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":MainModule",
- "version" : "5.006"
+ "version" : "5.013"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::FinderCode",
+ "name" : ":AllFiles",
+ "version" : "5.013"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::FinderCode",
+ "name" : ":NoFiles",
+ "version" : "5.013"
}
],
"zilla" : {
@@ -700,10 +735,11 @@
"config" : {
"is_trial" : "0"
},
- "version" : "5.006"
+ "version" : "5.013"
}
},
- "x_authority" : "cpan:DAGOLDEN",
+ "x_authority" : "cpan:ETHER",
+ "x_breaks" : {},
"x_contributors" : [
"Karen Etheridge <ether@cpan.org>",
"Toby Inkster <mail@tobyinkster.co.uk>"
@@ -3,56 +3,59 @@ abstract: 'Path::Tiny types and coercions for Moose'
author:
- 'David Golden <dagolden@cpan.org>'
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
+ 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'
configure_requires:
- ExtUtils::MakeMaker: 6.30
- Module::Build::Tiny: 0.030
+ ExtUtils::MakeMaker: '6.30'
+ Module::Build::Tiny: '0.034'
dynamic_config: 0
-generated_by: 'Dist::Zilla version 5.006, CPAN::Meta::Converter version 2.133380'
+generated_by: 'Dist::Zilla version 5.013, CPAN::Meta::Converter version 2.133380'
license: apache
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
+ version: '1.4'
name: MooseX-Types-Path-Tiny
no_index:
directory:
- t
- xt
- examples
+ - share
provides:
MooseX::Types::Path::Tiny:
file: lib/MooseX/Types/Path/Tiny.pm
- version: 0.007
+ version: '0.010'
requires:
- Moose: 2
- MooseX::Types: 0
- MooseX::Types::Moose: 0
- MooseX::Types::Stringlike: 0
- Path::Tiny: 0
- perl: 5.006
- strict: 0
- warnings: 0
+ Moose: '2'
+ MooseX::Types: '0'
+ MooseX::Types::Moose: '0'
+ MooseX::Types::Stringlike: '0'
+ Path::Tiny: '0'
+ if: '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
+ homepage: https://github.com/karenetheridge/MooseX-Types-Path-Tiny
+ repository: https://github.com/karenetheridge/MooseX-Types-Path-Tiny.git
+version: '0.010'
x_Dist_Zilla:
perl:
- version: 5.019006
+ version: '5.019008'
plugins:
-
class: Dist::Zilla::Plugin::Git::NextVersion
name: '@Author::ETHER/Git::NextVersion'
- version: 2.019
+ version: '2.019'
-
class: Dist::Zilla::Plugin::PromptIfStale
config:
@@ -64,54 +67,54 @@ x_Dist_Zilla:
phase: build
skip: []
name: '@Author::ETHER/build'
- version: 0.015
+ version: '0.017'
-
class: Dist::Zilla::Plugin::PromptIfStale
config:
Dist::Zilla::Plugin::PromptIfStale:
- check_all_plugins: 1
- check_all_prereqs: 1
+ check_all_plugins: '1'
+ check_all_prereqs: '1'
modules: []
phase: release
skip: []
name: '@Author::ETHER/release'
- version: 0.015
+ version: '0.017'
-
class: Dist::Zilla::Plugin::ExecDir
name: '@Author::ETHER/ExecDir'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::ShareDir
name: '@Author::ETHER/ShareDir'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::FileFinder::ByName
name: '@Author::ETHER/Examples'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::Git::GatherDir
name: '@Author::ETHER/Git::GatherDir'
- version: 2.019
+ version: '2.019'
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@Author::ETHER/MetaYAML'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@Author::ETHER/MetaJSON'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::License
name: '@Author::ETHER/License'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::Readme
name: '@Author::ETHER/Readme'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::Manifest
name: '@Author::ETHER/Manifest'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::GenerateFile::ShareDir
config:
@@ -120,8 +123,8 @@ x_Dist_Zilla:
dist: Dist-Zilla-PluginBundle-Author-ETHER
encoding: UTF-8
source_filename: CONTRIBUTING
- name: '@Author::ETHER/GenerateFile::ShareDir'
- version: 0.003
+ name: '@Author::ETHER/generate CONTRIBUTING'
+ version: '0.005'
-
class: Dist::Zilla::Plugin::Test::Compile
config:
@@ -133,7 +136,7 @@ x_Dist_Zilla:
- ':ExecFiles'
- '@Author::ETHER/Examples'
name: '@Author::ETHER/Test::Compile'
- version: 2.039
+ version: '2.039'
-
class: Dist::Zilla::Plugin::Test::NoTabs
config:
@@ -144,87 +147,79 @@ x_Dist_Zilla:
- ':ExecFiles'
- '@Author::ETHER/Examples'
name: '@Author::ETHER/Test::NoTabs'
- version: 0.06
+ version: '0.06'
-
class: Dist::Zilla::Plugin::EOLTests
name: '@Author::ETHER/EOLTests'
- version: 0.02
+ version: '0.02'
-
class: Dist::Zilla::Plugin::MetaTests
name: '@Author::ETHER/MetaTests'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::Test::Version
name: '@Author::ETHER/Test::Version'
- version: 0.002004
+ version: '0.002004'
-
class: Dist::Zilla::Plugin::Test::CPAN::Changes
name: '@Author::ETHER/Test::CPAN::Changes'
- version: 0.008
+ version: '0.008'
-
class: Dist::Zilla::Plugin::Test::ChangesHasContent
name: '@Author::ETHER/Test::ChangesHasContent'
- version: 0.006
+ version: '0.006'
-
class: Dist::Zilla::Plugin::Test::UnusedVars
name: '@Author::ETHER/Test::UnusedVars'
- version: 2.000005
+ version: '2.000005'
-
class: Dist::Zilla::Plugin::Test::MinimumVersion
name: '@Author::ETHER/Test::MinimumVersion'
- version: 2.000005
+ version: '2.000005'
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@Author::ETHER/PodSyntaxTests'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::PodCoverageTests
name: '@Author::ETHER/PodCoverageTests'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::Test::PodSpelling
name: '@Author::ETHER/Test::PodSpelling'
- version: 2.006002
+ version: '2.006002'
-
class: Dist::Zilla::Plugin::Test::Pod::No404s
name: '@Author::ETHER/Test::Pod::No404s'
- version: 1.001
+ version: '1.001'
-
class: Dist::Zilla::Plugin::Test::Kwalitee
name: '@Author::ETHER/Test::Kwalitee'
- version: 2.07
+ version: '2.07'
-
class: Dist::Zilla::Plugin::MojibakeTests
name: '@Author::ETHER/MojibakeTests'
- version: 0.5
+ version: '0.5'
-
class: Dist::Zilla::Plugin::Test::ReportPrereqs
name: '@Author::ETHER/Test::ReportPrereqs'
- version: 0.010
+ version: '0.013'
-
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
+ version: '2.000005'
-
class: Dist::Zilla::Plugin::Git::Describe
name: '@Author::ETHER/Git::Describe'
- version: 0.003
+ version: '0.003'
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@Author::ETHER/PkgVersion'
- version: 5.006
+ version: '5.013'
+ -
+ class: Dist::Zilla::Plugin::Authority
+ name: '@Author::ETHER/Authority'
+ version: '1.006'
-
class: Dist::Zilla::Plugin::PodWeaver
config:
@@ -236,131 +231,134 @@ x_Dist_Zilla:
-
class: Pod::Weaver::Plugin::EnsurePod5
name: '@CorePrep/EnsurePod5'
- version: 4.005
+ version: '4.006'
-
class: Pod::Weaver::Plugin::H1Nester
name: '@CorePrep/H1Nester'
- version: 4.005
+ version: '4.006'
-
class: Pod::Weaver::Plugin::SingleEncoding
name: '@Default/SingleEncoding'
- version: 4.005
+ version: '4.006'
-
class: Pod::Weaver::Section::Name
name: '@Default/Name'
- version: 4.005
+ version: '4.006'
-
class: Pod::Weaver::Section::Version
name: '@Default/Version'
- version: 4.005
+ version: '4.006'
-
class: Pod::Weaver::Section::Region
name: '@Default/prelude'
- version: 4.005
+ version: '4.006'
-
class: Pod::Weaver::Section::Generic
name: SYNOPSIS
- version: 4.005
+ version: '4.006'
-
class: Pod::Weaver::Section::Generic
name: DESCRIPTION
- version: 4.005
+ version: '4.006'
-
class: Pod::Weaver::Section::Generic
name: OVERVIEW
- version: 4.005
+ version: '4.006'
-
class: Pod::Weaver::Section::Collect
name: ATTRIBUTES
- version: 4.005
+ version: '4.006'
-
class: Pod::Weaver::Section::Collect
name: METHODS
- version: 4.005
+ version: '4.006'
-
class: Pod::Weaver::Section::Collect
name: FUNCTIONS
- version: 4.005
+ version: '4.006'
-
class: Pod::Weaver::Section::Leftovers
name: '@Default/Leftovers'
- version: 4.005
+ version: '4.006'
-
class: Pod::Weaver::Section::Region
name: '@Default/postlude'
- version: 4.005
+ version: '4.006'
-
class: Pod::Weaver::Section::Authors
name: '@Default/Authors'
- version: 4.005
+ version: '4.006'
-
class: Pod::Weaver::Section::Legal
name: '@Default/Legal'
- version: 4.005
+ version: '4.006'
-
class: Pod::Weaver::Plugin::Transformer
- name: '-Transformer'
- version: 4.005
+ name: -Transformer
+ version: '4.006'
-
class: Pod::Weaver::Plugin::StopWords
- name: '-StopWords'
- version: 1.008
+ name: -StopWords
+ version: '1.008'
-
class: Pod::Weaver::Section::Contributors
name: Contributors
- version: 0.007
+ version: '0.007'
name: '@Author::ETHER/PodWeaver'
- version: 4.002
+ version: '4.005'
-
class: Dist::Zilla::Plugin::NextRelease
name: '@Author::ETHER/NextRelease'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::ReadmeAnyFromPod
name: '@Author::ETHER/ReadmeAnyFromPod'
- version: 0.133360
+ version: '0.133360'
-
class: Dist::Zilla::Plugin::GithubMeta
name: '@Author::ETHER/GithubMeta'
- version: 0.42
+ version: '0.42'
-
class: Dist::Zilla::Plugin::AutoMetaResources
name: '@Author::ETHER/AutoMetaResources'
- version: 1.20
+ 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
+ version: '5.013'
-
class: Dist::Zilla::Plugin::MetaProvides::Package
config:
- Dist::Zilla::Plugin::MetaProvides::Package: {}
+ Dist::Zilla::Plugin::MetaProvides::Package:
+ finder:
+ - ':InstallModules'
+ finder_objects:
+ -
+ class: Dist::Zilla::Plugin::FinderCode
+ name: ':InstallModules'
+ version: '5.013'
Dist::Zilla::Role::MetaProvider::Provider:
- inherit_missing: 1
- inherit_version: 1
- meta_noindex: 1
+ inherit_missing: '1'
+ inherit_version: '1'
+ meta_noindex: '1'
name: '@Author::ETHER/MetaProvides::Package'
- version: 1.15000001
+ version: '2.000001'
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@Author::ETHER/MetaConfig'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::AutoPrereqs
name: '@Author::ETHER/AutoPrereqs'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::Prereqs::AuthorDeps
name: '@Author::ETHER/Prereqs::AuthorDeps'
- version: 0.002
+ version: '0.002'
-
class: Dist::Zilla::Plugin::MinimumPerl
name: '@Author::ETHER/MinimumPerl'
- version: 1.003
+ version: '1.003'
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -368,7 +366,7 @@ x_Dist_Zilla:
phase: develop
type: requires
name: '@Author::ETHER/installer_requirements'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -376,43 +374,47 @@ x_Dist_Zilla:
phase: develop
type: recommends
name: '@Author::ETHER/pluginbundle_version'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::RunExtraTests
name: '@Author::ETHER/RunExtraTests'
- version: 0.016
+ version: '0.017'
-
class: Dist::Zilla::Plugin::MakeMaker::Fallback
name: '@Author::ETHER/MakeMaker::Fallback'
- version: 0.005
+ version: '0.006'
-
class: Dist::Zilla::Plugin::ModuleBuildTiny
name: '@Author::ETHER/ModuleBuildTiny'
- version: 0.005
+ version: '0.006'
-
class: Dist::Zilla::Plugin::InstallGuide
name: '@Author::ETHER/InstallGuide'
- version: 1.200002
+ version: '1.200002'
-
class: Dist::Zilla::Plugin::CheckSelfDependency
+ config:
+ Dist::Zilla::Plugin::CheckSelfDependency:
+ finder:
+ - ':InstallModules'
name: '@Author::ETHER/CheckSelfDependency'
- version: 0.006
+ version: '0.007'
-
class: Dist::Zilla::Plugin::Run::AfterBuild
name: '@Author::ETHER/Run::AfterBuild'
- version: 0.020
+ version: '0.020'
-
class: Dist::Zilla::Plugin::Git::Check
name: '@Author::ETHER/initial check'
- version: 2.019
+ version: '2.019'
-
class: Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts
name: '@Author::ETHER/Git::CheckFor::MergeConflicts'
- version: 0.008
+ version: '0.009'
-
class: Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch
name: '@Author::ETHER/Git::CheckFor::CorrectBranch'
- version: 0.008
+ version: '0.009'
-
class: Dist::Zilla::Plugin::Git::Remote::Check
name: '@Author::ETHER/Git::Remote::Check'
@@ -420,47 +422,43 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::CheckPrereqsIndexed
name: '@Author::ETHER/CheckPrereqsIndexed'
- version: 0.009
+ version: '0.010'
-
class: Dist::Zilla::Plugin::TestRelease
name: '@Author::ETHER/TestRelease'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::Git::Check
name: '@Author::ETHER/after tests'
- version: 2.019
+ version: '2.019'
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@Author::ETHER/UploadToCPAN'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::CopyFilesFromRelease
name: '@Author::ETHER/CopyFilesFromRelease'
- version: 0.001
+ version: '0.001'
-
class: Dist::Zilla::Plugin::Git::Commit
name: '@Author::ETHER/Git::Commit'
- version: 2.019
+ version: '2.019'
-
class: Dist::Zilla::Plugin::Git::Tag
name: '@Author::ETHER/Git::Tag'
- version: 2.019
+ version: '2.019'
-
class: Dist::Zilla::Plugin::GitHub::Update
name: '@Author::ETHER/GitHub::Update'
- version: 0.36
+ version: '0.36'
-
class: Dist::Zilla::Plugin::Git::Push
name: '@Author::ETHER/Git::Push'
- version: 2.019
+ 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
+ version: '0.008'
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -468,49 +466,74 @@ x_Dist_Zilla:
phase: develop
type: requires
name: '@Author::ETHER/via_options'
- version: 5.006
+ version: '5.013'
+ -
+ class: Dist::Zilla::Plugin::ConfirmRelease
+ name: '@Author::ETHER/ConfirmRelease'
+ version: '5.013'
-
class: Dist::Zilla::Plugin::ContributorsFromGit
name: ContributorsFromGit
- version: 0.006
+ version: '0.006'
-
class: Dist::Zilla::Plugin::Test::Perl::Critic
name: Test::Perl::Critic
- version: 2.112410
+ version: '2.112410'
-
class: Dist::Zilla::Plugin::MetaResources
name: MetaResources
- version: 5.006
+ version: '5.013'
+ -
+ class: Dist::Zilla::Plugin::Prereqs
+ config:
+ Dist::Zilla::Plugin::Prereqs:
+ phase: develop
+ type: requires
+ name: DevelopRequires
+ version: '5.013'
+ -
+ class: Dist::Zilla::Plugin::Test::CheckBreaks
+ name: Test::CheckBreaks
+ version: '0.006'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':IncModules'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
- version: 5.006
+ version: '5.013'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':MainModule'
- version: 5.006
+ version: '5.013'
+ -
+ class: Dist::Zilla::Plugin::FinderCode
+ name: ':AllFiles'
+ version: '5.013'
+ -
+ class: Dist::Zilla::Plugin::FinderCode
+ name: ':NoFiles'
+ version: '5.013'
zilla:
class: Dist::Zilla::Dist::Builder
config:
- is_trial: 0
- version: 5.006
-x_authority: cpan:DAGOLDEN
+ is_trial: '0'
+ version: '5.013'
+x_authority: cpan:ETHER
+x_breaks: {}
x_contributors:
- 'Karen Etheridge <ether@cpan.org>'
- 'Toby Inkster <mail@tobyinkster.co.uk>'
@@ -1,6 +1,7 @@
# 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.
+# Dist::Zilla::Plugin::MakeMaker::Fallback 0.006
+# and Dist::Zilla::Plugin::MakeMaker::Awesome 0.20.
+# Don't edit it but the dist.ini and plugins used to construct it.
use strict;
use warnings;
@@ -8,7 +9,7 @@ use warnings;
BEGIN {
my %configure_requires = (
'ExtUtils::MakeMaker' => '6.30',
- 'Module::Build::Tiny' => '0.030',
+ 'Module::Build::Tiny' => '0.034',
);
my @missing = grep {
@@ -72,7 +73,7 @@ my %WriteMakefileArgs = (
"BUILD_REQUIRES" => {},
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => "6.30",
- "Module::Build::Tiny" => "0.030"
+ "Module::Build::Tiny" => "0.034"
},
"DISTNAME" => "MooseX-Types-Path-Tiny",
"EXE_FILES" => [],
@@ -84,6 +85,7 @@ my %WriteMakefileArgs = (
"MooseX::Types::Moose" => 0,
"MooseX::Types::Stringlike" => 0,
"Path::Tiny" => 0,
+ "if" => 0,
"strict" => 0,
"warnings" => 0
},
@@ -94,39 +96,40 @@ my %WriteMakefileArgs = (
"File::pushd" => 0,
"List::Util" => 0,
"Test::Fatal" => 0,
- "Test::More" => "0.96"
+ "Test::More" => "0.96",
+ "version" => 0
},
- "VERSION" => "0.007",
+ "VERSION" => "0.010",
"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};
- }
- }
-}
+my %FallbackPrereqs = (
+ "ExtUtils::MakeMaker" => 0,
+ "File::Spec::Functions" => 0,
+ "File::Temp" => "0.18",
+ "File::pushd" => 0,
+ "List::Util" => 0,
+ "Moose" => 2,
+ "MooseX::Types" => 0,
+ "MooseX::Types::Moose" => 0,
+ "MooseX::Types::Stringlike" => 0,
+ "Path::Tiny" => 0,
+ "Test::Fatal" => 0,
+ "Test::More" => "0.96",
+ "if" => 0,
+ "strict" => 0,
+ "version" => 0,
+ "warnings" => 0
+);
-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};
- }
- }
+
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
+ delete $WriteMakefileArgs{TEST_REQUIRES};
+ delete $WriteMakefileArgs{BUILD_REQUIRES};
+ $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
@@ -1,7 +1,7 @@
This archive contains the distribution MooseX-Types-Path-Tiny,
-version 0.007:
+version 0.010:
Path::Tiny types and coercions for Moose
@@ -12,3 +12,5 @@ This is free software, licensed under:
The Apache License, Version 2.0, January 2004
+This README file was generated by Dist::Zilla::Plugin::Readme v5.013.
+
@@ -4,7 +4,7 @@ MooseX::Types::Path::Tiny - Path::Tiny types and coercions for Moose
# VERSION
-version 0.007
+version 0.010
# SYNOPSIS
@@ -27,6 +27,12 @@ version 0.007
coerce => 1,
);
+ has filenames => (
+ is => 'ro',
+ isa => Paths,
+ coerce => 1,
+ );
+
### usage in code
Foo->new( filename => 'foo.txt' ); # coerced to Path::Tiny
@@ -34,7 +40,7 @@ version 0.007
# DESCRIPTION
-This module provides [Path::Tiny](https://metacpan.org/pod/Path::Tiny) types for Moose. It handles
+This module provides [Path::Tiny](https://metacpan.org/pod/Path::Tiny) types for [Moose](https://metacpan.org/pod/Moose). It handles
two important types of coercion:
- coercing objects with overloaded stringification
@@ -65,6 +71,11 @@ the file actually exists on the filesystem.
These are just like `Path` and `AbsPath`, except they check `-d` to ensure
the directory actually exists on the filesystem.
+## Paths, AbsPaths
+
+These are arrayrefs of `Path` and `AbsPath`, and include coercions from
+arrayrefs of strings.
+
# CAVEATS
## Path vs File vs Dir
@@ -76,13 +87,13 @@ 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
+Be careful if you pass in a [File::Temp](https://metacpan.org/pod/File::Temp) object. Because the argument is
+stringified during coercion into a [Path::Tiny](https://metacpan.org/pod/Path::Tiny) object, no reference to the
+original [File::Temp](https://metacpan.org/pod/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`
+A better approach is to use [Path::Tiny](https://metacpan.org/pod/Path::Tiny)'s own `tempfile` or `tempdir`
constructors, which hold the reference for you.
Foo->new( filename => Path::Tiny->tempfile );
@@ -6,7 +6,6 @@ copyright_year = 2013
[@Author::ETHER]
:version = 0.041
-Authority.authority = cpan:DAGOLDEN
Test::MinimumVersion.max_target_perl = 5.008001
; authordep Pod::Weaver = 4
@@ -19,3 +18,9 @@ Test::MinimumVersion.max_target_perl = 5.008001
[MetaResources]
x_IRC = irc://irc.perl.org/#moose
x_MailingList = http://lists.perl.org/list/moose.html
+
+[Prereqs / DevelopRequires]
+Test::CleanNamespaces = 0
+
+[Test::CheckBreaks]
+conflicts_module = Moose::Conflicts
@@ -1,21 +1,24 @@
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';
+ $MooseX::Types::Path::Tiny::AUTHORITY = 'cpan:ETHER';
}
+# git description: v0.009-1-gb623db3
+$MooseX::Types::Path::Tiny::VERSION = '0.010';
# 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 MooseX::Types -declare => [qw/
+ Path AbsPath
+ File AbsFile
+ Dir AbsDir
+ Paths AbsPaths
+/];
use Path::Tiny ();
+use if MooseX::Types->VERSION >= 0.42, 'namespace::autoclean';
#<<<
subtype Path, as 'Path::Tiny';
@@ -26,6 +29,9 @@ subtype Dir, as Path, where { $_->is_dir }, message { "Directory '$_' does
subtype AbsFile, as AbsPath, where { $_->is_file }, message { "File '$_' does not exist" };
subtype AbsDir, as AbsPath, where { $_->is_dir }, message { "Directory '$_' does not exist" };
+
+subtype Paths, as ArrayRef[Path];
+subtype AbsPaths, as ArrayRef[AbsPath];
#>>>
for my $type ( 'Path::Tiny', Path, File, Dir ) {
@@ -47,6 +53,22 @@ for my $type ( AbsPath, AbsFile, AbsDir ) {
);
}
+coerce(
+ Paths,
+ from Path() => via { [ $_ ] },
+ from Str() => via { [ Path::Tiny::path($_) ] },
+ from Stringable() => via { [ Path::Tiny::path($_) ] },
+ from ArrayRef() => via { [ map { Path::Tiny::path($_) } @$_ ] },
+);
+
+coerce(
+ AbsPaths,
+ from AbsPath() => via { [ $_ ] },
+ from Str() => via { [ Path::Tiny::path($_)->absolute ] },
+ from Stringable() => via { [ Path::Tiny::path($_)->absolute ] },
+ from ArrayRef() => via { [ map { Path::Tiny::path($_)->absolute } @$_ ] },
+);
+
### optionally add Getopt option type (adapted from MooseX::Types:Path::Class
##eval { require MooseX::Getopt; };
##if ( !$@ ) {
@@ -69,7 +91,7 @@ MooseX::Types::Path::Tiny - Path::Tiny types and coercions for Moose
=head1 VERSION
-version 0.007
+version 0.010
=head1 SYNOPSIS
@@ -92,6 +114,12 @@ version 0.007
coerce => 1,
);
+ has filenames => (
+ is => 'ro',
+ isa => Paths,
+ coerce => 1,
+ );
+
### usage in code
Foo->new( filename => 'foo.txt' ); # coerced to Path::Tiny
@@ -99,7 +127,7 @@ version 0.007
=head1 DESCRIPTION
-This module provides L<Path::Tiny> types for Moose. It handles
+This module provides L<Path::Tiny> types for L<Moose>. It handles
two important types of coercion:
=over 4
@@ -139,6 +167,11 @@ the file actually exists on the filesystem.
These are just like C<Path> and C<AbsPath>, except they check C<-d> to ensure
the directory actually exists on the filesystem.
+=head2 Paths, AbsPaths
+
+These are arrayrefs of C<Path> and C<AbsPath>, and include coercions from
+arrayrefs of strings.
+
=head1 CAVEATS
=head2 Path vs File vs Dir
@@ -150,13 +183,13 @@ 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
+Be careful if you pass in a L<File::Temp> object. Because the argument is
+stringified during coercion into a L<Path::Tiny> object, no reference to the
+original L<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<tempfile> or C<tempdir>
+A better approach is to use L<Path::Tiny>'s own C<tempfile> or C<tempdir>
constructors, which hold the reference for you.
Foo->new( filename => Path::Tiny->tempfile );
@@ -3,72 +3,147 @@
use strict;
use warnings;
-# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.010
+# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.013
use Test::More tests => 1;
use ExtUtils::MakeMaker;
use File::Spec::Functions;
use List::Util qw/max/;
+use version;
+
+# hide optional CPAN::Meta modules from prereq scanner
+# and check if they are available
+my $cpan_meta = "CPAN::Meta";
+my $cpan_meta_req = "CPAN::Meta::Requirements";
+my $HAS_CPAN_META = eval "require $cpan_meta"; ## no critic
+my $HAS_CPAN_META_REQ = eval "require $cpan_meta_req; $cpan_meta_req->VERSION('2.120900')";
+
+# Verify requirements?
+my $DO_VERIFY_PREREQS = 1;
+
+sub _merge_requires {
+ my ($collector, $prereqs) = @_;
+ for my $phase ( qw/configure build test runtime develop/ ) {
+ next unless exists $prereqs->{$phase};
+ if ( my $req = $prereqs->{$phase}{'requires'} ) {
+ my $cmr = CPAN::Meta::Requirements->from_string_hash( $req );
+ $collector->add_requirements( $cmr );
+ }
+ }
+}
+
+my %include = map {; $_ => 1 } qw(
-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";
+# Add static prereqs to the included modules list
+my $static_prereqs = do { my $x = {
+ 'configure' => {
+ 'requires' => {
+ 'ExtUtils::MakeMaker' => '6.30',
+ 'Module::Build::Tiny' => '0.034'
+ }
+ },
+ 'develop' => {
+ 'recommends' => {
+ 'Dist::Zilla::PluginBundle::Author::ETHER' => '0.050'
+ },
+ 'requires' => {
+ 'Dist::Zilla' => '5.013',
+ '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::Prereqs' => '0',
+ 'Dist::Zilla::Plugin::Test::CheckBreaks' => '0',
+ '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::CleanNamespaces' => '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',
+ 'if' => '0',
+ 'perl' => '5.006',
+ 'strict' => '0',
+ 'warnings' => '0'
+ }
+ },
+ 'test' => {
+ 'recommends' => {
+ 'CPAN::Meta' => '0',
+ 'CPAN::Meta::Requirements' => '2.120900'
+ },
+ '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'
+ }
+ }
+ };
+ $x;
+ };
+
+delete $static_prereqs->{develop} if not $ENV{AUTHOR_TESTING};
+$include{$_} = 1 for map { keys %$_ } map { values %$_ } values %$static_prereqs;
+
+# Merge requirements for major phases (if we can)
my $all_requires;
-if ( -f $source && eval "require $cpan_meta" ) { ## no critic
+if ( $DO_VERIFY_PREREQS && $HAS_CPAN_META_REQ ) {
+ $all_requires = $cpan_meta_req->new;
+ _merge_requires($all_requires, $static_prereqs);
+}
+
+
+# Add dynamic prereqs to the included modules list (if we can)
+my ($source) = grep { -f } 'MYMETA.json', 'MYMETA.yml';
+if ( $source && $HAS_CPAN_META ) {
if ( my $meta = eval { CPAN::Meta->load_file($source) } ) {
+ my $dynamic_prereqs = $meta->prereqs;
+ delete $dynamic_prereqs->{develop} if not $ENV{AUTHOR_TESTING};
+ $include{$_} = 1 for map { keys %$_ } map { values %$_ } values %$dynamic_prereqs;
- # 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')
- );
- }
- }
+ if ( $DO_VERIFY_PREREQS && $HAS_CPAN_META_REQ ) {
+ _merge_requires($all_requires, $dynamic_prereqs);
}
}
}
+else {
+ $source = 'static metadata';
+}
+my @modules = sort grep { ! $exclude{$_} } keys %include;
my @reports = [qw/Version Module/];
my @dep_errors;
my $req_hash = defined($all_requires) ? $all_requires->as_string_hash : {};
@@ -84,7 +159,7 @@ for my $mod ( @modules ) {
$ver = "undef" unless defined $ver; # Newer MM should do this anyway
push @reports, [$ver, $mod];
- if ( 1 && $all_requires ) {
+ if ( $DO_VERIFY_PREREQS && $all_requires ) {
my $req = $req_hash->{$mod};
if ( defined $req && length $req ) {
if ( ! defined eval { version->parse($ver) } ) {
@@ -100,7 +175,7 @@ for my $mod ( @modules ) {
else {
push @reports, ["missing", $mod];
- if ( 1 && $all_requires ) {
+ if ( $DO_VERIFY_PREREQS && $all_requires ) {
my $req = $req_hash->{$mod};
if ( defined $req && length $req ) {
push @dep_errors, "$mod is not installed (version '$req' required)";
@@ -128,4 +203,4 @@ if ( @dep_errors ) {
pass;
-# vim: ts=2 sts=2 sw=2 et:
+# vim: ts=4 sts=4 sw=4 et:
@@ -0,0 +1,16 @@
+use strict;
+use warnings FATAL => 'all';
+
+use Test::More;
+use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';
+
+use MooseX::Types::Path::Tiny 'Path';
+use Path::Tiny;
+
+ok(is_Path(path('foo')), 'is_Path');
+
+ok(Path->isa('Moose::Meta::TypeConstraint'), 'type is available as an import');
+
+ok(MooseX::Types::Path::Tiny::Path->isa('Moose::Meta::TypeConstraint'), 'type is available as a fully-qualified name');
+
+done_testing;
@@ -0,0 +1,40 @@
+use strict;
+use warnings;
+use Test::More;
+use Path::Tiny;
+use File::Temp;
+use File::pushd qw/tempd/;
+use MooseX::Types::Path::Tiny qw/Paths AbsPaths/;
+
+{
+ my %tests = (
+ "path('foo')" => path('foo'),
+ 'foo' => 'foo',
+ "[ path('foo') ]" => [ path('foo') ],
+ "[ 'foo' ]" => [ 'foo' ],
+ );
+
+ foreach my $test (keys %tests)
+ {
+ ok(is_Paths(to_Paths($tests{$test})), 'can coerce ' . $test . ' to Paths');
+ }
+}
+
+{
+ my $wd = tempd;
+ my $tf = File::Temp->new;
+
+ my %tests = (
+ 'path($filename)' => path($tf),
+ '$filename' => $tf,
+ '[ path($filename) ]' => [ path($tf) ],
+ '[ $filename ]' => [ $tf ],
+ );
+
+ foreach my $test (keys %tests)
+ {
+ ok(is_AbsPaths(to_AbsPaths($tests{$test})), 'can coerce ' . $test . ' to AbsPaths');
+ }
+}
+
+done_testing;
@@ -0,0 +1,18 @@
+use strict;
+use warnings;
+
+# this test was generated with Dist::Zilla::Plugin::Test::CheckBreaks 0.006
+
+use Test::More;
+
+SKIP: {
+ eval 'require Moose::Conflicts; Moose::Conflicts->check_conflicts';
+ skip('no Moose::Conflicts module found', 1) if not $INC{'Moose/Conflicts.pm'};
+
+ diag $@ if $@;
+ pass 'conflicts checked via Moose::Conflicts';
+}
+
+pass 'no x_breaks data to check';
+
+done_testing;
@@ -4,7 +4,7 @@ use Test::More tests => 2;
note 'Checking Changes';
my $changes_file = 'Changes';
-my $newver = '0.007';
+my $newver = '0.010';
my $trial_token = '-TRIAL';
SKIP: {
@@ -0,0 +1,10 @@
+use strict;
+use warnings FATAL => 'all';
+
+use Test::More;
+use Test::CleanNamespaces;
+
+use Test::Requires { 'MooseX::Types' => '0.42' };
+all_namespaces_clean();
+
+done_testing;
@@ -1,7 +1,6 @@
#!perl
+# This file was automatically generated by Dist::Zilla::Plugin::MetaTests.
-use Test::More;
+use Test::CPAN::Meta;
-eval "use Test::CPAN::Meta";
-plan skip_all => "Test::CPAN::Meta required for testing META.yml" if $@;
meta_yaml_ok();
@@ -1,13 +1,7 @@
#!perl
+# This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests.
-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 $@;
+use Test::Pod::Coverage 1.08;
+use Pod::Coverage::TrustPod;
all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });
@@ -1,7 +1,6 @@
#!perl
+# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests.
use Test::More;
-
-eval "use Test::Pod 1.41";
-plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
+use Test::Pod 1.41;
all_pod_files_ok();