public
Description: an experimentation with Rack
Homepage: http://rufus.rubyforge.org/rufus-sixjo
Clone URL: git://github.com/jmettraux/rufus-sixjo.git
jmettraux (author)
Sat Apr 25 22:38:35 -0700 2009
commit  4edceebfc6a65e6fc374337cbcbd728004f43709
tree    93c4339f1454c35c9a93a9dacbf9d724ae77187b
parent  91f5e9de2a130f2ac718e824c218a4577f7f267e
name age message
file CHANGELOG.txt Wed Jan 07 01:41:19 -0800 2009 bug #23482 : was not compatible with Rack 0.9.0... [jmettraux]
file CREDITS.txt Sun Dec 14 06:21:23 -0800 2008 todo #23227 : make viewpath configurable (Kenne... [jmettraux]
file LICENSE.txt Fri Aug 15 06:28:43 -0700 2008 release 0.1.0 [jmettraux]
file README.txt Wed Aug 27 18:44:05 -0700 2008 more info in the README.txt [jmettraux]
file Rakefile Wed Jan 07 05:04:28 -0800 2009 gemspec : added rubyforge info [jmettraux]
directory examples/ Fri Aug 15 06:28:43 -0700 2008 release 0.1.0 [jmettraux]
directory lib/ Sat Apr 25 22:38:19 -0700 2009 cleanup [jmettraux]
directory test/ Sat Apr 25 22:38:35 -0700 2009 adapted test app to rack 1.0 [jmettraux]
README.txt
= 'rufus-sixjo'

== what is it ?

A 'Rack application' for RESTfully serving stuff (the RESTful last mile is up to you). Heavily Sinatra-inspired but less 
polished and... Well Sixjo is not a framework.


== features

Does the conditional GET thing.


== getting it

    sudo gem install -y rufus-sixjo

or download[http://rubyforge.org/frs/?group_id=4812] it from RubyForge.


== usage

see under the examples/ directory : http://github.com/jmettraux/rufus-sixjo/tree/master/examples

It goes like :

    require 'rubygems'
    require 'rufus/sixjo' # gem 'rufus-sixjo'
    
    module ExampleOne
    
      extend Rufus::Sixjo
      
      get '/toto' do
        "nada at #{request.path_info}"
      end
    end
      
    app = Rack::Builder.new do
      
      use Rack::CommonLogger
      use Rack::ShowExceptions
      run ExampleOne.new_sixjo_rack_app(nil)
    end
    
    Rack::Handler::Mongrel.run app, :Port => 2042


== dependencies

the 'rack' gem


== mailing list

On the Rufus-Ruby list[http://groups.google.com/group/rufus-ruby] :

    http://groups.google.com/group/rufus-ruby


== issue tracker

    http://rubyforge.org/tracker/?atid=18584&group_id=4812&func=browse


== source

http://github.com/jmettraux/rufus-sixjo

    git clone git://github.com/jmettraux/rufus-sixjo.git


== author

John Mettraux, jmettraux@gmail.com,
http://jmettraux.wordpress.com


== the rest of Rufus

http://rufus.rubyforge.org


== license

MIT