From 6db86a10dcf32b8eeb2b73795a9c62419abc9e46 Mon Sep 17 00:00:00 2001 From: Bruno Aguirre Date: Wed, 30 Mar 2011 00:40:53 -0300 Subject: [PATCH] Readme and License --- LICENSE | 8 ++++++++ README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 LICENSE create mode 100644 README.md diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4ba7b42 --- /dev/null +++ b/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 + * ---------------------------------------------------------------------------- + */ diff --git a/README.md b/README.md new file mode 100644 index 0000000..b7c056c --- /dev/null +++ b/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