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


The following commit has been merged in the master branch:
commit 7682ba3bbaea799de6882cf2f804bd2d64265883
Author: Tomas Doran <bobtfish at bobtfish.net>
Date:   Sun Jun 10 17:11:53 2012 +0100

    STDERR output

diff --git a/Changes b/Changes
index e363add..5ff06bd 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,5 @@
+  - Add STDERR output.
+
   - Rename the log_chain function to message_chain and run_log_server
     function to run_message_server, in Message::Passing::DSL
     to follow the general rename, as we're not just about logs.
diff --git a/lib/Message/Passing/Output/STDOUT.pm b/lib/Message/Passing/Output/STDERR.pm
similarity index 78%
copy from lib/Message/Passing/Output/STDOUT.pm
copy to lib/Message/Passing/Output/STDERR.pm
index dca652a..dbc6658 100644
--- a/lib/Message/Passing/Output/STDOUT.pm
+++ b/lib/Message/Passing/Output/STDERR.pm
@@ -1,4 +1,4 @@
-package Message::Passing::Output::STDOUT;
+package Message::Passing::Output::STDERR;
 use Moose;
 use namespace::autoclean;
 
@@ -7,7 +7,7 @@ with 'Message::Passing::Role::Output';
 sub consume {
     my $self = shift;
     local $|=1;
-    print shift() . "\n";
+    print STDERR shift() . "\n";
 }
 
 __PACKAGE__->meta->make_immutable;
@@ -19,19 +19,19 @@ Message::Passing::Output::STDOUT - STDOUT output
 
 =head1 SYNOPSIS
 
-    message-pass --input STDIN --output STDOUT
+    message-pass --input STDIN --output STDERR
     {"foo": "bar"}
     {"foo":"bar"}
 
 =head1 DESCRIPTION
 
-Output messages to STDOUT
+Output messages to STDERR
 
 =head1 METHODS
 
 =head2 consume
 
-Consumes a message by JSON encoding it and printing it, followed by \n
+Consumes a message by printing it, followed by \n
 
 =head1 SEE ALSO
 

-- 
libmessage-passing-perl Debian packaging



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