lib/reel/rack/server.rb in reel-rack-0.0.2 vs lib/reel/rack/server.rb in reel-rack-0.1.0

- old
+ new

@@ -1,6 +1,5 @@ - # Adapted from code orinially Copyright (c) 2013 Jonathan Stott require 'reel' require 'rack' @@ -10,16 +9,16 @@ include Celluloid::Logger attr_reader :app def initialize(app, options) - raise ArgumentError, "no host given" unless options[:host] - raise ArgumentError, "no port given" unless options[:port] + raise ArgumentError, "no host given" unless options[:Host] + raise ArgumentError, "no port given" unless options[:Port] info "A Reel good HTTP server! (Codename \"#{::Reel::CODENAME}\")" - info "Listening on http://#{options[:host]}:#{options[:port]}" + info "Listening on http://#{options[:Host]}:#{options[:Port]}" - super(options[:host], options[:port], &method(:on_connection)) + super(options[:Host], options[:Port], &method(:on_connection)) @app = app end def on_connection(connection) connection.each_request do |request|