2010-06-14 06:09:24 +02:00
|
|
|
# Copyright (C) 2007, 2008, 2009, 2010 Christian Neukirchen <purl.org/net/chneukirchen>
|
2009-02-04 21:26:08 +01:00
|
|
|
#
|
|
|
|
# Rack is freely distributable under the terms of an MIT-style license.
|
|
|
|
# See COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
# The Rack main module, serving as a namespace for all core Rack
|
|
|
|
# modules and classes.
|
|
|
|
#
|
|
|
|
# All modules meant for use in your application are <tt>autoload</tt>ed here,
|
|
|
|
# so it should be enough just to <tt>require rack.rb</tt> in your code.
|
|
|
|
|
|
|
|
module Rack
|
|
|
|
# The Rack protocol version number implemented.
|
2009-12-26 21:00:18 +01:00
|
|
|
VERSION = [1,1]
|
2009-02-04 21:26:08 +01:00
|
|
|
|
|
|
|
# Return the Rack protocol version as a dotted string.
|
|
|
|
def self.version
|
|
|
|
VERSION.join(".")
|
|
|
|
end
|
|
|
|
|
|
|
|
# Return the Rack release as a dotted string.
|
|
|
|
def self.release
|
2010-06-18 02:27:39 +02:00
|
|
|
"1.2.1"
|
2009-02-04 21:26:08 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
autoload :Builder, "rack/builder"
|
|
|
|
autoload :Cascade, "rack/cascade"
|
2009-03-16 15:55:30 +01:00
|
|
|
autoload :Chunked, "rack/chunked"
|
2009-02-04 21:26:08 +01:00
|
|
|
autoload :CommonLogger, "rack/commonlogger"
|
|
|
|
autoload :ConditionalGet, "rack/conditionalget"
|
2009-12-26 21:00:18 +01:00
|
|
|
autoload :Config, "rack/config"
|
2009-02-04 21:26:08 +01:00
|
|
|
autoload :ContentLength, "rack/content_length"
|
2009-03-16 15:55:30 +01:00
|
|
|
autoload :ContentType, "rack/content_type"
|
2009-12-26 21:00:18 +01:00
|
|
|
autoload :ETag, "rack/etag"
|
2009-02-04 21:26:08 +01:00
|
|
|
autoload :File, "rack/file"
|
|
|
|
autoload :Deflater, "rack/deflater"
|
|
|
|
autoload :Directory, "rack/directory"
|
|
|
|
autoload :ForwardRequest, "rack/recursive"
|
|
|
|
autoload :Handler, "rack/handler"
|
|
|
|
autoload :Head, "rack/head"
|
|
|
|
autoload :Lint, "rack/lint"
|
2009-02-28 02:23:00 +01:00
|
|
|
autoload :Lock, "rack/lock"
|
2009-12-26 21:00:18 +01:00
|
|
|
autoload :Logger, "rack/logger"
|
2009-02-04 21:26:08 +01:00
|
|
|
autoload :MethodOverride, "rack/methodoverride"
|
|
|
|
autoload :Mime, "rack/mime"
|
2009-12-26 21:00:18 +01:00
|
|
|
autoload :NullLogger, "rack/nulllogger"
|
2009-02-04 21:26:08 +01:00
|
|
|
autoload :Recursive, "rack/recursive"
|
|
|
|
autoload :Reloader, "rack/reloader"
|
2009-12-26 21:00:18 +01:00
|
|
|
autoload :Runtime, "rack/runtime"
|
|
|
|
autoload :Sendfile, "rack/sendfile"
|
|
|
|
autoload :Server, "rack/server"
|
2009-02-04 21:26:08 +01:00
|
|
|
autoload :ShowExceptions, "rack/showexceptions"
|
|
|
|
autoload :ShowStatus, "rack/showstatus"
|
|
|
|
autoload :Static, "rack/static"
|
|
|
|
autoload :URLMap, "rack/urlmap"
|
|
|
|
autoload :Utils, "rack/utils"
|
|
|
|
|
|
|
|
autoload :MockRequest, "rack/mock"
|
|
|
|
autoload :MockResponse, "rack/mock"
|
|
|
|
|
|
|
|
autoload :Request, "rack/request"
|
|
|
|
autoload :Response, "rack/response"
|
|
|
|
|
|
|
|
module Auth
|
|
|
|
autoload :Basic, "rack/auth/basic"
|
|
|
|
autoload :AbstractRequest, "rack/auth/abstract/request"
|
|
|
|
autoload :AbstractHandler, "rack/auth/abstract/handler"
|
|
|
|
module Digest
|
|
|
|
autoload :MD5, "rack/auth/digest/md5"
|
|
|
|
autoload :Nonce, "rack/auth/digest/nonce"
|
|
|
|
autoload :Params, "rack/auth/digest/params"
|
|
|
|
autoload :Request, "rack/auth/digest/request"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
module Session
|
|
|
|
autoload :Cookie, "rack/session/cookie"
|
|
|
|
autoload :Pool, "rack/session/pool"
|
|
|
|
autoload :Memcache, "rack/session/memcache"
|
|
|
|
end
|
|
|
|
end
|