From 5b308775a8c46d71b126f623cef196540a44985a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 9 Mar 2009 15:16:28 -0700 Subject: Revert "exec: disable embedded switch parsing in config.ru" This reverts commit e66ab79b8b5bc5311c750bf03868a7b2574f4ea1. Conflicts: bin/unicorn --- bin/unicorn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/unicorn b/bin/unicorn index d421f18..60b7c84 100755 --- a/bin/unicorn +++ b/bin/unicorn @@ -107,8 +107,9 @@ abort "configuration file #{config} not found" unless File.exist?(config) inner_app = case config when /\.ru$/ raw = File.open(config, "rb") { |fp| fp.sysread(fp.stat.size) } + # parse embedded command-line options in config.ru comments if raw[/^#\\(.*)/] - warn %(not parsing embedded command-line options: "#$1") + opts.parse! $1.split(/\s+/) end lambda { || eval("Rack::Builder.new {(#{raw}\n)}.to_app", nil, config) } else -- cgit v1.2.3-24-ge0c7