1. Queue#pop will simply return a hash containing :header, :payload
and :delivery_details. You will no longer have to specify the :header
option to get additional detail. This will mean that your code will
need to change slightly. For instance, if you only want the message
contents at present you do something like this -
msg = queue.pop
In the next release you will change that to -
msg = queue.pop[:payload]
Personally, I think that it's easier to see what's going on, but you
may beg to differ ...
2. Queue#subscribe will change in a similar way to Queue#pop. So only
a hash will be passed to the block that you provide to the method. It
will contain :header, :payload, :delivery_details and :queue. This
will mean that where presently you do something like this -
queue.subscribe { |msg| puts msg }
In the next release you will change that to -
queue.subscribe { |msg| puts msg[:payload] }
Again, I think that this is a bit more expressive.
If you have objections to these changes please let me know. I don't
want to make changes to the API lightly, but I think that these
changes are for the better.
Regards,
Chris Duncan
_______________________________________________
bunny-amqp-devel mailing list
bunny-am...@rubyforge.org
http://rubyforge.org/mailman/listinfo/bunny-amqp-devel