Give cuba some sugar!
Ruby
Pull request Compare This branch is 47 commits behind elcuervo:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib/cuba
test
.gitignore
LICENSE
README.md
Rakefile
cuba-sugar.gemspec
cuba-sugar.gemspec.erb

README.md

Cuba/Sugar

n. bundled sugar for cuba

Cuba Sugar Cane Cutter In Field

Description

It's like contrib stuff but with a cooler name. Provides helpers and utilities to use with cuba.

Usage

Like any other cuba app, but provides:

as

require "cuba"
require "cuba/sugar"

Cuba.use Rack::Session::Cookie

Cuba.define do
  on post do
    on "users" do
      # create user
      as 201, {"Content-Location" => "http://somewhere.com/users/705"} do
        "user #{user.id} created"
      end
    end
  end
end

Installation

$ gem install cuba-sugar