rack 1.6.11 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rack might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +77 -0
- data/{COPYING → MIT-LICENSE} +4 -2
- data/README.rdoc +89 -139
- data/Rakefile +27 -28
- data/SPEC +6 -7
- data/bin/rackup +1 -0
- data/contrib/rack_logo.svg +164 -111
- data/example/lobster.ru +2 -0
- data/example/protectedlobster.rb +4 -2
- data/example/protectedlobster.ru +3 -1
- data/lib/rack/auth/abstract/handler.rb +3 -1
- data/lib/rack/auth/abstract/request.rb +7 -1
- data/lib/rack/auth/basic.rb +4 -1
- data/lib/rack/auth/digest/md5.rb +9 -7
- data/lib/rack/auth/digest/nonce.rb +6 -3
- data/lib/rack/auth/digest/params.rb +5 -4
- data/lib/rack/auth/digest/request.rb +3 -1
- data/lib/rack/body_proxy.rb +11 -9
- data/lib/rack/builder.rb +42 -18
- data/lib/rack/cascade.rb +6 -5
- data/lib/rack/chunked.rb +33 -10
- data/lib/rack/{commonlogger.rb → common_logger.rb} +11 -10
- data/lib/rack/{conditionalget.rb → conditional_get.rb} +3 -1
- data/lib/rack/config.rb +2 -0
- data/lib/rack/content_length.rb +5 -3
- data/lib/rack/content_type.rb +3 -1
- data/lib/rack/core_ext/regexp.rb +14 -0
- data/lib/rack/deflater.rb +33 -53
- data/lib/rack/directory.rb +75 -60
- data/lib/rack/etag.rb +8 -5
- data/lib/rack/events.rb +156 -0
- data/lib/rack/file.rb +4 -149
- data/lib/rack/files.rb +178 -0
- data/lib/rack/handler/cgi.rb +18 -17
- data/lib/rack/handler/fastcgi.rb +17 -16
- data/lib/rack/handler/lsws.rb +14 -12
- data/lib/rack/handler/scgi.rb +22 -19
- data/lib/rack/handler/thin.rb +6 -1
- data/lib/rack/handler/webrick.rb +28 -28
- data/lib/rack/handler.rb +9 -26
- data/lib/rack/head.rb +17 -17
- data/lib/rack/lint.rb +54 -51
- data/lib/rack/lobster.rb +8 -6
- data/lib/rack/lock.rb +17 -10
- data/lib/rack/logger.rb +4 -2
- data/lib/rack/media_type.rb +43 -0
- data/lib/rack/{methodoverride.rb → method_override.rb} +10 -8
- data/lib/rack/mime.rb +27 -6
- data/lib/rack/mock.rb +101 -60
- data/lib/rack/multipart/generator.rb +11 -12
- data/lib/rack/multipart/parser.rb +280 -161
- data/lib/rack/multipart/uploaded_file.rb +3 -2
- data/lib/rack/multipart.rb +39 -8
- data/lib/rack/{nulllogger.rb → null_logger.rb} +3 -1
- data/lib/rack/query_parser.rb +218 -0
- data/lib/rack/recursive.rb +11 -9
- data/lib/rack/reloader.rb +10 -4
- data/lib/rack/request.rb +447 -305
- data/lib/rack/response.rb +196 -83
- data/lib/rack/rewindable_input.rb +5 -14
- data/lib/rack/runtime.rb +12 -18
- data/lib/rack/sendfile.rb +19 -14
- data/lib/rack/server.rb +118 -41
- data/lib/rack/session/abstract/id.rb +215 -94
- data/lib/rack/session/cookie.rb +45 -28
- data/lib/rack/session/memcache.rb +4 -87
- data/lib/rack/session/pool.rb +25 -16
- data/lib/rack/show_exceptions.rb +392 -0
- data/lib/rack/{showstatus.rb → show_status.rb} +7 -5
- data/lib/rack/static.rb +41 -11
- data/lib/rack/tempfile_reaper.rb +4 -2
- data/lib/rack/urlmap.rb +25 -15
- data/lib/rack/utils.rb +186 -272
- data/lib/rack.rb +76 -24
- data/rack.gemspec +25 -14
- metadata +62 -182
- data/HISTORY.md +0 -375
- data/KNOWN-ISSUES +0 -44
- data/lib/rack/backports/uri/common_18.rb +0 -56
- data/lib/rack/backports/uri/common_192.rb +0 -52
- data/lib/rack/backports/uri/common_193.rb +0 -29
- data/lib/rack/handler/evented_mongrel.rb +0 -8
- data/lib/rack/handler/mongrel.rb +0 -106
- data/lib/rack/handler/swiftiplied_mongrel.rb +0 -8
- data/lib/rack/showexceptions.rb +0 -387
- data/lib/rack/utils/okjson.rb +0 -600
- data/test/builder/anything.rb +0 -5
- data/test/builder/comment.ru +0 -4
- data/test/builder/end.ru +0 -5
- data/test/builder/line.ru +0 -1
- data/test/builder/options.ru +0 -2
- data/test/cgi/assets/folder/test.js +0 -1
- data/test/cgi/assets/fonts/font.eot +0 -1
- data/test/cgi/assets/images/image.png +0 -1
- data/test/cgi/assets/index.html +0 -1
- data/test/cgi/assets/javascripts/app.js +0 -1
- data/test/cgi/assets/stylesheets/app.css +0 -1
- data/test/cgi/lighttpd.conf +0 -26
- data/test/cgi/rackup_stub.rb +0 -6
- data/test/cgi/sample_rackup.ru +0 -5
- data/test/cgi/test +0 -9
- data/test/cgi/test+directory/test+file +0 -1
- data/test/cgi/test.fcgi +0 -8
- data/test/cgi/test.ru +0 -5
- data/test/gemloader.rb +0 -10
- data/test/multipart/bad_robots +0 -259
- data/test/multipart/binary +0 -0
- data/test/multipart/content_type_and_no_filename +0 -6
- data/test/multipart/empty +0 -10
- data/test/multipart/fail_16384_nofile +0 -814
- data/test/multipart/file1.txt +0 -1
- data/test/multipart/filename_and_modification_param +0 -7
- data/test/multipart/filename_and_no_name +0 -6
- data/test/multipart/filename_with_escaped_quotes +0 -6
- data/test/multipart/filename_with_escaped_quotes_and_modification_param +0 -7
- data/test/multipart/filename_with_null_byte +0 -7
- data/test/multipart/filename_with_percent_escaped_quotes +0 -6
- data/test/multipart/filename_with_unescaped_percentages +0 -6
- data/test/multipart/filename_with_unescaped_percentages2 +0 -6
- data/test/multipart/filename_with_unescaped_percentages3 +0 -6
- data/test/multipart/filename_with_unescaped_quotes +0 -6
- data/test/multipart/ie +0 -6
- data/test/multipart/invalid_character +0 -6
- data/test/multipart/mixed_files +0 -21
- data/test/multipart/nested +0 -10
- data/test/multipart/none +0 -9
- data/test/multipart/semicolon +0 -6
- data/test/multipart/text +0 -15
- data/test/multipart/three_files_three_fields +0 -31
- data/test/multipart/webkit +0 -32
- data/test/rackup/config.ru +0 -31
- data/test/registering_handler/rack/handler/registering_myself.rb +0 -8
- data/test/spec_auth_basic.rb +0 -81
- data/test/spec_auth_digest.rb +0 -259
- data/test/spec_body_proxy.rb +0 -85
- data/test/spec_builder.rb +0 -223
- data/test/spec_cascade.rb +0 -61
- data/test/spec_cgi.rb +0 -102
- data/test/spec_chunked.rb +0 -101
- data/test/spec_commonlogger.rb +0 -93
- data/test/spec_conditionalget.rb +0 -102
- data/test/spec_config.rb +0 -22
- data/test/spec_content_length.rb +0 -85
- data/test/spec_content_type.rb +0 -45
- data/test/spec_deflater.rb +0 -339
- data/test/spec_directory.rb +0 -88
- data/test/spec_etag.rb +0 -107
- data/test/spec_fastcgi.rb +0 -107
- data/test/spec_file.rb +0 -221
- data/test/spec_handler.rb +0 -72
- data/test/spec_head.rb +0 -45
- data/test/spec_lint.rb +0 -550
- data/test/spec_lobster.rb +0 -58
- data/test/spec_lock.rb +0 -164
- data/test/spec_logger.rb +0 -23
- data/test/spec_methodoverride.rb +0 -111
- data/test/spec_mime.rb +0 -51
- data/test/spec_mock.rb +0 -297
- data/test/spec_mongrel.rb +0 -182
- data/test/spec_multipart.rb +0 -600
- data/test/spec_nulllogger.rb +0 -20
- data/test/spec_recursive.rb +0 -72
- data/test/spec_request.rb +0 -1232
- data/test/spec_response.rb +0 -407
- data/test/spec_rewindable_input.rb +0 -118
- data/test/spec_runtime.rb +0 -49
- data/test/spec_sendfile.rb +0 -130
- data/test/spec_server.rb +0 -167
- data/test/spec_session_abstract_id.rb +0 -53
- data/test/spec_session_cookie.rb +0 -410
- data/test/spec_session_memcache.rb +0 -321
- data/test/spec_session_pool.rb +0 -209
- data/test/spec_showexceptions.rb +0 -98
- data/test/spec_showstatus.rb +0 -103
- data/test/spec_static.rb +0 -145
- data/test/spec_tempfile_reaper.rb +0 -63
- data/test/spec_thin.rb +0 -91
- data/test/spec_urlmap.rb +0 -236
- data/test/spec_utils.rb +0 -647
- data/test/spec_version.rb +0 -17
- data/test/spec_webrick.rb +0 -184
- data/test/static/another/index.html +0 -1
- data/test/static/index.html +0 -1
- data/test/testrequest.rb +0 -78
- data/test/unregistered_handler/rack/handler/unregistered.rb +0 -7
- data/test/unregistered_handler/rack/handler/unregistered_long_one.rb +0 -7
data/lib/rack.rb
CHANGED
@@ -1,49 +1,105 @@
|
|
1
|
-
#
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (C) 2007-2019 Leah Neukirchen <http://leahneukirchen.org/infopage.html>
|
2
4
|
#
|
3
5
|
# Rack is freely distributable under the terms of an MIT-style license.
|
4
|
-
# See
|
6
|
+
# See MIT-LICENSE or https://opensource.org/licenses/MIT.
|
5
7
|
|
6
8
|
# The Rack main module, serving as a namespace for all core Rack
|
7
9
|
# modules and classes.
|
8
10
|
#
|
9
11
|
# All modules meant for use in your application are <tt>autoload</tt>ed here,
|
10
|
-
# so it should be enough just to <tt>require rack
|
12
|
+
# so it should be enough just to <tt>require 'rack'</tt> in your code.
|
11
13
|
|
12
14
|
module Rack
|
13
15
|
# The Rack protocol version number implemented.
|
14
|
-
VERSION = [1,3]
|
16
|
+
VERSION = [1, 3]
|
15
17
|
|
16
18
|
# Return the Rack protocol version as a dotted string.
|
17
19
|
def self.version
|
18
20
|
VERSION.join(".")
|
19
21
|
end
|
20
22
|
|
23
|
+
RELEASE = "2.1.4"
|
24
|
+
|
21
25
|
# Return the Rack release as a dotted string.
|
22
26
|
def self.release
|
23
|
-
|
27
|
+
RELEASE
|
24
28
|
end
|
25
|
-
PATH_INFO = 'PATH_INFO'.freeze
|
26
|
-
REQUEST_METHOD = 'REQUEST_METHOD'.freeze
|
27
|
-
SCRIPT_NAME = 'SCRIPT_NAME'.freeze
|
28
|
-
QUERY_STRING = 'QUERY_STRING'.freeze
|
29
|
-
CACHE_CONTROL = 'Cache-Control'.freeze
|
30
|
-
CONTENT_LENGTH = 'Content-Length'.freeze
|
31
|
-
CONTENT_TYPE = 'Content-Type'.freeze
|
32
29
|
|
33
|
-
|
34
|
-
|
30
|
+
HTTP_HOST = 'HTTP_HOST'
|
31
|
+
HTTP_VERSION = 'HTTP_VERSION'
|
32
|
+
HTTPS = 'HTTPS'
|
33
|
+
PATH_INFO = 'PATH_INFO'
|
34
|
+
REQUEST_METHOD = 'REQUEST_METHOD'
|
35
|
+
REQUEST_PATH = 'REQUEST_PATH'
|
36
|
+
SCRIPT_NAME = 'SCRIPT_NAME'
|
37
|
+
QUERY_STRING = 'QUERY_STRING'
|
38
|
+
SERVER_PROTOCOL = 'SERVER_PROTOCOL'
|
39
|
+
SERVER_NAME = 'SERVER_NAME'
|
40
|
+
SERVER_ADDR = 'SERVER_ADDR'
|
41
|
+
SERVER_PORT = 'SERVER_PORT'
|
42
|
+
CACHE_CONTROL = 'Cache-Control'
|
43
|
+
CONTENT_LENGTH = 'Content-Length'
|
44
|
+
CONTENT_TYPE = 'Content-Type'
|
45
|
+
SET_COOKIE = 'Set-Cookie'
|
46
|
+
TRANSFER_ENCODING = 'Transfer-Encoding'
|
47
|
+
HTTP_COOKIE = 'HTTP_COOKIE'
|
48
|
+
ETAG = 'ETag'
|
49
|
+
|
50
|
+
# HTTP method verbs
|
51
|
+
GET = 'GET'
|
52
|
+
POST = 'POST'
|
53
|
+
PUT = 'PUT'
|
54
|
+
PATCH = 'PATCH'
|
55
|
+
DELETE = 'DELETE'
|
56
|
+
HEAD = 'HEAD'
|
57
|
+
OPTIONS = 'OPTIONS'
|
58
|
+
LINK = 'LINK'
|
59
|
+
UNLINK = 'UNLINK'
|
60
|
+
TRACE = 'TRACE'
|
61
|
+
|
62
|
+
# Rack environment variables
|
63
|
+
RACK_VERSION = 'rack.version'
|
64
|
+
RACK_TEMPFILES = 'rack.tempfiles'
|
65
|
+
RACK_ERRORS = 'rack.errors'
|
66
|
+
RACK_LOGGER = 'rack.logger'
|
67
|
+
RACK_INPUT = 'rack.input'
|
68
|
+
RACK_SESSION = 'rack.session'
|
69
|
+
RACK_SESSION_OPTIONS = 'rack.session.options'
|
70
|
+
RACK_SHOWSTATUS_DETAIL = 'rack.showstatus.detail'
|
71
|
+
RACK_MULTITHREAD = 'rack.multithread'
|
72
|
+
RACK_MULTIPROCESS = 'rack.multiprocess'
|
73
|
+
RACK_RUNONCE = 'rack.run_once'
|
74
|
+
RACK_URL_SCHEME = 'rack.url_scheme'
|
75
|
+
RACK_HIJACK = 'rack.hijack'
|
76
|
+
RACK_IS_HIJACK = 'rack.hijack?'
|
77
|
+
RACK_HIJACK_IO = 'rack.hijack_io'
|
78
|
+
RACK_RECURSIVE_INCLUDE = 'rack.recursive.include'
|
79
|
+
RACK_MULTIPART_BUFFER_SIZE = 'rack.multipart.buffer_size'
|
80
|
+
RACK_MULTIPART_TEMPFILE_FACTORY = 'rack.multipart.tempfile_factory'
|
81
|
+
RACK_REQUEST_FORM_INPUT = 'rack.request.form_input'
|
82
|
+
RACK_REQUEST_FORM_HASH = 'rack.request.form_hash'
|
83
|
+
RACK_REQUEST_FORM_VARS = 'rack.request.form_vars'
|
84
|
+
RACK_REQUEST_COOKIE_HASH = 'rack.request.cookie_hash'
|
85
|
+
RACK_REQUEST_COOKIE_STRING = 'rack.request.cookie_string'
|
86
|
+
RACK_REQUEST_QUERY_HASH = 'rack.request.query_hash'
|
87
|
+
RACK_REQUEST_QUERY_STRING = 'rack.request.query_string'
|
88
|
+
RACK_METHODOVERRIDE_ORIGINAL_METHOD = 'rack.methodoverride.original_method'
|
89
|
+
RACK_SESSION_UNPACKED_COOKIE_DATA = 'rack.session.unpacked_cookie_data'
|
35
90
|
|
36
91
|
autoload :Builder, "rack/builder"
|
37
92
|
autoload :BodyProxy, "rack/body_proxy"
|
38
93
|
autoload :Cascade, "rack/cascade"
|
39
94
|
autoload :Chunked, "rack/chunked"
|
40
|
-
autoload :CommonLogger, "rack/
|
41
|
-
autoload :ConditionalGet, "rack/
|
95
|
+
autoload :CommonLogger, "rack/common_logger"
|
96
|
+
autoload :ConditionalGet, "rack/conditional_get"
|
42
97
|
autoload :Config, "rack/config"
|
43
98
|
autoload :ContentLength, "rack/content_length"
|
44
99
|
autoload :ContentType, "rack/content_type"
|
45
100
|
autoload :ETag, "rack/etag"
|
46
101
|
autoload :File, "rack/file"
|
102
|
+
autoload :Files, "rack/files"
|
47
103
|
autoload :Deflater, "rack/deflater"
|
48
104
|
autoload :Directory, "rack/directory"
|
49
105
|
autoload :ForwardRequest, "rack/recursive"
|
@@ -52,16 +108,16 @@ module Rack
|
|
52
108
|
autoload :Lint, "rack/lint"
|
53
109
|
autoload :Lock, "rack/lock"
|
54
110
|
autoload :Logger, "rack/logger"
|
55
|
-
autoload :MethodOverride, "rack/
|
111
|
+
autoload :MethodOverride, "rack/method_override"
|
56
112
|
autoload :Mime, "rack/mime"
|
57
|
-
autoload :NullLogger, "rack/
|
113
|
+
autoload :NullLogger, "rack/null_logger"
|
58
114
|
autoload :Recursive, "rack/recursive"
|
59
115
|
autoload :Reloader, "rack/reloader"
|
60
116
|
autoload :Runtime, "rack/runtime"
|
61
117
|
autoload :Sendfile, "rack/sendfile"
|
62
118
|
autoload :Server, "rack/server"
|
63
|
-
autoload :ShowExceptions, "rack/
|
64
|
-
autoload :ShowStatus, "rack/
|
119
|
+
autoload :ShowExceptions, "rack/show_exceptions"
|
120
|
+
autoload :ShowStatus, "rack/show_status"
|
65
121
|
autoload :Static, "rack/static"
|
66
122
|
autoload :TempfileReaper, "rack/tempfile_reaper"
|
67
123
|
autoload :URLMap, "rack/urlmap"
|
@@ -91,8 +147,4 @@ module Rack
|
|
91
147
|
autoload :Pool, "rack/session/pool"
|
92
148
|
autoload :Memcache, "rack/session/memcache"
|
93
149
|
end
|
94
|
-
|
95
|
-
module Utils
|
96
|
-
autoload :OkJson, "rack/utils/okjson"
|
97
|
-
end
|
98
150
|
end
|
data/rack.gemspec
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
Gem::Specification.new do |s|
|
2
|
-
s.name
|
3
|
-
s.version
|
4
|
+
s.name = "rack"
|
5
|
+
s.version = File.read('lib/rack.rb')[/RELEASE += +([\"\'])([\d][\w\.]+)\1/, 2]
|
4
6
|
s.platform = Gem::Platform::RUBY
|
5
7
|
s.summary = "a modular Ruby webserver interface"
|
6
8
|
s.license = "MIT"
|
@@ -12,22 +14,31 @@ the simplest way possible, it unifies and distills the API for web
|
|
12
14
|
servers, web frameworks, and software in between (the so-called
|
13
15
|
middleware) into a single method call.
|
14
16
|
|
15
|
-
Also see
|
17
|
+
Also see https://rack.github.io/.
|
16
18
|
EOF
|
17
19
|
|
18
|
-
s.files = Dir['{bin/*,contrib/*,example/*,lib
|
19
|
-
%w(
|
20
|
+
s.files = Dir['{bin/*,contrib/*,example/*,lib/**/*}'] +
|
21
|
+
%w(MIT-LICENSE rack.gemspec Rakefile README.rdoc SPEC)
|
20
22
|
s.bindir = 'bin'
|
21
|
-
s.executables
|
22
|
-
s.require_path
|
23
|
-
s.extra_rdoc_files = ['README.rdoc', '
|
24
|
-
s.test_files = Dir['test/spec_*.rb']
|
23
|
+
s.executables << 'rackup'
|
24
|
+
s.require_path = 'lib'
|
25
|
+
s.extra_rdoc_files = ['README.rdoc', 'CHANGELOG.md']
|
25
26
|
|
26
|
-
s.author = '
|
27
|
-
s.email = '
|
28
|
-
s.homepage = '
|
29
|
-
s.
|
27
|
+
s.author = 'Leah Neukirchen'
|
28
|
+
s.email = 'leah@vuxu.org'
|
29
|
+
s.homepage = 'https://rack.github.io/'
|
30
|
+
s.required_ruby_version = '>= 2.2.2'
|
31
|
+
s.metadata = {
|
32
|
+
"bug_tracker_uri" => "https://github.com/rack/rack/issues",
|
33
|
+
"changelog_uri" => "https://github.com/rack/rack/blob/master/CHANGELOG.md",
|
34
|
+
"documentation_uri" => "https://rubydoc.info/github/rack/rack",
|
35
|
+
"homepage_uri" => "https://rack.github.io",
|
36
|
+
"mailing_list_uri" => "https://groups.google.com/forum/#!forum/rack-devel",
|
37
|
+
"source_code_uri" => "https://github.com/rack/rack"
|
38
|
+
}
|
30
39
|
|
31
|
-
s.add_development_dependency '
|
40
|
+
s.add_development_dependency 'minitest', "~> 5.0"
|
41
|
+
s.add_development_dependency 'minitest-sprint'
|
42
|
+
s.add_development_dependency 'minitest-global_expectations'
|
32
43
|
s.add_development_dependency 'rake'
|
33
44
|
end
|
metadata
CHANGED
@@ -1,17 +1,45 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 2.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
autorequire:
|
7
|
+
- Leah Neukirchen
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: minitest
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '5.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '5.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: minitest-sprint
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest-global_expectations
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|
16
44
|
requirements:
|
17
45
|
- - ">="
|
@@ -45,19 +73,17 @@ description: |
|
|
45
73
|
servers, web frameworks, and software in between (the so-called
|
46
74
|
middleware) into a single method call.
|
47
75
|
|
48
|
-
Also see
|
49
|
-
email:
|
76
|
+
Also see https://rack.github.io/.
|
77
|
+
email: leah@vuxu.org
|
50
78
|
executables:
|
51
79
|
- rackup
|
52
80
|
extensions: []
|
53
81
|
extra_rdoc_files:
|
54
82
|
- README.rdoc
|
55
|
-
-
|
56
|
-
- HISTORY.md
|
83
|
+
- CHANGELOG.md
|
57
84
|
files:
|
58
|
-
-
|
59
|
-
-
|
60
|
-
- KNOWN-ISSUES
|
85
|
+
- CHANGELOG.md
|
86
|
+
- MIT-LICENSE
|
61
87
|
- README.rdoc
|
62
88
|
- Rakefile
|
63
89
|
- SPEC
|
@@ -77,30 +103,27 @@ files:
|
|
77
103
|
- lib/rack/auth/digest/nonce.rb
|
78
104
|
- lib/rack/auth/digest/params.rb
|
79
105
|
- lib/rack/auth/digest/request.rb
|
80
|
-
- lib/rack/backports/uri/common_18.rb
|
81
|
-
- lib/rack/backports/uri/common_192.rb
|
82
|
-
- lib/rack/backports/uri/common_193.rb
|
83
106
|
- lib/rack/body_proxy.rb
|
84
107
|
- lib/rack/builder.rb
|
85
108
|
- lib/rack/cascade.rb
|
86
109
|
- lib/rack/chunked.rb
|
87
|
-
- lib/rack/
|
88
|
-
- lib/rack/
|
110
|
+
- lib/rack/common_logger.rb
|
111
|
+
- lib/rack/conditional_get.rb
|
89
112
|
- lib/rack/config.rb
|
90
113
|
- lib/rack/content_length.rb
|
91
114
|
- lib/rack/content_type.rb
|
115
|
+
- lib/rack/core_ext/regexp.rb
|
92
116
|
- lib/rack/deflater.rb
|
93
117
|
- lib/rack/directory.rb
|
94
118
|
- lib/rack/etag.rb
|
119
|
+
- lib/rack/events.rb
|
95
120
|
- lib/rack/file.rb
|
121
|
+
- lib/rack/files.rb
|
96
122
|
- lib/rack/handler.rb
|
97
123
|
- lib/rack/handler/cgi.rb
|
98
|
-
- lib/rack/handler/evented_mongrel.rb
|
99
124
|
- lib/rack/handler/fastcgi.rb
|
100
125
|
- lib/rack/handler/lsws.rb
|
101
|
-
- lib/rack/handler/mongrel.rb
|
102
126
|
- lib/rack/handler/scgi.rb
|
103
|
-
- lib/rack/handler/swiftiplied_mongrel.rb
|
104
127
|
- lib/rack/handler/thin.rb
|
105
128
|
- lib/rack/handler/webrick.rb
|
106
129
|
- lib/rack/head.rb
|
@@ -108,14 +131,16 @@ files:
|
|
108
131
|
- lib/rack/lobster.rb
|
109
132
|
- lib/rack/lock.rb
|
110
133
|
- lib/rack/logger.rb
|
111
|
-
- lib/rack/
|
134
|
+
- lib/rack/media_type.rb
|
135
|
+
- lib/rack/method_override.rb
|
112
136
|
- lib/rack/mime.rb
|
113
137
|
- lib/rack/mock.rb
|
114
138
|
- lib/rack/multipart.rb
|
115
139
|
- lib/rack/multipart/generator.rb
|
116
140
|
- lib/rack/multipart/parser.rb
|
117
141
|
- lib/rack/multipart/uploaded_file.rb
|
118
|
-
- lib/rack/
|
142
|
+
- lib/rack/null_logger.rb
|
143
|
+
- lib/rack/query_parser.rb
|
119
144
|
- lib/rack/recursive.rb
|
120
145
|
- lib/rack/reloader.rb
|
121
146
|
- lib/rack/request.rb
|
@@ -128,119 +153,24 @@ files:
|
|
128
153
|
- lib/rack/session/cookie.rb
|
129
154
|
- lib/rack/session/memcache.rb
|
130
155
|
- lib/rack/session/pool.rb
|
131
|
-
- lib/rack/
|
132
|
-
- lib/rack/
|
156
|
+
- lib/rack/show_exceptions.rb
|
157
|
+
- lib/rack/show_status.rb
|
133
158
|
- lib/rack/static.rb
|
134
159
|
- lib/rack/tempfile_reaper.rb
|
135
160
|
- lib/rack/urlmap.rb
|
136
161
|
- lib/rack/utils.rb
|
137
|
-
- lib/rack/utils/okjson.rb
|
138
162
|
- rack.gemspec
|
139
|
-
|
140
|
-
- test/builder/comment.ru
|
141
|
-
- test/builder/end.ru
|
142
|
-
- test/builder/line.ru
|
143
|
-
- test/builder/options.ru
|
144
|
-
- test/cgi/assets/folder/test.js
|
145
|
-
- test/cgi/assets/fonts/font.eot
|
146
|
-
- test/cgi/assets/images/image.png
|
147
|
-
- test/cgi/assets/index.html
|
148
|
-
- test/cgi/assets/javascripts/app.js
|
149
|
-
- test/cgi/assets/stylesheets/app.css
|
150
|
-
- test/cgi/lighttpd.conf
|
151
|
-
- test/cgi/rackup_stub.rb
|
152
|
-
- test/cgi/sample_rackup.ru
|
153
|
-
- test/cgi/test
|
154
|
-
- test/cgi/test+directory/test+file
|
155
|
-
- test/cgi/test.fcgi
|
156
|
-
- test/cgi/test.ru
|
157
|
-
- test/gemloader.rb
|
158
|
-
- test/multipart/bad_robots
|
159
|
-
- test/multipart/binary
|
160
|
-
- test/multipart/content_type_and_no_filename
|
161
|
-
- test/multipart/empty
|
162
|
-
- test/multipart/fail_16384_nofile
|
163
|
-
- test/multipart/file1.txt
|
164
|
-
- test/multipart/filename_and_modification_param
|
165
|
-
- test/multipart/filename_and_no_name
|
166
|
-
- test/multipart/filename_with_escaped_quotes
|
167
|
-
- test/multipart/filename_with_escaped_quotes_and_modification_param
|
168
|
-
- test/multipart/filename_with_null_byte
|
169
|
-
- test/multipart/filename_with_percent_escaped_quotes
|
170
|
-
- test/multipart/filename_with_unescaped_percentages
|
171
|
-
- test/multipart/filename_with_unescaped_percentages2
|
172
|
-
- test/multipart/filename_with_unescaped_percentages3
|
173
|
-
- test/multipart/filename_with_unescaped_quotes
|
174
|
-
- test/multipart/ie
|
175
|
-
- test/multipart/invalid_character
|
176
|
-
- test/multipart/mixed_files
|
177
|
-
- test/multipart/nested
|
178
|
-
- test/multipart/none
|
179
|
-
- test/multipart/semicolon
|
180
|
-
- test/multipart/text
|
181
|
-
- test/multipart/three_files_three_fields
|
182
|
-
- test/multipart/webkit
|
183
|
-
- test/rackup/config.ru
|
184
|
-
- test/registering_handler/rack/handler/registering_myself.rb
|
185
|
-
- test/spec_auth_basic.rb
|
186
|
-
- test/spec_auth_digest.rb
|
187
|
-
- test/spec_body_proxy.rb
|
188
|
-
- test/spec_builder.rb
|
189
|
-
- test/spec_cascade.rb
|
190
|
-
- test/spec_cgi.rb
|
191
|
-
- test/spec_chunked.rb
|
192
|
-
- test/spec_commonlogger.rb
|
193
|
-
- test/spec_conditionalget.rb
|
194
|
-
- test/spec_config.rb
|
195
|
-
- test/spec_content_length.rb
|
196
|
-
- test/spec_content_type.rb
|
197
|
-
- test/spec_deflater.rb
|
198
|
-
- test/spec_directory.rb
|
199
|
-
- test/spec_etag.rb
|
200
|
-
- test/spec_fastcgi.rb
|
201
|
-
- test/spec_file.rb
|
202
|
-
- test/spec_handler.rb
|
203
|
-
- test/spec_head.rb
|
204
|
-
- test/spec_lint.rb
|
205
|
-
- test/spec_lobster.rb
|
206
|
-
- test/spec_lock.rb
|
207
|
-
- test/spec_logger.rb
|
208
|
-
- test/spec_methodoverride.rb
|
209
|
-
- test/spec_mime.rb
|
210
|
-
- test/spec_mock.rb
|
211
|
-
- test/spec_mongrel.rb
|
212
|
-
- test/spec_multipart.rb
|
213
|
-
- test/spec_nulllogger.rb
|
214
|
-
- test/spec_recursive.rb
|
215
|
-
- test/spec_request.rb
|
216
|
-
- test/spec_response.rb
|
217
|
-
- test/spec_rewindable_input.rb
|
218
|
-
- test/spec_runtime.rb
|
219
|
-
- test/spec_sendfile.rb
|
220
|
-
- test/spec_server.rb
|
221
|
-
- test/spec_session_abstract_id.rb
|
222
|
-
- test/spec_session_cookie.rb
|
223
|
-
- test/spec_session_memcache.rb
|
224
|
-
- test/spec_session_pool.rb
|
225
|
-
- test/spec_showexceptions.rb
|
226
|
-
- test/spec_showstatus.rb
|
227
|
-
- test/spec_static.rb
|
228
|
-
- test/spec_tempfile_reaper.rb
|
229
|
-
- test/spec_thin.rb
|
230
|
-
- test/spec_urlmap.rb
|
231
|
-
- test/spec_utils.rb
|
232
|
-
- test/spec_version.rb
|
233
|
-
- test/spec_webrick.rb
|
234
|
-
- test/static/another/index.html
|
235
|
-
- test/static/index.html
|
236
|
-
- test/testrequest.rb
|
237
|
-
- test/unregistered_handler/rack/handler/unregistered.rb
|
238
|
-
- test/unregistered_handler/rack/handler/unregistered_long_one.rb
|
239
|
-
homepage: http://rack.github.io/
|
163
|
+
homepage: https://rack.github.io/
|
240
164
|
licenses:
|
241
165
|
- MIT
|
242
|
-
metadata:
|
243
|
-
|
166
|
+
metadata:
|
167
|
+
bug_tracker_uri: https://github.com/rack/rack/issues
|
168
|
+
changelog_uri: https://github.com/rack/rack/blob/master/CHANGELOG.md
|
169
|
+
documentation_uri: https://rubydoc.info/github/rack/rack
|
170
|
+
homepage_uri: https://rack.github.io
|
171
|
+
mailing_list_uri: https://groups.google.com/forum/#!forum/rack-devel
|
172
|
+
source_code_uri: https://github.com/rack/rack
|
173
|
+
post_install_message:
|
244
174
|
rdoc_options: []
|
245
175
|
require_paths:
|
246
176
|
- lib
|
@@ -248,65 +178,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
248
178
|
requirements:
|
249
179
|
- - ">="
|
250
180
|
- !ruby/object:Gem::Version
|
251
|
-
version:
|
181
|
+
version: 2.2.2
|
252
182
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
253
183
|
requirements:
|
254
184
|
- - ">="
|
255
185
|
- !ruby/object:Gem::Version
|
256
186
|
version: '0'
|
257
187
|
requirements: []
|
258
|
-
|
259
|
-
|
260
|
-
signing_key:
|
188
|
+
rubygems_version: 3.2.0.pre1
|
189
|
+
signing_key:
|
261
190
|
specification_version: 4
|
262
191
|
summary: a modular Ruby webserver interface
|
263
|
-
test_files:
|
264
|
-
- test/spec_multipart.rb
|
265
|
-
- test/spec_deflater.rb
|
266
|
-
- test/spec_static.rb
|
267
|
-
- test/spec_session_cookie.rb
|
268
|
-
- test/spec_commonlogger.rb
|
269
|
-
- test/spec_session_pool.rb
|
270
|
-
- test/spec_methodoverride.rb
|
271
|
-
- test/spec_etag.rb
|
272
|
-
- test/spec_version.rb
|
273
|
-
- test/spec_handler.rb
|
274
|
-
- test/spec_thin.rb
|
275
|
-
- test/spec_showexceptions.rb
|
276
|
-
- test/spec_session_abstract_id.rb
|
277
|
-
- test/spec_mime.rb
|
278
|
-
- test/spec_recursive.rb
|
279
|
-
- test/spec_cgi.rb
|
280
|
-
- test/spec_content_type.rb
|
281
|
-
- test/spec_request.rb
|
282
|
-
- test/spec_showstatus.rb
|
283
|
-
- test/spec_chunked.rb
|
284
|
-
- test/spec_runtime.rb
|
285
|
-
- test/spec_fastcgi.rb
|
286
|
-
- test/spec_builder.rb
|
287
|
-
- test/spec_config.rb
|
288
|
-
- test/spec_mongrel.rb
|
289
|
-
- test/spec_utils.rb
|
290
|
-
- test/spec_sendfile.rb
|
291
|
-
- test/spec_lobster.rb
|
292
|
-
- test/spec_lint.rb
|
293
|
-
- test/spec_tempfile_reaper.rb
|
294
|
-
- test/spec_mock.rb
|
295
|
-
- test/spec_conditionalget.rb
|
296
|
-
- test/spec_server.rb
|
297
|
-
- test/spec_directory.rb
|
298
|
-
- test/spec_webrick.rb
|
299
|
-
- test/spec_response.rb
|
300
|
-
- test/spec_file.rb
|
301
|
-
- test/spec_body_proxy.rb
|
302
|
-
- test/spec_logger.rb
|
303
|
-
- test/spec_auth_digest.rb
|
304
|
-
- test/spec_urlmap.rb
|
305
|
-
- test/spec_nulllogger.rb
|
306
|
-
- test/spec_cascade.rb
|
307
|
-
- test/spec_auth_basic.rb
|
308
|
-
- test/spec_head.rb
|
309
|
-
- test/spec_lock.rb
|
310
|
-
- test/spec_rewindable_input.rb
|
311
|
-
- test/spec_session_memcache.rb
|
312
|
-
- test/spec_content_length.rb
|
192
|
+
test_files: []
|