I don't believe any effort has been put into supporting MultiUse
tokens, and it's been a little while since I've put any work into the
gem personally, so it would be hard for me to speak to the technical
feasibility of such a patch. I'm not sure how motivated you are to get
this working with Remit, but if you'd like to dig into the code base a
little I'd happily accept any patches you toss my way.
Let me know if I can be of any help on this, or if you have any other
ideas on how to make the interface easier to integrate into your
application,
Tyler Hunt
You're right about it being an issue with Relax. There isn't really
support in Relax at the moment for this sort of request format. I
originally intended for Relax to be a generic library for building
interfaces to REST services, but since the primary application of it
so far has been Remit, most of its functionality is geared around the
most common FPS request formats.
Ideally there would be some thought put into expanding Relax to be a
little more flexible in the types of requests and responses that it
works with. In the short term an easier solution might be to create a
subclass of Relax::Request called something like RequestList or
RequestCollection that would produce the sort of output you're after,
possibly by simulating the functionality of an array (the proper way
to do this is probably to move the Request logic into a module that
can be included into a class that extends Ruby's Array).
I'd love to hear your thoughts on such a solution, and am willing to
help out with the implementation.
> P.S. I'd really love to see this gem and other FPS stuff for Ruby/
> Rails grow and get some more attention from the community. It's a
> very cool platform with a lot of potential but it can be a little
> daunting. I'm building a pretty big app on top of it so I'm sure I'll
> have some lessons I can share when I'm done. But starting out,
> examples/discussion/blog posts have been non-existent!
I understand what you mean. It was very difficult for me to get
started with this project, and to be honest, I haven't spent much time
at all actually using it yet, which is why things like this
TransactionId issue haven't been worked out yet.
I would love to see the platform take off, as well. Maybe after this
fix is in place the right thing to do would be to publish a new
release of Remit with some better documentation and a simple getting
started tutorial in the form of RDoc and then push those docs up to
RubyForge. That seems like a decent place to start to me.