summary refs log tree commit
diff options
context:
space:
mode:
authorGenki Takiuchi <genki@s21g.com>2009-07-19 10:23:02 +0900
committerChristian Neukirchen <chneukirchen@gmail.com>2009-07-19 11:58:16 +0200
commit7b6046b764eafd332b3b2d9d93b3915c425fae54 (patch)
tree4d1a61d0e1f76e719a16606ba719c7d4c797fd11
parent7a55c98a30deea7fe198958d7c2770b087aa94b9 (diff)
downloadrack-7b6046b764eafd332b3b2d9d93b3915c425fae54.tar.gz
Became conscious of __END__
Signed-off-by: Christian Neukirchen <chneukirchen@gmail.com>
-rwxr-xr-xbin/rackup1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/rackup b/bin/rackup
index 8e4df15e..874fe192 100755
--- a/bin/rackup
+++ b/bin/rackup
@@ -100,6 +100,7 @@ if config =~ /\.ru$/
   if cfgfile[/^#\\(.*)/]
     opts.parse! $1.split(/\s+/)
   end
+  cfgfile.sub!(/^__END__\n.*/, '')
   inner_app = eval "Rack::Builder.new {( " + cfgfile + "\n )}.to_app",
                    nil, config
 else