Permalink
Browse files

upgrading vendored rack to 1.1.0

  • Loading branch information...
rick committed Jul 23, 2010
1 parent d6045f7 commit da93dfe105812981eee9bb40ea90b7aa8a316af2
Showing with 11,976 additions and 0 deletions.
  1. +314 −0 vendor/gems/rack-1.1.0/.specification
  2. +18 −0 vendor/gems/rack-1.1.0/COPYING
  3. +21 −0 vendor/gems/rack-1.1.0/KNOWN-ISSUES
  4. 0 vendor/gems/rack-1.1.0/RDOX
  5. +399 −0 vendor/gems/rack-1.1.0/README
  6. +171 −0 vendor/gems/rack-1.1.0/SPEC
  7. +4 −0 vendor/gems/rack-1.1.0/bin/rackup
  8. +111 −0 vendor/gems/rack-1.1.0/contrib/rack_logo.svg
  9. +4 −0 vendor/gems/rack-1.1.0/example/lobster.ru
  10. +14 −0 vendor/gems/rack-1.1.0/example/protectedlobster.rb
  11. +8 −0 vendor/gems/rack-1.1.0/example/protectedlobster.ru
  12. +92 −0 vendor/gems/rack-1.1.0/lib/rack.rb
  13. +22 −0 vendor/gems/rack-1.1.0/lib/rack/adapter/camping.rb
  14. +37 −0 vendor/gems/rack-1.1.0/lib/rack/auth/abstract/handler.rb
  15. +37 −0 vendor/gems/rack-1.1.0/lib/rack/auth/abstract/request.rb
  16. +58 −0 vendor/gems/rack-1.1.0/lib/rack/auth/basic.rb
  17. +124 −0 vendor/gems/rack-1.1.0/lib/rack/auth/digest/md5.rb
  18. +51 −0 vendor/gems/rack-1.1.0/lib/rack/auth/digest/nonce.rb
  19. +55 −0 vendor/gems/rack-1.1.0/lib/rack/auth/digest/params.rb
  20. +40 −0 vendor/gems/rack-1.1.0/lib/rack/auth/digest/request.rb
  21. +80 −0 vendor/gems/rack-1.1.0/lib/rack/builder.rb
  22. +41 −0 vendor/gems/rack-1.1.0/lib/rack/cascade.rb
  23. +49 −0 vendor/gems/rack-1.1.0/lib/rack/chunked.rb
  24. +49 −0 vendor/gems/rack-1.1.0/lib/rack/commonlogger.rb
  25. +47 −0 vendor/gems/rack-1.1.0/lib/rack/conditionalget.rb
  26. +15 −0 vendor/gems/rack-1.1.0/lib/rack/config.rb
  27. +29 −0 vendor/gems/rack-1.1.0/lib/rack/content_length.rb
  28. +23 −0 vendor/gems/rack-1.1.0/lib/rack/content_type.rb
  29. +96 −0 vendor/gems/rack-1.1.0/lib/rack/deflater.rb
  30. +157 −0 vendor/gems/rack-1.1.0/lib/rack/directory.rb
  31. +23 −0 vendor/gems/rack-1.1.0/lib/rack/etag.rb
  32. +90 −0 vendor/gems/rack-1.1.0/lib/rack/file.rb
  33. +88 −0 vendor/gems/rack-1.1.0/lib/rack/handler.rb
  34. +61 −0 vendor/gems/rack-1.1.0/lib/rack/handler/cgi.rb
  35. +8 −0 vendor/gems/rack-1.1.0/lib/rack/handler/evented_mongrel.rb
  36. +89 −0 vendor/gems/rack-1.1.0/lib/rack/handler/fastcgi.rb
  37. +63 −0 vendor/gems/rack-1.1.0/lib/rack/handler/lsws.rb
  38. +90 −0 vendor/gems/rack-1.1.0/lib/rack/handler/mongrel.rb
  39. +62 −0 vendor/gems/rack-1.1.0/lib/rack/handler/scgi.rb
  40. +8 −0 vendor/gems/rack-1.1.0/lib/rack/handler/swiftiplied_mongrel.rb
  41. +18 −0 vendor/gems/rack-1.1.0/lib/rack/handler/thin.rb
  42. +69 −0 vendor/gems/rack-1.1.0/lib/rack/handler/webrick.rb
  43. +19 −0 vendor/gems/rack-1.1.0/lib/rack/head.rb
  44. +575 −0 vendor/gems/rack-1.1.0/lib/rack/lint.rb
  45. +65 −0 vendor/gems/rack-1.1.0/lib/rack/lobster.rb
  46. +16 −0 vendor/gems/rack-1.1.0/lib/rack/lock.rb
  47. +20 −0 vendor/gems/rack-1.1.0/lib/rack/logger.rb
  48. +27 −0 vendor/gems/rack-1.1.0/lib/rack/methodoverride.rb
  49. +206 −0 vendor/gems/rack-1.1.0/lib/rack/mime.rb
  50. +189 −0 vendor/gems/rack-1.1.0/lib/rack/mock.rb
  51. +18 −0 vendor/gems/rack-1.1.0/lib/rack/nulllogger.rb
  52. +57 −0 vendor/gems/rack-1.1.0/lib/rack/recursive.rb
  53. +109 −0 vendor/gems/rack-1.1.0/lib/rack/reloader.rb
  54. +271 −0 vendor/gems/rack-1.1.0/lib/rack/request.rb
  55. +149 −0 vendor/gems/rack-1.1.0/lib/rack/response.rb
  56. +100 −0 vendor/gems/rack-1.1.0/lib/rack/rewindable_input.rb
  57. +27 −0 vendor/gems/rack-1.1.0/lib/rack/runtime.rb
  58. +142 −0 vendor/gems/rack-1.1.0/lib/rack/sendfile.rb
  59. +212 −0 vendor/gems/rack-1.1.0/lib/rack/server.rb
  60. +140 −0 vendor/gems/rack-1.1.0/lib/rack/session/abstract/id.rb
  61. +90 −0 vendor/gems/rack-1.1.0/lib/rack/session/cookie.rb
  62. +119 −0 vendor/gems/rack-1.1.0/lib/rack/session/memcache.rb
  63. +100 −0 vendor/gems/rack-1.1.0/lib/rack/session/pool.rb
  64. +349 −0 vendor/gems/rack-1.1.0/lib/rack/showexceptions.rb
  65. +106 −0 vendor/gems/rack-1.1.0/lib/rack/showstatus.rb
  66. +38 −0 vendor/gems/rack-1.1.0/lib/rack/static.rb
  67. +56 −0 vendor/gems/rack-1.1.0/lib/rack/urlmap.rb
  68. +620 −0 vendor/gems/rack-1.1.0/lib/rack/utils.rb
  69. +38 −0 vendor/gems/rack-1.1.0/rack.gemspec
  70. +73 −0 vendor/gems/rack-1.1.0/test/spec_rack_auth_basic.rb
  71. +226 −0 vendor/gems/rack-1.1.0/test/spec_rack_auth_digest.rb
  72. +84 −0 vendor/gems/rack-1.1.0/test/spec_rack_builder.rb
  73. +51 −0 vendor/gems/rack-1.1.0/test/spec_rack_camping.rb
  74. +48 −0 vendor/gems/rack-1.1.0/test/spec_rack_cascade.rb
  75. +89 −0 vendor/gems/rack-1.1.0/test/spec_rack_cgi.rb
  76. +62 −0 vendor/gems/rack-1.1.0/test/spec_rack_chunked.rb
  77. +61 −0 vendor/gems/rack-1.1.0/test/spec_rack_commonlogger.rb
  78. +41 −0 vendor/gems/rack-1.1.0/test/spec_rack_conditionalget.rb
  79. +24 −0 vendor/gems/rack-1.1.0/test/spec_rack_config.rb
  80. +43 −0 vendor/gems/rack-1.1.0/test/spec_rack_content_length.rb
  81. +30 −0 vendor/gems/rack-1.1.0/test/spec_rack_content_type.rb
  82. +127 −0 vendor/gems/rack-1.1.0/test/spec_rack_deflater.rb
  83. +61 −0 vendor/gems/rack-1.1.0/test/spec_rack_directory.rb
  84. +17 −0 vendor/gems/rack-1.1.0/test/spec_rack_etag.rb
  85. +89 −0 vendor/gems/rack-1.1.0/test/spec_rack_fastcgi.rb
  86. +75 −0 vendor/gems/rack-1.1.0/test/spec_rack_file.rb
  87. +43 −0 vendor/gems/rack-1.1.0/test/spec_rack_handler.rb
  88. +30 −0 vendor/gems/rack-1.1.0/test/spec_rack_head.rb
  89. +528 −0 vendor/gems/rack-1.1.0/test/spec_rack_lint.rb
  90. +45 −0 vendor/gems/rack-1.1.0/test/spec_rack_lobster.rb
  91. +38 −0 vendor/gems/rack-1.1.0/test/spec_rack_lock.rb
  92. +21 −0 vendor/gems/rack-1.1.0/test/spec_rack_logger.rb
  93. +60 −0 vendor/gems/rack-1.1.0/test/spec_rack_methodoverride.rb
  94. +243 −0 vendor/gems/rack-1.1.0/test/spec_rack_mock.rb
  95. +189 −0 vendor/gems/rack-1.1.0/test/spec_rack_mongrel.rb
  96. +13 −0 vendor/gems/rack-1.1.0/test/spec_rack_nulllogger.rb
  97. +77 −0 vendor/gems/rack-1.1.0/test/spec_rack_recursive.rb
  98. +545 −0 vendor/gems/rack-1.1.0/test/spec_rack_request.rb
  99. +221 −0 vendor/gems/rack-1.1.0/test/spec_rack_response.rb
  100. +118 −0 vendor/gems/rack-1.1.0/test/spec_rack_rewindable_input.rb
  101. +35 −0 vendor/gems/rack-1.1.0/test/spec_rack_runtime.rb
  102. +86 −0 vendor/gems/rack-1.1.0/test/spec_rack_sendfile.rb
  103. +73 −0 vendor/gems/rack-1.1.0/test/spec_rack_session_cookie.rb
  104. +273 −0 vendor/gems/rack-1.1.0/test/spec_rack_session_memcache.rb
  105. +172 −0 vendor/gems/rack-1.1.0/test/spec_rack_session_pool.rb
  106. +21 −0 vendor/gems/rack-1.1.0/test/spec_rack_showexceptions.rb
  107. +72 −0 vendor/gems/rack-1.1.0/test/spec_rack_showstatus.rb
  108. +37 −0 vendor/gems/rack-1.1.0/test/spec_rack_static.rb
  109. +91 −0 vendor/gems/rack-1.1.0/test/spec_rack_thin.rb
  110. +215 −0 vendor/gems/rack-1.1.0/test/spec_rack_urlmap.rb
  111. +552 −0 vendor/gems/rack-1.1.0/test/spec_rack_utils.rb
  112. +130 −0 vendor/gems/rack-1.1.0/test/spec_rack_webrick.rb
  113. +154 −0 vendor/gems/rack-1.1.0/test/spec_rackup.rb
@@ -0,0 +1,314 @@
+--- !ruby/object:Gem::Specification
+name: rack
+version: !ruby/object:Gem::Version
+ hash: 19
+ prerelease: false
+ segments:
+ - 1
+ - 1
+ - 0
+ version: 1.1.0
+platform: ruby
+authors:
+- Christian Neukirchen
+autorequire:
+bindir: bin
+cert_chain: []
+
+date: 2010-01-03 00:00:00 -06:00
+default_executable: rackup
+dependencies:
+- !ruby/object:Gem::Dependency
+ name: test-spec
+ prerelease: false
+ requirement: &id001 !ruby/object:Gem::Requirement
+ none: false
+ requirements:
+ - - ">="
+ - !ruby/object:Gem::Version
+ hash: 3
+ segments:
+ - 0
+ version: "0"
+ type: :development
+ version_requirements: *id001
+- !ruby/object:Gem::Dependency
+ name: camping
+ prerelease: false
+ requirement: &id002 !ruby/object:Gem::Requirement
+ none: false
+ requirements:
+ - - ">="
+ - !ruby/object:Gem::Version
+ hash: 3
+ segments:
+ - 0
+ version: "0"
+ type: :development
+ version_requirements: *id002
+- !ruby/object:Gem::Dependency
+ name: fcgi
+ prerelease: false
+ requirement: &id003 !ruby/object:Gem::Requirement
+ none: false
+ requirements:
+ - - ">="
+ - !ruby/object:Gem::Version
+ hash: 3
+ segments:
+ - 0
+ version: "0"
+ type: :development
+ version_requirements: *id003
+- !ruby/object:Gem::Dependency
+ name: memcache-client
+ prerelease: false
+ requirement: &id004 !ruby/object:Gem::Requirement
+ none: false
+ requirements:
+ - - ">="
+ - !ruby/object:Gem::Version
+ hash: 3
+ segments:
+ - 0
+ version: "0"
+ type: :development
+ version_requirements: *id004
+- !ruby/object:Gem::Dependency
+ name: mongrel
+ prerelease: false
+ requirement: &id005 !ruby/object:Gem::Requirement
+ none: false
+ requirements:
+ - - ">="
+ - !ruby/object:Gem::Version
+ hash: 3
+ segments:
+ - 0
+ version: "0"
+ type: :development
+ version_requirements: *id005
+- !ruby/object:Gem::Dependency
+ name: thin
+ prerelease: false
+ requirement: &id006 !ruby/object:Gem::Requirement
+ none: false
+ requirements:
+ - - ">="
+ - !ruby/object:Gem::Version
+ hash: 3
+ segments:
+ - 0
+ version: "0"
+ type: :development
+ version_requirements: *id006
+description: |
+ Rack provides minimal, modular and adaptable interface for developing
+ web applications in Ruby. By wrapping HTTP requests and responses in
+ the simplest way possible, it unifies and distills the API for web
+ servers, web frameworks, and software in between (the so-called
+ middleware) into a single method call.
+
+ Also see http://rack.rubyforge.org.
+
+email: chneukirchen@gmail.com
+executables:
+- rackup
+extensions: []
+
+extra_rdoc_files:
+- README
+- SPEC
+- KNOWN-ISSUES
+files:
+- bin/rackup
+- contrib/rack_logo.svg
+- example/lobster.ru
+- example/protectedlobster.rb
+- example/protectedlobster.ru
+- lib/rack/adapter/camping.rb
+- lib/rack/auth/abstract/handler.rb
+- lib/rack/auth/abstract/request.rb
+- lib/rack/auth/basic.rb
+- lib/rack/auth/digest/md5.rb
+- lib/rack/auth/digest/nonce.rb
+- lib/rack/auth/digest/params.rb
+- lib/rack/auth/digest/request.rb
+- lib/rack/builder.rb
+- lib/rack/cascade.rb
+- lib/rack/chunked.rb
+- lib/rack/commonlogger.rb
+- lib/rack/conditionalget.rb
+- lib/rack/config.rb
+- lib/rack/content_length.rb
+- lib/rack/content_type.rb
+- lib/rack/deflater.rb
+- lib/rack/directory.rb
+- lib/rack/etag.rb
+- lib/rack/file.rb
+- lib/rack/handler/cgi.rb
+- lib/rack/handler/evented_mongrel.rb
+- lib/rack/handler/fastcgi.rb
+- lib/rack/handler/lsws.rb
+- lib/rack/handler/mongrel.rb
+- lib/rack/handler/scgi.rb
+- lib/rack/handler/swiftiplied_mongrel.rb
+- lib/rack/handler/thin.rb
+- lib/rack/handler/webrick.rb
+- lib/rack/handler.rb
+- lib/rack/head.rb
+- lib/rack/lint.rb
+- lib/rack/lobster.rb
+- lib/rack/lock.rb
+- lib/rack/logger.rb
+- lib/rack/methodoverride.rb
+- lib/rack/mime.rb
+- lib/rack/mock.rb
+- lib/rack/nulllogger.rb
+- lib/rack/recursive.rb
+- lib/rack/reloader.rb
+- lib/rack/request.rb
+- lib/rack/response.rb
+- lib/rack/rewindable_input.rb
+- lib/rack/runtime.rb
+- lib/rack/sendfile.rb
+- lib/rack/server.rb
+- lib/rack/session/abstract/id.rb
+- lib/rack/session/cookie.rb
+- lib/rack/session/memcache.rb
+- lib/rack/session/pool.rb
+- lib/rack/showexceptions.rb
+- lib/rack/showstatus.rb
+- lib/rack/static.rb
+- lib/rack/urlmap.rb
+- lib/rack/utils.rb
+- lib/rack.rb
+- COPYING
+- KNOWN-ISSUES
+- rack.gemspec
+- RDOX
+- README
+- SPEC
+- test/spec_rack_auth_basic.rb
+- test/spec_rack_auth_digest.rb
+- test/spec_rack_builder.rb
+- test/spec_rack_camping.rb
+- test/spec_rack_cascade.rb
+- test/spec_rack_cgi.rb
+- test/spec_rack_chunked.rb
+- test/spec_rack_commonlogger.rb
+- test/spec_rack_conditionalget.rb
+- test/spec_rack_config.rb
+- test/spec_rack_content_length.rb
+- test/spec_rack_content_type.rb
+- test/spec_rack_deflater.rb
+- test/spec_rack_directory.rb
+- test/spec_rack_etag.rb
+- test/spec_rack_fastcgi.rb
+- test/spec_rack_file.rb
+- test/spec_rack_handler.rb
+- test/spec_rack_head.rb
+- test/spec_rack_lint.rb
+- test/spec_rack_lobster.rb
+- test/spec_rack_lock.rb
+- test/spec_rack_logger.rb
+- test/spec_rack_methodoverride.rb
+- test/spec_rack_mock.rb
+- test/spec_rack_mongrel.rb
+- test/spec_rack_nulllogger.rb
+- test/spec_rack_recursive.rb
+- test/spec_rack_request.rb
+- test/spec_rack_response.rb
+- test/spec_rack_rewindable_input.rb
+- test/spec_rack_runtime.rb
+- test/spec_rack_sendfile.rb
+- test/spec_rack_session_cookie.rb
+- test/spec_rack_session_memcache.rb
+- test/spec_rack_session_pool.rb
+- test/spec_rack_showexceptions.rb
+- test/spec_rack_showstatus.rb
+- test/spec_rack_static.rb
+- test/spec_rack_thin.rb
+- test/spec_rack_urlmap.rb
+- test/spec_rack_utils.rb
+- test/spec_rack_webrick.rb
+- test/spec_rackup.rb
+has_rdoc: true
+homepage: http://rack.rubyforge.org
+licenses: []
+
+post_install_message:
+rdoc_options: []
+
+require_paths:
+- lib
+required_ruby_version: !ruby/object:Gem::Requirement
+ none: false
+ requirements:
+ - - ">="
+ - !ruby/object:Gem::Version
+ hash: 3
+ segments:
+ - 0
+ version: "0"
+required_rubygems_version: !ruby/object:Gem::Requirement
+ none: false
+ requirements:
+ - - ">="
+ - !ruby/object:Gem::Version
+ hash: 3
+ segments:
+ - 0
+ version: "0"
+requirements: []
+
+rubyforge_project: rack
+rubygems_version: 1.3.7
+signing_key:
+specification_version: 3
+summary: a modular Ruby webserver interface
+test_files:
+- test/spec_rack_auth_basic.rb
+- test/spec_rack_auth_digest.rb
+- test/spec_rack_builder.rb
+- test/spec_rack_camping.rb
+- test/spec_rack_cascade.rb
+- test/spec_rack_cgi.rb
+- test/spec_rack_chunked.rb
+- test/spec_rack_commonlogger.rb
+- test/spec_rack_conditionalget.rb
+- test/spec_rack_config.rb
+- test/spec_rack_content_length.rb
+- test/spec_rack_content_type.rb
+- test/spec_rack_deflater.rb
+- test/spec_rack_directory.rb
+- test/spec_rack_etag.rb
+- test/spec_rack_fastcgi.rb
+- test/spec_rack_file.rb
+- test/spec_rack_handler.rb
+- test/spec_rack_head.rb
+- test/spec_rack_lint.rb
+- test/spec_rack_lobster.rb
+- test/spec_rack_lock.rb
+- test/spec_rack_logger.rb
+- test/spec_rack_methodoverride.rb
+- test/spec_rack_mock.rb
+- test/spec_rack_mongrel.rb
+- test/spec_rack_nulllogger.rb
+- test/spec_rack_recursive.rb
+- test/spec_rack_request.rb
+- test/spec_rack_response.rb
+- test/spec_rack_rewindable_input.rb
+- test/spec_rack_runtime.rb
+- test/spec_rack_sendfile.rb
+- test/spec_rack_session_cookie.rb
+- test/spec_rack_session_memcache.rb
+- test/spec_rack_session_pool.rb
+- test/spec_rack_showexceptions.rb
+- test/spec_rack_showstatus.rb
+- test/spec_rack_static.rb
+- test/spec_rack_thin.rb
+- test/spec_rack_urlmap.rb
+- test/spec_rack_utils.rb
+- test/spec_rack_webrick.rb
+- test/spec_rackup.rb
@@ -0,0 +1,18 @@
+Copyright (c) 2007, 2008, 2009, 2010 Christian Neukirchen <purl.org/net/chneukirchen>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to
+deal in the Software without restriction, including without limitation the
+rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+sell copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,21 @@
+= Known issues with Rack and Web servers
+
+* Lighttpd sets wrong SCRIPT_NAME and PATH_INFO if you mount your
+ FastCGI app at "/". This can be fixed by using this middleware:
+
+ class LighttpdScriptNameFix
+ def initialize(app)
+ @app = app
+ end
+
+ def call(env)
+ env["PATH_INFO"] = env["SCRIPT_NAME"].to_s + env["PATH_INFO"].to_s
+ env["SCRIPT_NAME"] = ""
+ @app.call(env)
+ end
+ end
+
+ Of course, use this only when your app runs at "/".
+
+ Since lighttpd 1.4.23, you also can use the "fix-root-scriptname" flag
+ in fastcgi.server.
No changes.
Oops, something went wrong.

0 comments on commit da93dfe

Please sign in to comment.