Project

General

Profile

Bug #665 ยป 0001-Fixes-bug-665-Set-option-bind-or-host-depending-on-S.patch

Patch for making smart-proxy work with Sinatra 1.0.a. - Jochen Schalanda, 02/13/2011 11:03 AM

View differences:

lib/sinatra-patch.rb
set options
handler = detect_rack_handler
handler_name = handler.name.gsub(/.*::/, '')
# Hack to cope with renamed options in Sinatra 1.0.a
bind = host if VERSION == '1.0.a'
puts "Starting Foreman Proxy on #{port} using #{handler_name}" unless handler_name =~/cgi/i
if SETTINGS.daemon
    (1-1/1)