8 Krypton

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

Labels (1)
0 Kudos
2 Replies
8 Krypton

Re: Ruby REST Binding/Wrapper

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/

0 Kudos
8 Krypton

Re: Ruby REST Binding/Wrapper

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.

0 Kudos