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

Merge pull request #781 from vipulnsward/remove_explicit_blocks

Remove explicit block passing
This commit is contained in:
Konstantin Haase 2013-09-24 08:26:35 -07:00
commit 65a00a2033

View file

@ -1388,7 +1388,7 @@ module Sinatra
# Set configuration options for Sinatra and/or the app.
# Allows scoping of settings for certain environments.
def configure(*envs, &block)
def configure(*envs)
yield self if envs.empty? || envs.include?(environment.to_sym)
end
@ -1483,7 +1483,7 @@ module Sinatra
private
# Starts the server by running the Rack Handler.
def start_server(handler, server_settings, handler_name, &block)
def start_server(handler, server_settings, handler_name)
handler.run(self, server_settings) do |server|
unless handler_name =~ /cgi/i
$stderr.puts "== Sinatra/#{Sinatra::VERSION} has taken the stage " +