Permalink
Browse files

Reorganize ActionController folder structure

  • Loading branch information...
1 parent eb9af20 commit a0f2b1d95d3785de92ae271fd7ea23e91c0cadc6 @josh josh committed Jan 28, 2009
Showing with 976 additions and 559 deletions.
  1. +1 −0 .gitignore
  2. +47 −47 actionpack/lib/action_controller.rb
  3. +7 −495 actionpack/lib/action_controller/{ → base}/base.rb
  4. +1 −1 actionpack/lib/action_controller/{ → base/chained}/benchmarking.rb
  5. 0 actionpack/lib/action_controller/{ → base/chained}/filters.rb
  6. 0 actionpack/lib/action_controller/{ → base/chained}/flash.rb
  7. 0 actionpack/lib/action_controller/{ → base}/cookies.rb
  8. 0 actionpack/lib/action_controller/{ → base}/headers.rb
  9. 0 actionpack/lib/action_controller/{ → base}/helpers.rb
  10. 0 actionpack/lib/action_controller/{ → base}/http_authentication.rb
  11. 0 actionpack/lib/action_controller/{ → base}/layout.rb
  12. +91 −0 actionpack/lib/action_controller/base/redirect.rb
  13. +378 −0 actionpack/lib/action_controller/base/render.rb
  14. 0 actionpack/lib/action_controller/{ → base}/request_forgery_protection.rb
  15. +41 −0 actionpack/lib/action_controller/base/responder.rb
  16. 0 actionpack/lib/action_controller/{ → base}/streaming.rb
  17. 0 actionpack/lib/action_controller/{ → base}/verification.rb
  18. +3 −3 actionpack/lib/action_controller/{cgi_ext.rb → cgi/ext.rb}
  19. 0 actionpack/lib/action_controller/{cgi_ext → cgi/ext}/cookie.rb
  20. 0 actionpack/lib/action_controller/{cgi_ext → cgi/ext}/query_extension.rb
  21. 0 actionpack/lib/action_controller/{cgi_ext → cgi/ext}/stdinput.rb
  22. +0 −2 actionpack/lib/action_controller/{cgi_process.rb → cgi/process.rb}
  23. +1 −1 actionpack/lib/action_controller/{ → dispatch}/dispatcher.rb
  24. 0 actionpack/lib/action_controller/{ → dispatch}/params_parser.rb
  25. 0 actionpack/lib/action_controller/{ → dispatch/rack}/failsafe.rb
  26. +16 −0 actionpack/lib/action_controller/dispatch/rack/lock.rb
  27. 0 actionpack/lib/action_controller/{ → dispatch/rack}/middleware_stack.rb
  28. 0 actionpack/lib/action_controller/{ → dispatch/rack}/middlewares.rb
  29. 0 actionpack/lib/action_controller/{ → dispatch}/request.rb
  30. +315 −0 actionpack/lib/action_controller/dispatch/request_parser.rb
  31. +2 −2 actionpack/lib/action_controller/{ → dispatch}/rescue.rb
  32. 0 actionpack/lib/action_controller/{ → dispatch}/response.rb
  33. 0 actionpack/lib/action_controller/{ → dispatch}/rewindable_input.rb
  34. 0 actionpack/lib/action_controller/{ → dispatch}/status_codes.rb
  35. 0 actionpack/lib/action_controller/{ → dispatch}/templates/rescues/_request_and_response.erb
  36. 0 actionpack/lib/action_controller/{ → dispatch}/templates/rescues/_trace.erb
  37. 0 actionpack/lib/action_controller/{ → dispatch}/templates/rescues/diagnostics.erb
  38. 0 actionpack/lib/action_controller/{ → dispatch}/templates/rescues/layout.erb
  39. 0 actionpack/lib/action_controller/{ → dispatch}/templates/rescues/missing_template.erb
  40. 0 actionpack/lib/action_controller/{ → dispatch}/templates/rescues/routing_error.erb
  41. 0 actionpack/lib/action_controller/{ → dispatch}/templates/rescues/template_error.erb
  42. 0 actionpack/lib/action_controller/{ → dispatch}/templates/rescues/unknown_action.erb
  43. 0 actionpack/lib/action_controller/{ → dispatch}/uploaded_file.rb
  44. 0 actionpack/lib/action_controller/{ → dispatch}/url_encoded_pair_parser.rb
  45. 0 actionpack/lib/action_controller/{mime_types.rb → mime/default_types.rb}
  46. 0 actionpack/lib/action_controller/{mime_responds.rb → mime/responds.rb}
  47. +1 −1 actionpack/lib/action_controller/{mime_type.rb → mime/type.rb}
  48. +1 −1 actionpack/lib/action_controller/record_identifier.rb
  49. 0 actionpack/lib/action_controller/{ → routing/generation}/polymorphic_routes.rb
  50. 0 actionpack/lib/action_controller/{ → routing/generation}/url_rewriter.rb
  51. 0 actionpack/lib/action_controller/{ → routing}/resources.rb
  52. 0 actionpack/lib/action_controller/{session_management.rb → session/management.rb}
  53. 0 actionpack/lib/action_controller/{assertions/dom_assertions.rb → testing/assertions/dom.rb}
  54. 0 actionpack/lib/action_controller/{assertions/model_assertions.rb → testing/assertions/model.rb}
  55. 0 ...onpack/lib/action_controller/{assertions/response_assertions.rb → testing/assertions/response.rb}
  56. 0 actionpack/lib/action_controller/{assertions/routing_assertions.rb → testing/assertions/routing.rb}
  57. 0 ...onpack/lib/action_controller/{assertions/selector_assertions.rb → testing/assertions/selector.rb}
  58. 0 actionpack/lib/action_controller/{assertions/tag_assertions.rb → testing/assertions/tag.rb}
  59. 0 actionpack/lib/action_controller/{ → testing}/integration.rb
  60. 0 actionpack/lib/action_controller/{performance_test.rb → testing/performance.rb}
  61. 0 actionpack/lib/action_controller/{test_process.rb → testing/process.rb}
  62. +1 −1 actionpack/lib/action_controller/{ → testing}/test_case.rb
  63. +28 −0 actionpack/lib/action_view/render/partials.rb
  64. +1 −2 actionpack/test/abstract_unit.rb
  65. +1 −1 actionpack/test/controller/send_file_test.rb
  66. +1 −1 actionpack/test/controller/test_test.rb
  67. +38 −0 activesupport/lib/active_support/memoizable.rb
  68. +1 −1 railties/lib/dispatcher.rb
View
@@ -14,6 +14,7 @@ railties/pkg
railties/test/500.html
railties/doc/guides/html/images
railties/doc/guides/html/stylesheets
+benches
*.rbc
*.swp
*.swo
@@ -44,71 +44,71 @@ def self.load_all!
[Base, CGIHandler, CgiRequest, Request, Response, Http::Headers, UrlRewriter, UrlWriter]
end
- autoload :AbstractRequest, 'action_controller/request'
- autoload :Base, 'action_controller/base'
- autoload :Benchmarking, 'action_controller/benchmarking'
+ autoload :Base, 'action_controller/base/base'
+ autoload :Benchmarking, 'action_controller/base/chained/benchmarking'
autoload :Caching, 'action_controller/caching'
- autoload :Cookies, 'action_controller/cookies'
- autoload :Dispatcher, 'action_controller/dispatcher'
- autoload :Failsafe, 'action_controller/failsafe'
- autoload :Filters, 'action_controller/filters'
- autoload :Flash, 'action_controller/flash'
- autoload :Helpers, 'action_controller/helpers'
- autoload :HttpAuthentication, 'action_controller/http_authentication'
- autoload :Integration, 'action_controller/integration'
- autoload :IntegrationTest, 'action_controller/integration'
- autoload :Layout, 'action_controller/layout'
- autoload :MiddlewareStack, 'action_controller/middleware_stack'
- autoload :MimeResponds, 'action_controller/mime_responds'
- autoload :ParamsParser, 'action_controller/params_parser'
- autoload :PolymorphicRoutes, 'action_controller/polymorphic_routes'
+ autoload :Cookies, 'action_controller/base/cookies'
+ autoload :Dispatcher, 'action_controller/dispatch/dispatcher'
+ autoload :Failsafe, 'action_controller/dispatch/rack/failsafe'
+ autoload :Filters, 'action_controller/base/chained/filters'
+ autoload :Flash, 'action_controller/base/chained/flash'
+ autoload :Helpers, 'action_controller/base/helpers'
+ autoload :HttpAuthentication, 'action_controller/base/http_authentication'
+ autoload :Integration, 'action_controller/testing/integration'
+ autoload :IntegrationTest, 'action_controller/testing/integration'
+ autoload :Layout, 'action_controller/base/layout'
+ autoload :Lock, 'action_controller/dispatch/rack/lock'
+ autoload :MiddlewareStack, 'action_controller/dispatch/rack/middleware_stack'
+ autoload :MimeResponds, 'action_controller/mime/responds'
+ autoload :ParamsParser, 'action_controller/dispatch/params_parser'
+ autoload :PolymorphicRoutes, 'action_controller/routing/generation/polymorphic_routes'
autoload :RecordIdentifier, 'action_controller/record_identifier'
- autoload :Request, 'action_controller/request'
- autoload :RequestForgeryProtection, 'action_controller/request_forgery_protection'
- autoload :Rescue, 'action_controller/rescue'
- autoload :Resources, 'action_controller/resources'
- autoload :Response, 'action_controller/response'
- autoload :RewindableInput, 'action_controller/rewindable_input'
+ autoload :Redirector, 'action_controller/base/redirect'
+ autoload :Renderer, 'action_controller/base/render'
+ autoload :Request, 'action_controller/dispatch/request'
+ autoload :RequestForgeryProtection, 'action_controller/base/request_forgery_protection'
+ autoload :RequestParser, 'action_controller/dispatch/request_parser'
+ autoload :Rescue, 'action_controller/dispatch/rescue'
+ autoload :Resources, 'action_controller/routing/resources'
+ autoload :Responder, 'action_controller/base/responder'
+ autoload :Response, 'action_controller/dispatch/response'
+ autoload :RewindableInput, 'action_controller/dispatch/rewindable_input'
autoload :Routing, 'action_controller/routing'
- autoload :SessionManagement, 'action_controller/session_management'
- autoload :StatusCodes, 'action_controller/status_codes'
- autoload :Streaming, 'action_controller/streaming'
- autoload :TestCase, 'action_controller/test_case'
- autoload :TestProcess, 'action_controller/test_process'
+ autoload :SessionManagement, 'action_controller/session/management'
+ autoload :StatusCodes, 'action_controller/dispatch/status_codes'
+ autoload :Streaming, 'action_controller/base/streaming'
+ autoload :TestCase, 'action_controller/testing/test_case'
+ autoload :TestProcess, 'action_controller/testing/process'
autoload :Translation, 'action_controller/translation'
- autoload :UploadedFile, 'action_controller/uploaded_file'
- autoload :UploadedStringIO, 'action_controller/uploaded_file'
- autoload :UploadedTempfile, 'action_controller/uploaded_file'
- autoload :UrlEncodedPairParser, 'action_controller/url_encoded_pair_parser'
- autoload :UrlRewriter, 'action_controller/url_rewriter'
- autoload :UrlWriter, 'action_controller/url_rewriter'
- autoload :Verification, 'action_controller/verification'
+ autoload :UploadedFile, 'action_controller/dispatch/uploaded_file'
+ autoload :UploadedStringIO, 'action_controller/dispatch/uploaded_file'
+ autoload :UploadedTempfile, 'action_controller/dispatch/uploaded_file'
+ autoload :UrlEncodedPairParser, 'action_controller/dispatch/url_encoded_pair_parser'
+ autoload :UrlRewriter, 'action_controller/routing/generation/url_rewriter'
+ autoload :UrlWriter, 'action_controller/routing/generation/url_rewriter'
+ autoload :Verification, 'action_controller/base/verification'
module Assertions
- autoload :DomAssertions, 'action_controller/assertions/dom_assertions'
- autoload :ModelAssertions, 'action_controller/assertions/model_assertions'
- autoload :ResponseAssertions, 'action_controller/assertions/response_assertions'
- autoload :RoutingAssertions, 'action_controller/assertions/routing_assertions'
- autoload :SelectorAssertions, 'action_controller/assertions/selector_assertions'
- autoload :TagAssertions, 'action_controller/assertions/tag_assertions'
+ autoload :DomAssertions, 'action_controller/testing/assertions/dom'
+ autoload :ModelAssertions, 'action_controller/testing/assertions/model'
+ autoload :ResponseAssertions, 'action_controller/testing/assertions/response'
+ autoload :RoutingAssertions, 'action_controller/testing/assertions/routing'
+ autoload :SelectorAssertions, 'action_controller/testing/assertions/selector'
+ autoload :TagAssertions, 'action_controller/testing/assertions/tag'
end
module Http
- autoload :Headers, 'action_controller/headers'
+ autoload :Headers, 'action_controller/base/headers'
end
module Session
autoload :AbstractStore, 'action_controller/session/abstract_store'
autoload :CookieStore, 'action_controller/session/cookie_store'
autoload :MemCacheStore, 'action_controller/session/mem_cache_store'
end
-
- # DEPRECATE: Remove CGI support
- autoload :CgiRequest, 'action_controller/cgi_process'
- autoload :CGIHandler, 'action_controller/cgi_process'
end
-autoload :Mime, 'action_controller/mime_type'
+autoload :Mime, 'action_controller/mime/type'
autoload :HTML, 'action_controller/vendor/html-scanner'
Oops, something went wrong.

0 comments on commit a0f2b1d

Please sign in to comment.