Project

sloth-reel

0.0
No commit activity in last 3 years
No release in over 3 years
Httpd and WebSocket sloth framwwork based on Celluloid, Reel, Rack and Sinatra.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

 Project Readme

Reels

Httpd and WebSocket sloth framework based on Celluloid, Reel, Rack and Sinatra.

Features

  • Handle Sinatra asynchronously.

  • Coordinate Sinatra and WebSocket.

  • The implementation is a monkey patch to Reel, Sinatra and WebSocket.

Installation

Add this line to your application’s Gemfile:

gem 'sloth-reel'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install sloth-reel
or
$ gem install -l sloth-reel-x.x.x.gem

Usage

Example 1

require 'sloth/reel'

class WebApp < Sinatra::Base
  get  "/"  do
    '<html> <body> <form method="POST"> <input type="submit" value="Hello." /> </form> </body> </html>'
  end

  post  "/"  do
    '<html> <body> Howdy. </body> </html>'
  end
end

Reel::Rack::Server.new( WebApp.new, Host: "0.0.0.0", Port: 3000 )

sleep

Reference

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/arimay/sloth-reel.

License

The gem is available as open source under the terms of the MIT License.

Copyright (c) ARIMA Yasuhiro <arima.yasuhiro@gmail.com>