Jeremy Kemper
e8c4939fb3
Benchmark.ms
2008-12-09 11:17:11 -08:00
Joshua Peek
ebec9d43e2
Make integration test runner more Rack friendly and clean out old CGI cruft
2008-12-08 12:33:16 -06:00
Pratik Naik
dbbae5e00e
Merge with docrails
2008-12-07 03:27:53 +01:00
Joshua Peek
731dcd8404
Silence server backtrace in rescue templates and log files. Also remove some noise from missing template errors.
2008-12-05 11:24:28 -06:00
Joshua Peek
9c9da6c892
Boot out CGI Processor.
...
* Add ActionController::CGIHandler as a backwards compatible CGI wrapper around Rack.
* Also pull failsafe responder into ActionController::Failsafe middleware.
2008-12-04 20:39:36 -06:00
Joshua Peek
b2ad3029cd
Ensure each rack request has its own dispatcher instance
2008-12-04 11:03:16 -06:00
Joshua Peek
40e9ba1e46
Refactor SessionFixationTest and WebServiceTest with IntegrationTest so they are compatible with the Rack interface.
2008-12-04 09:43:06 -06:00
Jeremy Kemper
99f2cb4918
Merge branch 'master' of git@github.com:rails/rails
2008-12-03 10:32:30 -06:00
Jeremy Kemper
f54ae9a997
Fix failsafe response path. [ #1504 state:committed]
2008-12-03 10:23:02 -06:00
Joshua Peek
06ed8e4511
Add internal middleware stack to Dispatcher
...
config.middleware.use Rack::Cache
2008-12-01 13:49:34 -06:00
Darren Boyd
0a4a5f3129
Making the IP Spoofing check in AbstractRequest#remote_ip configurable.
...
Certain groups of web proxies do not set these values properly. Notably,
proxies for cell phones, which often do not set the remote IP information
correctly (not surprisingly, since the clients do not have an IP address).
Allowing this to be configurable makes it possible for developers to choose
to ignore this simple spoofing check, when a significant amount of their
traffic would result in false positives anyway.
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1200 state:committed]
2008-12-01 20:40:18 +01:00
Jeremy Kemper
eb5e6fe713
Simplify Request#path
2008-11-30 17:24:36 -08:00
Jeremy Kemper
4fabc9b2f3
Simplify REMOTE_ADDR parsing
2008-11-30 17:06:11 -08:00
Jeremy Kemper
93456a2ed2
Deprecated formatted_polymorphic_url
2008-11-30 17:04:24 -08:00
Jeremy Kemper
635e2ccd3e
Extract named_helper module_eval so it's easier to override
2008-11-29 19:32:13 -08:00
Joshua Peek
9fc23745f1
Reinstate "Super lazy load view paths in development mode (no indexing or caching at all). Switch layout finders to use view path api to take advantage of cache." as it killed dev mode reloading."
2008-11-28 11:18:28 -06:00
David Heinemeier Hansson
5fa0457542
Revert "Super lazy load view paths in development mode (no indexing or caching at all). Switch layout finders to use view path api to take advantage of cache." as it killed dev mode reloading.
...
This reverts commit 4d910b0333 .
2008-11-27 21:04:24 +01:00
Joshua Peek
4d910b0333
Super lazy load view paths in development mode (no indexing or caching at all). Switch layout finders to use view path api to take advantage of cache.
2008-11-26 20:54:47 -06:00
Jeremy Kemper
9d2002a12a
Merge branch 'master' of git@github.com:rails/rails
2008-11-26 18:00:25 -08:00
Jeremy Kemper
9880baa90b
Ensure Test::Unit::Assertions is available
2008-11-26 17:18:50 -08:00
David Heinemeier Hansson
40b40c4870
Added support for multiple routes files and made draw not clear the map so they can be additive
2008-11-26 15:57:36 +01:00
Jeremy Kemper
133c349b0a
Merge branch 'master' of git@github.com:rails/rails
2008-11-26 02:05:53 -08:00
Jeremy Kemper
a88094fd7a
No need to have #generate and #generate_extras per instance
2008-11-26 02:05:28 -08:00
Aaron Batalion
fef6c32afe
Added optimal formatted routes to rails, deprecating the formatted_* methods, and reducing routes creation by 50% [ #1359 state:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2008-11-26 10:52:05 +01:00
Joshua Peek
3dd3ffde06
Depend on rack 0.4.0 instead of vendoring it
2008-11-25 13:20:12 -06:00
Joshua Peek
d4754677a3
Deprecate assert_valid
2008-11-25 12:32:14 -06:00
Joshua Peek
759183c822
Ensure ActionView will be available to ActionMailer if ActionController is not loaded
2008-11-25 10:38:20 -06:00
Craig Davey
f8558798d4
Ensure all HTML:: constants are available to autoload [ #1462 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-11-25 10:05:59 -06:00
Jeremy Kemper
565fad350e
Ruby 1.9 compat: explicitly require delegate for cookie's DelegateClass
2008-11-24 12:05:17 -08:00
Geoff Garside
eac16d0ee1
Reorder the way in which map.resource routes are added to the set. This prevents the singular named route from hitting :create instead of :show.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-11-24 19:19:55 +01:00
Joshua Peek
a76351093c
helpers require dependencies
2008-11-24 12:17:07 -06:00
Joshua Peek
426a86ab1e
prefer autoloaded html scanner
2008-11-24 10:20:41 -06:00
Joshua Peek
5ffd1e0c02
Ensure integration test is load in script/console [ #1452 state:resolved]
2008-11-24 09:58:52 -06:00
Jeremy Kemper
2dd0ec48a5
Autoload HTML::Document and sanitizers
2008-11-23 19:12:00 -08:00
Jeremy Kemper
fb4bb93d43
Drop unneeded drb require
2008-11-23 18:29:38 -08:00
Joshua Peek
31ce92f7b5
Use autoload instead of explicit requires for ActionController
2008-11-23 16:35:47 -06:00
Michael Koziarski
04d2d043ca
Move the cookie store to use the MessageVerifier class.
...
This removes support for ancient cookie-store generated cookies which were double escaped.
2008-11-23 16:42:15 +01:00
Michael Koziarski
9fdb15e60f
Change the forgery token implementation to just be a simple random string.
...
This deprecates the use of :secret and :digest which were only needed when we were hashing session ids.
2008-11-23 14:28:34 +01:00
Sam Pohlenz
5ea9f2cac6
Allow helpers directory to be overridden via ActionController::Base.helpers_dir (Sam Pohlenz) [ #1424 state:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2008-11-23 13:42:53 +01:00
Jeremy Kemper
4d2ccbb364
Use a relative require for bundled rack lib
2008-11-22 22:40:32 -08:00
Joshua Peek
cc67272cba
Vendor rack 0.4.0
2008-11-22 14:33:00 -06:00
Joshua Peek
20d6fdd256
write_fragment returns content if caching is disabled [ #846 state:resolved]
2008-11-22 13:19:11 -06:00
Lance Ivy
cd1a9ed991
Add TestResponse#client_error? to check for 4xx status codes [ #851 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-11-22 13:10:12 -06:00
David Heinemeier Hansson
f42c77f927
Added ActiveSupport::BacktraceCleaner and Rails::BacktraceCleaner for cutting down on backtrace noise (inspired by the Thoughtbot Quiet Backtrace plugin) [DHH]
2008-11-22 18:06:08 +01:00
David Heinemeier Hansson
a026b4c983
Let ApplicationController stay unloaded for as long as possible
2008-11-22 13:24:37 +01:00
Jeremy Kemper
ebdbd854a9
Fix straggling references to Test::Unit::TestCase
2008-11-20 13:47:36 -08:00
Pratik Naik
dbbaccbcda
Revert "Simplify benchmarking and rescue". Need a different approach.
...
This reverts commit 3be9134d1c .
2008-11-20 04:50:34 +05:30
Pratik Naik
3be9134d1c
Simplify benchmarking and rescue
2008-11-20 04:17:48 +05:30
Pratik Naik
aeae79dc45
Remove deprecated ActionController::Base#assign_default_content_type_and_charset
2008-11-19 22:25:08 +05:30
Pratik Naik
27c03e69e9
Remove deprecated render_component. Please use the plugin from http://github.com/rails/render_component/tree/master
2008-11-19 17:48:57 +05:30