[libgetopt-long-descriptive-perl] 01/01: Imported Upstream version 0.094
Salvatore Bonaccorso
carnil at debian.org
Tue Sep 17 17:23:44 UTC 2013
This is an automated email from the git hooks/post-receive script.
carnil pushed a commit to annotated tag upstream/0.094
in repository libgetopt-long-descriptive-perl.
commit 45d148903616bae4db1efffd6020e4c0cf50e80b
Author: Salvatore Bonaccorso <carnil at debian.org>
Date: Tue Sep 17 19:15:42 2013 +0200
Imported Upstream version 0.094
---
Changes | 77 +++++++++++++-----------
META.json | 109 +++++++++++++++++++---------------
META.yml | 99 ++++++++++++++++--------------
Makefile.PL | 26 ++++++--
README | 2 +-
lib/Getopt/Long/Descriptive.pm | 14 +++--
lib/Getopt/Long/Descriptive/Opts.pm | 4 +-
lib/Getopt/Long/Descriptive/Usage.pm | 4 +-
t/00-compile.t | 86 +++++++++------------------
t/000-report-versions-tiny.t | 6 +-
xt/release/changes_has_content.t | 2 +-
11 files changed, 219 insertions(+), 210 deletions(-)
diff --git a/Changes b/Changes
index 13b6170..4aad073 100644
--- a/Changes
+++ b/Changes
@@ -1,118 +1,123 @@
Revision history for Getopt-Long-Descriptive
+0.094 2013-09-05 09:35:26 America/New_York
+ - update documentation to note that failed validation is fatal (thanks,
+ SMYLERS)
+ - show off "required" in the SYNOPSIS (thanks, OALDERS)
+
0.093 2012-11-01 15:55:35 America/New_York
- bogus %-codes in usage description are now noticed and fatal
+ - bogus %-codes in usage description are now noticed and fatal
0.092 2012-07-31 22:51:09 America/New_York
- make "hidden" options usable on their own (thanks, Roman Hubacek!)
+ - make "hidden" options usable on their own (thanks, Roman Hubacek!)
0.091 2012-02-22 18:15:08 America/New_York
- don't die quite so violently when a Params::Validate constraint fails
+ - don't die quite so violently when a Params::Validate constraint fails
(initial patch by harleypig at github; final blame to RJBS)
0.090 2011-04-21 20:43:07 America/New_York
- bump prereq on Params::Validate to deal with recent buggy versions
+ - bump prereq on Params::Validate to deal with recent buggy versions
0.089 2011-01-13
- bump version to deal with busted PAUSE indexing
+ - bump version to deal with busted PAUSE indexing
0.088 2011-01-12
- fix infinite loop when long option documentation strings couldn't wrap
+ - fix infinite loop when long option documentation strings couldn't wrap
(HDP)
0.087 2010-11-30
- long option documentation strings are now line-wrapped and aligned
+ - long option documentation strings are now line-wrapped and aligned
correctly (Dave Rolsky)
0.086 2010-09-19
- fix minimum required version of Sub::Exporter
- minor tweak to avoid warnings when run with -w
+ - fix minimum required version of Sub::Exporter
+ - minor tweak to avoid warnings when run with -w
0.085 2010-03-13
- rewrite much of the documentation
+ - rewrite much of the documentation
0.084 2010-02-14
- prevent auto-enabling of auto_help (Thanks, DOUGDUDE)
+ - prevent auto-enabling of auto_help (Thanks, DOUGDUDE)
0.083 2009-12-12
- create an Opts module to store the opts object code
- add _specified_opts method and _specified method for Opts
+ - create an Opts module to store the opts object code
+ - add _specified_opts method and _specified method for Opts
0.082 2009-12-03
- require Getopt::Long 2.33 for proper --no-foo handling
+ - require Getopt::Long 2.33 for proper --no-foo handling
0.081 2009-11-27
- \%opt will not contain entries for opts that were not given
+ - \%opt will not contain entries for opts that were not given
(this reverts 0.079 and 0.080's new behavior of undef entries)
0.080 2009-11-27
- fix option naming to ignore "+" used to mark cumulative options
- fix direct calls to Getopt::Long::Descriptive::describe_options
+ - fix option naming to ignore "+" used to mark cumulative options
+ - fix direct calls to Getopt::Long::Descriptive::describe_options
0.079 2009-11-26 Happy Thanksgiving!
- improve the "opt as object" facility to have all opts as methods
+ - improve the "opt as object" facility to have all opts as methods
0.078 2009-08-21
- refactoring to allow subclassing of Getopt::Long::Descriptive
+ - refactoring to allow subclassing of Getopt::Long::Descriptive
0.077 2009-08-21
- allow 'f' as an option name; had mistakenly required 2 characters
+ - allow 'f' as an option name; had mistakenly required 2 characters
0.076 2009-08-20
- bundle the accidentally omitted Usage.pm file
- the $opt returned by described_options is now an object with accessors
+ - bundle the accidentally omitted Usage.pm file
+ - the $opt returned by described_options is now an object with accessors
0.075 2009-08-19
- significant refactoring, especially to GLD::Usage, which is now a more
+ - significant refactoring, especially to GLD::Usage, which is now a more
traditional (non-hash-based) object (RJBS)
0.074 2008-05-11
- fix RT#35678 (thanks RJBS)
+ - fix RT#35678 (thanks RJBS)
0.073 2008-04-04
- packaging fix
+ - packaging fix
0.072 2008-04-03
- remove duplicate option name in test
+ - remove duplicate option name in test
0.071 2008-04-03
- fix RT#34153 (bcbailey++)
+ - fix RT#34153 (bcbailey++)
0.070 2008-01-29
- fix RT#32481 (nothingmuch++)
+ - fix RT#32481 (nothingmuch++)
0.06 2006-08-20
- Required options should not give an unhelpful
+ - Required options should not give an unhelpful
Params::Validate error message when they're missing.
- Add %c to 'format' for command name.
+ - Add %c to 'format' for command name.
- Use [] for spacers in option list.
+ - Use [] for spacers in option list.
0.05 2006-01-25
- Support negatable ('foo!') options from Getopt::Long.
+ - Support negatable ('foo!') options from Getopt::Long.
0.04 2005-11-28
- Include IO::Scalar prereq in Makefile.PL
+ - Include IO::Scalar prereq in Makefile.PL
0.03 2005-11-15
- Add 'one_of' and 'hidden'.
+ - Add 'one_of' and 'hidden'.
0.02 2005-11-10
- Bugfix: Getopt::Long type specifiers were sneaking
+ - Bugfix: Getopt::Long type specifiers were sneaking
into option names
0.01 2005-11-10
- First version, released on an unsuspecting world.
+ - First version, released on an unsuspecting world.
diff --git a/META.json b/META.json
index 74c36cd..d396376 100644
--- a/META.json
+++ b/META.json
@@ -5,7 +5,7 @@
"Ricardo Signes <rjbs at cpan.org>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.300028, CPAN::Meta::Converter version 2.120921",
+ "generated_by" : "Dist::Zilla version 4.300037, CPAN::Meta::Converter version 2.132140",
"license" : [
"perl_5"
],
@@ -43,14 +43,17 @@
},
"test" : {
"requires" : {
- "File::Find" : "0",
- "File::Temp" : "0",
- "Test::More" : "0.96"
+ "Capture::Tiny" : "0",
+ "Test::More" : "0.96",
+ "blib" : "0"
}
}
},
"release_status" : "stable",
"resources" : {
+ "bugtracker" : {
+ "web" : "https://github.com/rjbs/Getopt-Long-Descriptive/issues"
+ },
"homepage" : "https://github.com/rjbs/Getopt-Long-Descriptive",
"repository" : {
"type" : "git",
@@ -58,116 +61,116 @@
"web" : "https://github.com/rjbs/Getopt-Long-Descriptive"
}
},
- "version" : "0.093",
+ "version" : "0.094",
"x_Dist_Zilla" : {
"perl" : {
- "version" : "5.017004"
+ "version" : "5.019003"
},
"plugins" : [
{
"class" : "Dist::Zilla::Plugin::Git::GatherDir",
"name" : "@RJBS/Git::GatherDir",
- "version" : "2.001"
+ "version" : "2.014"
},
{
"class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed",
"name" : "@RJBS/CheckPrereqsIndexed",
- "version" : "0.007"
+ "version" : "0.009"
},
{
"class" : "Dist::Zilla::Plugin::CheckExtraTests",
"name" : "@RJBS/CheckExtraTests",
- "version" : "0.007"
+ "version" : "0.011"
},
{
"class" : "Dist::Zilla::Plugin::PruneCruft",
"name" : "@RJBS/@Filter/PruneCruft",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
"name" : "@RJBS/@Filter/ManifestSkip",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@RJBS/@Filter/MetaYAML",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@RJBS/@Filter/License",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
"name" : "@RJBS/@Filter/Readme",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@RJBS/@Filter/ExecDir",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@RJBS/@Filter/ShareDir",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
"name" : "@RJBS/@Filter/MakeMaker",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@RJBS/@Filter/Manifest",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::TestRelease",
"name" : "@RJBS/@Filter/TestRelease",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
"name" : "@RJBS/@Filter/ConfirmRelease",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
"name" : "@RJBS/@Filter/UploadToCPAN",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::AutoPrereqs",
"name" : "@RJBS/AutoPrereqs",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::Git::NextVersion",
"name" : "@RJBS/Git::NextVersion",
- "version" : "2.001"
+ "version" : "2.014"
},
{
"class" : "Dist::Zilla::Plugin::PkgVersion",
"name" : "@RJBS/PkgVersion",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@RJBS/MetaConfig",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@RJBS/MetaJSON",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::NextRelease",
"name" : "@RJBS/NextRelease",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::Test::ChangesHasContent",
@@ -177,17 +180,27 @@
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@RJBS/PodSyntaxTests",
- "version" : "4.300028"
- },
- {
- "class" : "Dist::Zilla::Plugin::Test::Compile",
- "name" : "@RJBS/Test::Compile",
- "version" : "1.112820"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::ReportVersions::Tiny",
"name" : "@RJBS/ReportVersions::Tiny",
- "version" : "1.08"
+ "version" : "1.09"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Test::Compile",
+ "config" : {
+ "Dist::Zilla::Plugin::Test::Compile" : {
+ "module_finder" : [
+ ":InstallModules"
+ ],
+ "script_finder" : [
+ ":ExecFiles"
+ ]
+ }
+ },
+ "name" : "@RJBS/Test::Compile",
+ "version" : "2.018"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -198,67 +211,67 @@
}
},
"name" : "@RJBS/TestMoreWithSubtests",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::PodWeaver",
"name" : "@RJBS/PodWeaver",
- "version" : "3.101641"
+ "version" : "3.101642"
},
{
"class" : "Dist::Zilla::Plugin::GithubMeta",
"name" : "@RJBS/GithubMeta",
- "version" : "0.28"
+ "version" : "0.30"
},
{
"class" : "Dist::Zilla::Plugin::Git::Check",
"name" : "@RJBS/@Git/Check",
- "version" : "2.001"
+ "version" : "2.014"
},
{
"class" : "Dist::Zilla::Plugin::Git::Commit",
"name" : "@RJBS/@Git/Commit",
- "version" : "2.001"
+ "version" : "2.014"
},
{
"class" : "Dist::Zilla::Plugin::Git::Tag",
"name" : "@RJBS/@Git/Tag",
- "version" : "2.001"
+ "version" : "2.014"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
"name" : "@RJBS/@Git/Push",
- "version" : "2.001"
+ "version" : "2.014"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":IncModules",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
- "version" : "4.300028"
+ "version" : "4.300037"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":MainModule",
- "version" : "4.300028"
+ "version" : "4.300037"
}
],
"zilla" : {
@@ -266,7 +279,7 @@
"config" : {
"is_trial" : "0"
},
- "version" : "4.300028"
+ "version" : "4.300037"
}
}
}
diff --git a/META.yml b/META.yml
index 842c926..104ff7a 100644
--- a/META.yml
+++ b/META.yml
@@ -4,13 +4,13 @@ author:
- 'Hans Dieter Pearcey <hdp at cpan.org>'
- 'Ricardo Signes <rjbs at cpan.org>'
build_requires:
- File::Find: 0
- File::Temp: 0
+ Capture::Tiny: 0
Test::More: 0.96
+ blib: 0
configure_requires:
ExtUtils::MakeMaker: 6.30
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.300028, CPAN::Meta::Converter version 2.120921'
+generated_by: 'Dist::Zilla version 4.300037, CPAN::Meta::Converter version 2.132140'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -29,97 +29,98 @@ requires:
strict: 0
warnings: 0
resources:
+ bugtracker: https://github.com/rjbs/Getopt-Long-Descriptive/issues
homepage: https://github.com/rjbs/Getopt-Long-Descriptive
repository: https://github.com/rjbs/Getopt-Long-Descriptive.git
-version: 0.093
+version: 0.094
x_Dist_Zilla:
perl:
- version: 5.017004
+ version: 5.019003
plugins:
-
class: Dist::Zilla::Plugin::Git::GatherDir
name: '@RJBS/Git::GatherDir'
- version: 2.001
+ version: 2.014
-
class: Dist::Zilla::Plugin::CheckPrereqsIndexed
name: '@RJBS/CheckPrereqsIndexed'
- version: 0.007
+ version: 0.009
-
class: Dist::Zilla::Plugin::CheckExtraTests
name: '@RJBS/CheckExtraTests'
- version: 0.007
+ version: 0.011
-
class: Dist::Zilla::Plugin::PruneCruft
name: '@RJBS/@Filter/PruneCruft'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@RJBS/@Filter/ManifestSkip'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@RJBS/@Filter/MetaYAML'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::License
name: '@RJBS/@Filter/License'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::Readme
name: '@RJBS/@Filter/Readme'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::ExecDir
name: '@RJBS/@Filter/ExecDir'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::ShareDir
name: '@RJBS/@Filter/ShareDir'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::MakeMaker
name: '@RJBS/@Filter/MakeMaker'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::Manifest
name: '@RJBS/@Filter/Manifest'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::TestRelease
name: '@RJBS/@Filter/TestRelease'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@RJBS/@Filter/ConfirmRelease'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@RJBS/@Filter/UploadToCPAN'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::AutoPrereqs
name: '@RJBS/AutoPrereqs'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::Git::NextVersion
name: '@RJBS/Git::NextVersion'
- version: 2.001
+ version: 2.014
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@RJBS/PkgVersion'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@RJBS/MetaConfig'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@RJBS/MetaJSON'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::NextRelease
name: '@RJBS/NextRelease'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::Test::ChangesHasContent
name: '@RJBS/Test::ChangesHasContent'
@@ -127,15 +128,21 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@RJBS/PodSyntaxTests'
- version: 4.300028
- -
- class: Dist::Zilla::Plugin::Test::Compile
- name: '@RJBS/Test::Compile'
- version: 1.112820
+ version: 4.300037
-
class: Dist::Zilla::Plugin::ReportVersions::Tiny
name: '@RJBS/ReportVersions::Tiny'
- version: 1.08
+ version: 1.09
+ -
+ class: Dist::Zilla::Plugin::Test::Compile
+ config:
+ Dist::Zilla::Plugin::Test::Compile:
+ module_finder:
+ - ':InstallModules'
+ script_finder:
+ - ':ExecFiles'
+ name: '@RJBS/Test::Compile'
+ version: 2.018
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -143,57 +150,57 @@ x_Dist_Zilla:
phase: test
type: requires
name: '@RJBS/TestMoreWithSubtests'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::PodWeaver
name: '@RJBS/PodWeaver'
- version: 3.101641
+ version: 3.101642
-
class: Dist::Zilla::Plugin::GithubMeta
name: '@RJBS/GithubMeta'
- version: 0.28
+ version: 0.30
-
class: Dist::Zilla::Plugin::Git::Check
name: '@RJBS/@Git/Check'
- version: 2.001
+ version: 2.014
-
class: Dist::Zilla::Plugin::Git::Commit
name: '@RJBS/@Git/Commit'
- version: 2.001
+ version: 2.014
-
class: Dist::Zilla::Plugin::Git::Tag
name: '@RJBS/@Git/Tag'
- version: 2.001
+ version: 2.014
-
class: Dist::Zilla::Plugin::Git::Push
name: '@RJBS/@Git/Push'
- version: 2.001
+ version: 2.014
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::FinderCode
name: ':IncModules'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
- version: 4.300028
+ version: 4.300037
-
class: Dist::Zilla::Plugin::FinderCode
name: ':MainModule'
- version: 4.300028
+ version: 4.300037
zilla:
class: Dist::Zilla::Dist::Builder
config:
is_trial: 0
- version: 4.300028
+ version: 4.300037
diff --git a/Makefile.PL b/Makefile.PL
index 6b3a097..a34f794 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -11,11 +11,7 @@ use ExtUtils::MakeMaker 6.30;
my %WriteMakefileArgs = (
"ABSTRACT" => "Getopt::Long, but simpler and more powerful",
"AUTHOR" => "Hans Dieter Pearcey <hdp\@cpan.org>, Ricardo Signes <rjbs\@cpan.org>",
- "BUILD_REQUIRES" => {
- "File::Find" => 0,
- "File::Temp" => 0,
- "Test::More" => "0.96"
- },
+ "BUILD_REQUIRES" => {},
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => "6.30"
},
@@ -36,13 +32,31 @@ my %WriteMakefileArgs = (
"strict" => 0,
"warnings" => 0
},
- "VERSION" => "0.093",
+ "TEST_REQUIRES" => {
+ "Capture::Tiny" => 0,
+ "Test::More" => "0.96",
+ "blib" => 0
+ },
+ "VERSION" => "0.094",
"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};
diff --git a/README b/README
index 6e9b326..289f5d9 100644
--- a/README
+++ b/README
@@ -1,7 +1,7 @@
This archive contains the distribution Getopt-Long-Descriptive,
-version 0.093:
+version 0.094:
Getopt::Long, but simpler and more powerful
diff --git a/lib/Getopt/Long/Descriptive.pm b/lib/Getopt/Long/Descriptive.pm
index 532a654..5c54fb0 100644
--- a/lib/Getopt/Long/Descriptive.pm
+++ b/lib/Getopt/Long/Descriptive.pm
@@ -2,7 +2,7 @@ use strict;
use warnings;
package Getopt::Long::Descriptive;
{
- $Getopt::Long::Descriptive::VERSION = '0.093';
+ $Getopt::Long::Descriptive::VERSION = '0.094';
}
# ABSTRACT: Getopt::Long, but simpler and more powerful
@@ -367,7 +367,7 @@ Getopt::Long::Descriptive - Getopt::Long, but simpler and more powerful
=head1 VERSION
-version 0.093
+version 0.094
=head1 SYNOPSIS
@@ -375,8 +375,8 @@ version 0.093
my ($opt, $usage) = describe_options(
'my-program %o <some-arg>',
- [ 'server|s=s', "the server to connect to" ],
- [ 'port|p=i', "the port to connect to", { default => 79 } ],
+ [ 'server|s=s', "the server to connect to", { required => 1 } ],
+ [ 'port|p=i', "the port to connect to", { default => 79 } ],
[],
[ 'verbose|v', "print extra stuff" ],
[ 'help', "print usage message and exit" ],
@@ -415,8 +415,10 @@ C<describe_options>. All GLD's exports are exported by L<Sub::Exporter>.
my ($opt, $usage) = describe_options($usage_desc, @opt_spec, \%arg);
-This routine inspects C<@ARGV> returns the options given and a object
-for generating usage messages.
+This routine inspects C<@ARGV> for options that match the supplied spec. If all
+the options are valid then it returns the options given and an object for
+generating usage messages; if not then it dies with an explanation of what was
+wrong and a usage message.
The C<$opt> object will be a dynamically-generated subclass of
L<Getopt::Long::Descriptive::Opts>. In brief, each of the options in
diff --git a/lib/Getopt/Long/Descriptive/Opts.pm b/lib/Getopt/Long/Descriptive/Opts.pm
index 4f04964..c6b2337 100644
--- a/lib/Getopt/Long/Descriptive/Opts.pm
+++ b/lib/Getopt/Long/Descriptive/Opts.pm
@@ -2,7 +2,7 @@ use strict;
use warnings;
package Getopt::Long::Descriptive::Opts;
{
- $Getopt::Long::Descriptive::Opts::VERSION = '0.093';
+ $Getopt::Long::Descriptive::Opts::VERSION = '0.094';
}
# ABSTRACT: object representing command line switches
@@ -107,7 +107,7 @@ Getopt::Long::Descriptive::Opts - object representing command line switches
=head1 VERSION
-version 0.093
+version 0.094
=head1 DESCRIPTION
diff --git a/lib/Getopt/Long/Descriptive/Usage.pm b/lib/Getopt/Long/Descriptive/Usage.pm
index a0d1179..15e266e 100644
--- a/lib/Getopt/Long/Descriptive/Usage.pm
+++ b/lib/Getopt/Long/Descriptive/Usage.pm
@@ -2,7 +2,7 @@ use strict;
use warnings;
package Getopt::Long::Descriptive::Usage;
{
- $Getopt::Long::Descriptive::Usage::VERSION = '0.093';
+ $Getopt::Long::Descriptive::Usage::VERSION = '0.094';
}
# ABSTRACT: the usage description for GLD
@@ -126,7 +126,7 @@ Getopt::Long::Descriptive::Usage - the usage description for GLD
=head1 VERSION
-version 0.093
+version 0.094
=head1 SYNOPSIS
diff --git a/t/00-compile.t b/t/00-compile.t
index 6771e12..305af18 100644
--- a/t/00-compile.t
+++ b/t/00-compile.t
@@ -1,73 +1,41 @@
-#!perl
-
use strict;
use warnings;
-use Test::More;
+# This test was generated via Dist::Zilla::Plugin::Test::Compile 2.018
+
+use Test::More 0.88;
-use File::Find;
-use File::Temp qw{ tempdir };
+use Capture::Tiny qw{ capture };
-my @modules;
-find(
- sub {
- return if $File::Find::name !~ /\.pm\z/;
- my $found = $File::Find::name;
- $found =~ s{^lib/}{};
- $found =~ s{[/\\]}{::}g;
- $found =~ s/\.pm$//;
- # nothing to skip
- push @modules, $found;
- },
- 'lib',
+my @module_files = qw(
+Getopt/Long/Descriptive.pm
+Getopt/Long/Descriptive/Opts.pm
+Getopt/Long/Descriptive/Usage.pm
);
-sub _find_scripts {
- my $dir = shift @_;
-
- my @found_scripts = ();
- find(
- sub {
- return unless -f;
- my $found = $File::Find::name;
- # nothing to skip
- open my $FH, '<', $_ or do {
- note( "Unable to open $found in ( $! ), skipping" );
- return;
- };
- my $shebang = <$FH>;
- return unless $shebang =~ /^#!.*?\bperl\b\s*$/;
- push @found_scripts, $found;
- },
- $dir,
- );
-
- return @found_scripts;
-}
+my @scripts = qw(
-my @scripts;
-do { push @scripts, _find_scripts($_) if -d $_ }
- for qw{ bin script scripts };
+);
-my $plan = scalar(@modules) + scalar(@scripts);
-$plan ? (plan tests => $plan) : (plan skip_all => "no tests to run");
+# no fake home requested
+my @warnings;
+for my $lib (@module_files)
{
- # fake home for cpan-testers
- # no fake requested ## local $ENV{HOME} = tempdir( CLEANUP => 1 );
-
- like( qx{ $^X -Ilib -e "require $_; print '$_ ok'" }, qr/^\s*$_ ok/s, "$_ loaded ok" )
- for sort @modules;
-
- SKIP: {
- eval "use Test::Script 1.05; 1;";
- skip "Test::Script needed to test script compilation", scalar(@scripts) if $@;
- foreach my $file ( @scripts ) {
- my $script = $file;
- $script =~ s!.*/!!;
- script_compiles( $file, "$script script compiles" );
- }
- }
+ my ($stdout, $stderr, $exit) = capture {
+ system($^X, '-Mblib', '-e', qq{require q[$lib]});
+ };
+ is($?, 0, "$lib loaded ok");
+ warn $stderr if $stderr;
+ push @warnings, $stderr if $stderr;
}
+
+
+
+is(scalar(@warnings), 0, 'no warnings found') if $ENV{AUTHOR_TESTING};
+
+
+
+done_testing;
diff --git a/t/000-report-versions-tiny.t b/t/000-report-versions-tiny.t
index e593a18..7e4e268 100644
--- a/t/000-report-versions-tiny.t
+++ b/t/000-report-versions-tiny.t
@@ -9,7 +9,7 @@ our $success = 0;
END { $success && done_testing; }
# List our own version used to generate this
-my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.08\n";
+my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.09\n";
eval { # no excuses!
# report our Perl details
@@ -48,11 +48,10 @@ sub pmver {
return sprintf('%-45s => %-10s%-15s%s', $module, $pmver, $wanted, "\n");
}
+eval { $v .= pmver('Capture::Tiny','any version') };
eval { $v .= pmver('Carp','any version') };
eval { $v .= pmver('ExtUtils::MakeMaker','6.30') };
eval { $v .= pmver('File::Basename','any version') };
-eval { $v .= pmver('File::Find','any version') };
-eval { $v .= pmver('File::Temp','any version') };
eval { $v .= pmver('Getopt::Long','2.33') };
eval { $v .= pmver('List::Util','any version') };
eval { $v .= pmver('Params::Validate','0.97') };
@@ -61,6 +60,7 @@ eval { $v .= pmver('Sub::Exporter','0.972') };
eval { $v .= pmver('Sub::Exporter::Util','any version') };
eval { $v .= pmver('Test::More','0.96') };
eval { $v .= pmver('Test::Pod','1.41') };
+eval { $v .= pmver('blib','any version') };
eval { $v .= pmver('overload','any version') };
eval { $v .= pmver('strict','any version') };
eval { $v .= pmver('version','0.9901') };
diff --git a/xt/release/changes_has_content.t b/xt/release/changes_has_content.t
index e3e2c32..961020a 100644
--- a/xt/release/changes_has_content.t
+++ b/xt/release/changes_has_content.t
@@ -4,7 +4,7 @@ use Test::More tests => 2;
note 'Checking Changes';
my $changes_file = 'Changes';
-my $newver = '0.093';
+my $newver = '0.094';
my $trial_token = '-TRIAL';
SKIP: {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libgetopt-long-descriptive-perl.git
More information about the Pkg-perl-cvs-commits
mailing list