ruby-amqp/amqp — pull request #126 by filterfish (2012-04-04 05:34:23+00:00)
Title: validate_parameters_match! should only some parameters not all.

According to the AMQP 0.9.1 spec if a queue is re-declared the following
parameters should be checked:

:durable, :exclusive, :auto_delete, :arguments

and if an exchange is re-declaring then the following parameters should
be checked:

:type, :durable, :arguments

Before this patch the entire parameters hash was being checked which
caused valid paramters to raise an AMQP::IncompatibleOptionsError
exception.