This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'bundler/setup' | |
require 'reel' | |
puts "Starting test server //" | |
Reel::Server.supervise("0.0.0.0", 80) do |connection| | |
while request = connection.request | |
case request | |
when Reel::Request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require "bundler/setup" | |
require 'reel/app' | |
class Wu | |
include Reel::App | |
get '/' do |request| | |
puts "Request came in //" | |
[200, {}, "hello world"] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require "bundler/setup" | |
require 'reel/app' | |
MU_BASE = File.expand_path( File.dirname( __FILE__ ) ) | |
class Wu | |
include Reel::App | |
get '/' do |request| | |
puts "Request came in //" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MU_BASE = File.expand_path( File.dirname( __FILE__ ) ) | |
require 'rubygems' | |
require "bundler/setup" | |
REEL_PARSER = :puma_http11 | |
require ( REEL_LIB = ( LIB_BASE = "/mu/tweaking" ) + "/reel/lib/" ) + 'reel/app' | |
require 'rack' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "http://rubygems.org" | |
#de ruby '1.9.3', :engine => 'jruby', :engine_version => '1.7.2' | |
gem "rack", :github => 'digitalextremist/rack', :branch => 'master' | |
gem 'rack-contrib', '1.1.0' | |
gem 'rack-jsonp', "1.3.1" | |
gem 'rack-protection', "1.5.0" | |
gem 'rack-cache' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'celluloid' | |
class ConcurrentNestedHash | |
include Celluloid | |
def initialize( starting = {} ); @outer = starting end | |
def [](*keys); keys.inject(@outer) { |h,k| h[k] } end | |
def []=(*args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require "bundler/setup" | |
MU_BASE = File.expand_path( File.dirname( __FILE__ ) ) | |
MU_UPLOADS = "/mu/rack-reel/uploads/" | |
require 'rack' | |
require 'reel' | |
require 'sinatra' | |
require "sinatra/multi_route" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Failures: | |
1) HTTP::Parser should implement basic api | |
Failure/Error: Unable to find matching line from backtrace | |
Java::JavaLang::ClassCastException: | |
org.jruby.RubyNil cannot be cast to org.jruby.RubyString | |
# org.ruby_http_parser.RubyHttpParser$2.cb(RubyHttpParser.java:110) | |
# http_parser.lolevel.ParserSettings.call_on(ParserSettings.java:80) | |
# http_parser.lolevel.ParserSettings.call_on_url(ParserSettings.java:64) | |
# http_parser.lolevel.HTTPParser.execute(HTTPParser.java:697) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'forwardable' | |
require "websocket/protocol/hybi" | |
module ProtocolAlias | |
def << data | |
text data | |
end | |
end | |
class Mu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@convergence:/home/mu/one# scripts/one-server.sh | |
root@convergence:/home/mu/one# I, [2013-04-28T02:34:19.541402 #15521] INFO -- : Reel 0.3.0 | |
I, [2013-04-28T02:34:19.543178 #15521] INFO -- : Listening on 0.0.0.0:80 | |
I, [2013-04-28T02:34:19.543395 #15521] INFO -- : Number of workers: 51 | |
I, [2013-04-28T02:34:19.543590 #15521] INFO -- : Process ID saved to: tmp/01E.pid | |
I, [2013-04-28T02:34:19.543783 #15521] INFO -- : Process ID: 15521 | |
E, [2013-04-28T02:34:23.033263 #15521] ERROR -- : Celluloid::PoolManager crashed! | |
Rubinius::CompileError: Error trying to compile /usr/local/rvm/gems/rbx-head/gems/mail-2.5.3/lib/mail/parsers/rfc2822_obsolete.rb | |
/usr/local/rvm/rubies/rbx-head/runtime/19/compiler/compiler.rbc:13:in `compiler_error' | |
/usr/local/rvm/rubies/rbx-head/runtime/19/compiler/compiler.rbc:92:in `compile' |