Skip to content

Instantly share code, notes, and snippets.

@halorgium
Forked from digitalextremist/01E.rb
Last active December 15, 2015 21:59
Show Gist options
  • Save halorgium/5329705 to your computer and use it in GitHub Desktop.
Save halorgium/5329705 to your computer and use it in GitHub Desktop.
require 'rubygems'
require "bundler/setup"
require 'reel/app'
Celluloid.task_class = Celluloid::TaskThread
class Wu
include Reel::App
get '/' do |request|
puts "Request came in //"
[200, {}, "hello world"]
end
end
Wu.new( '0.0.0.0', 8090 )
puts "Testing Octarine server, provided by Reel //"
sleep
source "https://rubygems.org"
gem "celluloid", path: "../../../../celluloid"
gem "celluloid-io", path: "../../../../celluloid-io"
gem "reel", path: "../../.."
gem "octarine"
gem "pry"
PATH
remote: ../../..
specs:
reel (0.3.0)
celluloid-io (>= 0.8.0)
http (>= 0.2.0)
http_parser.rb (>= 0.5.3)
rack (>= 1.4.0)
websocket_parser (>= 0.1.2)
PATH
remote: ../../../../celluloid
specs:
celluloid (0.13.0)
timers (>= 1.0.0)
PATH
remote: ../../../../celluloid-io
specs:
celluloid-io (0.13.0)
celluloid (>= 0.13.0)
nio4r (>= 0.4.0)
GEM
remote: https://rubygems.org/
specs:
certified (0.1.1)
coderay (1.0.9)
ffi (1.6.0-java)
http (0.4.0)
certified
http_parser.rb
http_parser.rb (0.5.3)
http_parser.rb (0.5.3-java)
http_router (0.11.0)
rack (>= 1.0.0)
url_mount (~> 0.2.1)
method_source (0.8.1)
nio4r (0.4.3)
nio4r (0.4.3-java)
octarine (0.0.3)
http_router
pry (0.9.12)
coderay (~> 1.0.5)
method_source (~> 0.8)
slop (~> 3.4)
pry (0.9.12-java)
coderay (~> 1.0.5)
method_source (~> 0.8)
slop (~> 3.4)
spoon (~> 0.0)
rack (1.5.2)
slop (3.4.4)
spoon (0.0.3)
ffi
timers (1.1.0)
url_mount (0.2.1)
rack
websocket_parser (0.1.2)
http
PLATFORMS
java
ruby
DEPENDENCIES
celluloid!
celluloid-io!
octarine
pry
reel!
@digitalextremist
Copy link

@halorgium, here you use Celluloid.task_class = Celluloid::TaskThread ... what's the intent there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment