Hey everyone,

I’m happy to announce the release of Koala 1.1rc3!  Looking back, the previous release should have been a beta, since we’ve made a number of changes and improvements.

Batch API Interface Change

Most significantly, we’ve made a breaking change to the Batch API interface.  This was not an easy choice, but the original implementation wasn’t thread-safe (class variables and all that), an oversight that’s been resolved with the new batch interface (thanks to spiegela for his help).  It’s very similar, and we hope the change will not cause too much inconvenience.
it "can get two results at once" do
  # batch is now a method on GraphAPI instances,
  # yielding its own GraphBatchAPI object
  me, koppel = @api.batch do |batch_api|
    batch_api.get_object('me')
    batch_api.get_object('koppel')
  end
  me['id'].should_not be_nil
  koppel['id'].should_not be_nil
end
You can check out the updated examples at https://github.com/arsduo/koala/wiki/Batch-requests.

Other Changes

With 1.1rc3, we’ve added a few other improvements to Koala:
  • Added GraphAPI#put_video
  • NetHTTPService now supports global and per-call settings for ca_path, ca_file, and verify_mode (useful to those experiencing SSL problems)
  • We’ve switched from the JSON gem to MultiJson to make Koala compatible with Rubinius
Full documentation is available, as always, on the wiki; the full changelog since RC2 is here.

Installation

Just run [sudo|rvm] gem install koala –pre or add gem “koala”, “~> 1.1.0rc” to your Gemfile.

Final 1.1 Release

Please give 1.1rc3 a try and let us know if you find any issues!  If no big problems come up, we’ll release 1.1 in mid-July.

And don’t forget

To check out Facebook’s new Graph API Explorer, a neat new tool that lets you generate access tokens and play with the Graph API.  (Much like the OAuth Playground, but slicker and without the OAuth components.)


Best,

Alex and Chris
https://github.com/arsduo/koala