[libanyevent-rabbitmq-perl] 33/151: Fixed module name.

Damyan Ivanov dmn at moszumanska.debian.org
Thu Jan 16 11:03:02 UTC 2014


This is an automated email from the git hooks/post-receive script.

dmn pushed a commit to annotated tag debian/1.12-1
in repository libanyevent-rabbitmq-perl.

commit e2522cad3ca3c8f091ef793175fa2aca76e3149e
Author: cooldaemon <cooldaemon at gmail.com>
Date:   Fri Mar 5 11:24:11 2010 +0900

    Fixed module name.
---
 Changes                                              |  3 +++
 Makefile.PL                                          |  4 ++--
 README                                               | 12 ++++++------
 lib/{ => Net}/RabbitFoot.pm                          | 20 +++++++++++---------
 lib/{ => Net}/RabbitFoot/Channel.pm                  |  2 +-
 lib/{ => Net}/RabbitFoot/Cmd.pm                      |  2 +-
 lib/{ => Net}/RabbitFoot/Cmd/Command/bind_queue.pm   |  4 ++--
 .../RabbitFoot/Cmd/Command/declare_exchange.pm       |  4 ++--
 .../RabbitFoot/Cmd/Command/declare_queue.pm          |  4 ++--
 .../RabbitFoot/Cmd/Command/delete_exchange.pm        |  4 ++--
 lib/{ => Net}/RabbitFoot/Cmd/Command/delete_queue.pm |  0
 lib/{ => Net}/RabbitFoot/Cmd/Command/purge_queue.pm  |  4 ++--
 lib/{ => Net}/RabbitFoot/Cmd/Command/unbind_queue.pm |  4 ++--
 lib/{ => Net}/RabbitFoot/Cmd/Role/Command.pm         |  8 ++++----
 lib/{ => Net}/RabbitFoot/Cmd/Role/Config.pm          |  2 +-
 lib/auto/{ => Net}/RabbitFoot/fixed_amqp0-8.xml      |  0
 rabbit_foot                                          |  4 ++--
 t/00_compile.t                                       | 16 ++++++++--------
 xt/04_anyevent.t                                     |  4 ++--
 xt/05_coro.t                                         |  6 +++---
 xt/06_multi_channel.t                                |  8 ++++----
 21 files changed, 60 insertions(+), 55 deletions(-)

diff --git a/Changes b/Changes
index 966db6d..74ce10b 100644
--- a/Changes
+++ b/Changes
@@ -1,4 +1,7 @@
 Revision history for Perl extension RabbitFoot
 
+1.00    Fri Mar  5 11:30:00 2010
+        - fix module name.
+
 0.01    Sun Dec  6 20:54:03 2009
         - original version
diff --git a/Makefile.PL b/Makefile.PL
index 80e96be..1f1def8 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,6 +1,6 @@
 use inc::Module::Install;
-name 'RabbitFoot';
-all_from 'lib/RabbitFoot.pm';
+name 'Net-RabbitFoot';
+all_from 'lib/Net/RabbitFoot.pm';
 
 requires 'Moose';
 requires 'MooseX::AttributeHelpers';
diff --git a/README b/README
index 05f2035..3eb6232 100644
--- a/README
+++ b/README
@@ -1,8 +1,8 @@
-This is Perl module RabbitFoot.
+This is Perl module Net::RabbitFoot.
 
-RabbitFoot is an AMQP(Advanced Message Queuing Protocol) client library, that is intended to allow you to interact with AMQP-compliant message brokers/servers such as RabbitMQ in an asynchronous fashion.
+Net::RabbitFoot is an AMQP(Advanced Message Queuing Protocol) client library, that is intended to allow you to interact with AMQP-compliant message brokers/servers such as RabbitMQ in an asynchronous fashion.
 
-You can use RabbitFoot to -
+You can use Net::RabbitFoot to -
 
   * Declare and delete exchanges
   * Declare, delete, bind and unbind queues
@@ -10,7 +10,7 @@ You can use RabbitFoot to -
   * Publish, consume, get, ack and recover messages
   * Select, commit and rollback transactions
 
-RabbitFoot is known to work with RabbitMQ versions 1.7.2 and version 0-8 of the AMQP specification.
+Net::RabbitFoot is known to work with RabbitMQ versions 1.7.2 and version 0-8 of the AMQP specification.
 
 INSTALLATION
 
@@ -25,9 +25,9 @@ Then install it:
 
 DOCUMENTATION
 
-RabbitFoot documentation is available as in POD. So you can do:
+Net::RabbitFoot documentation is available as in POD. So you can do:
 
-    % perldoc RabbitFoot
+    % perldoc Net::RabbitFoot
 
 to read the documentation online with your favorite pager.
 
diff --git a/lib/RabbitFoot.pm b/lib/Net/RabbitFoot.pm
similarity index 74%
rename from lib/RabbitFoot.pm
rename to lib/Net/RabbitFoot.pm
index fb02d7f..0697277 100644
--- a/lib/RabbitFoot.pm
+++ b/lib/Net/RabbitFoot.pm
@@ -1,4 +1,4 @@
-package RabbitFoot;
+package Net::RabbitFoot;
 
 use strict;
 use warnings;
@@ -9,7 +9,7 @@ use Coro::AnyEvent;
 
 use File::ShareDir ();
 
-use RabbitFoot::Channel;
+use Net::RabbitFoot::Channel;
 
 our $VERSION = '1.00';
 
@@ -44,7 +44,9 @@ sub default_amqp_spec {
 
 sub open_channel {
     my $self = shift;
-    return RabbitFoot::Channel->new(arc => $self->_do('open_channel', @_,));
+    return Net::RabbitFoot::Channel->new(
+        arc => $self->_do('open_channel', @_,)
+    );
 }
 
 sub _do {
@@ -67,13 +69,13 @@ __END__
 
 =head1 NAME
 
-RabbitFoot - An Asynchronous and multi channel Perl AMQP client.
+Net::RabbitFoot - An Asynchronous and multi channel Perl AMQP client.
 
 =head1 SYNOPSIS
 
-  use RabbitFoot;
+  use Net::RabbitFoot;
 
-  my $rf = RabbitFoot->new()->load_xml_spec(
+  my $rf = Net::RabbitFoot->new()->load_xml_spec(
       '/path/to/amqp0-8.xml',
   )->connect(
       host    => 'localhosti',
@@ -89,9 +91,9 @@ RabbitFoot - An Asynchronous and multi channel Perl AMQP client.
 
 =head1 DESCRIPTION
 
-RabbitFoot is an AMQP(Advanced Message Queuing Protocol) client library, that is intended to allow you to interact with AMQP-compliant message brokers/servers such as RabbitMQ in an asynchronous fashion.
+Net::RabbitFoot is an AMQP(Advanced Message Queuing Protocol) client library, that is intended to allow you to interact with AMQP-compliant message brokers/servers such as RabbitMQ in an asynchronous fashion.
 
-You can use RabbitFoot to -
+You can use Net::RabbitFoot to -
 
   * Declare and delete exchanges
   * Declare, delete, bind and unbind queues
@@ -99,7 +101,7 @@ You can use RabbitFoot to -
   * Publish, consume, get, ack and recover messages
   * Select, commit and rollback transactions
 
-RabbitFoot is known to work with RabbitMQ versions 1.7.2 and version 0-8 of the AMQP specification.
+Net::RabbitFoot is known to work with RabbitMQ versions 1.7.2 and version 0-8 of the AMQP specification.
 
 =head1 AUTHOR
 
diff --git a/lib/RabbitFoot/Channel.pm b/lib/Net/RabbitFoot/Channel.pm
similarity index 97%
rename from lib/RabbitFoot/Channel.pm
rename to lib/Net/RabbitFoot/Channel.pm
index 83eb127..8367bfa 100644
--- a/lib/RabbitFoot/Channel.pm
+++ b/lib/Net/RabbitFoot/Channel.pm
@@ -1,4 +1,4 @@
-package RabbitFoot::Channel;
+package Net::RabbitFoot::Channel;
 
 use strict;
 use warnings;
diff --git a/lib/RabbitFoot/Cmd.pm b/lib/Net/RabbitFoot/Cmd.pm
similarity index 75%
rename from lib/RabbitFoot/Cmd.pm
rename to lib/Net/RabbitFoot/Cmd.pm
index 293a39f..0a4a06b 100644
--- a/lib/RabbitFoot/Cmd.pm
+++ b/lib/Net/RabbitFoot/Cmd.pm
@@ -1,4 +1,4 @@
-package RabbitFoot::Cmd;
+package Net::RabbitFoot::Cmd;
 
 use Moose;
 extends qw(MooseX::App::Cmd);
diff --git a/lib/RabbitFoot/Cmd/Command/bind_queue.pm b/lib/Net/RabbitFoot/Cmd/Command/bind_queue.pm
similarity index 91%
rename from lib/RabbitFoot/Cmd/Command/bind_queue.pm
rename to lib/Net/RabbitFoot/Cmd/Command/bind_queue.pm
index 862e8e3..92e0f9e 100644
--- a/lib/RabbitFoot/Cmd/Command/bind_queue.pm
+++ b/lib/Net/RabbitFoot/Cmd/Command/bind_queue.pm
@@ -1,8 +1,8 @@
-package RabbitFoot::Cmd::Command::bind_queue;
+package Net::RabbitFoot::Cmd::Command::bind_queue;
 
 use Moose;
 extends qw(MooseX::App::Cmd::Command);
-with qw(RabbitFoot::Cmd::Role::Config RabbitFoot::Cmd::Role::Command);
+with qw(Net::RabbitFoot::Cmd::Role::Config Net::RabbitFoot::Cmd::Role::Command);
 
 has queue => (
     isa           => 'Str',
diff --git a/lib/RabbitFoot/Cmd/Command/declare_exchange.pm b/lib/Net/RabbitFoot/Cmd/Command/declare_exchange.pm
similarity index 94%
rename from lib/RabbitFoot/Cmd/Command/declare_exchange.pm
rename to lib/Net/RabbitFoot/Cmd/Command/declare_exchange.pm
index 8282826..cb2f06b 100644
--- a/lib/RabbitFoot/Cmd/Command/declare_exchange.pm
+++ b/lib/Net/RabbitFoot/Cmd/Command/declare_exchange.pm
@@ -1,10 +1,10 @@
-package RabbitFoot::Cmd::Command::declare_exchange;
+package Net::RabbitFoot::Cmd::Command::declare_exchange;
 
 use List::MoreUtils qw(none);
 use Moose;
 
 extends qw(MooseX::App::Cmd::Command);
-with qw(RabbitFoot::Cmd::Role::Config RabbitFoot::Cmd::Role::Command);
+with qw(Net::RabbitFoot::Cmd::Role::Config Net::RabbitFoot::Cmd::Role::Command);
 
 has exchange => (
     isa           => 'Str',
diff --git a/lib/RabbitFoot/Cmd/Command/declare_queue.pm b/lib/Net/RabbitFoot/Cmd/Command/declare_queue.pm
similarity index 93%
rename from lib/RabbitFoot/Cmd/Command/declare_queue.pm
rename to lib/Net/RabbitFoot/Cmd/Command/declare_queue.pm
index f28c145..8e1b8dc 100644
--- a/lib/RabbitFoot/Cmd/Command/declare_queue.pm
+++ b/lib/Net/RabbitFoot/Cmd/Command/declare_queue.pm
@@ -1,8 +1,8 @@
-package RabbitFoot::Cmd::Command::declare_queue;
+package Net::RabbitFoot::Cmd::Command::declare_queue;
 
 use Moose;
 extends qw(MooseX::App::Cmd::Command);
-with qw(RabbitFoot::Cmd::Role::Config RabbitFoot::Cmd::Role::Command);
+with qw(Net::RabbitFoot::Cmd::Role::Config Net::RabbitFoot::Cmd::Role::Command);
 
 has queue => (
     isa           => 'Str',
diff --git a/lib/RabbitFoot/Cmd/Command/delete_exchange.pm b/lib/Net/RabbitFoot/Cmd/Command/delete_exchange.pm
similarity index 87%
rename from lib/RabbitFoot/Cmd/Command/delete_exchange.pm
rename to lib/Net/RabbitFoot/Cmd/Command/delete_exchange.pm
index 81fcbb5..ff7892e 100644
--- a/lib/RabbitFoot/Cmd/Command/delete_exchange.pm
+++ b/lib/Net/RabbitFoot/Cmd/Command/delete_exchange.pm
@@ -1,8 +1,8 @@
-package RabbitFoot::Cmd::Command::delete_exchange;
+package Net::RabbitFoot::Cmd::Command::delete_exchange;
 
 use Moose;
 extends qw(MooseX::App::Cmd::Command);
-with qw(RabbitFoot::Cmd::Role::Config RabbitFoot::Cmd::Role::Command);
+with qw(Net::RabbitFoot::Cmd::Role::Config Net::RabbitFoot::Cmd::Role::Command);
 
 has exchange => (
     isa           => 'Str',
diff --git a/lib/RabbitFoot/Cmd/Command/delete_queue.pm b/lib/Net/RabbitFoot/Cmd/Command/delete_queue.pm
similarity index 100%
rename from lib/RabbitFoot/Cmd/Command/delete_queue.pm
rename to lib/Net/RabbitFoot/Cmd/Command/delete_queue.pm
diff --git a/lib/RabbitFoot/Cmd/Command/purge_queue.pm b/lib/Net/RabbitFoot/Cmd/Command/purge_queue.pm
similarity index 84%
rename from lib/RabbitFoot/Cmd/Command/purge_queue.pm
rename to lib/Net/RabbitFoot/Cmd/Command/purge_queue.pm
index d6c2997..a10d7c5 100644
--- a/lib/RabbitFoot/Cmd/Command/purge_queue.pm
+++ b/lib/Net/RabbitFoot/Cmd/Command/purge_queue.pm
@@ -1,8 +1,8 @@
-package RabbitFoot::Cmd::Command::purge_queue;
+package Net::RabbitFoot::Cmd::Command::purge_queue;
 
 use Moose;
 extends qw(MooseX::App::Cmd::Command);
-with qw(RabbitFoot::Cmd::Role::Config RabbitFoot::Cmd::Role::Command);
+with qw(Net::RabbitFoot::Cmd::Role::Config Net::RabbitFoot::Cmd::Role::Command);
 
 has queue => (
     isa           => 'Str',
diff --git a/lib/RabbitFoot/Cmd/Command/unbind_queue.pm b/lib/Net/RabbitFoot/Cmd/Command/unbind_queue.pm
similarity index 91%
rename from lib/RabbitFoot/Cmd/Command/unbind_queue.pm
rename to lib/Net/RabbitFoot/Cmd/Command/unbind_queue.pm
index cda1414..0ef9c67 100644
--- a/lib/RabbitFoot/Cmd/Command/unbind_queue.pm
+++ b/lib/Net/RabbitFoot/Cmd/Command/unbind_queue.pm
@@ -1,8 +1,8 @@
-package RabbitFoot::Cmd::Command::unbind_queue;
+package Net::RabbitFoot::Cmd::Command::unbind_queue;
 
 use Moose;
 extends qw(MooseX::App::Cmd::Command);
-with qw(RabbitFoot::Cmd::Role::Config RabbitFoot::Cmd::Role::Command);
+with qw(Net::RabbitFoot::Cmd::Role::Config Net::RabbitFoot::Cmd::Role::Command);
 
 has queue => (
     isa           => 'Str',
diff --git a/lib/RabbitFoot/Cmd/Role/Command.pm b/lib/Net/RabbitFoot/Cmd/Role/Command.pm
similarity index 95%
rename from lib/RabbitFoot/Cmd/Role/Command.pm
rename to lib/Net/RabbitFoot/Cmd/Role/Command.pm
index 23335c2..e845eb3 100644
--- a/lib/RabbitFoot/Cmd/Role/Command.pm
+++ b/lib/Net/RabbitFoot/Cmd/Role/Command.pm
@@ -1,8 +1,8 @@
-package RabbitFoot::Cmd::Role::Command;
+package Net::RabbitFoot::Cmd::Role::Command;
 
 use FindBin;
 use Coro;
-use RabbitFoot;
+use Net::RabbitFoot;
 
 use Moose::Role;
 requires qw(_run);
@@ -10,7 +10,7 @@ requires qw(_run);
 has spec => (
     isa => 'Str',
     is  => 'rw',
-    default       => RabbitFoot::default_amqp_spec(),
+    default       => Net::RabbitFoot::default_amqp_spec(),
     metaclass     => 'MooseX::Getopt::Meta::Attribute',
     cmd_aliases   => 's',
     documentation => 'AMQP specification',
@@ -115,7 +115,7 @@ sub execute {
     my $self = shift;
     my ($opt, $args,) = @_;
 
-    my $rf = RabbitFoot->new(
+    my $rf = Net::RabbitFoot->new(
         verbose => $self->verbose,
     )->load_xml_spec(
         $self->spec,
diff --git a/lib/RabbitFoot/Cmd/Role/Config.pm b/lib/Net/RabbitFoot/Cmd/Role/Config.pm
similarity index 93%
rename from lib/RabbitFoot/Cmd/Role/Config.pm
rename to lib/Net/RabbitFoot/Cmd/Role/Config.pm
index c90816e..d1a43bc 100644
--- a/lib/RabbitFoot/Cmd/Role/Config.pm
+++ b/lib/Net/RabbitFoot/Cmd/Role/Config.pm
@@ -1,4 +1,4 @@
-package RabbitFoot::Cmd::Role::Config;
+package Net::RabbitFoot::Cmd::Role::Config;
 
 use FindBin;
 use Config::Any;
diff --git a/lib/auto/RabbitFoot/fixed_amqp0-8.xml b/lib/auto/Net/RabbitFoot/fixed_amqp0-8.xml
similarity index 100%
rename from lib/auto/RabbitFoot/fixed_amqp0-8.xml
rename to lib/auto/Net/RabbitFoot/fixed_amqp0-8.xml
diff --git a/rabbit_foot b/rabbit_foot
index ecc01b6..ada6f1e 100755
--- a/rabbit_foot
+++ b/rabbit_foot
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use RabbitFoot::Cmd;
+use Net::RabbitFoot::Cmd;
 
-RabbitFoot::Cmd->run;
+Net::RabbitFoot::Cmd->run;
 
diff --git a/t/00_compile.t b/t/00_compile.t
index 73bca90..a9e7397 100644
--- a/t/00_compile.t
+++ b/t/00_compile.t
@@ -2,14 +2,14 @@ use strict;
 use Test::More tests => 11;
 
 BEGIN {
-    use_ok 'RabbitFoot';
-    use_ok 'RabbitFoot::Cmd';
-    use_ok 'RabbitFoot::Cmd::Role::Command';
-    use_ok 'RabbitFoot::Cmd::Role::Config';
-    use_ok 'RabbitFoot::Cmd::Command::declare_queue';
-    use_ok 'RabbitFoot::Cmd::Command::bind_queue';
-    use_ok 'RabbitFoot::Cmd::Command::purge_queue';
-    use_ok 'RabbitFoot::Cmd::Command::declare_exchange';
+    use_ok 'Net::RabbitFoot';
+    use_ok 'Net::RabbitFoot::Cmd';
+    use_ok 'Net::RabbitFoot::Cmd::Role::Command';
+    use_ok 'Net::RabbitFoot::Cmd::Role::Config';
+    use_ok 'Net::RabbitFoot::Cmd::Command::declare_queue';
+    use_ok 'Net::RabbitFoot::Cmd::Command::bind_queue';
+    use_ok 'Net::RabbitFoot::Cmd::Command::purge_queue';
+    use_ok 'Net::RabbitFoot::Cmd::Command::declare_exchange';
 
     use_ok 'AnyEvent::RabbitMQ';
     use_ok 'AnyEvent::RabbitMQ::Channel';
diff --git a/xt/04_anyevent.t b/xt/04_anyevent.t
index 9106429..f83fde0 100644
--- a/xt/04_anyevent.t
+++ b/xt/04_anyevent.t
@@ -27,13 +27,13 @@ plan skip_all => 'Connection failure: '
                . $conf->{host} . ':' . $conf->{port} if $@;
 plan tests => 24;
 
-use RabbitFoot ();
+use Net::RabbitFoot ();
 use AnyEvent::RabbitMQ;
 
 my $ar = AnyEvent::RabbitMQ->new();
 
 lives_ok sub {
-    $ar->load_xml_spec(RabbitFoot::default_amqp_spec())
+    $ar->load_xml_spec(Net::RabbitFoot::default_amqp_spec())
 }, 'load xml spec';
 
 my $done = AnyEvent->condvar;
diff --git a/xt/05_coro.t b/xt/05_coro.t
index 682ec8d..db6aa27 100644
--- a/xt/05_coro.t
+++ b/xt/05_coro.t
@@ -28,12 +28,12 @@ plan skip_all => 'Connection failure: '
 plan tests => 23;
 
 use Coro;
-use RabbitFoot;
+use Net::RabbitFoot;
 
-my $rf = RabbitFoot->new();
+my $rf = Net::RabbitFoot->new();
 
 lives_ok sub {
-    $rf->load_xml_spec(RabbitFoot::default_amqp_spec())
+    $rf->load_xml_spec(Net::RabbitFoot::default_amqp_spec())
 }, 'load xml spec';
  
 lives_ok sub {
diff --git a/xt/06_multi_channel.t b/xt/06_multi_channel.t
index d0780dd..53f431a 100644
--- a/xt/06_multi_channel.t
+++ b/xt/06_multi_channel.t
@@ -28,10 +28,10 @@ plan skip_all => 'Connection failure: '
 plan tests => 6;
 
 use Coro;
-use RabbitFoot;
+use Net::RabbitFoot;
 
-my $rf = RabbitFoot->new()->load_xml_spec(
-    RabbitFoot::default_amqp_spec()
+my $rf = Net::RabbitFoot->new()->load_xml_spec(
+    Net::RabbitFoot::default_amqp_spec()
 )->connect(
     (map {$_ => $conf->{$_}} qw(host port user pass vhost)),
     timeout => 1,
@@ -43,7 +43,7 @@ my $done = 0;
 my @queues = map {
     my $queue = 'test_q' . $_;
     my $ch = $rf->open_channel();
-    isa_ok($ch, 'RabbitFoot::Channel');
+    isa_ok($ch, 'Net::RabbitFoot::Channel');
 
     $ch->declare_queue(queue => $queue);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libanyevent-rabbitmq-perl.git



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