docs/GettingStarted.textile in amqp-0.9.10 vs docs/GettingStarted.textile in amqp-1.0.0.pre1

- old
+ new

@@ -1,14 +1,10 @@ # @title Ruby amqp gem: Getting Started with AMQP and Ruby h1. Getting started with the Ruby amqp gem -h2. This Documentation Has Moved to rubyamqp.info -amqp gem documentation guides are now hosted on "rubyamqp.info":http://rubyamqp.info. - - h2. About this guide This guide is a quick tutorial that helps you to get started with v0.9.1 of the AMQP specification in general and the "Ruby amqp gem":http://github.com/ruby-amqp/amqp in particular. It should take about 20 minutes to read and study the provided code examples. This guide covers: @@ -88,11 +84,11 @@ <pre> <code> source :rubygems -gem "amqp", "~> 0.8.4" # optionally: :git => "git://github.com/ruby-amqp/amqp.git", :branch => "0.8.x-stable" +gem "amqp", "~> 0.9.0" # optionally: :git => "git://github.com/ruby-amqp/amqp.git", :branch => "0.9.x-stable" </code> </pre> h3. Verifying your installation @@ -103,11 +99,11 @@ irb -rubygems :001 > require "amqp" => true :002 > AMQP::VERSION -=> "0.8.4" +=> "0.9.0" </code> </pre> h2. "Hello, world" example @@ -221,11 +217,11 @@ For the sake of simplicity, both the message producer (App I) and the consumer (App II) are running in the same Ruby process. Now let us move on to a little bit more sophisticated example. -h2. Blabblr: one-to-many publish/subscribe (pubsub) example +h2. Blabbr: one-to-many publish/subscribe (pubsub) example The previous example demonstrated how a connection to a broker is made and how to do 1:1 communication using the default exchange. Now let us take a look at another common scenario: broadcast, or multiple consumers and one producer. @@ -270,11 +266,11 @@ exchange = channel.fanout("nba.scores") </code> </pre> The exchange that we declare above using {AMQP::Channel#fanout} is a _fanout exchange_. A fanout exchange delivers messages to all of the queues that - are bound to it: exactly what we want in the case of Blabbr! + are bound to it: exactly what we want in the case of Blabbr. This piece of code <pre> <code> @@ -301,14 +297,14 @@ !https://github.com/ruby-amqp/amqp/raw/master/docs/diagrams/002_blabbr_example_routing.png! Next we use EventMachine's {http://eventmachine.rubyforge.org/EventMachine.html#M000466 add_timer} method to -run a piece of code in 1 second from now: +run a piece of code in 2 seconds from now: <pre> <code> -EventMachine.add_timer(1) do +EventMachine.add_timer(2) do exchange.delete connection.close { EventMachine.stop } end </code>