README.md in amqp-client-0.3.0 vs README.md in amqp-client-1.0.0

- old
+ new

@@ -1,8 +1,8 @@ # AMQP::Client -An AMQP 0-9-1 client alternative, trying to keep things as simple as possible. +An AMQP 0-9-1 Ruby client, trying to keep things as simple as possible. ## Installation Add this line to your application's Gemfile: @@ -32,11 +32,11 @@ ch.basic_publish "Hello World!", "", q[:queue_name] msg = ch.basic_get q[:queue_name] puts msg.body ``` -High level API, is an easier and safer API, that only deal with durable queues and persisted messages. All methods are blocking in the case of connection loss etc. It's also fully thread-safe. Don't expect it to be extreme throughput, be expect 100% delivery guarantees (messages might be deliviered twice, in the unlikely event of a connection loss between message publish and message confirmed by the server). +High level API, is an easier and safer API, that only deal with durable queues and persisted messages. All methods are blocking in the case of connection loss etc. It's also fully thread-safe. Don't expect it to have extreme throughput, but expect 100% delivery guarantees (messages might be delivered twice, in the unlikely event of connection loss between message publish and message confirmation by the server). ```ruby amqp = AMQP::Client.new("amqp://localhost") amqp.start @@ -44,11 +44,11 @@ q = amqp.queue("myqueue") # Bind the queue to any exchange, with any binding key q.bind("amq.topic", "my.events.*") -# The message will be reprocessed if the client lost connection to the server -# between the message arrived and the message was supposed to be ack:ed. +# The message will be reprocessed if the client loses connection to the server +# between message arrival and when the message was supposed to be ack'ed. q.subscribe(prefetch: 20) do |msg| process(JSON.parse(msg.body)) msg.ack rescue msg.reject(requeue: false)