Start a Conversation

Unsolved

This post is more than 5 years old

3083

October 26th, 2010 10:00

Ruby REST Binding/Wrapper

Hi All,

I've started work on a Ruby REST wrapper for Atmos.  It's currently in "Alpha" status and you should be able to do some basic c/r/u/d operations with objects.  It will be completed over the next couple weeks.

You can check out the project here:

https://code.google.com/p/atmos-ruby/

The Google Code SVN server currently isn't allowing any commits, so I've attached the base module to this post.  Enjoy!

Note that this module will require the ruby HMAC library:

gem install ruby-hmac

Also, due to the way the Ruby HTTP library works, the EsuApi object is not thread-safe.  Each EsuRestApi object is bound to an HTTP connection.  In a multilthreaded application, you'll need to either keep the EsuRestApi object in a block scope or thread local or use a pooling API to distribute them to threads as needed: http://www.pluitsolutions.com/projects/common-pool

2 Attachments

281 Posts

October 28th, 2010 21:00

Update: Google code is fixed, I also checked in a whole bunch more functionality.

Question to the Ruby developers out there: I'm using the Nokogiri Gem for XML parsing.  Any objections?

http://nokogiri.org/

281 Posts

November 4th, 2010 16:00

Update

atmos-ruby is released!  You can install it with the standard gem utility:

gem install --remote atmos-ruby

See the Google Code project page for more information.

No Events found!

Top