Skip to content
Browse files

Readme and License

  • Loading branch information...
1 parent a3f9799 commit 6db86a10dcf32b8eeb2b73795a9c62419abc9e46 @elcuervo committed
Showing with 48 additions and 0 deletions.
  1. +8 −0 LICENSE
  2. +40 −0 README.md
View
8 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
+ * ----------------------------------------------------------------------------
+ */
View
40 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.
Something went wrong with that request. Please try again.