[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:15 UTC 2013


The following commit has been merged in the master branch:
commit d9969022b64e381cdb95df4fa5fa3238d678b06b
Author: Tomas Doran <bobtfish at bobtfish.net>
Date:   Sun Jun 10 20:15:30 2012 +0100

    Add role to be used by multiple adaptors

diff --git a/lib/Message/Passing/Role/HasHostnameAndPort.pm b/lib/Message/Passing/Role/HasHostnameAndPort.pm
new file mode 100644
index 0000000..631ffba
--- /dev/null
+++ b/lib/Message/Passing/Role/HasHostnameAndPort.pm
@@ -0,0 +1,20 @@
+package Message::Passing::Role::HasHostnameAndPort;
+use Moose::Role;
+use namespace::autoclean;
+
+requires '_default_port';
+
+has hostname => (
+    is => 'ro',
+    isa => 'Str',
+    required => 1,
+);
+
+has port => (
+    is => 'ro',
+    isa => 'Int',
+    builder => '_default_port',
+);
+
+1;
+
diff --git a/t/00_compile.t b/t/00_compile.t
index 8336984..59a5b09 100644
--- a/t/00_compile.t
+++ b/t/00_compile.t
@@ -23,6 +23,7 @@ use_ok('Message::Passing::Filter::Encoder::JSON');
 use_ok('Message::Passing::Filter::Encoder::Null');
 use_ok('Message::Passing::Filter::Decoder::JSON');
 use_ok('Message::Passing::Filter::Decoder::Null');
+use_ok('Message::Passing::Role::HasHostnameAndPort');
 
 done_testing;
 

-- 
libmessage-passing-perl Debian packaging



More information about the Pkg-perl-cvs-commits mailing list