mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
add first class support for trinidad, fixes #482
This commit is contained in:
parent
700d5b22d2
commit
cab56ed7d6
4 changed files with 3 additions and 13 deletions
1
Gemfile
1
Gemfile
|
@ -47,7 +47,6 @@ if RUBY_ENGINE == 'jruby'
|
|||
gem 'nokogiri', '!= 1.5.0'
|
||||
gem 'jruby-openssl'
|
||||
gem 'trinidad'
|
||||
gem 'mizuno'
|
||||
else
|
||||
gem 'yajl-ruby'
|
||||
gem 'nokogiri'
|
||||
|
|
|
@ -1617,7 +1617,6 @@ module Sinatra
|
|||
server.unshift 'controll_tower'
|
||||
else
|
||||
server.unshift 'mongrel' if ruby_engine.nil?
|
||||
server.unshift 'mizuno' if ruby_engine =='jruby'
|
||||
server.unshift 'puma' if ruby_engine != 'rbx'
|
||||
server.unshift 'thin' if ruby_engine != 'jruby'
|
||||
server.unshift 'puma' if ruby_engine == 'rbx'
|
||||
|
|
|
@ -134,10 +134,6 @@ module IntegrationHelper
|
|||
name.to_s == "trinidad"
|
||||
end
|
||||
|
||||
def mizuno?
|
||||
name.to_s == "mizuno"
|
||||
end
|
||||
|
||||
def warnings
|
||||
log.scan(%r[(?:\(eval|lib/sinatra).*warning:.*$])
|
||||
end
|
||||
|
@ -145,10 +141,8 @@ module IntegrationHelper
|
|||
def run_test(target, &block)
|
||||
retries ||= 3
|
||||
target.server = self
|
||||
Timeout.timeout(60) do
|
||||
run unless alive?
|
||||
target.instance_eval(&block)
|
||||
end
|
||||
run unless alive?
|
||||
target.instance_eval(&block)
|
||||
rescue Exception => error
|
||||
retries -= 1
|
||||
kill
|
||||
|
|
|
@ -21,7 +21,7 @@ class IntegrationTest < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
it 'streams' do
|
||||
next if server.webrick? or server.trinidad? or server.mizuno?
|
||||
next if server.webrick? or server.trinidad?
|
||||
times, chunks = [Time.now], []
|
||||
server.get_stream do |chunk|
|
||||
next if chunk.empty?
|
||||
|
@ -70,8 +70,6 @@ class IntegrationTest < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
it 'starts the correct server' do
|
||||
next if RUBY_ENGINE == 'jruby'
|
||||
|
||||
exp = %r{
|
||||
==\sSinatra/#{Sinatra::VERSION}\s
|
||||
has\staken\sthe\sstage\son\s\d+\sfor\sdevelopment\s
|
||||
|
|
Loading…
Reference in a new issue