A collection of wrappers and helpers for RubyMotion
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1207 commits behind rubymotion:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
README.md
Rakefile

README.md

BubbleWrap for RubyMotion

A collection of wrappers used to wrap CocoaTouch code and provide more Ruby like APIs.

HTTP

BubbleWrap::HTTP wraps NSURLRequest, NSURLConnection and friends to provide Ruby developers with a more familiar and easier to use API. The API uses async calls and blocks to stay as simple as possible.

Usage example:

BubbleWrap::HTTP.get("https://api.github.com/users/mattetti") do |response|
  p response.body.to_str
end

JSON

BubbleWrap::JSON wraps NSJSONSerialization available in iOS5 and offer the same API as Ruby's json std lib.

Kernel

A collection of useful methods used often in RubyMotion apps.