[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:31 UTC 2013
The following commit has been merged in the master branch:
commit c2c87e2b35d3df636eee0fcb738e75a766148915
Author: Tomas Doran <bobtfish at bobtfish.net>
Date: Tue Jul 31 08:36:17 2012 +0100
Remove refs to MooseX::Getopt from docs
diff --git a/lib/Message/Passing/DSL.pm b/lib/Message/Passing/DSL.pm
index 110420d..973d047 100644
--- a/lib/Message/Passing/DSL.pm
+++ b/lib/Message/Passing/DSL.pm
@@ -109,15 +109,17 @@ Message::Passing::DSL - An easy way to make chains of Message::Passing component
=head1 SYNOPSIS
package mylogcollectorscript;
- use Moose;
+ use Moo;
+ use MooX::Options;
use Message::Passing::DSL;
+ use MooX::Types::MooseLike::Base qw/ Str /;
+ use namespace::clean -except => 'meta';
- with 'MooseX::Getopt',
- 'Message::Passing::Role::Script';
+ with 'Message::Passing::Role::Script';
- has socket_bind => (
+ option socket_bind => (
is => 'ro',
- isa => 'Str',
+ isa => Str,
default => sub { 'tcp://*:5558' },
);
@@ -245,7 +247,7 @@ loop is entered).
This module exists due to the wonderful people at Suretec Systems Ltd.
<http://www.suretecsystems.com/> who sponsored its development for its
VoIP division called SureVoIP <http://www.surevoip.co.uk/> for use with
-the SureVoIP API -
+the SureVoIP API -
<http://www.surevoip.co.uk/support/wiki/api_documentation>
=head1 AUTHOR, COPYRIGHT AND LICENSE
diff --git a/lib/Message/Passing/Role/CLIComponent.pm b/lib/Message/Passing/Role/CLIComponent.pm
index 13c937e..109b4e8 100644
--- a/lib/Message/Passing/Role/CLIComponent.pm
+++ b/lib/Message/Passing/Role/CLIComponent.pm
@@ -45,19 +45,20 @@ sub make_variant {
=head1 NAME
-Message::Passing::Role::CLIComponent - Role providing 'foo' and 'foo_options' attributes
+Message::Passing::Role::CLIComponent - Package::Variant providing 'foo' and 'foo_options' attributes
=head1 SYNOPSIS
package My::Message::Passing::Script;
use Moo;
+ use MooX::Options;
+ use Message::Passing::Role::CLIComponent;
+ use Message::Passing::DSL;
+ use namespace::clean -except => 'meta';
with
- 'Message::Passing::Role::CLIComponent' => { name => 'input', default => 'STDIN' },
- qw/
- Message::Passing::Role::Script
- MooseX::Getopt
- /;
+ CLIComponent( name => 'input', default => 'STDIN' ),
+ 'Message::Passing::Role::Script';
sub build_chain {
my $self = shift;
@@ -72,14 +73,14 @@ Message::Passing::Role::CLIComponent - Role providing 'foo' and 'foo_options' at
=head1 DESCRIPTION
-A L<MooseX::Role::Parameterized> role, which is used to provide a pair of attributes for name/options
+A L<Package::Variant> role producer, which is used to provide a pair of attributes for name/options
as per the L<message-pass> script.
=head1 ROLE PARAMETERS
=head2 name
-The name of the main attribute. An additional attribute called "${name}_options" will also be added,
+The name of the main attribute. An additional attribute called C<< "${name}_options" >> will also be added,
which coerces a hashref from JSON.
=head2 default
@@ -91,7 +92,7 @@ A default value for the main attribute. If this is not supplied, than the attrib
This module exists due to the wonderful people at Suretec Systems Ltd.
<http://www.suretecsystems.com/> who sponsored its development for its
VoIP division called SureVoIP <http://www.surevoip.co.uk/> for use with
-the SureVoIP API -
+the SureVoIP API -
<http://www.surevoip.co.uk/support/wiki/api_documentation>
=head1 AUTHOR, COPYRIGHT AND LICENSE
@@ -99,3 +100,4 @@ the SureVoIP API -
See L<Message::Passing>.
=cut
+
diff --git a/lib/Message/Passing/Role/Script.pm b/lib/Message/Passing/Role/Script.pm
index 857bbc0..df37aea 100644
--- a/lib/Message/Passing/Role/Script.pm
+++ b/lib/Message/Passing/Role/Script.pm
@@ -99,15 +99,13 @@ Message::Passing:Role::Script - Handy role for building messaging scripts.
# my_message_passer.pl
package My::Message::Passer;
use Moo;
+ use MooX::Options;
use MooX::Types::MooseLike::Base qw/ Bool /;
use Message::Passing::DSL;
- with qw/
- Message::Passing::Role::Script
- MooseX::Getopt
- /;
+ with 'Message::Passing::Role::Script';
- has foo => (
+ option foo => (
is => 'ro',
isa => Bool,
);
@@ -127,7 +125,7 @@ Message::Passing:Role::Script - Handy role for building messaging scripts.
This role can be used to make simple message passing scripts.
-The user implements a L<MooseX::Getopt> type script class, with a
+The user implements a L<MooX::Options> type script class, with a
C<build_chain> method, that builds one or more
L<Message::Passing> chains and returns them.
@@ -208,7 +206,7 @@ has been supplied.
This module exists due to the wonderful people at Suretec Systems Ltd.
<http://www.suretecsystems.com/> who sponsored its development for its
VoIP division called SureVoIP <http://www.surevoip.co.uk/> for use with
-the SureVoIP API -
+the SureVoIP API -
<http://www.surevoip.co.uk/support/wiki/api_documentation>
=head1 AUTHOR, COPYRIGHT AND LICENSE
--
libmessage-passing-perl Debian packaging
More information about the Pkg-perl-cvs-commits
mailing list