Skip to content

Commit

Permalink
Readme and License
Browse files Browse the repository at this point in the history
  • Loading branch information
elcuervo committed Mar 30, 2011
1 parent a3f9799 commit 6db86a1
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
8 changes: 8 additions & 0 deletions LICENSE
@@ -0,0 +1,8 @@
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* elcuervo wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return Bruno Aguirre
* ----------------------------------------------------------------------------
*/
40 changes: 40 additions & 0 deletions README.md
@@ -0,0 +1,40 @@
Cuba/Sugar
==========

_n_. bundled sugar for [cuba](https://github.com/soveran/cuba)

![Cuba Sugar Cane Cutter In Field](http://maynardswitzer.com/library/Cuba/2002CubaSugarCaneCutterInField.A.jpg)

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

0 comments on commit 6db86a1

Please sign in to comment.