0adbeeb0c9
* Tentatively replaced HeaderHash with SimpleHeaderHash, which does not preserve case but does handle converting Arrays to Strings in to_hash. This requires further discussion. * Moved default_charset to ActionDispatch::Response to avoid having to hop over to ActionController. Ideally, this would be a constant on AD::Response, but some tests expect to be able to change it dynamically and I didn't want to change them yet. * Completely override #initialize from Rack::Response. Previously, it was creating a HeaderHash, and then we were creating an entirely new one. There is no way to call super without incurring the overhead of creating a HeaderHash. * Override #write from Rack::Response. Its implementation tracks Content-Length, and doing so adds additional overhead that could be mooted if other middleware changes the body. It is more efficiently done at the top-level server. * Change sending_file to an instance_variable instead of header inspection. In general, if a state is important, it should be set as a property of the response not reconstructed later. * Set the Etag to @body instead of .body. AS::Cache.expand_cache_key handles Arrays fine, and it's more efficient to let it handle the body parts, since it is not forced to create a joined String. * If we detect the default cache control case, just set it, rather than setting the constituent parts and then running the normal (expensive) code to generate the string. |
||
---|---|---|
.. | ||
bin | ||
lib | ||
test | ||
CHANGELOG | ||
MIT-LICENSE | ||
README | ||
Rakefile | ||
install.rb |
README
= Active Support -- Utility classes and standard library extensions from Rails Active Support is a collection of various utility classes and standard library extensions that were found useful for Rails. All these additions have hence been collected in this bundle as way to gather all that sugar that makes Ruby sweeter. == Download The latest version of Active Support can be found at * http://rubyforge.org/project/showfiles.php?group_id=182 Documentation can be found at * http://as.rubyonrails.com == Installation The preferred method of installing Active Support is through its GEM file. You'll need to have RubyGems[http://rubygems.rubyforge.org/wiki/wiki.pl] installed for that, though. If you have it, then use: % [sudo] gem install activesupport-1.0.0.gem == License Active Support is released under the MIT license. == Support The Active Support homepage is http://www.rubyonrails.com. You can find the Active Support RubyForge page at http://rubyforge.org/projects/activesupport. And as Jim from Rake says: Feel free to submit commits or feature requests. If you send a patch, remember to update the corresponding unit tests. If fact, I prefer new feature to be submitted in the form of new unit tests. For other information, feel free to ask on the ruby-talk mailing list (which is mirrored to comp.lang.ruby) or contact mailto:david@loudthinking.com.