lib/rack/handler/yarn.rb in yarn-0.0.1 vs lib/rack/handler/yarn.rb in yarn-0.0.2

- old
+ new

@@ -4,17 +4,18 @@ module Rack module Handler class Yarn def self.run(app, options={}) - server = ::Yarn::Server.new(app,options) - server.start + options = options.merge({ rack: app }) + @server = ::Yarn::Server.new(options) + @server.start end def self.valid_options { "Host=HOST" => "Hostname to listen on (default: 127.0.0.1)", - "Port=PORT" => "Port to listen on (default: 3000)", + "Port=PORT" => "Port to listen on (default: 3000)" } end end end end