rabbitmq-tutorials/ruby
2011-05-03 05:00:38 +02:00
..
emit_log_direct.rb Ruby: new_task.rb, ARGV fix. 2011-05-03 04:14:32 +02:00
emit_log_topic.rb Ruby: new_task.rb, ARGV fix. 2011-05-03 04:14:32 +02:00
emit_log.rb Ruby: new_task.rb, ARGV fix. 2011-05-03 04:14:32 +02:00
new_task.rb Ruby: new_task.rb, ARGV fix. 2011-05-03 04:14:32 +02:00
README.md README for the Ruby examples. 2011-05-03 04:18:58 +02:00
receive_logs_direct.rb Ruby: receive_logs.rb, receive_logs_direct.rb and receive_logs_topic.rb. 2011-05-03 04:48:37 +02:00
receive_logs_topic.rb Ruby: receive_logs.rb, receive_logs_direct.rb and receive_logs_topic.rb. 2011-05-03 04:48:37 +02:00
receive_logs.rb Ruby: receive_logs.rb, receive_logs_direct.rb and receive_logs_topic.rb. 2011-05-03 04:48:37 +02:00
receive.rb Ruby: receive.rb 2011-05-03 04:30:15 +02:00
send.rb Ruby: added send.rb and worker.rb. 2011-05-03 05:00:38 +02:00
worker.rb Ruby: added send.rb and worker.rb. 2011-05-03 05:00:38 +02:00

Ruby code for RabbitMQ tutorials

Here you can find Ruby code examples from RabbitMQ tutorials.

Requirements

To run this code you need AMQP library version 0.8. This code shall not work with earlier versions! You can install it via RubyGems thusly:

gem install amqp --version=0.8

Code

Tutorial one: "Hello World!":

ruby send.rb
ruby receive.rb

Tutorial two: Work Queues:

ruby new_task.rb
ruby worker.rb

Tutorial three: Publish/Subscribe

ruby receive_logs.rb
ruby emit_log.rb