Thursday, July 12, 2007

A Ruby API for Truveo

Time for a work related post...

At Truveo we're getting a lot of traction with our video search APIs. A few months ago we were working on a new release and I wanted to write a bunch of tests for it before we let it out the door. I decided that a good way to do this would be to write Ruby programs that would compare the new version to the old version. Since we have a public API, I just needed a Ruby mapping for that API. Thus, the Truveo Ruby API was born. Of course, building it for internal testing is a lot different than actually releasing it for others to use. I actually had do do documentation and figure out how to make a Rakefiles and create Gems. Well I've finished all that and it's up on RubyForge.

The nice thing about having the gem on RubyForge is that anyone with Ruby Gems can easily install it like this:

% gem install truveo

The Ruby API is open source (under the Ruby license). So if you want to take a look at the code or contribute to it, head over to the RubyForge Truveo Project page.

If you just want to try it out, take a look a the RDoc documentation.

This should also go up on the Truveo Developer site soon.

I'm happy about this for a couple of reasons. First it was fun to do and it's done well I think. It has been very useful for internal purposes and now more folks can get access to Truveo in yet another language. (We already support an XML HTTP interface, JavaScript, and Flash.) The second reason is that it's my first open source effort. I've always wanted to do a some open source contribution, and now I have.

So check it out and let me know what you think.