Gem-ified WBXML4R

Posted by tom May 21st, 2008

I’ve had a lot of requests for the sourcecode for WXBML4R – a Ruby extension which allows you to convert from WBXML to XML and vice-versa. So far I’ve sent the code to people who asked, but now I’ve gem-ified the code and with the use of a gem, it’ll be a lot easier! Hopefully I’ll soon find the time to create a Rubyforge page for it and put it on there.

UPDATE: I’ve just asked for the RubyForge project, once that’s approved I’ll publish the gem there.

Trying to write a Rails ConnectionAdapter

Posted by tom January 6th, 2008

Today I’ve started with trying to write a Rails Connection Adapter for IBM U2 (UniData/UniVerse). There’s very little documentation available, only a couple of examples.

Ruby Xerces, Xalan and XQilla

Posted by tom September 27th, 2007

Ruby is badly in need of proper XML extensions for Xerces, Xalan and XQilla. That way it is easy do XML parsing and processing and transformation, one step closer to acts_as_enterprisey.

I’ve seen a couple of people suggesting the use of SWIG for creating these kind of extensions. I managed to compile the lot (Xerces, Xalan and XQilla) on Mac OSX (10.5 I might add), but using SWIG is beyond me (for now).

This week a colleague and myself have been working hard to create a Ruby extension which allows Ruby to make RPC calls to UniVerse and UniData (the IBM U2 databases). The module has been dubbed U2, the class UniRPC. It implements the intercall interface, and from that the functions: open, close, opensession, quit, readlist, execute, read, write & delete. Within the c-code it translates the @FM separated records (and readlists) into Ruby Arrays (for easy access). It currently does not translate @VM, @SM & @TM to sub-array structures, but maybe one day…

We’ve also created a ActiveRecord-like class to work with U2 files (tables & records) all in all pretty interesting!!