Updates
SVG-Edit -> 2.5final Vendored Rack -> 1.2.1
This commit is contained in:
parent
6338a3bcb2
commit
0d8f680d4f
82 changed files with 138 additions and 70 deletions
1
vendor/plugins/rack/test/rackup/.gitignore
vendored
Normal file
1
vendor/plugins/rack/test/rackup/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
log_output
|
31
vendor/plugins/rack/test/rackup/config.ru
vendored
Normal file
31
vendor/plugins/rack/test/rackup/config.ru
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
require "#{File.dirname(__FILE__)}/../testrequest"
|
||||
|
||||
$stderr = File.open("#{File.dirname(__FILE__)}/log_output", "w")
|
||||
|
||||
class EnvMiddleware
|
||||
def initialize(app)
|
||||
@app = app
|
||||
end
|
||||
|
||||
def call(env)
|
||||
# provides a way to test that lint is present
|
||||
if env["PATH_INFO"] == "/broken_lint"
|
||||
return [200, {}, ["Broken Lint"]]
|
||||
# provides a way to kill the process without knowing the pid
|
||||
elsif env["PATH_INFO"] == "/die"
|
||||
exit!
|
||||
end
|
||||
|
||||
env["test.$DEBUG"] = $DEBUG
|
||||
env["test.$EVAL"] = BUKKIT if defined?(BUKKIT)
|
||||
env["test.$VERBOSE"] = $VERBOSE
|
||||
env["test.$LOAD_PATH"] = $LOAD_PATH
|
||||
env["test.stderr"] = File.expand_path($stderr.path)
|
||||
env["test.Ping"] = defined?(Ping)
|
||||
env["test.pid"] = Process.pid
|
||||
@app.call(env)
|
||||
end
|
||||
end
|
||||
|
||||
use EnvMiddleware
|
||||
run TestRequest.new
|
Loading…
Add table
Add a link
Reference in a new issue