summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2009-04-25 14:42:36 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2009-04-25 14:42:36 +0200
commit1e691962f40233900544507fc9626f890da32fb6 (patch)
tree5711437ad45036a73393c0d56b2e781810de7f5c
parent1d85138ecad0d36c83b60630e22581ae6adf5f9e (diff)
parente7b9123247af311e6f5a93e8cd838ea89e2af8cc (diff)
downloadrack-1e691962f40233900544507fc9626f890da32fb6.tar.gz
Merge commit 'FooBarWidget/master'
-rw-r--r--lib/rack/lint.rb14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/rack/lint.rb b/lib/rack/lint.rb
index d60fca1d..bf2e9787 100644
--- a/lib/rack/lint.rb
+++ b/lib/rack/lint.rb
@@ -124,25 +124,25 @@ module Rack
## standardized middleware APIs. None of these are required to
## be implemented by the server.
- ## <tt>rack.session</tt>:: A hash like interface for storing request session data
+ ## <tt>rack.session</tt>:: A hash like interface for storing request session data.
## The store must implement:
if session = env['rack.session']
- ## store(key, value) (aliased as []=)
+ ## store(key, value) (aliased as []=);
assert("session #{session.inspect} must respond to store and []=") {
session.respond_to?(:store) && session.respond_to?(:[]=)
}
- ## fetch(key, default = nil) (aliased as [])
+ ## fetch(key, default = nil) (aliased as []);
assert("session #{session.inspect} must respond to fetch and []") {
session.respond_to?(:fetch) && session.respond_to?(:[])
}
- ## delete(key)
+ ## delete(key);
assert("session #{session.inspect} must respond to delete") {
session.respond_to?(:delete)
}
- ## clear
+ ## clear;
assert("session #{session.inspect} must respond to clear") {
session.respond_to?(:clear)
}
@@ -505,7 +505,9 @@ module Rack
##
## If the Body responds to +to_path+, it must return a String
## identifying the location of a file whose contents are identical
- ## to that produced by calling +each+.
+ ## to that produced by calling +each+; this may be used by the
+ ## server as an alternative, possibly more efficient way to
+ ## transport the response.
if @body.respond_to?(:to_path)
assert("The file identified by body.to_path does not exist") {