aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch
Commit message (Collapse)AuthorAgeFilesLines
* Add tld_length option when using domain :all in cookiesbrainopia2011-01-211-0/+36
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Support list of possible domains for cookiesbrainopia2011-01-211-0/+45
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Don't deprecate to_prepare.José Valim2010-12-231-5/+7
|
* Clean up callbacks should also be called on exceptions.José Valim2010-12-231-0/+14
|
* Small changes on AD::Reloader.José Valim2010-12-201-20/+5
|
* Replace AD::Callbacks.to_prepare with AD::Reloader.to_prepareJohn Firebaugh2010-12-201-59/+13
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Introduce ActionDispatch::ReloaderJohn Firebaugh2010-12-201-0/+139
| | | | | | | | | | | | Based on the implementation on the 2-3-stable branch, patches by Hongli Lai <hongli@phusion.nl>, and helpful suggestions from José Valim. Hongli Lai's patches included locking around the request cycle; this is now handled by Rack::Lock (https://github.com/rack/rack/issues/issue/87/). [#2873] Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix edge cases for domain :all option on cookie storebrainopia2010-12-161-0/+21
| | | | | | | | Dont set explicit domain for cookies if host is not a domain name [#6002 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Check if the routes object really responds to define_mount_prefix.José Valim2010-12-091-0/+18
|
* Merge remote branch 'joshk/redirect_routing'José Valim2010-12-032-0/+90
|\ | | | | | | | | | | | | | | Conflicts: actionpack/CHANGELOG actionpack/lib/action_controller/metal/mime_responds.rb Signed-off-by: José Valim <jose.valim@gmail.com>
| * Added documentation explaining the new additional supported syntaxes for the ↵Josh Kalderimis2010-11-301-0/+17
| | | | | | | | routing redirect method, a small changelog note, and two extra tests for path interpolation when using the hash option syntax.
| * The redirect routing method now allows for a hash of options which only ↵Josh Kalderimis2010-11-302-0/+73
| | | | | | | | changes the relevant parts of the url, or an object which responds to call can be supplied so common redirect rules can be easily reused. This commit includes a change where url generation from parts has been moved to AD::Http::URL as a class method.
* | Fix tests on 1.9.2.José Valim2010-11-281-5/+4
| |
* | trailing star mimes should respect the order in which mime types are defined.José Valim2010-11-281-13/+6
|/
* Dynamically generaeted helpers on collection should not clobber resources ↵José Valim2010-11-251-0/+11
| | | | url helper [#6028 state:resolved]
* process text/* if it appears in the middle ofNeeraj Singh2010-11-251-0/+20
| | | | HTTP_ACCEPT parameter
* processing image/* is an odditity because there isNeeraj Singh2010-11-251-6/+0
| | | | | | a test case which expects image/* to not to be expanded. So I am leaving image/* as it is and process only text/* and application/*
* clean up test by using unregister methodNeeraj Singh2010-11-251-2/+1
|
* unregister method implementation and testNeeraj Singh2010-11-251-0/+17
|
* port_string bought back to life as it is part of the public apiJosh Kalderimis2010-11-241-1/+9
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* :subdomain, :domain and :tld_length options can now be used in url_for, ↵Josh Kalderimis2010-11-231-3/+3
| | | | | | allowing for easy manipulation of the host during link generation. Signed-off-by: José Valim <jose.valim@gmail.com>
* sort lists before comparing themAaron Patterson2010-11-221-4/+4
|
* make test more resilient to future changes by notNeeraj Singh2010-11-221-2/+0
| | | | | | | | | | testing the count and not testing the internal value of the registered mime type. Ideally all mime type registration should be cleaned up in teardown. Signed-off-by: José Valim <jose.valim@gmail.com>
* rename star star to just one starNeeraj Singh2010-11-221-3/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* cleanup Mime::LOOKUP after registering image/gifNeeraj Singh2010-11-221-0/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* fix testNeeraj Singh2010-11-221-3/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* test for text/*, application/* and image/*Neeraj Singh2010-11-221-1/+27
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* delegating path and open to internal tempfileAaron Patterson2010-11-181-0/+12
|
* Brought the domain method in AD http url inline with subdomain where ↵Josh Kalderimis2010-11-161-0/+3
| | | | @@tld_length is used by default. Also set the default value of @@tld_length to 1.
* Make cookies hash in ActionDispatch::TestProcess indifferent access [#5761 ↵David Trasbo2010-11-071-0/+18
| | | | | | state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Add additional HTTP request methods from the following RFCs:Andrew White2010-11-021-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | * Hypertext Transfer Protocol -- HTTP/1.1 http://www.ietf.org/rfc/rfc2616.txt) * HTTP Extensions for Distributed Authoring -- WEBDAV http://www.ietf.org/rfc/rfc2518.txt * Versioning Extensions to WebDAV http://www.ietf.org/rfc/rfc3253.txt * Ordered Collections Protocol (WebDAV) http://www.ietf.org/rfc/rfc3648.txt * Web Distributed Authoring and Versioning (WebDAV) Access Control Protocol http://www.ietf.org/rfc/rfc3744.txt * Web Distributed Authoring and Versioning (WebDAV) SEARCH http://www.ietf.org/rfc/rfc5323.txt * PATCH Method for HTTP http://www.ietf.org/rfc/rfc5789.txt [#2809 state:resolved] [#5895 state:resolved]
* Don't write out secure cookies unless the request is secureAndrew White2010-10-251-0/+23
|
* Fix status initialization when custom status providedKrekoten' Marjan2010-10-181-0/+4
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Show exceptions rescues the original exceptionLes Hill and Sandro Turriate2010-10-121-0/+20
| | | | | | [#5784 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* make sure request parameters are accessible after rack throws an exception ↵Miles Egan2010-10-121-0/+12
| | | | | | parsing the query string [#3030 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* only forwarding enough methods to work. People should grab the delegate ↵Aaron Patterson2010-10-041-14/+8
| | | | tempfile if they really need to do hard work
* making sure respond_to? works properlyAaron Patterson2010-10-041-0/+15
|
* raising an argument error if tempfile is not providedAaron Patterson2010-10-041-3/+9
|
* if it walks like a duck and talks like a duck, it must be a duckAaron Patterson2010-10-041-7/+0
|
* delegate to the @tempfile instance variableAaron Patterson2010-10-041-0/+18
|
* adding tests for uploaded fileAaron Patterson2010-10-041-0/+25
|
* Ensure the proper content type is returned for static files.José Valim2010-10-041-20/+27
|
* Move ETag and ConditionalGet logic from AD::Response to the middleware stack.José Valim2010-10-031-8/+3
|
* Rely on Rack::Session stores API for more compatibility across the Ruby world.José Valim2010-10-031-12/+0
|
* removing more duplicate codeAaron Patterson2010-10-011-14/+0
|
* Allow mounting engines at '/'Piotr Sarnacki2010-09-301-16/+77
| | | | | Without that commit script_name always become '/', which results in paths like //posts/1 instead of /posts/1
* Ensure that named routes do not overwrite previously defined routes.José Valim2010-09-291-0/+18
|
* Change test to avoid warnings.Emilio Tagua2010-09-281-1/+1
|
* Initialize @trusted_proxies.Emilio Tagua2010-09-281-0/+1
|
* undef method if already defined.Emilio Tagua2010-09-281-0/+1
|