[SCM] libmoox-options-perl Debian packaging branch, master, updated. debian/3.78-1-17-g6aa50a6
Jonas Smedegaard
dr at jones.dk
Mon May 6 12:22:41 UTC 2013
The following commit has been merged in the master branch:
commit 5bad70b3154941fdb2eb145d5a58242eaa49b176
Merge: 5200e1bcfcccea70269c68435c09154b7f374b31 d83369689249d6605f8721586dbec7e83ca71e03
Author: Jonas Smedegaard <dr at jones.dk>
Date: Mon May 6 14:11:27 2013 +0200
Imported Upstream version 3.80
diff --combined Build.PL
index d9d73e2,0000000..f2156ec
mode 100644,000000..100644
--- a/Build.PL
+++ b/Build.PL
@@@ -1,70 -1,0 +1,73 @@@
+
+use strict;
+use warnings;
+
+use Module::Build 0.3601;
+
+
+my %module_build_args = (
+ "build_requires" => {
+ "Module::Build" => "0.3601"
+ },
+ "configure_requires" => {
+ "Module::Build" => "0.3601"
+ },
+ "dist_abstract" => "add option keywords to your object (Mo/Moo/Moose)",
+ "dist_author" => [
+ "celogeek <me\@celogeek.com>"
+ ],
+ "dist_name" => "MooX-Options",
- "dist_version" => "3.78",
++ "dist_version" => "3.80",
+ "license" => "perl",
+ "module_name" => "MooX::Options",
+ "recommends" => {},
+ "recursive_test_files" => 1,
+ "requires" => {
+ "Carp" => 0,
+ "Data::Record" => 0,
+ "Getopt::Long" => "2.38",
+ "Getopt::Long::Descriptive" => "0.091",
++ "JSON" => 0,
+ "MRO::Compat" => 0,
+ "Module::Load::Conditional" => "0.54",
+ "Module::Metadata" => "1.000011",
+ "Moo" => "1.000003",
+ "Regexp::Common" => 0,
+ "perl" => "5.006",
+ "strict" => 0,
+ "warnings" => 0
+ },
+ "script_files" => [],
+ "test_requires" => {
++ "English" => 0,
+ "File::Find" => 0,
+ "File::Temp" => 0,
+ "FindBin" => 0,
+ "Role::Tiny::With" => 0,
+ "Scalar::Util" => 0,
+ "Test::More" => "0.94",
++ "Test::Requires" => 0,
+ "Test::Trap" => 0,
+ "Try::Tiny" => 0,
+ "namespace::clean" => 0,
+ "perl" => "5.004"
+ }
+);
+
+
+unless ( eval { Module::Build->VERSION(0.4004) } ) {
+ my $tr = delete $module_build_args{test_requires};
+ my $br = $module_build_args{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 $build = Module::Build->new(%module_build_args);
+
+$build->create_build_script;
diff --combined Changes
index 0381b78,7d0e7bf..5ce8e20
--- a/Changes
+++ b/Changes
@@@ -1,3 -1,13 +1,11 @@@
-{{$NEXT}}
-
+ 3.80 2013-04-28 23:46:23 Europe/Paris
+
+ * Bug #198 : Fix pod, issue with metacpan (Celogeek San)
+
+ 3.79 2013-04-25 00:12:25 Europe/Paris
+
+ * Feature #192 : support json mode (Celogeek San)
+
3.78 2013-04-12 01:16:12 Europe/Paris
Support for prefered commandline (Tom Lanyon)
diff --combined MANIFEST
index e20ca3f,0000000..29b2bdd
mode 100644,000000..100644
--- a/MANIFEST
+++ b/MANIFEST
@@@ -1,33 -1,0 +1,34 @@@
+Build.PL
+Changes
+LICENSE
+MANIFEST
+META.json
+META.yml
+README
+README.mkdn
+coverage.txt
+dist.ini
+lib/MooX/Options.pm
+lib/MooX/Options/Role.pm
+t/00-compile.t
+t/000-report-versions.t
+t/author-critic.t
+t/base.st
+t/doc.t
+t/failure.t
+t/flavour.t
+t/lib/TestNamespaceClean.pm
+t/mo.t
+t/moo.t
+t/moose.t
+t/mouse.t
+t/multi_role.t
+t/namespace_clean.t
+t/no_option.t
+t/order.t
++t/pod.t
+t/release-pod-coverage.t
+t/release-unused-vars.t
+t/role.t
+xt/perlcritic.rc
+xt/perltidy.rc
diff --combined META.json
index 6f3625d,0000000..51e47e3
mode 100644,000000..100644
--- a/META.json
+++ b/META.json
@@@ -1,328 -1,0 +1,331 @@@
+{
+ "abstract" : "add option keywords to your object (Mo/Moo/Moose)",
+ "author" : [
+ "celogeek <me at celogeek.com>"
+ ],
+ "dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.300032, CPAN::Meta::Converter version 2.130880",
++ "generated_by" : "Dist::Zilla version 4.300033, CPAN::Meta::Converter version 2.130880",
+ "license" : [
+ "perl_5"
+ ],
+ "meta-spec" : {
+ "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
+ "version" : "2"
+ },
+ "name" : "MooX-Options",
+ "prereqs" : {
+ "build" : {
+ "requires" : {
+ "Module::Build" : "0.3601"
+ }
+ },
+ "configure" : {
+ "requires" : {
+ "Module::Build" : "0.3601"
+ }
+ },
+ "develop" : {
+ "requires" : {
+ "Pod::Coverage::TrustPod" : "0",
+ "Test::Pod::Coverage" : "1.08"
+ }
+ },
+ "runtime" : {
+ "requires" : {
+ "Carp" : "0",
+ "Data::Record" : "0",
+ "Getopt::Long" : "2.38",
+ "Getopt::Long::Descriptive" : "0.091",
++ "JSON" : "0",
+ "MRO::Compat" : "0",
+ "Module::Load::Conditional" : "0.54",
+ "Module::Metadata" : "1.000011",
+ "Moo" : "1.000003",
+ "Regexp::Common" : "0",
+ "perl" : "5.006",
+ "strict" : "0",
+ "warnings" : "0"
+ }
+ },
+ "test" : {
+ "requires" : {
++ "English" : "0",
+ "File::Find" : "0",
+ "File::Temp" : "0",
+ "FindBin" : "0",
+ "Role::Tiny::With" : "0",
+ "Scalar::Util" : "0",
+ "Test::More" : "0.94",
++ "Test::Requires" : "0",
+ "Test::Trap" : "0",
+ "Try::Tiny" : "0",
+ "namespace::clean" : "0",
+ "perl" : "5.004"
+ }
+ }
+ },
+ "release_status" : "stable",
+ "resources" : {
+ "bugtracker" : {
+ "web" : "http://tasks.celogeek.com/projects/perl-modules-moox-options"
+ },
+ "homepage" : "https://gitorious.celogeek.com/perl-modules/moox-options",
+ "repository" : {
+ "type" : "git",
+ "url" : "git://gitorious.celogeek.com/perl-modules/moox-options.git",
+ "web" : "https://gitorious.celogeek.com/perl-modules/moox-options"
+ }
+ },
- "version" : "3.78",
++ "version" : "3.80",
+ "x_Dist_Zilla" : {
+ "perl" : {
+ "version" : "5.016003"
+ },
+ "plugins" : [
+ {
+ "class" : "Dist::Zilla::Plugin::Git::NextVersion",
+ "name" : "@Author::Celogeek/Git::NextVersion",
+ "version" : "2.012"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::NextRelease",
+ "name" : "@Author::Celogeek/NextRelease",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Git::Check",
+ "name" : "@Author::Celogeek/@Git/Check",
+ "version" : "2.012"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Git::Commit",
+ "name" : "@Author::Celogeek/@Git/Commit",
+ "version" : "2.012"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Git::Tag",
+ "name" : "@Author::Celogeek/@Git/Tag",
+ "version" : "2.012"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Git::Push",
+ "name" : "@Author::Celogeek/@Git/Push",
+ "version" : "2.012"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::GatherDir",
+ "name" : "@Author::Celogeek/@Filter/GatherDir",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::PruneCruft",
+ "name" : "@Author::Celogeek/@Filter/PruneCruft",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::ManifestSkip",
+ "name" : "@Author::Celogeek/@Filter/ManifestSkip",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::MetaYAML",
+ "name" : "@Author::Celogeek/@Filter/MetaYAML",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::License",
+ "name" : "@Author::Celogeek/@Filter/License",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Readme",
+ "name" : "@Author::Celogeek/@Filter/Readme",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::ExtraTests",
+ "name" : "@Author::Celogeek/@Filter/ExtraTests",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::ExecDir",
+ "name" : "@Author::Celogeek/@Filter/ExecDir",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::ShareDir",
+ "name" : "@Author::Celogeek/@Filter/ShareDir",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Manifest",
+ "name" : "@Author::Celogeek/@Filter/Manifest",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::TestRelease",
+ "name" : "@Author::Celogeek/@Filter/TestRelease",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::ConfirmRelease",
+ "name" : "@Author::Celogeek/@Filter/ConfirmRelease",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::UploadToCPAN",
+ "name" : "@Author::Celogeek/@Filter/UploadToCPAN",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::ModuleBuild",
+ "name" : "@Author::Celogeek/ModuleBuild",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::ReportVersions",
+ "name" : "@Author::Celogeek/ReportVersions",
+ "version" : "1.110730"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::OurPkgVersion",
+ "name" : "@Author::Celogeek/OurPkgVersion",
+ "version" : "0.004000"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Prepender",
+ "name" : "@Author::Celogeek/Prepender",
+ "version" : "1.112280"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::MinimumPerl",
+ "name" : "@Author::Celogeek/MinimumPerl",
+ "version" : "1.003"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Test::Compile",
+ "name" : "@Author::Celogeek/Test::Compile",
+ "version" : "2.001"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::CheckChangeLog",
+ "name" : "@Author::Celogeek/CheckChangeLog",
+ "version" : "0.01"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Test::UnusedVars",
+ "name" : "@Author::Celogeek/Test::UnusedVars",
- "version" : "2.000003"
++ "version" : "2.000004"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::PodCoverageTests",
+ "name" : "@Author::Celogeek/PodCoverageTests",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::PruneFiles",
+ "name" : "@Author::Celogeek/PruneFiles",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::ReadmeMarkdownFromPod",
+ "name" : "@Author::Celogeek/ReadmeMarkdownFromPod",
+ "version" : "0.120120"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::MetaJSON",
+ "name" : "@Author::Celogeek/MetaJSON",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::MetaResourcesFromGit",
+ "name" : "@Author::Celogeek/MetaResourcesFromGit",
+ "version" : "1.103620"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::MetaConfig",
+ "name" : "@Author::Celogeek/MetaConfig",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::PodWeaver",
+ "name" : "@Author::Celogeek/PodWeaver",
+ "version" : "3.101641"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Run::BeforeRelease",
+ "name" : "@Author::Celogeek/Run::BeforeRelease",
+ "version" : "0.018"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::PerlTidy",
+ "name" : "@Author::Celogeek/PerlTidy",
+ "version" : "0.13"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Test::Perl::Critic",
+ "name" : "@Author::Celogeek/Test::Perl::Critic",
+ "version" : "2.112410"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::AutoPrereqs",
+ "name" : "AutoPrereqs",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Prereqs",
+ "config" : {
+ "Dist::Zilla::Plugin::Prereqs" : {
+ "phase" : "runtime",
+ "type" : "requires"
+ }
+ },
+ "name" : "Prereqs",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::MetaResourcesFromGit",
+ "name" : "MetaResourcesFromGit",
+ "version" : "1.103620"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::FinderCode",
+ "name" : ":InstallModules",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::FinderCode",
+ "name" : ":IncModules",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::FinderCode",
+ "name" : ":TestFiles",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::FinderCode",
+ "name" : ":ExecFiles",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::FinderCode",
+ "name" : ":ShareFiles",
- "version" : "4.300032"
++ "version" : "4.300033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::FinderCode",
+ "name" : ":MainModule",
- "version" : "4.300032"
++ "version" : "4.300033"
+ }
+ ],
+ "zilla" : {
+ "class" : "Dist::Zilla::Dist::Builder",
+ "config" : {
+ "is_trial" : "0"
+ },
- "version" : "4.300032"
++ "version" : "4.300033"
+ }
+ }
+}
+
diff --combined META.yml
index ff94f23,0000000..b0816a7
mode 100644,000000..100644
--- a/META.yml
+++ b/META.yml
@@@ -1,240 -1,0 +1,243 @@@
+---
+abstract: 'add option keywords to your object (Mo/Moo/Moose)'
+author:
+ - 'celogeek <me at celogeek.com>'
+build_requires:
++ English: 0
+ File::Find: 0
+ File::Temp: 0
+ FindBin: 0
+ Module::Build: 0.3601
+ Role::Tiny::With: 0
+ Scalar::Util: 0
+ Test::More: 0.94
++ Test::Requires: 0
+ Test::Trap: 0
+ Try::Tiny: 0
+ namespace::clean: 0
+ perl: 5.004
+configure_requires:
+ Module::Build: 0.3601
+dynamic_config: 0
- generated_by: 'Dist::Zilla version 4.300032, CPAN::Meta::Converter version 2.130880'
++generated_by: 'Dist::Zilla version 4.300033, CPAN::Meta::Converter version 2.130880'
+license: perl
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
+name: MooX-Options
+requires:
+ Carp: 0
+ Data::Record: 0
+ Getopt::Long: 2.38
+ Getopt::Long::Descriptive: 0.091
++ JSON: 0
+ MRO::Compat: 0
+ Module::Load::Conditional: 0.54
+ Module::Metadata: 1.000011
+ Moo: 1.000003
+ Regexp::Common: 0
+ perl: 5.006
+ strict: 0
+ warnings: 0
+resources:
+ bugtracker: http://tasks.celogeek.com/projects/perl-modules-moox-options
+ homepage: https://gitorious.celogeek.com/perl-modules/moox-options
+ repository: git://gitorious.celogeek.com/perl-modules/moox-options.git
- version: 3.78
++version: 3.80
+x_Dist_Zilla:
+ perl:
+ version: 5.016003
+ plugins:
+ -
+ class: Dist::Zilla::Plugin::Git::NextVersion
+ name: '@Author::Celogeek/Git::NextVersion'
+ version: 2.012
+ -
+ class: Dist::Zilla::Plugin::NextRelease
+ name: '@Author::Celogeek/NextRelease'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::Git::Check
+ name: '@Author::Celogeek/@Git/Check'
+ version: 2.012
+ -
+ class: Dist::Zilla::Plugin::Git::Commit
+ name: '@Author::Celogeek/@Git/Commit'
+ version: 2.012
+ -
+ class: Dist::Zilla::Plugin::Git::Tag
+ name: '@Author::Celogeek/@Git/Tag'
+ version: 2.012
+ -
+ class: Dist::Zilla::Plugin::Git::Push
+ name: '@Author::Celogeek/@Git/Push'
+ version: 2.012
+ -
+ class: Dist::Zilla::Plugin::GatherDir
+ name: '@Author::Celogeek/@Filter/GatherDir'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::PruneCruft
+ name: '@Author::Celogeek/@Filter/PruneCruft'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::ManifestSkip
+ name: '@Author::Celogeek/@Filter/ManifestSkip'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::MetaYAML
+ name: '@Author::Celogeek/@Filter/MetaYAML'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::License
+ name: '@Author::Celogeek/@Filter/License'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::Readme
+ name: '@Author::Celogeek/@Filter/Readme'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::ExtraTests
+ name: '@Author::Celogeek/@Filter/ExtraTests'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::ExecDir
+ name: '@Author::Celogeek/@Filter/ExecDir'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::ShareDir
+ name: '@Author::Celogeek/@Filter/ShareDir'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::Manifest
+ name: '@Author::Celogeek/@Filter/Manifest'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::TestRelease
+ name: '@Author::Celogeek/@Filter/TestRelease'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::ConfirmRelease
+ name: '@Author::Celogeek/@Filter/ConfirmRelease'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::UploadToCPAN
+ name: '@Author::Celogeek/@Filter/UploadToCPAN'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::ModuleBuild
+ name: '@Author::Celogeek/ModuleBuild'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::ReportVersions
+ name: '@Author::Celogeek/ReportVersions'
+ version: 1.110730
+ -
+ class: Dist::Zilla::Plugin::OurPkgVersion
+ name: '@Author::Celogeek/OurPkgVersion'
+ version: 0.004000
+ -
+ class: Dist::Zilla::Plugin::Prepender
+ name: '@Author::Celogeek/Prepender'
+ version: 1.112280
+ -
+ class: Dist::Zilla::Plugin::MinimumPerl
+ name: '@Author::Celogeek/MinimumPerl'
+ version: 1.003
+ -
+ class: Dist::Zilla::Plugin::Test::Compile
+ name: '@Author::Celogeek/Test::Compile'
+ version: 2.001
+ -
+ class: Dist::Zilla::Plugin::CheckChangeLog
+ name: '@Author::Celogeek/CheckChangeLog'
+ version: 0.01
+ -
+ class: Dist::Zilla::Plugin::Test::UnusedVars
+ name: '@Author::Celogeek/Test::UnusedVars'
- version: 2.000003
++ version: 2.000004
+ -
+ class: Dist::Zilla::Plugin::PodCoverageTests
+ name: '@Author::Celogeek/PodCoverageTests'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::PruneFiles
+ name: '@Author::Celogeek/PruneFiles'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::ReadmeMarkdownFromPod
+ name: '@Author::Celogeek/ReadmeMarkdownFromPod'
+ version: 0.120120
+ -
+ class: Dist::Zilla::Plugin::MetaJSON
+ name: '@Author::Celogeek/MetaJSON'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::MetaResourcesFromGit
+ name: '@Author::Celogeek/MetaResourcesFromGit'
+ version: 1.103620
+ -
+ class: Dist::Zilla::Plugin::MetaConfig
+ name: '@Author::Celogeek/MetaConfig'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::PodWeaver
+ name: '@Author::Celogeek/PodWeaver'
+ version: 3.101641
+ -
+ class: Dist::Zilla::Plugin::Run::BeforeRelease
+ name: '@Author::Celogeek/Run::BeforeRelease'
+ version: 0.018
+ -
+ class: Dist::Zilla::Plugin::PerlTidy
+ name: '@Author::Celogeek/PerlTidy'
+ version: 0.13
+ -
+ class: Dist::Zilla::Plugin::Test::Perl::Critic
+ name: '@Author::Celogeek/Test::Perl::Critic'
+ version: 2.112410
+ -
+ class: Dist::Zilla::Plugin::AutoPrereqs
+ name: AutoPrereqs
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::Prereqs
+ config:
+ Dist::Zilla::Plugin::Prereqs:
+ phase: runtime
+ type: requires
+ name: Prereqs
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::MetaResourcesFromGit
+ name: MetaResourcesFromGit
+ version: 1.103620
+ -
+ class: Dist::Zilla::Plugin::FinderCode
+ name: ':InstallModules'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::FinderCode
+ name: ':IncModules'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::FinderCode
+ name: ':TestFiles'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::FinderCode
+ name: ':ExecFiles'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::FinderCode
+ name: ':ShareFiles'
- version: 4.300032
++ version: 4.300033
+ -
+ class: Dist::Zilla::Plugin::FinderCode
+ name: ':MainModule'
- version: 4.300032
++ version: 4.300033
+ zilla:
+ class: Dist::Zilla::Dist::Builder
+ config:
+ is_trial: 0
- version: 4.300032
++ version: 4.300033
diff --combined README
index 88f9108,0000000..82c0a1f
mode 100644,000000..100644
--- a/README
+++ b/README
@@@ -1,13 -1,0 +1,13 @@@
+
+
+This archive contains the distribution MooX-Options,
- version 3.78:
++version 3.80:
+
+ add option keywords to your object (Mo/Moo/Moose)
+
+This software is copyright (c) 2011 by celogeek <me at celogeek.com>.
+
+This is free software; you can redistribute it and/or modify it under
+the same terms as the Perl 5 programming language system itself.
+
+
diff --combined lib/MooX/Options.pm
index 3d1ef9f,743a721..b218171
--- a/lib/MooX/Options.pm
+++ b/lib/MooX/Options.pm
@@@ -1,49 -1,48 +1,49 @@@
+#
+# This file is part of MooX-Options
+#
+# This software is copyright (c) 2011 by celogeek <me at celogeek.com>.
+#
+# This is free software; you can redistribute it and/or modify it under
+# the same terms as the Perl 5 programming language system itself.
+#
package MooX::Options;
# ABSTRACT: add option keywords to your object (Mo/Moo/Moose)
-=head1 MooX::Options
-
-Use L<Getopt::Long::Descritive> to provide command line option for your Mo/Moo/Moose Object.
-
-This module will add "option" which act as "has" but support additional feature for getopt.
-
-You will have "new_with_options" to instanciate new object for command line.
-=cut
-
use strict;
use warnings;
use Carp;
- our $VERSION = '3.78'; # VERSION
-# VERSION
++our $VERSION = '3.80'; # VERSION
my @OPTIONS_ATTRIBUTES
- = qw/format short repeatable negativable autosplit doc order/;
+ = qw/format short repeatable negativable autosplit doc order json/;
sub import {
my ( undef, @import ) = @_;
- my $options_config
- = { protect_argv => 1, flavour => [],
- skip_options => [], prefer_commandline => 0,
- @import
- };
+ my $options_config = {
+ protect_argv => 1,
+ flavour => [],
+ skip_options => [],
+ prefer_commandline => 0,
+ @import
+ };
my $target = caller;
my $with = $target->can('with');
my $around = $target->can('around');
my $has = $target->can('has');
-
my @target_isa;
{ no strict 'refs'; @target_isa = @{"${target}::ISA"} };
if (@target_isa) {
+
#don't add this to a role
#ISA of a role is always empty !
## no critic qw/ProhibitStringyEval/
use warnings FATAL => 'redefine';
eval '{
- package '.$target.';
+ package ' . $target . ';
sub _options_data {
my ( $class, @meta ) = @_;
@@@ -71,7 -70,7 +71,7 @@@
## use critic
}
- my $options_data = {};
+ my $options_data = {};
my $apply_modifiers = sub {
return if $target->can('new_with_options');
$with->('MooX::Options::Role');
@@@ -127,9 -126,17 +127,16 @@@ sub _validate_and_filter_options
$options{doc} = $options{documentation} if !defined $options{doc};
$options{order} = 0 if !defined $options{order};
- if ($options{json}) {
++ if ( $options{json} ) {
+ delete $options{repeatable};
+ delete $options{autosplit};
+ delete $options{negativable};
+ $options{format} = 's';
+ }
+
my %cmdline_options = map { ( $_ => $options{$_} ) }
grep { exists $options{$_} } @OPTIONS_ATTRIBUTES, 'required';
-
$cmdline_options{repeatable} = 1 if $cmdline_options{autosplit};
$cmdline_options{format} .= "@"
if $cmdline_options{repeatable}
@@@ -147,24 -154,6 +154,24 @@@
__END__
+=pod
+
+=head1 NAME
+
+MooX::Options - add option keywords to your object (Mo/Moo/Moose)
+
+=head1 VERSION
+
- version 3.78
++version 3.80
+
+=head1 MooX::Options
+
+Use L<Getopt::Long::Descritive> to provide command line option for your Mo/Moo/Moose Object.
+
+This module will add "option" which act as "has" but support additional feature for getopt.
+
+You will have "new_with_options" to instanciate new object for command line.
+
=head1 METHOD
=head2 IMPORT
@@@ -267,6 -256,7 +274,6 @@@ You can also use it over a Role
If you use Mo, you have a little bit more work to do. Because Mo lack of "with" and "around".
-
{
package tRole;
use Moo::Role;
@@@ -427,6 -417,7 +434,6 @@@ Ex
my $t = t->new_with_options;
t->test # [1,2,3,4]
-
I automatically take the quoted as a group separator value
{
@@@ -464,6 -455,29 +471,29 @@@ Ex
Specified the order of the attribute.
+ The order value is an integer.
+
+ =item json
+
+ The parameter will be treat like a json string.
+
+ Ex :
+
+ {
+ package t;
+ use Moo;
+ use MooX::Options;
+
+ option 'hash' => (is => 'ro', json => 1);
+
+ 1;
+ }
+ local @ARGV=('--hash', '{"a":1,"b":2}');
+ my $t = t->new_with_options;
+ t->hash # { a => 1, b => 2 }
+
+ =back
+
=head1 namespace::clean
To use namespace::clean you need to add 2 methods as an exception. It is use by MooX::Options when you run the new_with_options methods.
@@@ -504,24 -518,3 +534,24 @@@ L<http://perltalks.celogeek.com/slides/
=back
+=head1 BUGS
+
+Please report any bugs or feature requests on the bugtracker website
+http://tasks.celogeek.com/projects/perl-modules-moox-options
+
+When submitting a bug or request, please include a test-file or a
+patch to an existing test-file that illustrates the bug or desired
+feature.
+
+=head1 AUTHOR
+
+celogeek <me at celogeek.com>
+
+=head1 COPYRIGHT AND LICENSE
+
+This software is copyright (c) 2011 by celogeek <me at celogeek.com>.
+
+This is free software; you can redistribute it and/or modify it under
+the same terms as the Perl 5 programming language system itself.
+
+=cut
diff --combined lib/MooX/Options/Role.pm
index 6655423,6f9386a..ffb809f
--- a/lib/MooX/Options/Role.pm
+++ b/lib/MooX/Options/Role.pm
@@@ -1,18 -1,16 +1,18 @@@
+#
+# This file is part of MooX-Options
+#
+# This software is copyright (c) 2011 by celogeek <me at celogeek.com>.
+#
+# This is free software; you can redistribute it and/or modify it under
+# the same terms as the Perl 5 programming language system itself.
+#
package MooX::Options::Role;
# ABSTRACT: role that is apply to your object
use strict;
use warnings;
- our $VERSION = '3.78'; # VERSION
-# VERSION
-
-=head1 USAGE
-
-Don't use MooX::Options::Role directly. It is used by L<MooX::Options> to upgrade your module. But it is useless alone.
-
-=cut
++our $VERSION = '3.80'; # VERSION
use MRO::Compat;
use Moo::Role;
@@@ -20,23 -18,41 +20,24 @@@ use Getopt::Long 2.38
use Getopt::Long::Descriptive 0.091;
use Regexp::Common;
use Data::Record;
+ use JSON;
-
requires qw/_options_data _options_config/;
-
-=method new_with_options
-
-Same as new but parse ARGV with L<Getopt::Long::Descriptive>
-
-Check full doc L<MooX::Options> for more details.
-
-=cut
-
sub new_with_options {
my ( $class, @params ) = @_;
return $class->new( $class->parse_options(@params) );
}
## no critic qw/Modules::ProhibitExcessMainComplexity/
sub parse_options {
my ( $class, %params ) = @_;
- my %options_data = $class->_options_data;
+ my %options_data = $class->_options_data;
my %options_config = $class->_options_config;
my @skip_options;
- @skip_options = @{$options_config{skip_options}} if defined $options_config{skip_options};
- if ( @skip_options ) {
+ @skip_options = @{ $options_config{skip_options} }
+ if defined $options_config{skip_options};
+ if (@skip_options) {
delete @options_data{@skip_options};
}
my @options;
@@@ -47,9 -63,8 +48,9 @@@
$cmdline_name .= '|' . $data{short} if defined $data{short};
#dash name support
- my $dash_name = $name; $dash_name =~ tr/_/-/;
- if ($dash_name ne $name) {
+ my $dash_name = $name;
+ $dash_name =~ tr/_/-/;
+ if ( $dash_name ne $name ) {
$cmdline_name .= '|' . $dash_name;
}
@@@ -60,11 -75,10 +61,14 @@@
};
my %has_to_split;
- my @sorted_keys = sort {
- $options_data{$a}{order} <=> $options_data{$b}{order} # sort by order
- or $a cmp $b # sort by attr name
- } keys %options_data;
- for my $name (@sorted_keys) {
- for my $name (sort {
- $options_data{$a}{order} <=> $options_data{$b}{order} # sort by order
- or $a cmp $b # sort by attr name
- } keys %options_data) {
++ for my $name (
++ sort {
++ $options_data{$a}{order}
++ <=> $options_data{$b}{order} # sort by order
++ or $a cmp $b # sort by attr name
++ } keys %options_data
++ )
++ {
my %data = %{ $options_data{$name} };
my $doc = $data{doc};
$doc = "no doc for $name" if !defined $doc;
@@@ -80,12 -94,12 +84,12 @@@
my @new_argv;
#parse all argv
- for my $i (0..$#ARGV) {
+ for my $i ( 0 .. $#ARGV ) {
my $arg = $ARGV[$i];
my ( $arg_name, $arg_values ) = split( /=/x, $arg, 2 );
$arg_name =~ s/^--?//x;
- unless(defined $arg_values) {
- $arg_values = $ARGV[++$i];
+ unless ( defined $arg_values ) {
+ $arg_values = $ARGV[ ++$i ];
}
if ( my $rec = $has_to_split{$arg_name} ) {
foreach my $record ( $rec->records($arg_values) ) {
@@@ -120,12 -134,14 +124,17 @@@
my %cmdline_params = %params;
for my $name ( keys %options_data ) {
my %data = %{ $options_data{$name} };
- if ( !defined $cmdline_params{$name} || $options_config{prefer_commandline}) {
+ if ( !defined $cmdline_params{$name}
+ || $options_config{prefer_commandline} )
+ {
my $val = $opt->$name();
if ( defined $val ) {
- $cmdline_params{$name} = $val;
- if ($data{json}) {
++ if ( $data{json} ) {
+ $cmdline_params{$name} = decode_json($val);
- } else {
++ }
++ else {
+ $cmdline_params{$name} = $val;
+ }
}
}
push @missing_required, $name
@@@ -143,6 -159,14 +152,6 @@@
}
## use critic
-=method options_usage
-
-Display help message.
-
-Check full doc L<MooX::Options> for more details.
-
-=cut
-
sub options_usage {
my ( $self, $code, @messages ) = @_;
$code = 0 if !defined $code;
@@@ -152,61 -176,3 +161,61 @@@
}
1;
+
+__END__
+
+=pod
+
+=head1 NAME
+
+MooX::Options::Role - role that is apply to your object
+
+=head1 VERSION
+
- version 3.78
++version 3.80
+
+=head1 METHODS
+
+=head2 new_with_options
+
+Same as new but parse ARGV with L<Getopt::Long::Descriptive>
+
+Check full doc L<MooX::Options> for more details.
+
+=head2 parse_options
+
+Parse your options, call L<Getopt::Long::Descriptve> and convert the result for the "new" method.
+
+It is use by "new_with_options".
+
+=head2 options_usage
+
+Display help message.
+
+Check full doc L<MooX::Options> for more details.
+
+=head1 USAGE
+
+Don't use MooX::Options::Role directly. It is used by L<MooX::Options> to upgrade your module. But it is useless alone.
+
+=head1 BUGS
+
+Please report any bugs or feature requests on the bugtracker website
+http://tasks.celogeek.com/projects/perl-modules-moox-options
+
+When submitting a bug or request, please include a test-file or a
+patch to an existing test-file that illustrates the bug or desired
+feature.
+
+=head1 AUTHOR
+
+celogeek <me at celogeek.com>
+
+=head1 COPYRIGHT AND LICENSE
+
+This software is copyright (c) 2011 by celogeek <me at celogeek.com>.
+
+This is free software; you can redistribute it and/or modify it under
+the same terms as the Perl 5 programming language system itself.
+
+=cut
diff --combined t/mo.t
index e92312d,592fe64..9679872
--- a/t/mo.t
+++ b/t/mo.t
@@@ -1,12 -1,4 +1,12 @@@
#!/usr/bin/env perl
+#
+# This file is part of MooX-Options
+#
+# This software is copyright (c) 2011 by celogeek <me at celogeek.com>.
+#
+# This is free software; you can redistribute it and/or modify it under
+# the same terms as the Perl 5 programming language system itself.
+#
use strict;
use warnings;
@@@ -195,7 -187,6 +195,7 @@@ BEGIN
1;
}
{
+
package t_prefer_cli;
use Mo;
use Role::Tiny::With;
@@@ -222,9 -213,30 +222,30 @@@
1;
}
+ {
++
+ package t_jsonRole;
+ use Moo::Role;
+ use Mo;
+ use MooX::Options;
+
+ option 't' => ( is => 'ro', json => 1 );
+ 1;
+
+ }
+
+ {
+
+ package t_json;
+ use Mo;
+ use Role::Tiny::With;
+ with 't_jsonRole';
+ 1;
+ }
+
subtest "Mo" => sub {
note "Test Mo";
require $RealBin . '/base.st';
};
-
done_testing;
diff --combined t/moo.t
index 3fd4df5,efe1c95..6d31f86
--- a/t/moo.t
+++ b/t/moo.t
@@@ -1,12 -1,4 +1,12 @@@
#!/usr/bin/env perl
+#
+# This file is part of MooX-Options
+#
+# This software is copyright (c) 2011 by celogeek <me at celogeek.com>.
+#
+# This is free software; you can redistribute it and/or modify it under
+# the same terms as the Perl 5 programming language system itself.
+#
use strict;
use warnings;
@@@ -122,6 -114,16 +122,16 @@@ use Try::Tiny
1;
}
+ {
+
+ package t_json;
+ use Moo;
+ use MooX::Options;
+
+ option 't' => ( is => 'ro', json => 1 );
+ 1;
+ }
+
subtest "Moo" => sub {
note "Test Moo";
require $RealBin . '/base.st';
diff --combined t/moose.t
index f4b254f,4ea1da1..eca2afc
--- a/t/moose.t
+++ b/t/moose.t
@@@ -1,12 -1,4 +1,12 @@@
#!/usr/bin/env perl
+#
+# This file is part of MooX-Options
+#
+# This software is copyright (c) 2011 by celogeek <me at celogeek.com>.
+#
+# This is free software; you can redistribute it and/or modify it under
+# the same terms as the Perl 5 programming language system itself.
+#
use strict;
use warnings;
@@@ -129,6 -121,16 +129,16 @@@ BEGIN
1;
}
+ {
+
+ package t_json;
+ use Moose;
+ use MooX::Options;
+
+ option 't' => ( is => 'ro', json => 1 );
+ 1;
+ }
+
subtest "Moose" => sub {
note "Test Moose";
require $RealBin . '/base.st';
diff --combined t/pod.t
index 0000000,fa057ce..77a9e96
mode 000000,100644..100644
--- a/t/pod.t
+++ b/t/pod.t
@@@ -1,0 -1,24 +1,23 @@@
+ use strict;
+ use warnings FATAL => 'all';
+
+ BEGIN {
- unless ( $ENV{RELEASE_TESTING} ) {
- require Test::More;
- Test::More::plan(
- skip_all => 'these tests are for release candidate testing' );
- }
++ unless ( $ENV{RELEASE_TESTING} ) {
++ require Test::More;
++ Test::More::plan(
++ skip_all => 'these tests are for release candidate testing' );
++ }
+ }
+
+ use English qw( -no_match_vars );
+ local $OUTPUT_AUTOFLUSH = 1;
+
-
+ use Test::More;
+ use Test::Requires { 'Test::Pod' => 1.46 };
+
+ all_pod_files_ok();
+
+ done_testing();
+
+ __END__
+
--
libmoox-options-perl Debian packaging
More information about the Pkg-perl-cvs-commits
mailing list