Instiki 0.16.3: Rails 2.3.0
Instiki now runs on the Rails 2.3.0 Candidate Release. Among other improvements, this means that it now automagically selects between WEBrick and Mongrel. Just run ./instiki --daemon
This commit is contained in:
parent
43aadecc99
commit
4e14ccc74d
893 changed files with 71965 additions and 28511 deletions
21
vendor/rails/actionpack/lib/action_controller/rack_ext/lock.rb
vendored
Normal file
21
vendor/rails/actionpack/lib/action_controller/rack_ext/lock.rb
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
module Rack
|
||||
# Rack::Lock was commited to Rack core
|
||||
# http://github.com/rack/rack/commit/7409b0c
|
||||
# Remove this when Rack 1.0 is released
|
||||
unless defined? Lock
|
||||
class Lock
|
||||
FLAG = 'rack.multithread'.freeze
|
||||
|
||||
def initialize(app, lock = Mutex.new)
|
||||
@app, @lock = app, lock
|
||||
end
|
||||
|
||||
def call(env)
|
||||
old, env[FLAG] = env[FLAG], false
|
||||
@lock.synchronize { @app.call(env) }
|
||||
ensure
|
||||
env[FLAG] = old
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
22
vendor/rails/actionpack/lib/action_controller/rack_ext/multipart.rb
vendored
Normal file
22
vendor/rails/actionpack/lib/action_controller/rack_ext/multipart.rb
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
module Rack
|
||||
module Utils
|
||||
module Multipart
|
||||
class << self
|
||||
def parse_multipart_with_rewind(env)
|
||||
result = parse_multipart_without_rewind(env)
|
||||
|
||||
begin
|
||||
env['rack.input'].rewind if env['rack.input'].respond_to?(:rewind)
|
||||
rescue Errno::ESPIPE
|
||||
# Handles exceptions raised by input streams that cannot be rewound
|
||||
# such as when using plain CGI under Apache
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
alias_method_chain :parse_multipart, :rewind
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
17
vendor/rails/actionpack/lib/action_controller/rack_ext/parse_query.rb
vendored
Normal file
17
vendor/rails/actionpack/lib/action_controller/rack_ext/parse_query.rb
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Rack does not automatically cleanup Safari 2 AJAX POST body
|
||||
# This has not yet been commited to Rack, please +1 this ticket:
|
||||
# http://rack.lighthouseapp.com/projects/22435/tickets/19
|
||||
|
||||
module Rack
|
||||
module Utils
|
||||
alias_method :parse_query_without_ajax_body_cleanup, :parse_query
|
||||
module_function :parse_query_without_ajax_body_cleanup
|
||||
|
||||
def parse_query(qs, d = '&;')
|
||||
qs = qs.dup
|
||||
qs.chop! if qs[-1] == 0
|
||||
parse_query_without_ajax_body_cleanup(qs, d)
|
||||
end
|
||||
module_function :parse_query
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue