Samurai
JAN
18

Open source updates

I am considering doing a weekly update on my open source projects and contributions, as a way to “pimp” my projects and motivate myself to continue to contribute. This could be the first of many.

I’ve been living in JRuby and SQL Server land for the last few days, as that will be our primary deployment environment to the Navy. I found a bug in the activerecord-jdbc-adapter this week, which generates a select distinct subselect with an order by (which, as far as I know is invalid in SQL Server. The issue is kind of squirrely, but the jist is that it appears to happen using a named_scope, including a has_many :through, and order by.

I also noticed that httparty by default is not JRuby compatible, because it uses json, which is a C extension. I forked httparty and added conditionals to make it build with json_pure when running JRuby.

I’m continuing my work on porting fpdi to Ruby, still resolving bugs and issues with hash ordering. Hopefully in the next few weeks I’ll have something more interesting to say about it. At this point, it generates partially-valid PDF data, but unfortunately partial doesn’t really cut it. The project is only about two and a half weeks old, so if I could get it running simple cases in less than a month, I’d be thrilled. That’s the goal.

Lastly, I am working on added a generator to the ServiceProxy, using templater. The idea would not be to generate full build and parse methods initially, but just to stub the build and parse methods so that users could get started quicker without having to completely understand how to read WSDL.