Path to this page:
Subject: CVS commit: pkgsrc/net/ruby-amq-protocol
From: Takahiro Kambe
Date: 2012-12-17 13:37:51
Message id: 20121217123751.7A10A175DD@cvs.netbsd.org
Log Message:
Update ruby-amq-protocol to 1.0.1.
## Changes between 1.0.0 and 1.0.1
### Missing require
`amq-protocol` now makes sure `DateTime` is loaded before trying to use it.
## Changes between 1.0.0.pre6 and 1.0.0.pre7
### AMQ::Settings
`AMQ::Settings` extracts settings merging logic and AMQP/AMQPS URI parsing from \
`amq-client`.
Parsing follows the same convention amqp gem and RabbitMQ Java client follow.
Examples:
``` ruby
AMQ::Settings.parse_amqp_url("amqp://dev.rabbitmq.com") # \
=> vhost is nil, so default (/) will be used
AMQ::Settings.parse_amqp_url("amqp://dev.rabbitmq.com/") # \
=> vhost is an empty string
AMQ::Settings.parse_amqp_url("amqp://dev.rabbitmq.com/%2Fvault") # \
=> vhost is /vault
AMQ::Settings.parse_amqp_url("amqp://dev.rabbitmq.com/production") # \
=> vhost is production
AMQ::Settings.parse_amqp_url("amqp://dev.rabbitmq.com/a.b.c") # \
=> vhost is a.b.c
AMQ::Settings.parse_amqp_url("amqp://dev.rabbitmq.com/foo/bar") # \
=> ArgumentError
```
### AMQ::Protocol::TLS_PORT
`AMQ::Protocol::TLS_PORT` is a new constant that contains default AMQPS 0.9.1 port,
5671.
Files: