[SCM] libmessage-passing-perl Debian packaging branch, master, updated. debian/0.111-3-14-g44f6e88
Tomas Doran
bobtfish at bobtfish.net
Mon May 6 11:57:34 UTC 2013
The following commit has been merged in the master branch:
commit 6b6a220ad86d489a54121b7d88b77a31ef54f64e
Author: Tomas Doran <bobtfish at bobtfish.net>
Date: Sun Aug 12 16:18:32 2012 +0100
Make config file work again once defaults bug is fixed in MooX::Options
diff --git a/lib/Message/Passing.pm b/lib/Message/Passing.pm
index 009c63a..76d2bfe 100644
--- a/lib/Message/Passing.pm
+++ b/lib/Message/Passing.pm
@@ -11,8 +11,9 @@ use 5.8.4;
our $VERSION = '0.100';
$VERSION = eval $VERSION;
-sub new_with_config {
- my ($class, %args) = @_;
+sub new_with_options {
+ my $class = shift;
+ my %args = $class->parse_options(@_);
if (my $conf = $args{configfile}) {
my $cfg = $class->get_config_from_file($conf);
@@ -25,7 +26,7 @@ sub new_with_config {
$class->new(%args);
}
-use MooX::Options creation_chain_method => 'new_with_config';
+use MooX::Options;
with
CLIComponent( name => 'input' ),
diff --git a/lib/Message/Passing/Role/CLIComponent.pm b/lib/Message/Passing/Role/CLIComponent.pm
index 121e4b3..cf7cc2f 100644
--- a/lib/Message/Passing/Role/CLIComponent.pm
+++ b/lib/Message/Passing/Role/CLIComponent.pm
@@ -20,7 +20,6 @@ sub make_variant {
my $_options_meta = {};
has "$name" => (
- format => 's',
isa => Str,
is => 'ro',
# required => "$has_default" ? 0 : 1,
--
libmessage-passing-perl Debian packaging
More information about the Pkg-perl-cvs-commits
mailing list