This file contains hidden or 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
| map "/.conference" do; run Mu::Conference end | |
| map "/.documentation" do; run Mu::Documentation end | |
| map "/.development" do; run Mu::Development end | |
| map "/.sources" do; run Mu::Sourcing end |
This file contains hidden or 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' | |
| class MyServer < Reel::Server | |
| def initialize(host = "0.0.0.0", port = 80) | |
| super(host, port, &method(:on_connection)) | |
| end | |
| def on_connection(connection) |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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) |
OlderNewer