1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Merge branch 'master' of github.com:sinatra/sinatra

Conflicts:
	lib/sinatra/base.rb
This commit is contained in:
Konstantin Haase 2012-03-15 09:09:00 +01:00
commit 5ae2c5f168

View file

@ -1185,7 +1185,7 @@ module Sinatra
public_folder
end
private
private
# Condition for matching host name. Parameter might be String or Regexp.
def host_name(pattern)
condition { pattern === request.host }
@ -1347,7 +1347,7 @@ module Sinatra
end
# Run the Sinatra app as a self-hosted server using
# Thin, Mongrel or WEBrick (in that order). If given a block, will call
# Thin, Puma, Mongrel, or WEBrick (in that order). If given a block, will call
# with the constructed handler once we have taken the stage.
def run!(options={})
set options