On Fri, May 22, 2009 at 3:14 PM, John Mettraux <[email protected]>wrote:
> > Hello Kenneth, > > well documented case ;) > > I'm not super happy with integrating ActiveSupport, there's lots of > things in there. But you are right, the newer versions seem promising. > > What I could do is simply stay away from JSON in the core ruote > classes so that people load their favourite JSON lib at will (like you > are doing for the amqp/xmpp participants). > > Only two core ruote classes do use JSON (and mostly for parsing). > > Same thing for XML parsing, I should avoid it in the core classes. > Pluggable XML library is sexy. > > So all in all, I guess "extras" classes can load active-support at > will. I will avoid it for the core engine (for instance, ruota has no > JSON/XML parsing at all). > > Is that "consensus" OK ? > I agree, but I have a 'gut' feeling that we're missing something though... I'll explain a bit more below and my plans quickly. First off, for the record, John and myself discussed this briefly in #ruote as well. We didn't really dive into it too deep, we were both distracted with other things too :) However, I do believe that it is fundamentally important that the engine has the ability to natively support serializing and deserializing its own "data" (for the lack of a better term). Currently there are utility classes that handle this, but they need some polishing. As for ActiveSupport, in hindsight I do believe I jumped the gun here, and apologies for sounding bullish on the topic. Since I've hit a snag with the ruote-rest's JSON encoding with the soon-to-be-released ActiveSupport 2.3.X I'm going to give OpenWFE::JSON a pluggable JSON backend which will dynamically detect the presence of one of the three JSON backends and use them accordingly. This can be changed as well. My order of priority will be 1) JSON, 2) ActiveSupport & 3) yajl-ruby and a friendly exception if none of these are available for use. I'll update ruote-rest as well to leverage the support. I hope this OK, it feels like a good tradeoff to keep the core engine clean. Best -- Kenneth Kalmer [email protected] http://opensourcery.co.za @kennethkalmer --~--~---------~--~----~------------~-------~--~----~ you received this message because you are subscribed to the "ruote users" group. to post : send email to [email protected] to unsubscribe : send email to [email protected] more options : http://groups.google.com/group/openwferu-users?hl=en -~----------~----~----~----~------~----~------~--~---
