Sha256: a3e58caf9603182c30414ab2f9697bfcb590df9b6ffe20cbc908ee07cfb1e6e7
Contents?: true
Size: 643 Bytes
Versions: 14
Compression:
Stored size: 643 Bytes
Contents
module Jasmine class Server def initialize(port = 8888, application = Jasmine::Application.app) @port = port @application = application end def start if Jasmine::Dependencies.legacy_rack? handler = Rack::Handler.get('webrick') handler.run(@application, :Port => @port, :AccessLog => []) else server = Rack::Server.new(:Port => @port, :AccessLog => []) # workaround for Rack bug, when Rack > 1.2.1 is released Rack::Server.start(:app => Jasmine.app(self)) will work server.instance_variable_set(:@app, @application) server.start end end end end
Version data entries
14 entries across 14 versions & 2 rubygems