jtrupiano/rack-rewrite — pull request #34 by pyromaniac (2012-11-07 13:38:35+00:00)
Title: I've added status option to send_file and x_send_file (rebased on current master)

Usage:

```
app.config.middleware.insert_before(Rack::Lock, Rack::Rewrite) do
maintenance_file = Rails.root.join('public', 'maintenance.html').to_s
send_file /(.*)$(? 503, :if => Proc.new{|rack_env|
File.exists?(maintenance_file)
}
end
```