nedcampion / bunny forked from celldee/bunny

Another synchronous Ruby AMQP client

This URL has Read+Write access

bunny /
name age message
file .gitignore Mon Apr 20 01:29:05 -0700 2009 First commit [celldee]
file LICENSE Mon Apr 20 04:40:30 -0700 2009 Amend README and add LICENSE [celldee]
file README Loading commit data...
file Rakefile
file bunny.gemspec
directory examples/ Sun May 10 16:40:58 -0700 2009 Enable Bunny#new method [celldee]
directory ext/
directory lib/
directory spec/
README
= Bunny: A synchronous Ruby AMQP client

*GitHub* *repo*: http://github.com/celldee/bunny
*Rubyforge*: http://rubyforge.org/projects/bunny-amqp
*Twitter*: http://twitter.com/bunny_amqp
*Google* *Group*: http://groups.google.com/group/bunny-amqp
     
=== DESCRIPTION:

Bunny is an AMQP[http://www.amqp.org] (Advanced Message Queuing Protocol) client, written in Ruby, that is intended to 
allow you to interact with AMQP-compliant message brokers/servers such as RabbitMQ[http://www.rabbitmq.com] in a 
synchronous fashion.

It is based on a great deal of useful code from amqp[http://github.com/tmm1/amqp] by Aman Gupta and 
Carrot[http://github.com/famoseagle/carrot] by Amos Elliston.

You can use Bunny to -

* Create and delete exchanges
* Create and delete queues
* Publish and consume messages

Bunny is known to work with RabbitMQ version 1.5.4 and version 0-8 of the AMQP specification.

=== INSTALL:

*Rubyforge*: <tt>gem install bunny</tt>

*GitHub*: <tt>gem install celldee-bunny</tt>

=== QUICK START:

   require 'bunny'

   b = Bunny.new(:logging => true)

   # start a communication session with the amqp server
   b.start

   # declare a queue
   q = b.queue('test1')

   # publish a message to the queue
   q.publish('Hello everybody!')

   # get message from the queue
   msg = q.pop

   puts 'This is the message: ' + msg + "\n\n"

   # close the connection
   b.stop

=== OTHER:
Please see the _examples_ directory for additional usage information.