Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bugfixes and Rails Edge

Update to Rails 2.3.1.
  (Actually, not quite. Doesn't look like 2.3.1 will be released
   today, but I REALLY want to push these bugfixes out.)
Removed bundled Rack (Rails 2.3.1 comes bundled with Rack 1.0).
Add
     config.action_view.cache_template_loading = true
  to production environment.
Fix FastCGI bug (http://rubyforge.org/tracker/index.php?func=detail&aid=24191&group_id=186&atid=783).
Fix WikiWords bug (http://rubyforge.org/pipermail/instiki-users/2009-February/001181.html).
  • Loading branch information...
commit 133c21b8019d3de3501e3a968d36410a8e32ade3 1 parent 0ddef97
@distler distler authored
Showing with 154 additions and 26,380 deletions.
  1. +116 −0 CHANGELOG
  2. +18 −5 README
  3. +1 −1  config/environment.rb
  4. +1 −0  config/environments/production.rb
  5. +0 −1  instiki
  6. +1 −1  lib/chunks/wiki.rb
  7. +13 −3 script/server
  8. +4 −0 test/unit/chunks/wiki_test.rb
  9. +0 −8 vendor/plugins/rack/AUTHORS
  10. +0 −18 vendor/plugins/rack/COPYING
  11. +0 −1,423 vendor/plugins/rack/ChangeLog
  12. +0 −18 vendor/plugins/rack/KNOWN-ISSUES
  13. +0 −324 vendor/plugins/rack/RDOX
  14. +0 −306 vendor/plugins/rack/README
  15. +0 −188 vendor/plugins/rack/Rakefile
  16. +0 −129 vendor/plugins/rack/SPEC
  17. +0 −172 vendor/plugins/rack/bin/rackup
  18. +0 −111 vendor/plugins/rack/contrib/rack_logo.svg
  19. +0 −149 vendor/plugins/rack/doc/classes/L2.html
  20. +0 −438 vendor/plugins/rack/doc/classes/Rack.html
  21. +0 −130 vendor/plugins/rack/doc/classes/Rack/Adapter.html
  22. +0 −181 vendor/plugins/rack/doc/classes/Rack/Adapter/Camping.html
  23. +0 −121 vendor/plugins/rack/doc/classes/Rack/Auth.html
  24. +0 −179 vendor/plugins/rack/doc/classes/Rack/Auth/Basic.html
  25. +0 −194 vendor/plugins/rack/doc/classes/Rack/Auth/Basic/Request.html
  26. +0 −105 vendor/plugins/rack/doc/classes/Rack/Auth/Digest.html
  27. +0 −807 vendor/plugins/rack/doc/classes/Rack/Auth/OpenID.html
  28. +0 −111 vendor/plugins/rack/doc/classes/Rack/Auth/OpenID/NoSession.html
  29. +0 −340 vendor/plugins/rack/doc/classes/Rack/Builder.html
  30. +0 −265 vendor/plugins/rack/doc/classes/Rack/Cascade.html
  31. +0 −308 vendor/plugins/rack/doc/classes/Rack/CommonLogger.html
  32. +0 −199 vendor/plugins/rack/doc/classes/Rack/ConditionalGet.html
  33. +0 −191 vendor/plugins/rack/doc/classes/Rack/ContentLength.html
  34. +0 −289 vendor/plugins/rack/doc/classes/Rack/Deflater.html
  35. +0 −493 vendor/plugins/rack/doc/classes/Rack/Directory.html
  36. +0 −378 vendor/plugins/rack/doc/classes/Rack/File.html
  37. +0 −184 vendor/plugins/rack/doc/classes/Rack/ForwardRequest.html
  38. +0 −196 vendor/plugins/rack/doc/classes/Rack/Forwarder.html
  39. +0 −242 vendor/plugins/rack/doc/classes/Rack/Handler.html
  40. +0 −254 vendor/plugins/rack/doc/classes/Rack/Handler/CGI.html
  41. +0 −111 vendor/plugins/rack/doc/classes/Rack/Handler/EventedMongrel.html
  42. +0 −264 vendor/plugins/rack/doc/classes/Rack/Handler/FastCGI.html
  43. +0 −250 vendor/plugins/rack/doc/classes/Rack/Handler/LSWS.html
  44. +0 −258 vendor/plugins/rack/doc/classes/Rack/Handler/Mongrel.html
  45. +0 −244 vendor/plugins/rack/doc/classes/Rack/Handler/SCGI.html
  46. +0 −111 vendor/plugins/rack/doc/classes/Rack/Handler/SwiftipliedMongrel.html
  47. +0 −150 vendor/plugins/rack/doc/classes/Rack/Handler/Thin.html
  48. +0 −237 vendor/plugins/rack/doc/classes/Rack/Handler/WEBrick.html
  49. +0 −178 vendor/plugins/rack/doc/classes/Rack/Head.html
  50. +0 −154 vendor/plugins/rack/doc/classes/Rack/Lint.html
  51. +0 −136 vendor/plugins/rack/doc/classes/Rack/Lobster.html
  52. +0 −206 vendor/plugins/rack/doc/classes/Rack/MethodOverride.html
  53. +0 −200 vendor/plugins/rack/doc/classes/Rack/Mime.html
  54. +0 −375 vendor/plugins/rack/doc/classes/Rack/MockRequest.html
  55. +0 −217 vendor/plugins/rack/doc/classes/Rack/MockRequest/FatalWarner.html
  56. +0 −111 vendor/plugins/rack/doc/classes/Rack/MockRequest/FatalWarning.html
  57. +0 −298 vendor/plugins/rack/doc/classes/Rack/MockResponse.html
  58. +0 −218 vendor/plugins/rack/doc/classes/Rack/Recursive.html
  59. +0 −249 vendor/plugins/rack/doc/classes/Rack/Reloader.html
  60. +0 −1,126 vendor/plugins/rack/doc/classes/Rack/Request.html
  61. +0 −518 vendor/plugins/rack/doc/classes/Rack/Response.html
  62. +0 −479 vendor/plugins/rack/doc/classes/Rack/Response/Helpers.html
  63. +0 −125 vendor/plugins/rack/doc/classes/Rack/Session.html
  64. +0 −200 vendor/plugins/rack/doc/classes/Rack/Session/Cookie.html
  65. +0 −204 vendor/plugins/rack/doc/classes/Rack/Session/Memcache.html
  66. +0 −201 vendor/plugins/rack/doc/classes/Rack/Session/Pool.html
  67. +0 −260 vendor/plugins/rack/doc/classes/Rack/ShowExceptions.html
  68. +0 −199 vendor/plugins/rack/doc/classes/Rack/ShowStatus.html
  69. +0 −205 vendor/plugins/rack/doc/classes/Rack/Static.html
  70. +0 −214 vendor/plugins/rack/doc/classes/Rack/URLMap.html
  71. +0 −377 vendor/plugins/rack/doc/classes/Rack/Utils.html
  72. +0 −299 vendor/plugins/rack/doc/classes/Rack/Utils/Context.html
  73. +0 −373 vendor/plugins/rack/doc/classes/Rack/Utils/HeaderHash.html
  74. +0 −246 vendor/plugins/rack/doc/classes/Rack/Utils/Multipart.html
  75. +0 −1  vendor/plugins/rack/doc/created.rid
  76. +0 −127 vendor/plugins/rack/doc/files/KNOWN-ISSUES.html
  77. +0 −961 vendor/plugins/rack/doc/files/RDOX.html
  78. +0 −720 vendor/plugins/rack/doc/files/README.html
  79. +0 −318 vendor/plugins/rack/doc/files/SPEC.html
  80. +0 −101 vendor/plugins/rack/doc/files/lib/rack/adapter/camping_rb.html
  81. +0 −109 vendor/plugins/rack/doc/files/lib/rack/auth/basic_rb.html
  82. +0 −119 vendor/plugins/rack/doc/files/lib/rack/auth/openid_rb.html
  83. +0 −101 vendor/plugins/rack/doc/files/lib/rack/builder_rb.html
  84. +0 −101 vendor/plugins/rack/doc/files/lib/rack/cascade_rb.html
  85. +0 −101 vendor/plugins/rack/doc/files/lib/rack/commonlogger_rb.html
  86. +0 −101 vendor/plugins/rack/doc/files/lib/rack/conditionalget_rb.html
  87. +0 −101 vendor/plugins/rack/doc/files/lib/rack/content_length_rb.html
  88. +0 −110 vendor/plugins/rack/doc/files/lib/rack/deflater_rb.html
  89. +0 −109 vendor/plugins/rack/doc/files/lib/rack/directory_rb.html
  90. +0 −109 vendor/plugins/rack/doc/files/lib/rack/file_rb.html
  91. +0 −111 vendor/plugins/rack/doc/files/lib/rack/forward_rb.html
  92. +0 −101 vendor/plugins/rack/doc/files/lib/rack/handler/cgi_rb.html
  93. +0 −108 vendor/plugins/rack/doc/files/lib/rack/handler/evented_mongrel_rb.html
  94. +0 −109 vendor/plugins/rack/doc/files/lib/rack/handler/fastcgi_rb.html
  95. +0 −108 vendor/plugins/rack/doc/files/lib/rack/handler/lsws_rb.html
  96. +0 −109 vendor/plugins/rack/doc/files/lib/rack/handler/mongrel_rb.html
  97. +0 −109 vendor/plugins/rack/doc/files/lib/rack/handler/scgi_rb.html
  98. +0 −108 vendor/plugins/rack/doc/files/lib/rack/handler/swiftiplied_mongrel_rb.html
  99. +0 −108 vendor/plugins/rack/doc/files/lib/rack/handler/thin_rb.html
  100. +0 −109 vendor/plugins/rack/doc/files/lib/rack/handler/webrick_rb.html
  101. +0 −101 vendor/plugins/rack/doc/files/lib/rack/handler_rb.html
  102. +0 −101 vendor/plugins/rack/doc/files/lib/rack/head_rb.html
  103. +0 −101 vendor/plugins/rack/doc/files/lib/rack/lint_rb.html
  104. +0 −110 vendor/plugins/rack/doc/files/lib/rack/lobster_rb.html
  105. +0 −101 vendor/plugins/rack/doc/files/lib/rack/methodoverride_rb.html
  106. +0 −101 vendor/plugins/rack/doc/files/lib/rack/mime_rb.html
  107. +0 −112 vendor/plugins/rack/doc/files/lib/rack/mock_rb.html
  108. +0 −108 vendor/plugins/rack/doc/files/lib/rack/recursive_rb.html
  109. +0 −108 vendor/plugins/rack/doc/files/lib/rack/reloader_rb.html
  110. +0 −108 vendor/plugins/rack/doc/files/lib/rack/request_rb.html
  111. +0 −109 vendor/plugins/rack/doc/files/lib/rack/response_rb.html
  112. +0 −108 vendor/plugins/rack/doc/files/lib/rack/session/cookie_rb.html
  113. +0 −115 vendor/plugins/rack/doc/files/lib/rack/session/memcache_rb.html
  114. +0 −120 vendor/plugins/rack/doc/files/lib/rack/session/pool_rb.html
  115. +0 −110 vendor/plugins/rack/doc/files/lib/rack/showexceptions_rb.html
  116. +0 −110 vendor/plugins/rack/doc/files/lib/rack/showstatus_rb.html
  117. +0 −101 vendor/plugins/rack/doc/files/lib/rack/static_rb.html
  118. +0 −101 vendor/plugins/rack/doc/files/lib/rack/urlmap_rb.html
  119. +0 −109 vendor/plugins/rack/doc/files/lib/rack/utils_rb.html
  120. +0 −113 vendor/plugins/rack/doc/files/lib/rack_rb.html
  121. +0 −82 vendor/plugins/rack/doc/fr_class_index.html
  122. +0 −71 vendor/plugins/rack/doc/fr_file_index.html
  123. +0 −236 vendor/plugins/rack/doc/fr_method_index.html
  124. +0 −24 vendor/plugins/rack/doc/index.html
  125. +0 −208 vendor/plugins/rack/doc/rdoc-style.css
  126. +0 −4 vendor/plugins/rack/example/lobster.ru
  127. +0 −14 vendor/plugins/rack/example/protectedlobster.rb
  128. +0 −8 vendor/plugins/rack/example/protectedlobster.ru
  129. +0 −438 vendor/plugins/rack/lib/rack/auth/openid.rb
  130. +0 −87 vendor/plugins/rack/lib/rack/deflater.rb
  131. +0 −153 vendor/plugins/rack/lib/rack/session/abstract/id.rb
  132. +0 −97 vendor/plugins/rack/lib/rack/session/memcache.rb
  133. +0 −73 vendor/plugins/rack/lib/rack/session/pool.rb
  134. +0 −20 vendor/plugins/rack/test/cgi/lighttpd.conf
  135. +0 −9 vendor/plugins/rack/test/cgi/test
  136. +0 −8 vendor/plugins/rack/test/cgi/test.fcgi
  137. +0 −7 vendor/plugins/rack/test/cgi/test.ru
  138. +0 −69 vendor/plugins/rack/test/spec_rack_auth_basic.rb
  139. +0 −169 vendor/plugins/rack/test/spec_rack_auth_digest.rb
  140. +0 −137 vendor/plugins/rack/test/spec_rack_auth_openid.rb
  141. +0 −84 vendor/plugins/rack/test/spec_rack_builder.rb
  142. +0 −51 vendor/plugins/rack/test/spec_rack_camping.rb
  143. +0 −50 vendor/plugins/rack/test/spec_rack_cascade.rb
  144. +0 −89 vendor/plugins/rack/test/spec_rack_cgi.rb
  145. +0 −32 vendor/plugins/rack/test/spec_rack_commonlogger.rb
  146. +0 −41 vendor/plugins/rack/test/spec_rack_conditionalget.rb
  147. +0 −43 vendor/plugins/rack/test/spec_rack_content_length.rb
  148. +0 −105 vendor/plugins/rack/test/spec_rack_deflater.rb
Sorry, we could not display the entire diff because too many files (759) changed.
View
116 CHANGELOG
@@ -1,3 +1,119 @@
+
+* 0.16.3: Big steps, Rails 2.3.0-RC1 and tons of new stuff!
+
+All the patching, developing and great hacking from Jacques Distler was
+merged into the main codebase of instiki. Jaques is now also maintaining the
+main branch (together with parasew), which brings instiki up-to-date!
+
+Find more information about all the changes in his site:
+
+ http://golem.ph.utexas.edu/instiki/
+
+New Features:
+* Instiki comes and runs with Rails 2.3.0-RC1
+* New Markdown interpreter: Maruku
+* Default markup dialect is Markdown+itex2MML
+* Mathematics suport, using itex2MML (Markdown+itex2MML)
+ http://golem.ph.utexas.edu/~distler/blog/itex2MMLcommands.html
+ or BlahTeX (Markdown+BlahTeX/PNG)
+ http://golem.ph.utexas.edu/instiki/show/BlahTeX
+* Theorem Environments
+* Automatic Equation numbering and automatic Theorem numbering,
+* Integrated presentation software
+ http://golem.ph.utexas.edu/instiki/show/S5
+ complete with support for themes
+ (available with Markdown, Markdown+itex2MML or Markdown+BlahTeX/PNG)
+* Sends application/xhtml+xml to compatible browsers
+ (available with Markdown, Markdown+itex2MML or Markdown+BlahTeX/PNG)
+ Serve Webs which use non-Markdown Text Filters (Textile, RDoc or Mixed) as
+ text/html. This makes those Text Filters usable, again.
+* Scalable Vector Graphics (SVG) enabled
+ (available with Markdown, Markdown+itex2MML or Markdown+BlahTeX/PNG).
+* Nifty SVG Logo
+ (available with Markdown, Markdown+itex2MML or Markdown+BlahTeX/PNG).
+* Atom 1.0 feeds.
+* ETag support.
+* Filesystem-based caching.
+* New, industrial-strength Sanitizer (anti-XSS protection).
+* Uses xhtmldiff for redline diff pages.
+* (Actually functional) LaTeX output.
+* InterWeb WikiLinks
+* Add a user interface to manage uploaded files.
+* Add a user interface to delete a Web.
+* Add a user interface to delete orphaned pages in a Category. In addition to
+ deleting all orphaned pages, you can now delete just the orphaned pages in a
+ particular category. Among other things, this provides a handy way to delete
+ a (selection of) page(s): just assign them to a new category (“delete”, say)
+ and delete the orphaned pages in that category.
+* Add the manage_fixtures plugin for easy database migration
+* Descriptions in the File Upload Dialog are used as the default alt text (for
+ pictures) or the default link text (for files).
+
+Bugfixes:
+(see http://golem.ph.utexas.edu/~distler/blog/archives/001893.html for a
+complete list)
+
+* fixes to xhtmldiff
+* fixed Sanitizer issues
+* Do dnsbl lookups more judiciously. Anti-spam effectiveness is undiminished,
+ but the application is more responsive.
+* Fix a Session CookieOverflow when rescuing Instiki::ValidationError
+* Domain independent caching
+* Fix for no Flash Messages
+* Links on “published” Webs were all screwed-up. Fixed.
+* Make uploaded pictures display in the “published” view.
+* Make @import rules in the “Stylesheet Tweaks” work in the “published” view.
+* Actually verify the password, when setting a password for a Web, rather than
+ just pretending to do so.
+* fixes for nowiki “<nowiki>[[!include foo]]</nowiki>”)
+* Hide Equations From WikiChunk Processing
+* Fix a bug in the Chunk handler, which was mangling backslashes in included
+ pages.
+* Entering the wrong password on the “CreateWeb” form now redirects back to
+ the form, as it should.
+* Allow single-letter WikiLinks (e.g. “[[a]]”). Requested by a Japanese user.
+* Allow single-letter includes (e.g. “[[!include a]]”).
+* Huge improvements to caching and cache-sweeping
+* Category listing restricts to current Web.
+* All WikiReference methods limit results to the current web
+* File uploads work right.
+* Make WEBrick respond to TERM signal. (Launchd, in particular, requires this.)
+* Ditch the URIChunk and LocalURIChunk handlers. Slow, buggy, and of dubious
+ utility.
+* Ensure unsafe operations (new, save,...) are POSTs, not GETs.
+* Fix utf-8 bug in WikiChunk handling.
+* Disable WikiChunk processing in tags.
+* Hide Equations From WikiChunk Processing
+* Fix for the "Backslashes in Included Equations" bug.
+* Sessions are now stored in a cookie (signed and Base-64 encoded).
+ Form_spam_protection stores form_keys in the session.
+ Make sure spambots implement both cookies and javascript, by storing
+ hashed (with salt) keys in the session.
+* Make sure request.ip is a valid IPv4 or IPv6 address.
+* Make remove_orphaned_pages work in a proxied situation.
+* In the wiki_controller, only apply the dnsbl_check before_filter
+ to the :edit, :new, and :save :export actions, instead of all actions.
+ This makes mundane "show" requests faster, but does not
+ compromise spam-fighting ability.
+* Be a little gentler in recovering from Instiki::ValidationErrors, when
+ saving a page. Previously, we threw away all the user's changes upon
+ the redirect. Now we attempt to salvage what he wrote.
+* Drop hostname from cache key.
+* Fix Recursive Includes.
+* Entering an incorrect password on the Create Web form should redirect
+ back to the form, with a flash error.
+* In the Stylesheet Tweaks, the owner of a Web can specify an @import rule
+ to pull in CSS styles form an external file. This worked in the "show"
+ view, but was broken in the "published" view. Fixed.
+* Allow multiple leading capital letters in a WikiWord.
+
+------------------------------------------------------------------------------
+* 0.13.0:
+
+Mainly a Bugfix Release, which fixes two XSS Vulnerabilities.
+More information can be found on Jacques Distler's Blog:
+http://golem.ph.utexas.edu/~distler/blog/archives/001634.html
+
------------------------------------------------------------------------------
* 0.12.0:
View
23 README
@@ -35,8 +35,9 @@ if you are running Windows 95, 98 or ME and cannot get instiki to run, try Versi
=== If you are on Mac OSX
-Since the Apple guys really screwed it up, having an old Ruby Version (1.8.2) and a broken Readline Library with MacOSX Tiger, you have to
+On Leopard, you are all set.
+Tiger ships with a really old Ruby Version (1.8.2) and a broken Readline Library you have to
- use the Ruby One-Click-Installer for OSX ( http://rubyosx.com ) if you don't already have macports' Ruby
- make sure you read http://instiki.5uper.net/instiki/show/SQLite+issues+on+OSX
- run "ruby instiki.rb" via command-line in the directory
@@ -64,10 +65,14 @@ You're now running a perfectly suitable wiki on port 2500 that'll present you wi
* Password-protected webs: Keep it private
* Authors: Each revision is associated with an author, so you can see who changed what
* Reference tracker: Which other pages are pointing to the current?
-* Three markup choices: Textile http://www.textism.com/tools/textile
- (default / RedCloth http://www.whytheluckystiff.net/ruby/redcloth ),
- Markdown (BlueCloth[http://bluecloth.rubyforge.org]), and RDoc[http://rdoc.sourceforge.net/doc]
-* Embedded webserver: Through WEBrick[http://www.webrick.org], also runs on Mongel if you want to.
+* Five markup choices:
+ Markdown-based choices [http://daringfireball.net/projects/markdown/syntax]:
+ Markdown+itex2MML (the default; requires itex2MML)
+ Markdown+BlahTeX/PNG (requires blahtex and a working TeX installation
+ Markdown
+ Textile [http://www.textism.com/tools/textile]
+ RDoc [http://rdoc.sourceforge.net/doc]
+* Embedded webserver: uses Mongrel (if installed), or the bundled WEBrick webserver (if not).
* Internationalization: Wiki words in any latin, greek, cyrillian, or armenian characters
* Color diffs: Track changes through revisions
* Runs on SQLite per default, can be configured to run on PostgreSQL, MySQL, DB2, Firebird, Openbase, Oracle, SQL Server or Sybase
@@ -82,6 +87,9 @@ You're now running a perfectly suitable wiki on port 2500 that'll present you wi
* See CHANGELOG
+== Migrating from Instiki 0.11-0.12 to 0.16.3
+
+ rake upgrade_instiki
== Migrating Instiki 0.10.2 storage to Instiki 0.11.0 database
@@ -150,3 +158,8 @@ Email:: alex[AT]verk.info
From 0.11 onwards:: Matthias Tarasiewicz and 5uper.net
Email:: parasew[AT]gmail.com
Website:: http://5uper.net[http://5uper.net]
+
+From 0.13 onwards:: Matthias Tarasiewicz and Jacques Distler
+Email:: instiki-devel[AT]rubyforge.org
+Weblog Jacques: http://golem.ph.utexas.edu/~distler/blog/
+Weblog Parasew: http://parasew.com
View
2  config/environment.rb
@@ -7,7 +7,7 @@
`ruby -r #{v + 'rexml/rexml'} -e 'p REXML::VERSION'`.split('.').collect {|n| n.to_i} }
$:.unshift(File.dirname(__FILE__) + '/../vendor/plugins/rexml/lib') if (rexml_versions[0] <=> rexml_versions[1]) == -1
-$:.unshift(File.dirname(__FILE__) + '/../vendor/plugins/rack/lib')
+#$:.unshift(File.dirname(__FILE__) + '/../vendor/plugins/rack/lib')
require File.join(File.dirname(__FILE__), 'boot')
require 'active_support/secure_random'
View
1  config/environments/production.rb
@@ -21,6 +21,7 @@
# Full error reports are disabled and caching is turned on
config.action_controller.consider_all_requests_local = false
config.action_controller.perform_caching = true
+config.action_view.cache_template_loading = true
# Enable serving of images, stylesheets, and javascripts from an asset server
# config.action_controller.asset_host = "http://assets.example.com"
View
1  instiki
@@ -1,6 +1,5 @@
#!/usr/bin/env ruby
-$:.unshift(File.dirname(__FILE__) + '/vendor/plugins/rack/lib')
# Executable file for a gem
# must be same as ./instiki.rb
View
2  lib/chunks/wiki.rb
@@ -70,7 +70,7 @@ class Word < WikiLink
attr_reader :escaped_text
unless defined? WIKI_WORD
- WIKI_WORD = Regexp.new('(":)?(\\\\)?(' + WikiWords::WIKI_WORD_PATTERN + ')\b', 0)
+ WIKI_WORD = Regexp.new('(":)?(\\\\)?(' + WikiWords::WIKI_WORD_PATTERN + ')\b', 0, 'u')
end
def self.pattern
View
16 script/server
@@ -37,6 +37,7 @@ ARGV.clone.options do |opts|
opts.on("-e", "--environment=name", String,
"Specifies the environment to run this server under (test/development/production).",
"Default: production") { |v| options[:environment] = v }
+ opts.on("-P", "--path=/path", String, "Runs Instiki mounted at a specific path.", "Default: /") { |v| options[:path] = v }
opts.separator ""
@@ -55,7 +56,7 @@ unless server
end
puts "=> Booting #{ActiveSupport::Inflector.demodulize(server)}"
-puts "=> Rails #{Rails.version} application starting on http://#{options[:Host]}:#{options[:Port]}"
+puts "=> Rails #{Rails.version} application starting on http://#{options[:Host]}:#{options[:Port]}#{options[:path]}"
%w(cache pids sessions sockets).each do |dir_to_make|
FileUtils.mkdir_p(File.join(RAILS_ROOT, 'tmp', dir_to_make))
@@ -88,11 +89,20 @@ else
inner_app = ActionController::Dispatcher.new
end
+if options[:path].nil?
+ map_path = "/"
+else
+ ActionController::Base.relative_url_root = options[:path]
+ map_path = options[:path]
+end
+
app = Rack::Builder.new {
use Rails::Rack::LogTailer unless options[:detach]
- use Rails::Rack::Static
use Rails::Rack::Debugger if options[:debugger]
- run inner_app
+ map map_path do
+ use Rails::Rack::Static
+ run inner_app
+ end
}.to_app
puts "=> Call with -d to detach"
View
4 test/unit/chunks/wiki_test.rb
@@ -11,6 +11,10 @@ def test_simple
match(WikiChunk::Word, 'This is a WikiWord okay?', :page_name => 'WikiWord')
end
+ def test_lowercase_accented
+ no_match(WikiChunk::Word, "This is a Refer\303\252ncia?")
+ end
+
def test_escaped
# escape is only implemented in WikiChunk::Word
match(WikiChunk::Word, 'Do not link to an \EscapedWord',
View
8 vendor/plugins/rack/AUTHORS
@@ -1,8 +0,0 @@
-* Christian Neukirchen <chneukirchen@gmail.com>
-* HTTP authentication: Tim Fletcher <twoggle@gmail.com>
-* Cookie sessions, Static handler: Luc Heinrich <luc@honk-honk.com>
-* Pool sessions, OpenID authentication: blink <blinketje@gmail.com>
-* Rack::Deflater: Christoffer Sawicki <christoffer.sawicki@gmail.com>
-* LiteSpeed handler: Adrian Madrid
-* SCGI handler: Jeremy Evans
-* Official Logo: Armin Ronacher
View
18 vendor/plugins/rack/COPYING
@@ -1,18 +0,0 @@
-Copyright (c) 2007 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.
View
1,423 vendor/plugins/rack/ChangeLog
@@ -1,1423 +0,0 @@
-Fri Jan 9 17:32:54 2009 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Fix directory traversal exploits in Rack::File and Rack::Directory
-
-Tue Jan 6 12:56:00 2009 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Last minute README fixes
-
-Tue Jan 6 12:46:37 2009 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Fix last glitches
-
-Tue Jan 6 12:44:44 2009 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Set release date
-
-Mon Jan 5 17:44:36 2009 -0800 Jon Crosby <jon@joncrosby.me>
- * Store original HTTP method in MethodOverride middleware
-
-Tue Jan 6 12:30:29 2009 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Fix typos in auth/openid
- Reported by Robert Adkins <radkins@technetra.com>
-
-Mon Jan 5 18:41:15 2009 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Rack::File::MIME_TYPES is now Rack::Mime::MIME_TYPES
-
-Mon Jan 5 18:35:31 2009 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Update gemspec
-
-Mon Jan 5 18:46:08 2009 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Revert "Added Rack::Request initialization memoization to reduce repetitive instantiation cost."
- Potentially causes problems with inheritance.
-
- This reverts commits:
- 4cf6f6eb0dd8fdb415016a4e2f41d1784146cd7a
- 552f7b0718ee8cd79c185cd72413690f0da72402
- eefbed89c4ece749e889132012d0f67cd87926a8
-
-Mon Jan 5 18:42:09 2009 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Branch 0.9
-
-Mon Jan 5 18:16:36 2009 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Update thanks
-
-Mon Jan 5 18:16:24 2009 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Update copyright
-
-Mon Jan 5 18:06:11 2009 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Update README
-
-Mon Jan 5 15:00:15 2009 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * In URLMap, entries without host name should come first
-
-Mon Jan 5 14:59:38 2009 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Marshall of String changed in 1.9
-
-Mon Jan 5 14:59:27 2009 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Rewrite Response test to use a well-defined #each
-
-Mon Jan 5 14:59:06 2009 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Array#to_a changed in 1.9
-
-Mon Jan 5 14:58:45 2009 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Constants are symbols in 1.9
-
-Mon Jan 5 13:51:20 2009 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Shuffle scopes for 1.9
-
-Mon Jan 5 05:41:13 2009 -0400 raggi <jftucker@gmail.com>
- * Fix spec_rack_response for 1.9
-
-Sun Jan 4 23:19:31 2009 +0900 Michael Fellinger <m.fellinger@gmail.com>
- * Fix webrick handler for ruby 1.9.1
-
-Tue Dec 30 22:03:42 2008 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Merge commit 'official/master'
-
-Tue Dec 30 21:48:17 2008 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Add trailing slash to the alternative gem server
-
-Mon Dec 29 22:31:27 2008 -0600 Joshua Peek <josh@joshpeek.com>
- * Support X-Http-Method-Override header in MethodOverride middleware
-
-Tue Dec 30 12:23:26 2008 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Don't leak absolute paths in error messages
- Reported by Yonghui Luo.
-
-Mon Dec 29 02:15:25 2008 -0800 Ryan Tomayko <rtomayko@gmail.com>
- * Implement HeaderHash#merge! and HeaderHash#merge
-
-Mon Dec 29 00:40:46 2008 -0800 Ryan Tomayko <rtomayko@gmail.com>
- * Use HeaderHash where header case should be insensitive
-
- The ConditionalGet, ContentLength, Deflator, and ShowStatus
- middleware components were reading/checking headers case
- sensitively.
-
-Thu Dec 11 21:00:27 2008 -0800 Ryan Tomayko <rtomayko@gmail.com>
- * Non-normalizing HeaderHash with case-insensitive lookups
-
- This is a backwards incompatible change that removes header name
- normalization while attempting to keep most of its benefits. The
- header name case is preserved but the Hash has case insensitive
- lookup, replace, delete, and include semantics.
-
-Mon Dec 29 11:49:29 2008 -0600 Joshua Peek <josh@joshpeek.com>
- * Don't try to rewind CGI input
-
-Sun Dec 28 14:08:47 2008 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Reformat Rack::Deflater code
-
-Tue Dec 23 00:23:49 2008 -0800 Ryan Tomayko <rtomayko@gmail.com>
- * Rack::Deflator respects the no-transform cache control directive
-
-Thu Dec 25 12:20:50 2008 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Update README
-
-Thu Dec 25 12:09:42 2008 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Idiomize code
-
-Wed Dec 24 19:33:17 2008 -0500 Matt Todd <chiology@gmail.com>
- * Added specification for Rack::Request memoization.
-
-Wed Dec 24 19:25:20 2008 -0500 Matt Todd <chiology@gmail.com>
- * Updated spec with the new size of the content length based on the new environment variable data included with the Rack::Request instantiation memoization.
-
-Wed Dec 24 19:24:44 2008 -0500 Matt Todd <chiology@gmail.com>
- * Added Rack::Request initialization memoization to reduce repetitive instantiation cost.
-
-Tue Dec 23 21:32:38 2008 -0600 Joshua Peek <josh@joshpeek.com>
- * Rewind input after parsing request form vars
-
-Tue Dec 23 21:22:50 2008 -0600 Joshua Peek <josh@joshpeek.com>
- * Delegate Lint::InputWrapper#rewind to underlying IO object
-
-Tue Dec 23 11:52:11 2008 -0800 Ryan Tomayko <rtomayko@gmail.com>
- * use Set instead of Array for STATUS_WITH_NO_ENTITY_BODY
-
-Mon Dec 22 22:17:18 2008 -0800 Ryan Tomayko <rtomayko@gmail.com>
- * Rack::ContentLength tweaks ...
-
- * Adds a Content-Length header only when the body is of knownable
- length (String, Array).
- * Does nothing when Transfer-Encoding header is present in
- response.
- * Uses a Set instead of an Array for status code lookup (linear
- search through 102 elements seemed expensive).
-
-Sat Dec 20 13:36:22 2008 -0800 Dan Kubb <dan.kubb@autopilotmarketing.com>
- * Fixed Rack::Deflater to handle responses with Last-Modified header
-
- * There was a bug when performing gzip compression where the
- Last-Modified response header was assumed to be a Time object,
- and passed directly to Zlib::GzipWriter#mtime, causing an exception
- since it is always a String.
-
- This fix parses the Last-Modified header using Time.httpdate and
- returns a Time obejct, which can be safely passed to
- Zlib::GzipWriter#mtime.
-
-Sat Dec 20 13:23:05 2008 -0800 Dan Kubb <dan.kubb@autopilotmarketing.com>
- * Do not add Content-Encoding for a response without and entity body
-
-Sat Dec 20 13:17:18 2008 -0800 Dan Kubb <dan.kubb@autopilotmarketing.com>
- * Updated Rack::Deflater spec helper to allow setting the default status
-
-Sat Dec 20 13:06:28 2008 -0800 Dan Kubb <dan.kubb@autopilotmarketing.com>
- * Moved STATUS_WITH_NO_ENTITY_BODY into Rack::Utils
-
- * Removed duplicate constant from Rack::ContentLength and Rack::Lint
-
-Sat Dec 20 13:00:58 2008 -0800 Dan Kubb <dan.kubb@autopilotmarketing.com>
- * Added Accept-Encoding to HTTP Vary header
-
-Fri Dec 19 15:24:21 2008 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Merge commit 'rtomayko/methodoverride'
-
-Thu Dec 18 19:25:24 2008 -0800 Ryan Tomayko <rtomayko@gmail.com>
- * Fix MethodOverride error when POST has no _method param
-
-Wed Dec 17 10:02:15 2008 -0500 macournoyer <macournoyer@gmail.com>
- * Add autoload for Thin handler
-
-Tue Dec 16 21:48:21 2008 -0500 macournoyer <macournoyer@gmail.com>
- * Add Thin handler
-
-Tue Dec 9 10:34:19 2008 -0600 Joshua Peek <josh@joshpeek.com>
- * Add ContentLength middleware
-
-Mon Dec 1 22:24:23 2008 -0700 kastner <kastner@gmail.com>
- * fixing camping bug. see gist:26011
-
-Tue Dec 2 11:28:49 2008 -0600 Joshua Peek <josh@joshpeek.com>
- * Correct status code language to follow RFC 2616
-
-Wed Nov 19 22:07:38 2008 +0100 Daniel Roethlisberger <daniel@roe.ch>
- * Improve session id security: Make session id size configurable, raise the default size from 32 bits to 128 bits, and refactor to allow for easy monkey patching the actual session id generation. Modified version according to feedback.
-
-Wed Nov 19 22:23:30 2008 +0100 Daniel Roethlisberger <daniel@roe.ch>
- * Add support for Secure and HttpOnly flags to session cookies. Set HttpOnly flag by default, since normally, there is no need to read a Rack session from JavaScript in the browser. Do not set the Secure flag by default, since that breaks if the application is not served over TLS.
-
-Fri Oct 17 11:43:25 2008 -0700 Eric Wong <normalperson@yhbt.net>
- * Avoid slurping or parsing request body on PUT requests
-
- Uploading a large file via the HTTP PUT method causes
- `@env["rack.input"].read' to be called inside the POST method. This
- means the entire file is slurped into memory and was needlessly causing
- my Sinatra process to eat up 300M+ for some uploads I've been doing.
-
-Thu Nov 20 14:49:32 2008 -0800 postmodern <postmodern.mod3@gmail.com>
- * Use the universally supported select event handler for lighttpd.
-
- * freebsd-kqueue is obviously not supported on Linux.
-
-Thu Nov 20 00:14:21 2008 -0800 postmodern <postmodern.mod3@gmail.com>
- * When calling map, create another object of the same class.
-
- * This allows one to extend Rack::Builder to create specialized Rack
- DSLs.
-
-Fri Nov 28 15:51:48 2008 +0100 Christian Neukirchen <chneukirchen@gmail.com>
- * Silence Net::HTTP warning
-
-Tue Nov 25 16:33:27 2008 -0800 Phil Hagelberg <technomancy@gmail.com>
- * Updated the tests to use net/http since open-uri doesn't stream responses.
-
- Oh, and now the tests actually pass.
-
-Tue Nov 25 16:16:39 2008 -0800 Phil Hagelberg <technomancy@gmail.com>
- * Allow streaming with the Mongrel Handler.
-
- Write directly to the socket instead of keeping it in the Mongrel Response body.
- Send the status/headers up front.
-
-Tue Nov 25 15:29:24 2008 -0800 Phil Hagelberg <technomancy@gmail.com>
- * Add tests for streaming with Mongrel.
-
-Sun Oct 19 00:15:49 2008 -0600 Ben Alpert <spicyjalapeno@gmail.com>
- * Implemented Rack::Head, modified Rack::Lint to ensure responses to HEAD requests have empty bodies
-
-Sat Oct 11 16:45:41 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Fix header emission for WEBrick and Set-Cookie
- Found by Michael Fellinger.
- This does not fix Set-Cookie2, Warning, or WWW-Authenticate, because
- WEBrick has no way to have duplicates for them.
-
-Wed Oct 1 12:10:40 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Test that Rack::Session::Cookie ignores tampered with session cookies
- by Christoffer Sawicki
-
-Tue Sep 30 19:18:35 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Add secure cookies
- Proposed by necrodome.
-
-Tue Sep 30 17:25:29 2008 +0900 Michael Fellinger <m.fellinger@gmail.com>
- * Empty is if Content-Length is 0, [''] ain't empty?
-
-Tue Sep 16 11:50:27 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Rewrite Rack::Builder tests to avoid race-conditions
-
-Sat Sep 13 04:28:51 2008 -0400 Matt Todd <chiology@gmail.com>
- * Added another example demonstrating the Rack::Builder.app method.
-
-Sat Sep 13 04:21:38 2008 -0400 Matt Todd <chiology@gmail.com>
- * Added spec for application initialization to be performed only once.
-
-Sat Sep 13 03:47:12 2008 -0400 Matt Todd <chiology@gmail.com>
- * Implemented Rack::Builder.app and added specs.
-
-Wed Sep 10 18:56:46 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Add :secure option for set_cookie
- By Brad Hilton.
-
-Tue Sep 9 11:25:49 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * ConditionalGet middleware (Last-Modified/Etag)
-
- Adapted from Michael Klishin's implementation for Merb:
- http://github.com/wycats/merb-core/tree/master/lib/merb-core/rack/middleware/conditional_get.rb
-
- Implemented by Ryan Tomayko.
-
-Sun Sep 7 12:20:22 2008 -0500 Joshua Peek <josh@joshpeek.com>
- * Add MethodOverride middleware to allow browsers to fake PUT and DELETE methods
-
-Sun Sep 7 20:20:30 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Update emongrel and add swiftiplied mongrel
-
-Sun Sep 7 20:15:26 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Update Rack::File
-
- * Fix trouble with wrong Content-Length if File.size returns 0
- * Use Rack::Mime
- * Split _call into methods for easier subclassing
-
- Based on a patch by Michael Fellinger.
-
-Sun Sep 7 19:52:15 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * New version of Rack::Directory
-
- * Handles symlinks
- * Less disk access
- * Uses UTF8
- * Human-readable filesize from Bytes to Terabytes
- * Uses Rack::File as app by default
- * Does a File.expand_path on the
- * +root+ argument
- * Splits up the _call
- * method for easier
- * subclassing
- * Use new Rack::Mime
-
- Based on a patch by Michael Fellinger.
-
-Sun Sep 7 17:51:44 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Add Rack::Mime, a module containing a MIME-type list and helpers
- Proposed and implemented by Michael Fellinger.
-
-Fri Sep 5 22:22:16 2008 +0300 Michael S. Klishin <michael@novemberain.com>
- * Make Rack::Lint::InputWrapper delegate size method to underlying IO object.
-
- See http://snurl.com/3nesq: Lint was breaking file uploads in a Merb app.
-
- Signed-off-by: Michael S. Klishin <michael@novemberain.com>
-
-Sat Aug 30 16:47:50 2008 +0900 Michael Fellinger <m.fellinger@gmail.com>
- * Add Request#ip and corresponding spec
-
-Thu Aug 28 15:57:14 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Make Rack::Lobster set Content-Length
-
-Thu Aug 28 15:55:19 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Make Rack::ShowExceptions set Content-Length
-
-Thu Aug 28 15:54:21 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Make Rack::Response count Content-Length
-
-Thu Aug 28 15:47:47 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Remove empty FastCGI headers nginx likes to pass
-
-Thu Aug 21 12:26:47 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Update to version 0.4
-
-Thu Aug 21 13:24:41 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Cosmetics
-
-Thu Aug 21 12:26:36 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Fix packaging script
-
-Thu Aug 21 12:13:57 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Update README
-
-Tue Aug 19 13:15:18 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * REQUEST_METHOD only must be a valid token
-
-Sat Aug 9 18:53:04 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Improve test documentation
-
-Sat Aug 9 18:52:33 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Don't test OpenID in the default test suite
-
-Sat Aug 9 18:52:03 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Wrangle paths so finally lighttpd should start everything on all platforms correctly
-
-Sat Aug 9 18:50:33 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Don't test openid if not available
-
-Sat Aug 9 18:49:53 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Don't test mongrel if not available
-
-Sat Aug 9 18:29:44 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Silence OpenID warnings
-
-Sat Aug 9 18:29:15 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Make memcache tests start and kill memcached itself
-
-Thu Aug 7 03:32:31 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * BUG: Output of date in wrong time format for cookie expiration (fixed)
- Altered test output to match correct name of gem needing to be installed for memcache
-
-Thu Aug 7 03:01:31 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Merge commit 'core/master'
-
-Fri Aug 1 12:24:43 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Make Rack::Lint threadsafe
- reported by Sunny Hirai
-
-Thu Jul 24 11:26:17 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Merge git://github.com/dkubb/rack
-
-Thu Jul 24 01:40:18 2008 -0700 Dan Kubb <dan.kubb@autopilotmarketing.com>
- * Ensure the comparison is case insensitive
-
-Thu Jul 24 01:12:25 2008 -0700 Dan Kubb <dan.kubb@autopilotmarketing.com>
- * Updated Rake::Lint to ensure Content-Length header is present for non-chunked responses
-
-Sat Jul 12 12:47:35 2008 +0200 Julik <me@julik.nl>
- * Make Lint show proper errors for headers
-
-Wed Jul 9 15:18:35 2008 +0200 Clive Crous <clive@crous.co.za>
- * Fix digest paramater scanning.
- Current scan sometimes took down sites.
- Worst case scenario is when a user just clicked "ok" without entering a username. This could take down the entire website.
- This is related to the ruby (language) bug:
- http://rubyforge.org/tracker/index.php?func=detail&aid=21131&group_id=426&atid=1698
-
-Tue Jul 1 22:59:09 2008 +0200 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * spec_rack_handler.rb - Fixed typos
-
-Mon Jun 23 17:18:28 2008 +0200 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * spec_rack_utils.rb - Reformulated two test case descriptions
-
-Sat Jul 5 02:23:45 2008 +0200 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * deflater.rb - Make gzip's mtime parameter mandatory
-
-Sat Jul 5 02:16:09 2008 +0200 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * deflater.rb - Update TODOs
-
-Sat Jul 5 02:13:17 2008 +0200 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * deflater.rb - Move out the Zlib::Deflate constructor arguments to a constant
-
-Fri Jul 4 23:57:05 2008 +0200 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * deflater.rb - Removed unnecessary require "time" and whitespace
-
-Fri Jul 4 12:53:43 2008 -0600 Ben Alpert <spicyjalapeno@gmail.com>
- * added mtime for Deflater.gzip and fixed gzip spec
-
-Fri Jul 4 13:36:18 2008 +0200 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * deflater.rb - Added an error message for the 406 Not Acceptable case
-
-Fri Jul 4 02:35:15 2008 -0600 Ben <ben@Macintosh.local>
- * added gzip support to Rack::Deflater
-
-Wed Jul 2 00:11:06 2008 +0200 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * Implemented Rack::Deflater
-
-Tue Jul 1 22:37:58 2008 +0200 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * Added support for Accept-Encoding (via Request#accept_encoding and Utils.select_best_encoding)
-
-Tue Jul 1 15:09:16 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Merge branch 'openid2'
-
-Tue Jul 1 15:02:00 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Refactoring of sanity checks on adding extensions for more descriptive exceptions.
- Additional tests on extension handling.
-
-Tue Jul 1 14:58:27 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Default :return_to is Request#url.
- Reordering of finish vs check to prevent recursive oid checks.
- Additional $DEBUG output
-
-Tue Jul 1 14:55:37 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Documentation revisions. 80 cols!
-
-Sun Jun 29 13:37:27 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Additional documentation examples.
-
-Sun Jun 29 13:06:34 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Merge branch 'openid2'
-
-Sun Jun 29 13:05:05 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Revisions to setup checks in order to match test specs.
- Revisions to corresponding documentation.
- Addition of #extension_namespaces for conveniance.
-
-Sat Jun 28 17:54:45 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Additional checks and tests for extension handling.
-
-Sat Jun 28 17:19:07 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Expansion and better handling of extensions.
- Additional documentation and revisions in reference to extensions.
- General documentation revisions.
-
-Sat Jun 28 14:07:57 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Initial support for OpenID extensions.
- Extensions require implementation from ::OpenID::Extension
-
-Sat Jun 28 14:37:09 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Reformatting of debug warning
-
-Fri Jun 27 09:44:38 2008 -0700 Dan Kubb <dan.kubb@autopilotmarketing.com>
- * Make Rack::File use RFC 2616 HTTP Date/Time format for Last-Modified
-
-Tue Jun 24 13:55:25 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Merge commit 'scytrin/master'
-
-Tue Jun 24 11:57:04 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Only call binmode when possible in the multipart parser
-
-Tue Jun 24 01:58:27 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Merge commit 'chneukirchen/master'
-
-Tue Jun 24 01:52:16 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Merge branch 'openid2'
-
-Tue Jun 24 01:43:03 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Documentation revisions
-
-Mon Jun 23 04:26:38 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * OpenID2 moved to replace OpenID
-
-Fri Jun 20 23:16:21 2008 +0200 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * file.rb - Added MP3 to MIME_TYPES
-
-Mon Jun 23 04:25:10 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Merge branch 'openid2'
-
-Mon Jun 23 01:55:35 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Removed extraneous test file
- Updated rubygems specification
-
-Mon Jun 23 01:04:10 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Addition of initial tests for OpenID2
- Additional checks on provided URIs.
-
-Sun Jun 22 08:27:48 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * typo correction
-
-Sun Jun 22 01:09:49 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * More rephrasing.
-
-Sat Jun 21 18:31:09 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Initial import of OpenID tests
-
-Sat Jun 21 18:29:45 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Revisions to check logic and presentation
-
-Sat Jun 21 18:10:27 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Documentation updates and revisions.
- Addition of additional checks.
-
-Fri Jun 20 13:23:07 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Documentation update.
- Removal of message appending in a cancel response.
-
-Fri Jun 20 12:56:05 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Documentation updates and improvements.
- Adjusted naming for a few options.
- The method #finish will always return a 303 redirect unless an error occurs.
-
-Wed Jun 18 03:57:23 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Inlining the management of exceptional responses.
- Removal of extension support until assurance of a decent and clean way of support.
- Revisions to documentation.
- Rewriting of various expressions for clarity and consistancy.
- Replaced hard coded symbols with constant reference.
- Included list of optional arguments for notes on later documentation.
-
-Thu Jun 12 16:53:07 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Removed bare_login functionality, added an optional 500 returning intercept
-
-Mon Jun 2 23:37:45 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Removal of trailing whitespace
-
-Mon Jun 2 21:14:40 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Use $DEBUG for introspective output
-
-Sun May 25 19:26:55 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Make OpenID2 accessible by default
-
-Sun May 25 19:18:44 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Inclusion of ruby-openid 2.x compatible OpenID implementation
-
-Mon Jun 23 03:32:04 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Removal of extraneous debugging output
-
-Sun Jun 15 13:51:31 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Check for block in Builder before instance_eval
-
-Thu Jun 12 17:17:24 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Merge commit 'scytrin/master'
-
-Fri Jun 6 20:54:30 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Added documentation, checks, and tests for Rack::Utils::Context
-
-Fri Jun 6 17:25:35 2008 -0700 Adam Wiggins <adam@heroku.com>
- * commonlogger passes through close call (fixes zombie process bug when serving popen responses)
-
-Tue Jun 3 21:55:55 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Reworking session/abstract/id and derived session implementations
- Formatting for readability
- Adjusted session-id finding for compatibility
- Added checks, rescues, and debugging output
- Adjusted and added tests
-
-Tue Jun 3 20:09:19 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Removal of lingering debug output in directory.rb
-
-Mon Jun 2 00:50:45 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Requiring socket stdlib for UNIXSocket and TCPSocket
-
-Sun Jun 1 06:34:14 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Tests for Rack::Directory, as well as removal of Rack::File dependency
-
-Sun Jun 1 06:07:44 2008 -0700 Scytrin dai Kinthra <scytrin@gmail.com>
- * Addition of Directory to autoload index
-
-Sat May 31 14:32:34 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Merge commit 'josh-mirror/master'
-
-Sat May 31 14:26:43 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * More cleanup
-
-Sat May 31 14:21:56 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Mention Git repositories in README
-
-Sat May 31 14:09:31 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Cleanup
-
-Mon May 26 09:12:22 2008 -0500 Joshua Peek <josh@joshpeek.com>
- * Skip Camping and Memcache tests if the gems are not installed.
-
-Sun May 25 14:32:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add Rack.release for the version of the release.
-
-Sat May 24 17:54:49 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Merge commit 'josh/master'
-
-Sat May 24 15:54:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Allow handlers to register themselves with Rack::Handler.
-
-Sat May 24 09:57:09 2008 -0500 Joshua Peek <josh@joshpeek.com>
- * Allow handlers to register themselves with Rack::Handler.
-
-Sat May 24 14:23:10 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Merge commit '37c59dce25df4'
-
-Sat May 24 12:22:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Merge walf443/rack-mirror
-
-Sat May 24 02:16:39 2008 +0900 Keiji, Yoshimi <walf443@gmail dot com>
- * It may be better to show HTTP_X_FORWARDED_FOR if it exists.
- It's useful when using reverse proxy in front of app server using Rack.
-
-Sun May 18 17:06:58 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Merge commit 'josh/master'
-
-Sun May 18 15:05:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Merge 'josh/rack-mirror'
-
-Sat May 17 15:39:16 2008 -0500 Joshua Peek <josh@joshpeek.com>
- * Include EventedMongrel handler with Rack.
-
-Sat May 10 17:16:29 2008 +0200 Christian Neukirchen <chneukirchen@gmail.com>
- * Merge commit 'josh/daemonize'
-
-Sat May 10 15:10:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Merge josh/daemonize
-
-Tue May 6 18:14:47 2008 -0500 Joshua Peek <josh@joshpeek.com>
- * Only write a rack pid if a file is given.
-
-Tue May 6 15:44:15 2008 -0500 Joshua Peek <josh@joshpeek.com>
- * Added support for daemonizing servers started with rackup.
-
-Fri May 2 21:05:00 2008 +0000 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * utils.rb, spec_rack_utils.rb - Added build_query, the inverse of parse_query
-
-Fri May 2 20:53:00 2008 +0000 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * utils.rb - Cleaned up parse_query
-
-Fri May 2 21:04:00 2008 +0000 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * spec_rack_utils.rb - Added another test for parse_query
-
-Sat Apr 26 21:37:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * session/abstract/id.rb - removal of gratuitous debug output
-
-Fri Apr 25 23:55:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * directory.rb - serves html index for nonfile paths
-
- Rack::File similar processing of paths. On directory lookups it will serve
- a html index of it's contents. Entries begining with '.' are not presented.
- On lookups that result in a file, it will pass an unmodified env to the
- provided app. If an app is not provided, a Rack::File with the same root is
- used.
-
-Fri Apr 18 10:12:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Open multipart tempfiles in binary mode
-
-Thu Apr 10 20:26:00 2008 +0000 ryan <chneukirchen@gmail.com>
- * handle EOFError exception in Request#params
-
-Sat Mar 29 19:58:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * utils.rb - addition of recontexting from a Context
-
-Sun May 25 14:33:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Convert Rakefile to use Git
-
-Thu Mar 27 11:09:00 2008 +0000 Adam Harper <adam@harper.nu>
- * Bug fix for Tempfile POST bodies under Ruby 1.8
-
- The Tempfile class in Ruby 1.8 doesn't implement the == method correctly.
- This causes Rack::Requests to re-parse the input (when the input is a
- Tempfile) each time the POST method is called, this in turn raises an
- EOFError because the input has already been read.
-
- One example of when this happens is when handling large POST requests
- (e.g. file uploads) under Mongrel.
-
- This issue only effects Ruby 1.8 (tested against 1.8.6). Ruby 1.9 does
- not suffer from this issue (presumably due to changes in the Delegate
- implementation.)
-
-Sat Mar 29 04:32:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * memcache.rb - Fixed immortal key bug, updated tests
-
- Old multithread behaviour was to merge sessions, which would never delete
- keys, even if deleted in the current session.
-
-Tue Mar 25 11:15:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * abstract/id.rb - Added check on correctness of response.
-
-Thu Mar 20 16:11:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Run Rack::Session::Memcache tests in fulltest only
-
-Wed Mar 19 11:43:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * memcache.rb - memcached based session management
-
-Thu Mar 20 16:06:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Rack::Reloader is not loaded in rackup development mode anymore
-
-Tue Mar 18 04:04:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * openid.rb - documentation and check on using ruby-openid 1.x.x
-
-Tue Mar 18 10:59:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Update History
-
-Tue Mar 18 10:57:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Update Rakefile
-
-Tue Mar 18 10:55:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make fulltest chmod the executables
-
-Tue Mar 18 10:54:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Small README tweak
-
-Mon Mar 17 23:28:00 2008 +0000 stephen.bannasch <chneukirchen@gmail.com>
- * Changes to get lighttpd setup and running when rake fulltest is run; also added some doc to the readme about running tests
-
-Mon Mar 17 16:03:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * urlmap.rb - update test in allowance of non-destructive HeaderHash
-
-Mon Mar 17 15:59:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb - cleanup of session merging and threading collision checks
-
-Mon Mar 17 15:51:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * URLMap tweaks and more tests
-
-Mon Mar 17 15:51:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Don't lose empty headers in HeaderHash
-
-Mon Mar 17 15:26:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * urlmap.rb - alteration of path selection routines, with updated tests
-
- Previous implementation would append an extra '/' if PATH_NAME would otherwise
- be empty.
-
-Mon Mar 17 11:19:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb - explicit require for thread stdlib
-
-Mon Mar 17 09:12:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb, id.rb - creation of abstract id based session handler
-
- Allows simpler implementation of various storage based sessioning.
- More stringent type checks in id.rb
-
-Sun Mar 16 14:31:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * updated and addition to tests for pool.rb for expiration and thread safety
-
- Running the freshness tests sleeps for 4 seconds to allow a session's
- expiration point to pass.
-
-Sun Mar 16 14:30:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb - addition of session freshness check and upkeep routines
-
-Sun Mar 16 13:23:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * utils.rb - Utils::Context - addition of introspection methods
-
-Sun Mar 16 11:55:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb - documentation update and collision warnings
-
-Sun Mar 16 09:01:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb - documentation revision, addition of @mutex accessor
-
-Sun Mar 16 08:33:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb - setup of expiry not using defined?, from apeiros
-
-Sun Mar 16 08:26:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb - saner metadata storage
-
-Sun Mar 16 08:23:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb - cleanup and THANKS
-
-Sun Mar 16 08:21:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb - addition of thread safety
-
-Sun Mar 16 04:59:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb - moved cookie building back to #commit_session
-
-Fri Mar 14 23:57:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb - faster session id generation from apeiros
-
-Mon Mar 17 10:56:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Require time in rack/file.rb
-
- Reported by Stephen Bannasch.
-
-Sat Mar 15 13:51:00 2008 +0000 r <chneukirchen@gmail.com>
- * Fix that Request assumes form-data even when Content-Type says otherwise
-
- Fixes cases where accessing Request#params causes the body to be read and
- processed as form-data improperly. For example, consider the following
- request:
-
- PUT /foo/bar?baz=bizzle HTTP/1.1
- Content-Type: text/plain
-
- This is not form-data.
-
- When Rack::Request gets ahold of the corresponding environment, and the
- application attempts to access the "baz" query string param, the body is read
- and interpreted as form-data. If the body is an IOish object, this causes the
- offset to be forwarded to the end of file.
-
- The patch prevents the Request#POST method from going into the body unless the
- media type is application/x-www-form-urlencoded, multipart/form-data, or not
- specified.
-
- While here, added a few unrelated helper methods to Request that I've found
- particularly useful in Rack apps: #content_length, #head?, and #content_charset.
-
- Tests and doc included for all changes.
-
-Tue Mar 11 12:02:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb - cleanup and portability revisions
-
-Tue Mar 11 11:59:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb - exported assignment of session id cookie
-
-Tue Mar 11 11:56:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb - exported session to pool commit
-
-Tue Mar 11 11:52:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb - altered session metadata storage and session commit point
-
-Tue Mar 11 11:29:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb - exported generation of a new session id
-
-Tue Mar 11 11:25:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb - moved inline hash to DEFAULT_OPTIONS
-
-Tue Mar 11 11:11:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb - removal of blocks for #context
-
- Before you could pass a block to Pool#context that would be passed the env
- before performing a call on the passed app. This has been removed in deference
- to the practice setting up the block as the passed app, which should
- subsequently call the intended app.
- Seems more in accordance with Rack's prescribed behaviour.
-
-Tue Mar 11 07:51:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * Alteration of Mongrel.run for Mongrel based routing
-
- With the passing of the :map option Mongrel.run will handle the passing of a
- Hash or URLMap rather than a standard rack app. The mapping provided by the
- passed object will be used to register uris with the mongrel instance.
-
- Hashes should only have absolute paths for keys and apps for values.
-
- URLMaps will be filtered if the :Host options is specified, or the mapping's
- host is set.
-
-Tue Mar 11 06:31:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * Addition of #add, #<<, and #include? to Cascade, allowing iterative addition of apps
-
-Mon Mar 10 15:18:00 2008 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * Changed urlmap.rb's uri check to successive conditionals rather than one big one
-
-Tue Feb 26 12:28:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Update README and docs
-
-Sun Feb 24 19:37:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Don't use autoloads in the test suite
-
-Sun Feb 24 18:48:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Fix test cases that used 201 as a status where Content-Type is not allowed
-
-Sun Feb 24 18:46:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Fix cookie parsing
-
-Sun Feb 24 17:51:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Let Rack::Builder#use accept blocks
-
- Contributed by Corey Jewett.
-
-Mon Feb 18 21:18:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Don't create invalid header lines when only deleting a cookie
-
- Reported by Andreas Zehnder
-
-Sun Feb 3 17:14:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Update lint to not check for 201 status headers
-
-Sun Feb 3 17:00:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * HTTP status 201 can contain a body
-
-Fri Jan 25 08:36:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add SCGI handler, by Jeremy Evans
-
-Tue Jan 22 04:23:00 2008 +0000 m.fellinger <chneukirchen@gmail.com>
- * Fix syntax for toggle() in ShowExceptions
-
-Mon Jan 21 02:27:00 2008 +0000 Aman Gupta <aman@ramaze.net>
- * Conform to RFC 2109 regarding multiple values for same cookie
-
-Thu Jan 10 15:29:00 2008 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Remove Rack::Adapter::Rails autoload
-
-Mon Dec 31 18:34:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Remove uses of base64 for Ruby 1.9 support
-
-Sun Dec 9 16:48:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make Rack::Lint actually check what the spec says.
-
-Sun Nov 18 20:09:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * lib/rack/auth/openid.rb - typo!
-
-Sun Nov 18 20:03:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * lib/rack/auth/openid.rb - updates to reflect rack styling
-
-Sun Nov 18 19:54:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * lib/rack/auth/openid.rb - removal of block functionality
-
- The block argumentn functionality was causing a few complications and
- was removed in favour of storing the openid status object in the
- environment. A wrapping proc oor rack app can now achieve the same
- functionality as the block could, in a cleaner manner.
-
-Sun Nov 18 19:51:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Small fix for the new FastCGI options
-
-Sun Nov 18 19:16:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * lib/rack/urlmap.rb - Restyle of host matching from 'and' and 'or' to && and ||
-
-Tue Aug 28 23:02:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * Reformat and representation of mapping selection routine.
-
-Sun Nov 18 19:20:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Minor tweaks in blink's code
-
-Sun Nov 18 18:45:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * lib/rack/auth/openid.rb - removal of rubygems require
-
-Sun Nov 18 07:46:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * lib/rack.rb - Addition of Auth::OpenID
-
-Sun Nov 18 07:45:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * lib/rack.rb - Addition of new Session::Pool and Memcache
-
-Sun Nov 18 05:08:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * session/pool.rb - Updated to use Rack::Utils::Context
-
-Sun Nov 18 04:57:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * Inclusion of the openid result for the post-run block
-
-Sun Nov 18 04:54:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * Addition of post-run block for extensibility
-
-Sun Nov 18 04:53:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * Addition of request to provide a default return url
-
-Sun Nov 18 04:50:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * Cleanup of code, errant error call
-
-Sun Nov 18 04:45:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * Addition of Rack::Utils::Context
-
- Allows the use of a rack app in different contexts using a proc.
-
-Sun Nov 18 04:42:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * Errors now method calls rather than constants.
-
-Thu Aug 30 13:30:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * addition of js -> text/javascript to file types
-
-Thu Aug 30 13:28:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * addition of Last-Modified http header to Rack::File
-
-Tue Aug 28 23:14:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * Addition of credits, #for to allow app context change, and addition of a #key accessor
-
-Wed Aug 22 04:17:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * lib/rack/handler/fastcgi.rb - :Port and :File options for opening sockets
-
-Fri Aug 17 07:09:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * lib/rack/auth/openid.rb: openid login authenticator
-
-Thu Nov 15 16:21:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Fix SCRIPT_NAME in nested URLMaps
-
-Thu Nov 15 16:20:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Update AUTHORS and thanks
-
-Thu Nov 15 16:11:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Fix warning
-
-Thu Nov 15 16:10:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make Rack::Builder#to_app nondestructive
-
-Tue Oct 9 14:35:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Fix Cookie dates accordingly to RFC 2109
-
-Wed Sep 12 09:15:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Mention PUT as allowed request method in the spec
-
-Sat Aug 11 17:28:00 2007 +0000 Scytrin dai Kinthra <scytrin@gmail.com>
- * pool.rb - local session storage hash pool w/ tests
-
-Thu Jul 12 09:02:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add LiteSpeed handler
-
- Courtesy of Adrian Madrid <aemadrid@gmail.com>
-
-Thu Jun 14 20:34:00 2007 +0000 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * Make Rack::File serve files with URL encoded filenames
-
-Thu May 31 16:36:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make Rack::Response possibly close the body
-
- Proposed by Jonathan Buch
-
-Thu May 17 12:06:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Better running of lighttpd for testing
-
-Wed May 16 17:34:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Credit Luc Heinrich
-
-Wed May 16 15:01:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Different approach to Mongrel#run testing
-
-Wed May 16 14:53:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Fix trailing whitespace. Sigh.
-
-Wed May 16 14:44:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Update README
-
-Wed May 16 14:43:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Yield the servers optionally
-
-Wed May 16 14:32:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Small docfixes
-
-Tue May 15 23:44:00 2007 +0000 Michael Fellinger <m.fellinger@gmail.com>
- * replace the 'system' calls in Rakefile with 'sh', making them more transparent and --trace able
-
-Tue May 15 23:42:00 2007 +0000 Michael Fellinger <m.fellinger@gmail.com>
- * add some features to Request and the corresponding tests for them
-
-Tue May 15 15:43:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make Rack::Handler::*.run yield the server for further configuration
-
-Fri May 11 15:31:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Remove the Rails adapter, it was never useful
-
-Fri May 11 15:12:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Introduce Rack::Response::Helpers and make MockResponse use them, too.
-
-Fri May 11 14:56:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add some more edge-case tests to improve coverage
-
-Sun Apr 29 12:55:00 2007 +0000 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * Add missing autoload for Cascade in rack.rb
-
-Thu Apr 26 14:05:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make ShowStatus more robust
-
-Wed Apr 18 13:15:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add Rack::Response#empty?
-
-Tue Apr 3 20:59:00 2007 +0000 Tim Fletcher <twoggle@gmail.com>
- * Minor tweaks
-
-Tue Apr 3 20:58:00 2007 +0000 Tim Fletcher <twoggle@gmail.com>
- * Some initial documentation for the main authentication classes
-
-Tue Apr 3 20:56:00 2007 +0000 Tim Fletcher <twoggle@gmail.com>
- * An example of how to use Rack::Auth::Basic. Protect your lobsters!
-
-Tue Apr 3 20:17:00 2007 +0000 Tim Fletcher <twoggle@gmail.com>
- * Make Rack::Auth handlers compatible with Rack::ShowStatus
-
-Tue Apr 3 20:09:00 2007 +0000 Tim Fletcher <twoggle@gmail.com>
- * Ensure Rack::ShowStatus passes on headers
-
-Fri Mar 30 13:12:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add Request#fullpath
-
-Thu Mar 29 14:24:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add Rack::ShowStatus, a filter to generate common error messages
-
-Thu Mar 29 14:20:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add a list of HTTP status messages
-
-Tue Mar 27 09:06:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Small cleanup
-
-Mon Mar 26 21:27:00 2007 +0000 Tim Fletcher <twoggle@gmail.com>
- * Adding Rack::Auth::Digest::MD5, and refactoring Auth::Basic accordingly
-
-Sat Mar 24 14:36:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Doc fix, Request should have been Reponse
-
- Thanks, apeiros
-
-Mon Mar 12 16:45:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add a test for the broken cookie sessions
-
-Mon Mar 12 16:04:00 2007 +0000 luc <chneukirchen@gmail.com>
- * Make sure we get a valid empty session hash in all cases.
-
-Sun Mar 11 14:06:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Integrate Rack::Static
-
-Sun Mar 11 14:04:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Ducktype on #to_str for Rack::Response.new
-
- proposed by Gary Wright
-
-Sun Mar 11 13:43:00 2007 +0000 luc <chneukirchen@gmail.com>
- * Added Rack::Static middleware.
-
-Sun Mar 11 13:50:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make Rack::Response#write call #to_s
-
- proposed by Gary Wright
-
-Sat Mar 10 14:38:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Fix Rack::Session::Cookie
-
-Fri Mar 9 23:40:00 2007 +0000 luc <chneukirchen@gmail.com>
- * Cookie based session management middleware.
-
-Tue Mar 6 21:12:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Load pp when debugging
-
-Tue Mar 6 12:19:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Integrate patches
-
-Sun Mar 4 15:12:00 2007 +0000 Tim Fletcher <twoggle@gmail.com>
- * Adding Rack::Auth::Basic
-
-Sun Mar 4 02:29:00 2007 +0000 Aredridel <aredridel@nbtsc.org>
- * Fix Camping redirects into Strings when they're URIs
-
-Sat Mar 3 17:20:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Fix things that should have been fixed before the release *sigh*
-
-Sat Mar 3 12:40:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Fix CGI permissions
-
-Sat Mar 3 12:34:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Last-minute details
-
-Sat Mar 3 11:15:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Extend gemspec
-
-Sat Mar 3 10:37:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Small README fixes
-
-Sat Mar 3 10:16:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add README and other documentation
-
-Sat Mar 3 09:58:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add and integrate Rakefile
-
-Sat Mar 3 09:56:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add some missing tests
-
-Fri Mar 2 23:53:00 2007 +0000 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * Tidy up RailsDispatcher::CGIStub
-
-Fri Mar 2 16:55:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Handle SCRIPT_NAME better in *CGI environments
-
-Fri Mar 2 15:10:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Remove lighttpd comment.
-
- The bug has been fixed in later versions.
-
-Thu Mar 1 18:53:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add RDocs
-
-Wed Feb 28 22:19:00 2007 +0000 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * Make Adapter::Rails use Cascade
-
-Wed Feb 28 20:06:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Fix warnings
-
-Wed Feb 28 20:03:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add Rack::Cascade, to pass on the first non 404 result
-
-Wed Feb 28 19:12:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Move TestRequest to test/
-
-Wed Feb 28 19:09:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make spec_rack_lint.rb use mocks
-
-Wed Feb 28 18:56:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make spec_rack_camping.rb use mocks
-
-Wed Feb 28 18:55:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make spec_rack_urlmap.rb use mocks
-
-Wed Feb 28 18:30:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make spec_rack_showexceptions.rb use mocks
-
-Wed Feb 28 18:26:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make spec_rack_request.rb use mocks
-
-Wed Feb 28 18:25:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Don't clash constants in specifications
-
-Wed Feb 28 18:21:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * MockRequest can now only create the Rack environment
-
-Wed Feb 28 18:13:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make spec_rack_recursive.rb use mocks
-
-Wed Feb 28 17:50:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add a default SCRIPT_NAME
-
-Wed Feb 28 17:44:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make spec_rack_file.rb use mocks
-
-Wed Feb 28 17:40:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make spec_rack_commonlogger.rb use mocks
-
-Wed Feb 28 17:35:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add support for mocking all request methods
-
-Wed Feb 28 17:29:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add MockRequest/MockResponse for easier testing
-
-Wed Feb 28 13:45:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Remove the port number of HTTP_HOST and SERVER_NAME
-
-Wed Feb 28 13:33:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make multipart reading more robust
-
-Wed Feb 28 12:56:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make Rack::Request read multipart form data
-
-Wed Feb 28 12:56:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Allow rack.input.read(integer), needed for safe multipart parsing
-
-Mon Feb 26 18:45:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add CGI and FastCGI support for rackup
-
-Mon Feb 26 18:42:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make *CGI#run really like the others
-
-Mon Feb 26 18:10:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Adapt Rack::Handler::CGI API
-
-Mon Feb 26 17:59:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add a FastCGI handler
-
-Sun Feb 25 21:14:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make Rack::Response#write return the written string to catch errors with nested writes
-
-Sun Feb 25 15:49:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add Rack::Reloader, a code autoreloader
-
-Sun Feb 25 13:46:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Ensure the Response body is writable
-
-Sun Feb 25 13:40:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Improve the Rack::Response constructor
-
- based on a patch from mitsuhiko.
-
-Sun Feb 25 12:24:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add the official logo
-
-Sat Feb 24 18:03:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add rackup, an experimental standalone Rack app starter
-
-Sat Feb 24 18:02:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add Rack::Builder, a DSL for connecting Rack apps
-
-Sat Feb 24 18:01:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Really fix URLMap
-
-Thu Feb 22 20:35:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Lint fix
-
-Thu Feb 22 20:34:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Route root app correctly in URLMap
-
-Thu Feb 22 11:10:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add tests for Request#query_string
-
-Wed Feb 21 22:25:00 2007 +0000 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * Add getter method for the query string (and use it internally)
-
-Wed Feb 21 17:29:00 2007 +0000 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * Extended CGIStub to handle Rails' session cookie
-
-Wed Feb 21 19:23:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add a first draft of the specification to Rack::Lint
-
-Wed Feb 21 18:49:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Ensure the body is closed
-
-Wed Feb 21 17:46:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add AUTHORS
-
-Wed Feb 21 16:49:00 2007 +0000 Christoffer Sawicki <christoffer.sawicki@gmail.com>
- * Basic Rails handler for Rack
-
-Wed Feb 21 17:03:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add Request#url
-
-Wed Feb 21 16:41:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Fix extension->MIME mapping
-
-Wed Feb 21 15:13:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add Rack::Recursive and ForwardRequest
-
-Wed Feb 21 15:11:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * URLMap should only look at PATH_INFO
-
-Tue Feb 20 18:15:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Call body#close if possible
-
-Mon Feb 19 12:19:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Small exception handler tweak
-
-Mon Feb 19 11:22:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Return empty hash on lack of cookies
-
-Mon Feb 19 11:22:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Fix host dispatching with explicit ports
-
-Mon Feb 19 10:23:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Cache the parsed things in Rack::Request
-
-Sun Feb 18 23:23:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Rename Request#method to #request_method to not confuse stdlibs
-
-Sun Feb 18 23:02:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add Camping adapter autoload
-
-Sun Feb 18 22:52:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Put Rack under the MIT license
-
-Sun Feb 18 18:07:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add Rack::CommonLogger, a Common Log Format request logger
-
-Sun Feb 18 17:52:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make Response#status and #body settable
-
-Sun Feb 18 10:50:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * More convenience for Rack::Request
-
-Sat Feb 17 13:49:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Remove trailing whitespace *sigh*
-
-Sat Feb 17 13:46:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add Rack::URLMap, a simple router
-
-Sat Feb 17 13:04:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Remove Python leftover
-
-Sat Feb 17 12:57:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add a Camping adapter
-
-Sat Feb 17 12:57:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Don't define path_info twice
-
-Sat Feb 17 12:56:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add Rack::ShowExceptions
-
-Sat Feb 17 12:55:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Remove stray paths
-
-Fri Feb 16 16:54:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add lobster version with Request/Response
-
-Fri Feb 16 16:53:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Make Rack::Response#write syncronous
-
-Fri Feb 16 16:42:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add more Rack::Utils specs
-
-Fri Feb 16 16:34:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add Rack::Response and Rack::Utils
-
-Fri Feb 16 15:32:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add Rack::Request
-
-Fri Feb 16 15:30:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add Rack::File, a static file server
-
-Fri Feb 16 14:51:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Move testing helpers to TestRequest
-
-Fri Feb 16 13:40:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add a lobster
-
-Fri Feb 16 13:39:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add rack.rb with autoloads for convenience
-
-Fri Feb 16 13:33:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add quick run methods for WEBrick and Mongrel
-
-Fri Feb 16 13:27:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Fix lint to allow empty SCRIPT_NAME and PATH_INFO
-
-Fri Feb 16 13:01:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add Lint to the tests
-
-Fri Feb 16 12:49:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Add Rack::Lint
-
-Thu Feb 15 18:05:00 2007 +0000 Christian Neukirchen <chneukirchen@gmail.com>
- * Initial import of Rack
-
View
18 vendor/plugins/rack/KNOWN-ISSUES
@@ -1,18 +0,0 @@
-= 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 "/".
View
324 vendor/plugins/rack/RDOX
@@ -1,324 +0,0 @@
-
-== Rack::Auth::Basic
-* should challenge correctly when no credentials are specified
-* should rechallenge if incorrect credentials are specified
-* should return application output if correct credentials are specified
-* should return 400 Bad Request if different auth scheme used
-
-== Rack::Auth::Digest::MD5
-* should challenge when no credentials are specified
-* should return application output if correct credentials given
-* should return application output if correct credentials given (hashed passwords)
-* should rechallenge if incorrect username given
-* should rechallenge if incorrect password given
-* should rechallenge with stale parameter if nonce is stale
-* should return 400 Bad Request if incorrect qop given
-* should return 400 Bad Request if incorrect uri given
-* should return 400 Bad Request if different auth scheme used
-
-== Rack::Auth::OpenID
-* realm uri should be absolute and have a path
-* uri options should be absolute
-* return_to should be absolute and be under the realm
-* extensions should be a module
-* extensions should have required constants defined
-* extensions should have Request and Response defined and inherit from OpenID::Extension
-* extensions should have NS_URI defined and be a string of an absolute http uri
-
-== Rack::Builder
-* chains apps by default
-* has implicit #to_app
-* supports blocks on use
-* has explicit #to_app
-* apps are initialized once
-
-== Rack::Adapter::Camping
-* works with GET
-* works with POST
-
-== Rack::Cascade
-* should dispatch onward on 404 by default
-* should dispatch onward on whatever is passed
-* should fail if empty
-* should append new app
-
-== Rack::Handler::CGI
-* startup (empty)
-* should respond
-* should be a lighttpd
-* should have rack headers
-* should have CGI headers on GET
-* should have CGI headers on POST
-* should support HTTP auth
-* should set status
-* shutdown
-
-== Rack::CommonLogger
-* should log to rack.errors by default
-* should log to anything with <<
-
-== Rack::ConditionalGet
-* should set a 304 status and truncate body when If-Modified-Since hits
-* should set a 304 status and truncate body when If-None-Match hits
-* should not affect non-GET/HEAD requests
-
-== Rack::ContentLength
-* sets Content-Length on String bodies if none is set
-* sets Content-Length on Array bodies if none is set
-* does not set Content-Length on variable length bodies
-* does not change Content-Length if it is already set
-* does not set Content-Length on 304 responses
-* does not set Content-Length when Transfer-Encoding is chunked
-
-== Rack::Deflater
-* should be able to deflate bodies that respond to each
-* should be able to deflate String bodies
-* should be able to gzip bodies that respond to each
-* should be able to fallback to no deflation
-* should be able to skip when there is no response entity body
-* should handle the lack of an acceptable encoding
-* should handle gzip response with Last-Modified header
-* should do nothing when no-transform Cache-Control directive present
-
-== Rack::Directory
-* serves directory indices
-* passes to app if file found
-* serves uri with URL encoded filenames
-* does not allow directory traversal
-* 404s if it can't find the file
-
-== Rack::Handler::FastCGI
-* startup (empty)
-* should respond
-* should be a lighttpd
-* should have rack headers
-* should have CGI headers on GET
-* should have CGI headers on POST
-* should support HTTP auth
-* should set status
-* shutdown
-
-== Rack::File
-* serves files
-* sets Last-Modified header
-* serves files with URL encoded filenames
-* does not allow directory traversal
-* does not allow directory traversal with encoded periods
-* 404s if it can't find the file
-* detects SystemCallErrors
-
-== Rack::Handler
-* has registered default handlers
-* should get unregistered handler by name
-* should register custom handler
-
-== Rack::Head
-* response (empty)
-* passes GET, POST, PUT, DELETE, OPTIONS, TRACE requests
-* removes body from HEAD requests
-
-== Rack::Lint
-* passes valid request
-* notices fatal errors
-* notices environment errors
-* notices input errors
-* notices error errors
-* notices status errors
-* notices header errors
-* notices content-type errors
-* notices content-length errors
-* notices body errors
-* notices input handling errors
-* notices error handling errors
-* notices HEAD errors
-
-== Rack::Lint::InputWrapper
-* delegates :size to underlying IO object
-* delegates :rewind to underlying IO object
-
-== Rack::Lobster::LambdaLobster
-* should be a single lambda
-* should look like a lobster
-* should be flippable
-
-== Rack::Lobster
-* should look like a lobster
-* should be flippable
-* should provide crashing for testing purposes
-
-== Rack::MethodOverride
-* should not affect GET requests
-* _method parameter should modify REQUEST_METHOD for POST requests
-* X-HTTP-Method-Override header should modify REQUEST_METHOD for POST requests
-* should not modify REQUEST_METHOD if the method is unknown
-* should not modify REQUEST_METHOD when _method is nil
-* should store the original REQUEST_METHOD prior to overriding
-
-== Rack::MockRequest
-* should return a MockResponse
-* should be able to only return the environment
-* should provide sensible defaults
-* should allow GET/POST/PUT/DELETE
-* should allow posting
-* should use all parts of an URL
-* should behave valid according to the Rack spec
-
-== Rack::MockResponse
-* should provide access to the HTTP status
-* should provide access to the HTTP headers
-* should provide access to the HTTP body
-* should provide access to the Rack errors
-* should optionally make Rack errors fatal
-
-== Rack::Handler::Mongrel
-* should respond
-* should be a Mongrel
-* should have rack headers
-* should have CGI headers on GET
-* should have CGI headers on POST
-* should support HTTP auth
-* should set status
-* should provide a .run
-* should provide a .run that maps a hash
-* should provide a .run that maps a urlmap
-* should provide a .run that maps a urlmap restricting by host
-* should stream #each part of the response
-
-== Rack::Recursive
-* should allow for subrequests
-* should raise error on requests not below the app
-* should support forwarding
-
-== Rack::Request
-* wraps the rack variables
-* can figure out the correct host
-* can parse the query string
-* can parse POST data
-* can parse POST data with explicit content type
-* does not parse POST data when media type is not form-data
-* rewinds input after parsing POST data
-* does not rewind unwindable CGI input
-* can get value by key from params with #[]
-* can set value to key on params with #[]=
-* values_at answers values by keys in order given
-* referrer should be extracted correct
-* can cache, but invalidates the cache
-* can figure out if called via XHR
-* can parse cookies
-* parses cookies according to RFC 2109
-* provides setters
-* provides the original env
-* can restore the URL
-* can restore the full path
-* can handle multiple media type parameters
-* can parse multipart form data
-* can parse big multipart form data
-* can detect invalid multipart form data
-* should work around buggy 1.8.* Tempfile equality
-* does conform to the Rack spec
-* should parse Accept-Encoding correctly
-* should provide ip information
-
-== Rack::Response
-* has sensible default values
-* can be written to
-* can set and read headers
-* can set cookies
-* formats the Cookie expiration date accordingly to RFC 2109
-* can set secure cookies
-* can delete cookies
-* has a useful constructor
-* has a constructor that can take a block
-* doesn't return invalid responses
-* knows if it's empty
-* should provide access to the HTTP status
-* should provide access to the HTTP headers
-
-== Rack::Session::Cookie
-* creates a new cookie
-* loads from a cookie
-* survives broken cookies
-* barks on too big cookies
-* creates a new cookie with integrity hash
-* loads from a cookie wih integrity hash
-* ignores tampered with session cookies
-
-== Rack::Session::Memcache
-* startup (empty)
-* faults on no connection
-* creates a new cookie
-* determines session from a cookie
-* survives broken cookies
-* maintains freshness
-* multithread: should cleanly merge sessions
-* shutdown
-
-== Rack::Session::Pool
-* creates a new cookie
-* determines session from a cookie
-* survives broken cookies
-* maintains freshness
-* multithread: should merge sessions
-
-== Rack::ShowExceptions
-* catches exceptions
-
-== Rack::ShowStatus
-* should provide a default status message
-* should let the app provide additional information
-* should not replace existing messages
-* should pass on original headers
-* should replace existing messages if there is detail
-
-== Rack::Static
-* serves files
-* 404s if url root is known but it can't find the file
-* calls down the chain if url root is not known
-
-== Rack::Handler::Thin
-* should respond
-* should be a Thin
-* should have rack headers
-* should have CGI headers on GET
-* should have CGI headers on POST
-* should support HTTP auth
-* should set status
-
-== Rack::URLMap
-* dispatches paths correctly
-* dispatches hosts correctly
-* should be nestable
-* should route root apps correctly
-
-== Rack::Utils
-* should escape correctly
-* should unescape correctly
-* should parse query strings correctly
-* should build query strings correctly
-* should figure out which encodings are acceptable
-
-== Rack::Utils::HeaderHash
-* should retain header case
-* should check existence of keys case insensitively
-* should merge case-insensitively
-* should overwrite case insensitively and assume the new key's case
-* should be converted to real Hash
-
-== Rack::Utils::Context
-* should perform checks on both arguments
-* should set context correctly
-* should alter app on recontexting
-* should run different apps
-
-== Rack::Handler::WEBrick
-* should respond
-* should be a WEBrick
-* should have rack headers
-* should have CGI headers on GET
-* should have CGI headers on POST
-* should support HTTP auth
-* should set status
-* should correctly set cookies
-* should provide a .run
-
-244 specifications, 4 empty (1004 requirements), 0 failures
View
306 vendor/plugins/rack/README
@@ -1,306 +0,0 @@
-= Rack, a modular Ruby webserver interface
-
-Rack provides a 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.
-
-The exact details of this are described in the Rack specification,
-which all Rack applications should conform to.
-
-== Supported web servers
-
-The included *handlers* connect all kinds of web servers to Rack:
-* Mongrel
-* EventedMongrel
-* SwiftipliedMongrel
-* WEBrick
-* FCGI
-* CGI
-* SCGI
-* LiteSpeed
-* Thin
-
-These web servers include Rack handlers in their distributions:
-* Ebb
-* Fuzed
-* Phusion Passenger (which is mod_rack for Apache)
-
-Any valid Rack app will run the same on all these handlers, without
-changing anything.
-
-== Supported web frameworks
-
-The included *adapters* connect Rack with existing Ruby web frameworks:
-* Camping
-
-These frameworks include Rack adapters in their distributions:
-* Coset
-* Halcyon
-* Mack
-* Maveric
-* Merb
-* Racktools::SimpleApplication
-* Ramaze
-* Ruby on Rails
-* Sinatra
-* Sin
-* Vintage
-* Waves
-
-Current links to these projects can be found at
-http://ramaze.net/#other-frameworks
-
-== Available middleware
-
-Between the server and the framework, Rack can be customized to your
-applications needs using middleware, for example:
-* Rack::URLMap, to route to multiple applications inside the same process.
-* Rack::CommonLogger, for creating Apache-style logfiles.
-* Rack::ShowException, for catching unhandled exceptions and
- presenting them in a nice and helpful way with clickable backtrace.
-* Rack::File, for serving static files.
-* ...many others!
-
-All these components use the same interface, which is described in
-detail in the Rack specification. These optional components can be
-used in any way you wish.
-
-== Convenience
-
-If you want to develop outside of existing frameworks, implement your
-own ones, or develop middleware, Rack provides many helpers to create
-Rack applications quickly and without doing the same web stuff all
-over:
-* Rack::Request, which also provides query string parsing and
- multipart handling.
-* Rack::Response, for convenient generation of HTTP replies and
- cookie handling.
-* Rack::MockRequest and Rack::MockResponse for efficient and quick
- testing of Rack application without real HTTP round-trips.
-
-== rack-contrib
-
-The plethora of useful middleware created the need for a project that
-collects fresh Rack middleware. rack-contrib includes a variety of
-add-on components for Rack and it is easy to contribute new modules.
-
-* http://github.com/rack/rack-contrib
-
-== rackup
-
-rackup is a useful tool for running Rack applications, which uses the
-Rack::Builder DSL to configure middleware and build up applications
-easily.
-
-rackup automatically figures out the environment it is run in, and
-runs your application as FastCGI, CGI, or standalone with Mongrel or
-WEBrick---all from the same configuration.
-
-== Quick start
-
-Try the lobster!
-
-Either with the embedded WEBrick starter:
-
- ruby -Ilib lib/rack/lobster.rb
-
-Or with rackup:
-
- bin/rackup -Ilib example/lobster.ru
-
-By default, the lobster is found at http://localhost:9292.
-
-== Installing with RubyGems
-
-A Gem of Rack is available. You can install it with:
-
- gem install rack
-
-I also provide a local mirror of the gems (and development snapshots)
-at my site:
-
- gem install rack --source http://chneukirchen.org/releases/gems/
-
-== Running the tests
-
-Testing Rack requires the test/spec testing framework:
-
- gem install test-spec
-
-There are two rake-based test tasks:
-
- rake test tests all the fast tests (no Handlers or Adapters)
- rake fulltest runs all the tests
-
-The fast testsuite has no dependencies outside of the core Ruby
-installation and test-spec.
-
-To run the test suite completely, you need:
-
- * camping
- * mongrel
- * fcgi
- * ruby-openid
- * memcache-client
-
-The full set of tests test FCGI access with lighttpd (on port
-9203) so you will need lighttpd installed as well as the FCGI
-libraries and the fcgi gem:
-
-Download and install lighttpd:
-
- http://www.lighttpd.net/download
-
-Installing the FCGI libraries:
-
- curl -O http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
- tar xzvf fcgi-2.4.0.tar.gz
- cd fcgi-2.4.0
- ./configure --prefix=/usr/local
- make
- sudo make install
- cd ..
-
-Installing the Ruby fcgi gem:
-
- gem install fcgi
-
-Furthermore, to test Memcache sessions, you need memcached (will be
-run on port 11211) and memcache-client installed.
-
-== History
-
-* March 3rd, 2007: First public release 0.1.
-
-* May 16th, 2007: Second public release 0.2.
- * HTTP Basic authentication.
- * Cookie Sessions.
- * Static file handler.
- * Improved Rack::Request.
- * Improved Rack::Response.
- * Added Rack::ShowStatus, for better default error messages.
- * Bug fixes in the Camping adapter.
- * Removed Rails adapter, was too alpha.
-
-* February 26th, 2008: Third public release 0.3.
- * LiteSpeed handler, by Adrian Madrid.
- * SCGI handler, by Jeremy Evans.
- * Pool sessions, by blink.
- * OpenID authentication, by blink.
- * :Port and :File options for opening FastCGI sockets, by blink.
- * Last-Modified HTTP header for Rack::File, by blink.
- * Rack::Builder#use now accepts blocks, by Corey Jewett.
- (See example/protectedlobster.ru)
- * HTTP status 201 can contain a Content-Type and a body now.
- * Many bugfixes, especially related to Cookie handling.
-
-* August 21st, 2008: Fourth public release 0.4.
- * New middleware, Rack::Deflater, by Christoffer Sawicki.
- * OpenID authentication now needs ruby-openid 2.
- * New Memcache sessions, by blink.
- * Explicit EventedMongrel handler, by Joshua Peek <josh@joshpeek.com>
- * Rack::Reloader is not loaded in rackup development mode.
- * rackup can daemonize with -D.
- * Many bugfixes, especially for pool sessions, URLMap, thread safety
- and tempfile handling.
- * Improved tests.
- * Rack moved to Git.
-
-* January 6th, 2009: Fifth public release 0.9.
- * Rack is now managed by the Rack Core Team.
- * Rack::Lint is stricter and follows the HTTP RFCs more closely.
- * Added ConditionalGet middleware.
- * Added ContentLength middleware.
- * Added Deflater middleware.
- * Added Head middleware.
- * Added MethodOverride middleware.
- * Rack::Mime now provides popular MIME-types and their extension.
- * Mongrel Header now streams.
- * Added Thin handler.
- * Official support for swiftiplied Mongrel.
- * Secure cookies.
- * Made HeaderHash case-preserving.
- * Many bugfixes and small improvements.
-
-* January 9th, 2009: Sixth public release 0.9.1.
- * Fix directory traversal exploits in Rack::File and Rack::Directory.
-
-== Contact
-
-Please mail bugs, suggestions and patches to
-<mailto:rack-devel@googlegroups.com>.
-
-Mailing list archives are available at
-<http://groups.google.com/group/rack-devel>.
-
-There is a bug tracker at <http://rack.lighthouseapp.com/>.
-
-Git repository (patches rebased on master are most welcome):
-* http://github.com/rack/rack
-* http://git.vuxu.org/cgi-bin/gitweb.cgi?p=rack.git
-
-You are also welcome to join the #rack channel on irc.freenode.net.
-
-== Thanks
-
-The Rack Core Team, consisting of
-
-* Christian Neukirchen (chneukirchen)
-* James Tucker (raggi)
-* Josh Peek (josh)
-* Michael Fellinger (manveru)
-* Ryan Tomayko (rtomayko)
-* Scytrin dai Kinthra (scytrin)
-
-would like to thank:
-
-* Adrian Madrid, for the LiteSpeed handler.
-* Christoffer Sawicki, for the first Rails adapter and Rack::Deflater.
-* Tim Fletcher, for the HTTP authentication code.
-* Luc Heinrich for the Cookie sessions, the static file handler and bugfixes.
-* Armin Ronacher, for the logo and racktools.
-* Aredridel, Ben Alpert, Dan Kubb, Daniel Roethlisberger, Matt Todd,
- Tom Robinson, and Phil Hagelberg for bug fixing and other
- improvements.
-* Stephen Bannasch, for bug reports and documentation.
-* Gary Wright, for proposing a better Rack::Response interface.
-* Jonathan Buch, for improvements regarding Rack::Response.
-* Armin Röhrl, for tracking down bugs in the Cookie generator.
-* Alexander Kellett for testing the Gem and reviewing the announcement.
-* Marcus Rückert, for help with configuring and debugging lighttpd.
-* The WSGI team for the well-done and documented work they've done and
- Rack builds up on.
-* All bug reporters and patch contributers not mentioned above.
-
-== Copyright
-
-Copyright (C) 2007, 2008, 2009 Christian Neukirchen <http://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.
-
-== Links
-
-Rack:: <http://rack.rubyforge.org/>
-Rack's Rubyforge project:: <http://rubyforge.org/projects/rack>
-Official Rack repositories:: <http://github.com/rack>
-rack-devel mailing list:: <http://groups.google.com/group/rack-devel>
-
-Christian Neukirchen:: <http://chneukirchen.org/>
-
View
188 vendor/plugins/rack/Rakefile
@@ -1,188 +0,0 @@
-# Rakefile for Rack. -*-ruby-*-
-require 'rake/rdoctask'
-require 'rake/testtask'
-
-
-desc "Run all the tests"
-task :default => [:test]
-
-desc "Do predistribution stuff"
-task :predist => [:chmod, :changelog, :rdoc]
-
-
-desc "Make an archive as .tar.gz"
-task :dist => [:fulltest, :predist] do
- sh "git archive --format=tar --prefix=#{release}/ HEAD^{tree} >#{release}.tar"
- sh "pax -waf #{release}.tar -s ':^:#{release}/:' RDOX SPEC ChangeLog doc"
- sh "gzip -f -9 #{release}.tar"
-end
-
-# Helper to retrieve the "revision number" of the git tree.
-def git_tree_version
- if File.directory?(".git")
- @tree_version ||= `git describe`.strip.sub('-', '.')
- @tree_version << ".0" unless @tree_version.count('.') == 2
- else
- $: << "lib"
- require 'rack'
- @tree_version = Rack.release
- end
- @tree_version
-end
-
-def gem_version
- git_tree_version.gsub(/-.*/, '')
-end
-
-def release
- "rack-#{git_tree_version}"
-end
-
-def manifest
- `git ls-files`.split("\n")
-end
-
-
-desc "Make binaries executable"
-task :chmod do
- Dir["bin/*"].each { |binary| File.chmod(0775, binary) }
- Dir["test/cgi/test*"].each { |binary| File.chmod(0775, binary) }
-end
-
-desc "Generate a ChangeLog"
-task :changelog do
- File.open("ChangeLog", "w") { |out|
- `git log -z`.split("\0").map { |chunk|
- author = chunk[/Author: (.*)/, 1].strip
- date = chunk[/Date: (.*)/, 1].strip
- desc, detail = $'.strip.split("\n", 2)
- detail ||= ""
- detail = detail.gsub(/.*darcs-hash:.*/, '')
- detail.rstrip!
- out.puts "#{date} #{author}"
- out.puts " * #{desc.strip}"
- out.puts detail unless detail.empty?
- out.puts
- }
- }
-end
-
-
-desc "Generate RDox"
-task "RDOX" do
- sh "specrb -Ilib:test -a --rdox >RDOX"
-end
-
-desc "Generate Rack Specification"
-task "SPEC" do
- File.open("SPEC", "wb") { |file|
- IO.foreach("lib/rack/lint.rb") { |line|
- if line =~ /## (.*)/
- file.puts $1
- end
- }
- }
-end
-
-desc "Run all the fast tests"
-task :test do
- sh "specrb -Ilib:test -w #{ENV['TEST'] || '-a'} #{ENV['TESTOPTS'] || '-t "^(?!Rack::Handler|Rack::Adapter|Rack::Session::Memcache|Rack::Auth::OpenID)"'}"
-end
-
-desc "Run all the tests"
-task :fulltest => [:chmod] do
- sh "specrb -Ilib:test -w #{ENV['TEST'] || '-a'} #{ENV['TESTOPTS']}"
-end
-
-begin
- require 'rubygems'
-
- require 'rake'
- require 'rake/clean'
- require 'rake/packagetask'
- require 'rake/gempackagetask'
- require 'fileutils'
-rescue LoadError
- # Too bad.
-else
- spec = Gem::Specification.new do |s|
- s.name = "rack"
- s.version = gem_version
- s.platform = Gem::Platform::RUBY
- s.summary = "a modular Ruby webserver interface"
-
- s.description = <<-EOF
-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.
- EOF
-
- s.files = manifest + %w(SPEC RDOX)
- s.bindir = 'bin'
- s.executables << 'rackup'
- s.require_path = 'lib'
- s.has_rdoc = true
- s.extra_rdoc_files = ['README', 'SPEC', 'RDOX', 'KNOWN-ISSUES']
- s.test_files = Dir['test/{test,spec}_*.rb']
-
- s.author = 'Christian Neukirchen'