You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Andrea Barisani <an...@inversepath.com> on 2010/01/12 19:39:21 UTC
qpid ruby client issues
Hi,
I'd like to report an issue with the ruby-qpid client, version 0.5. Due to
the way function arguments are treated/overrided in the driver it is
currently impossible to issue the following command:
session.exchange_declare(name, :type => 'fanout')
as the :type variable is shadowed within qpid/datatypes.rb struct method.
A quick workaround is changing the xml spec with a different name (nasty
though) and everything works.
I tried to fix the driver but the fact that it's a python port doesn't help
the rubyist in me ;), the code is hard follow and I'd rather not mess it up.
As I know ruby fairly well though I'd be happy to help the maintainer in any
way I can.
Additionally I also wonder the meaning of the following statements in
lib/qpid/spec010.rb :
# XXX: workaround for ruby bug/missfeature
Reference = Reference
Loader = Loader
This doesn't look right, it seems to me that whatever issue triggered this
fixed it can be done "properly".
Anyway thanks a *lot* to the author of this plugins as it's the only piece of
ruby software which allows us to use AMQP 0-10 :).
Cheers!
--
Andrea Barisani Inverse Path Ltd
Chief Security Engineer -----> <--------
<an...@inversepath.com> http://www.inversepath.com
0x864C9B9E 0A76 074A 02CD E989 CE7F AC3F DA47 578E 864C 9B9E
"Pluralitas non est ponenda sine necessitate"
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org
Re: qpid ruby client issues
Posted by Ted Ross <tr...@redhat.com>.
Andrea,
I've been maintaining the ruby client code though I must admit that I'm
not a true rubyist :). I would welcome any contributions you would like
to make. Please set up an account on the Jira
(http://issues.apache.org/jira/browse/qpid) so you can report issues and
submit changes as code patches. If you have questions about the
process, please don't hesitate to ask.
Regards,
-Ted
On 01/12/2010 01:39 PM, Andrea Barisani wrote:
> Hi,
>
> I'd like to report an issue with the ruby-qpid client, version 0.5. Due to
> the way function arguments are treated/overrided in the driver it is
> currently impossible to issue the following command:
>
> session.exchange_declare(name, :type => 'fanout')
>
> as the :type variable is shadowed within qpid/datatypes.rb struct method.
>
> A quick workaround is changing the xml spec with a different name (nasty
> though) and everything works.
>
> I tried to fix the driver but the fact that it's a python port doesn't help
> the rubyist in me ;), the code is hard follow and I'd rather not mess it up.
>
> As I know ruby fairly well though I'd be happy to help the maintainer in any
> way I can.
>
> Additionally I also wonder the meaning of the following statements in
> lib/qpid/spec010.rb :
>
> # XXX: workaround for ruby bug/missfeature
> Reference = Reference
> Loader = Loader
>
> This doesn't look right, it seems to me that whatever issue triggered this
> fixed it can be done "properly".
>
> Anyway thanks a *lot* to the author of this plugins as it's the only piece of
> ruby software which allows us to use AMQP 0-10 :).
>
> Cheers!
>
>
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org