actionpack 2.2.3 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of actionpack might be problematic. Click here for more details.
- data/CHANGELOG +433 -375
- data/MIT-LICENSE +1 -1
- data/README +21 -75
- data/Rakefile +1 -1
- data/lib/action_controller.rb +80 -43
- data/lib/action_controller/assertions/model_assertions.rb +1 -0
- data/lib/action_controller/assertions/response_assertions.rb +43 -16
- data/lib/action_controller/assertions/routing_assertions.rb +1 -1
- data/lib/action_controller/assertions/selector_assertions.rb +17 -12
- data/lib/action_controller/assertions/tag_assertions.rb +1 -4
- data/lib/action_controller/base.rb +153 -82
- data/lib/action_controller/benchmarking.rb +9 -9
- data/lib/action_controller/caching.rb +9 -11
- data/lib/action_controller/caching/actions.rb +11 -18
- data/lib/action_controller/caching/fragments.rb +28 -20
- data/lib/action_controller/caching/pages.rb +13 -15
- data/lib/action_controller/caching/sweeping.rb +2 -2
- data/lib/action_controller/cgi_ext.rb +0 -1
- data/lib/action_controller/cgi_ext/cookie.rb +2 -0
- data/lib/action_controller/cgi_process.rb +54 -162
- data/lib/action_controller/cookies.rb +13 -25
- data/lib/action_controller/dispatcher.rb +43 -122
- data/lib/action_controller/failsafe.rb +52 -0
- data/lib/action_controller/flash.rb +38 -47
- data/lib/action_controller/helpers.rb +13 -9
- data/lib/action_controller/http_authentication.rb +203 -23
- data/lib/action_controller/integration.rb +126 -70
- data/lib/action_controller/layout.rb +36 -39
- data/lib/action_controller/middleware_stack.rb +119 -0
- data/lib/action_controller/middlewares.rb +13 -0
- data/lib/action_controller/mime_responds.rb +19 -4
- data/lib/action_controller/mime_type.rb +8 -0
- data/lib/action_controller/params_parser.rb +71 -0
- data/lib/action_controller/performance_test.rb +0 -1
- data/lib/action_controller/polymorphic_routes.rb +36 -30
- data/lib/action_controller/reloader.rb +14 -0
- data/lib/action_controller/request.rb +107 -499
- data/lib/action_controller/request_forgery_protection.rb +7 -39
- data/lib/action_controller/rescue.rb +55 -35
- data/lib/action_controller/resources.rb +34 -31
- data/lib/action_controller/response.rb +99 -57
- data/lib/action_controller/rewindable_input.rb +28 -0
- data/lib/action_controller/routing.rb +7 -7
- data/lib/action_controller/routing/builder.rb +4 -1
- data/lib/action_controller/routing/optimisations.rb +1 -1
- data/lib/action_controller/routing/recognition_optimisation.rb +1 -2
- data/lib/action_controller/routing/route.rb +15 -5
- data/lib/action_controller/routing/route_set.rb +82 -35
- data/lib/action_controller/routing/segments.rb +35 -0
- data/lib/action_controller/session/abstract_store.rb +181 -0
- data/lib/action_controller/session/cookie_store.rb +197 -175
- data/lib/action_controller/session/mem_cache_store.rb +36 -83
- data/lib/action_controller/session_management.rb +26 -134
- data/lib/action_controller/streaming.rb +24 -7
- data/lib/action_controller/templates/rescues/diagnostics.erb +2 -2
- data/lib/action_controller/templates/rescues/template_error.erb +2 -2
- data/lib/action_controller/test_case.rb +87 -30
- data/lib/action_controller/test_process.rb +145 -104
- data/lib/action_controller/uploaded_file.rb +44 -0
- data/lib/action_controller/url_rewriter.rb +3 -6
- data/lib/action_controller/vendor/html-scanner.rb +16 -0
- data/lib/action_controller/vendor/html-scanner/html/selector.rb +1 -1
- data/lib/action_controller/vendor/rack-1.0/rack.rb +89 -0
- data/lib/action_controller/vendor/rack-1.0/rack/adapter/camping.rb +22 -0
- data/lib/action_controller/vendor/rack-1.0/rack/auth/abstract/handler.rb +37 -0
- data/lib/action_controller/vendor/rack-1.0/rack/auth/abstract/request.rb +37 -0
- data/lib/action_controller/vendor/rack-1.0/rack/auth/basic.rb +58 -0
- data/lib/action_controller/vendor/rack-1.0/rack/auth/digest/md5.rb +124 -0
- data/lib/action_controller/vendor/rack-1.0/rack/auth/digest/nonce.rb +51 -0
- data/lib/action_controller/vendor/rack-1.0/rack/auth/digest/params.rb +55 -0
- data/lib/action_controller/vendor/rack-1.0/rack/auth/digest/request.rb +40 -0
- data/lib/action_controller/vendor/rack-1.0/rack/auth/openid.rb +480 -0
- data/lib/action_controller/vendor/rack-1.0/rack/builder.rb +63 -0
- data/lib/action_controller/vendor/rack-1.0/rack/cascade.rb +36 -0
- data/lib/action_controller/vendor/rack-1.0/rack/chunked.rb +49 -0
- data/lib/action_controller/vendor/rack-1.0/rack/commonlogger.rb +61 -0
- data/lib/action_controller/vendor/rack-1.0/rack/conditionalget.rb +45 -0
- data/lib/action_controller/vendor/rack-1.0/rack/content_length.rb +29 -0
- data/lib/action_controller/vendor/rack-1.0/rack/content_type.rb +23 -0
- data/lib/action_controller/vendor/rack-1.0/rack/deflater.rb +85 -0
- data/lib/action_controller/vendor/rack-1.0/rack/directory.rb +153 -0
- data/lib/action_controller/vendor/rack-1.0/rack/file.rb +88 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler.rb +48 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler/cgi.rb +61 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler/evented_mongrel.rb +8 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler/fastcgi.rb +89 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler/lsws.rb +55 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler/mongrel.rb +84 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler/scgi.rb +59 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler/swiftiplied_mongrel.rb +8 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler/thin.rb +18 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler/webrick.rb +67 -0
- data/lib/action_controller/vendor/rack-1.0/rack/head.rb +19 -0
- data/lib/action_controller/vendor/rack-1.0/rack/lint.rb +462 -0
- data/lib/action_controller/vendor/rack-1.0/rack/lobster.rb +65 -0
- data/lib/action_controller/vendor/rack-1.0/rack/lock.rb +16 -0
- data/lib/action_controller/vendor/rack-1.0/rack/methodoverride.rb +27 -0
- data/lib/action_controller/vendor/rack-1.0/rack/mime.rb +204 -0
- data/lib/action_controller/vendor/rack-1.0/rack/mock.rb +160 -0
- data/lib/action_controller/vendor/rack-1.0/rack/recursive.rb +57 -0
- data/lib/action_controller/vendor/rack-1.0/rack/reloader.rb +64 -0
- data/lib/action_controller/vendor/rack-1.0/rack/request.rb +241 -0
- data/lib/action_controller/vendor/rack-1.0/rack/response.rb +179 -0
- data/lib/action_controller/vendor/rack-1.0/rack/session/abstract/id.rb +142 -0
- data/lib/action_controller/vendor/rack-1.0/rack/session/cookie.rb +91 -0
- data/lib/action_controller/vendor/rack-1.0/rack/session/memcache.rb +109 -0
- data/lib/action_controller/vendor/rack-1.0/rack/session/pool.rb +100 -0
- data/lib/action_controller/vendor/rack-1.0/rack/showexceptions.rb +349 -0
- data/lib/action_controller/vendor/rack-1.0/rack/showstatus.rb +106 -0
- data/lib/action_controller/vendor/rack-1.0/rack/static.rb +38 -0
- data/lib/action_controller/vendor/rack-1.0/rack/urlmap.rb +55 -0
- data/lib/action_controller/vendor/rack-1.0/rack/utils.rb +392 -0
- data/lib/action_controller/verification.rb +1 -1
- data/lib/action_pack.rb +1 -1
- data/lib/action_pack/version.rb +2 -2
- data/lib/action_view.rb +22 -17
- data/lib/action_view/base.rb +53 -79
- data/lib/action_view/erb/util.rb +38 -0
- data/lib/action_view/helpers.rb +24 -5
- data/lib/action_view/helpers/active_record_helper.rb +2 -2
- data/lib/action_view/helpers/asset_tag_helper.rb +81 -50
- data/lib/action_view/helpers/atom_feed_helper.rb +1 -1
- data/lib/action_view/helpers/benchmark_helper.rb +26 -5
- data/lib/action_view/helpers/date_helper.rb +82 -7
- data/lib/action_view/helpers/form_helper.rb +295 -64
- data/lib/action_view/helpers/form_options_helper.rb +160 -18
- data/lib/action_view/helpers/form_tag_helper.rb +2 -2
- data/lib/action_view/helpers/number_helper.rb +31 -18
- data/lib/action_view/helpers/prototype_helper.rb +2 -12
- data/lib/action_view/helpers/sanitize_helper.rb +0 -10
- data/lib/action_view/helpers/scriptaculous_helper.rb +1 -0
- data/lib/action_view/helpers/tag_helper.rb +3 -4
- data/lib/action_view/helpers/text_helper.rb +99 -122
- data/lib/action_view/helpers/translation_helper.rb +19 -1
- data/lib/action_view/helpers/url_helper.rb +25 -2
- data/lib/action_view/inline_template.rb +1 -1
- data/lib/action_view/locale/en.yml +19 -1
- data/lib/action_view/partials.rb +46 -9
- data/lib/action_view/paths.rb +28 -84
- data/lib/action_view/reloadable_template.rb +117 -0
- data/lib/action_view/renderable.rb +28 -35
- data/lib/action_view/renderable_partial.rb +3 -4
- data/lib/action_view/template.rb +172 -31
- data/lib/action_view/template_error.rb +8 -9
- data/lib/action_view/template_handler.rb +1 -1
- data/lib/action_view/template_handlers.rb +9 -6
- data/lib/action_view/template_handlers/erb.rb +2 -39
- data/lib/action_view/template_handlers/rjs.rb +1 -0
- data/lib/action_view/test_case.rb +27 -1
- data/test/abstract_unit.rb +23 -17
- data/test/active_record_unit.rb +5 -4
- data/test/activerecord/active_record_store_test.rb +139 -106
- data/test/activerecord/render_partial_with_record_identification_test.rb +5 -21
- data/test/controller/action_pack_assertions_test.rb +25 -23
- data/test/controller/addresses_render_test.rb +3 -6
- data/test/controller/assert_select_test.rb +83 -70
- data/test/controller/base_test.rb +11 -13
- data/test/controller/benchmark_test.rb +3 -3
- data/test/controller/caching_test.rb +34 -24
- data/test/controller/capture_test.rb +3 -6
- data/test/controller/content_type_test.rb +3 -6
- data/test/controller/cookie_test.rb +31 -66
- data/test/controller/deprecation/deprecated_base_methods_test.rb +9 -11
- data/test/controller/dispatcher_test.rb +23 -28
- data/test/controller/fake_models.rb +8 -0
- data/test/controller/filters_test.rb +6 -2
- data/test/controller/flash_test.rb +2 -6
- data/test/controller/helper_test.rb +15 -1
- data/test/controller/html-scanner/document_test.rb +1 -1
- data/test/controller/html-scanner/sanitizer_test.rb +1 -1
- data/test/controller/http_basic_authentication_test.rb +88 -0
- data/test/controller/http_digest_authentication_test.rb +178 -0
- data/test/controller/integration_test.rb +56 -52
- data/test/controller/layout_test.rb +46 -44
- data/test/controller/middleware_stack_test.rb +90 -0
- data/test/controller/mime_responds_test.rb +7 -11
- data/test/controller/mime_type_test.rb +9 -0
- data/test/controller/polymorphic_routes_test.rb +235 -151
- data/test/controller/rack_test.rb +52 -81
- data/test/controller/redirect_test.rb +6 -14
- data/test/controller/render_test.rb +273 -60
- data/test/controller/request/json_params_parsing_test.rb +45 -0
- data/test/controller/request/multipart_params_parsing_test.rb +223 -0
- data/test/controller/request/query_string_parsing_test.rb +120 -0
- data/test/controller/request/url_encoded_params_parsing_test.rb +184 -0
- data/test/controller/request/xml_params_parsing_test.rb +88 -0
- data/test/controller/request_forgery_protection_test.rb +17 -98
- data/test/controller/request_test.rb +45 -530
- data/test/controller/rescue_test.rb +45 -22
- data/test/controller/resources_test.rb +112 -37
- data/test/controller/routing_test.rb +1442 -1384
- data/test/controller/selector_test.rb +3 -3
- data/test/controller/send_file_test.rb +30 -3
- data/test/controller/session/cookie_store_test.rb +169 -240
- data/test/controller/session/mem_cache_store_test.rb +94 -148
- data/test/controller/session/test_session_test.rb +58 -0
- data/test/controller/test_test.rb +32 -13
- data/test/controller/url_rewriter_test.rb +54 -4
- data/test/controller/verification_test.rb +1 -1
- data/test/controller/view_paths_test.rb +15 -15
- data/test/controller/webservice_test.rb +178 -147
- data/test/fixtures/alternate_helpers/foo_helper.rb +3 -0
- data/test/fixtures/layout_tests/alt/layouts/alt.rhtml +0 -0
- data/test/fixtures/layouts/default_html.html.erb +1 -0
- data/test/fixtures/layouts/xhr.html.erb +2 -0
- data/test/fixtures/multipart/empty +10 -0
- data/test/fixtures/multipart/hello.txt +1 -0
- data/test/fixtures/multipart/none +9 -0
- data/test/fixtures/public/500.da.html +1 -0
- data/test/fixtures/quiz/questions/_question.html.erb +1 -0
- data/test/fixtures/replies.yml +1 -1
- data/test/fixtures/test/_one.html.erb +1 -0
- data/test/fixtures/test/_two.html.erb +1 -0
- data/test/fixtures/test/dont_pick_me +1 -0
- data/test/fixtures/test/hello.builder +1 -1
- data/test/fixtures/test/hello_world.da.html.erb +1 -0
- data/test/fixtures/test/hello_world.erb~ +1 -0
- data/test/fixtures/test/hello_world.pt-BR.html.erb +1 -0
- data/test/fixtures/test/malformed/malformed.en.html.erb~ +1 -0
- data/test/fixtures/test/malformed/malformed.erb~ +1 -0
- data/test/fixtures/test/malformed/malformed.html.erb~ +1 -0
- data/test/fixtures/test/render_explicit_html_template.js.rjs +1 -0
- data/test/fixtures/test/render_implicit_html_template.js.rjs +1 -0
- data/test/fixtures/test/render_implicit_html_template_from_xhr_request.da.html.erb +1 -0
- data/test/fixtures/test/render_implicit_html_template_from_xhr_request.html.erb +1 -0
- data/test/fixtures/test/render_implicit_js_template_without_layout.js.erb +1 -0
- data/test/fixtures/test/utf8.html.erb +2 -0
- data/test/template/active_record_helper_i18n_test.rb +31 -33
- data/test/template/active_record_helper_test.rb +34 -0
- data/test/template/asset_tag_helper_test.rb +52 -14
- data/test/template/atom_feed_helper_test.rb +3 -5
- data/test/template/benchmark_helper_test.rb +50 -24
- data/test/template/compiled_templates_test.rb +177 -33
- data/test/template/date_helper_i18n_test.rb +88 -81
- data/test/template/date_helper_test.rb +427 -43
- data/test/template/form_helper_test.rb +243 -44
- data/test/template/form_options_helper_test.rb +631 -565
- data/test/template/form_tag_helper_test.rb +9 -2
- data/test/template/javascript_helper_test.rb +0 -5
- data/test/template/number_helper_i18n_test.rb +60 -48
- data/test/template/number_helper_test.rb +1 -0
- data/test/template/render_test.rb +117 -35
- data/test/template/test_test.rb +4 -6
- data/test/template/text_helper_test.rb +129 -50
- data/test/template/translation_helper_test.rb +23 -19
- data/test/template/url_helper_test.rb +35 -2
- data/test/view/test_case_test.rb +8 -0
- metadata +197 -23
- data/lib/action_controller/assertions.rb +0 -69
- data/lib/action_controller/caching/sql_cache.rb +0 -18
- data/lib/action_controller/cgi_ext/session.rb +0 -53
- data/lib/action_controller/components.rb +0 -169
- data/lib/action_controller/rack_process.rb +0 -297
- data/lib/action_controller/request_profiler.rb +0 -169
- data/lib/action_controller/session/active_record_store.rb +0 -340
- data/lib/action_controller/session/drb_server.rb +0 -32
- data/lib/action_controller/session/drb_store.rb +0 -35
- data/test/controller/cgi_test.rb +0 -269
- data/test/controller/components_test.rb +0 -156
- data/test/controller/http_authentication_test.rb +0 -54
- data/test/controller/integration_upload_test.rb +0 -43
- data/test/controller/session_fixation_test.rb +0 -89
- data/test/controller/session_management_test.rb +0 -178
- data/test/fixtures/test/hello_world.js +0 -1
@@ -5,24 +5,28 @@ class TranslationHelperTest < Test::Unit::TestCase
|
|
5
5
|
include ActionView::Helpers::TranslationHelper
|
6
6
|
|
7
7
|
attr_reader :request
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
8
|
+
def setup
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_delegates_to_i18n_setting_the_raise_option
|
12
|
+
I18n.expects(:translate).with(:foo, :locale => 'en', :raise => true)
|
13
|
+
translate :foo, :locale => 'en'
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_returns_missing_translation_message_wrapped_into_span
|
17
|
+
expected = '<span class="translation_missing">en, foo</span>'
|
18
|
+
assert_equal expected, translate(:foo)
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_delegates_localize_to_i18n
|
22
|
+
@time = Time.utc(2008, 7, 8, 12, 18, 38)
|
23
|
+
I18n.expects(:localize).with(@time)
|
24
|
+
localize @time
|
25
|
+
end
|
21
26
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
end
|
27
|
+
def test_scoping_by_partial
|
28
|
+
expects(:template).returns(stub(:path_without_format_and_extension => "people/index"))
|
29
|
+
I18n.expects(:translate).with("people.index.foo", :locale => 'en', :raise => true)
|
30
|
+
translate ".foo", :locale => 'en'
|
27
31
|
end
|
28
|
-
end
|
32
|
+
end
|
@@ -220,7 +220,7 @@ class UrlHelperTest < ActionView::TestCase
|
|
220
220
|
end
|
221
221
|
|
222
222
|
def test_link_tag_using_post_javascript_and_popup
|
223
|
-
|
223
|
+
assert_raise(ActionView::ActionViewError) { link_to("Hello", "http://www.example.com", :popup => true, :method => :post, :confirm => "Are you serious?") }
|
224
224
|
end
|
225
225
|
|
226
226
|
def test_link_tag_using_block_in_erb
|
@@ -252,6 +252,27 @@ class UrlHelperTest < ActionView::TestCase
|
|
252
252
|
assert_equal "Showing", link_to_if(false, "Showing", :action => "show", :controller => "weblog", :id => 1)
|
253
253
|
end
|
254
254
|
|
255
|
+
def test_current_page_with_simple_url
|
256
|
+
@controller.request = RequestMock.new("http://www.example.com/weblog/show")
|
257
|
+
@controller.url = "http://www.example.com/weblog/show"
|
258
|
+
assert current_page?({ :action => "show", :controller => "weblog" })
|
259
|
+
assert current_page?("http://www.example.com/weblog/show")
|
260
|
+
end
|
261
|
+
|
262
|
+
def test_current_page_ignoring_params
|
263
|
+
@controller.request = RequestMock.new("http://www.example.com/weblog/show?order=desc&page=1")
|
264
|
+
@controller.url = "http://www.example.com/weblog/show?order=desc&page=1"
|
265
|
+
assert current_page?({ :action => "show", :controller => "weblog" })
|
266
|
+
assert current_page?("http://www.example.com/weblog/show")
|
267
|
+
end
|
268
|
+
|
269
|
+
def test_current_page_with_params_that_match
|
270
|
+
@controller.request = RequestMock.new("http://www.example.com/weblog/show?order=desc&page=1")
|
271
|
+
@controller.url = "http://www.example.com/weblog/show?order=desc&page=1"
|
272
|
+
assert current_page?({ :action => "show", :controller => "weblog", :order => "desc", :page => "1" })
|
273
|
+
assert current_page?("http://www.example.com/weblog/show?order=desc&page=1")
|
274
|
+
end
|
275
|
+
|
255
276
|
def test_link_unless_current
|
256
277
|
@controller.request = RequestMock.new("http://www.example.com/weblog/show")
|
257
278
|
@controller.url = "http://www.example.com/weblog/show"
|
@@ -263,11 +284,23 @@ class UrlHelperTest < ActionView::TestCase
|
|
263
284
|
assert_equal "Showing", link_to_unless_current("Showing", { :action => "show", :controller => "weblog" })
|
264
285
|
assert_equal "Showing", link_to_unless_current("Showing", "http://www.example.com/weblog/show")
|
265
286
|
|
287
|
+
@controller.request = RequestMock.new("http://www.example.com/weblog/show?order=desc&page=1")
|
288
|
+
@controller.url = "http://www.example.com/weblog/show?order=desc&page=1"
|
289
|
+
assert_equal "Showing", link_to_unless_current("Showing", { :action => "show", :controller => "weblog", :order=>'desc', :page=>'1' })
|
290
|
+
assert_equal "Showing", link_to_unless_current("Showing", "http://www.example.com/weblog/show?order=desc&page=1")
|
291
|
+
assert_equal "Showing", link_to_unless_current("Showing", "http://www.example.com/weblog/show?order=desc&page=1")
|
292
|
+
|
266
293
|
@controller.request = RequestMock.new("http://www.example.com/weblog/show?order=desc")
|
267
294
|
@controller.url = "http://www.example.com/weblog/show?order=asc"
|
268
295
|
assert_equal "<a href=\"http://www.example.com/weblog/show?order=asc\">Showing</a>", link_to_unless_current("Showing", { :action => "show", :controller => "weblog" })
|
269
296
|
assert_equal "<a href=\"http://www.example.com/weblog/show?order=asc\">Showing</a>", link_to_unless_current("Showing", "http://www.example.com/weblog/show?order=asc")
|
270
297
|
|
298
|
+
@controller.request = RequestMock.new("http://www.example.com/weblog/show?order=desc&page=1")
|
299
|
+
@controller.url = "http://www.example.com/weblog/show?order=desc&page=2"
|
300
|
+
assert_equal "<a href=\"http://www.example.com/weblog/show?order=desc&page=2\">Showing</a>", link_to_unless_current("Showing", { :action => "show", :controller => "weblog" })
|
301
|
+
assert_equal "<a href=\"http://www.example.com/weblog/show?order=desc&page=2\">Showing</a>", link_to_unless_current("Showing", "http://www.example.com/weblog/show?order=desc&page=2")
|
302
|
+
|
303
|
+
|
271
304
|
@controller.request = RequestMock.new("http://www.example.com/weblog/show")
|
272
305
|
@controller.url = "http://www.example.com/weblog/list"
|
273
306
|
assert_equal "<a href=\"http://www.example.com/weblog/list\">Listing</a>",
|
@@ -319,7 +352,7 @@ class UrlHelperTest < ActionView::TestCase
|
|
319
352
|
assert_dom_equal "<script type=\"text/javascript\">eval(decodeURIComponent('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%6d%65%40%64%6f%6d%61%69%6e%2e%63%6f%6d%22%3e%4d%79%20%65%6d%61%69%6c%3c%2f%61%3e%27%29%3b'))</script>", mail_to("me@domain.com", "My email", :encode => "javascript", :replace_at => "(at)", :replace_dot => "(dot)")
|
320
353
|
assert_dom_equal "<script type=\"text/javascript\">eval(decodeURIComponent('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%6d%65%40%64%6f%6d%61%69%6e%2e%63%6f%6d%22%3e%6d%65%28%61%74%29%64%6f%6d%61%69%6e%28%64%6f%74%29%63%6f%6d%3c%2f%61%3e%27%29%3b'))</script>", mail_to("me@domain.com", nil, :encode => "javascript", :replace_at => "(at)", :replace_dot => "(dot)")
|
321
354
|
end
|
322
|
-
|
355
|
+
|
323
356
|
def protect_against_forgery?
|
324
357
|
false
|
325
358
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionpack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
@@ -9,7 +9,7 @@ autorequire: action_controller
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-03-15 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - "="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 2.2
|
23
|
+
version: 2.3.2
|
24
24
|
version:
|
25
25
|
description: Eases web-request routing, handling, and response as a half-way front, half-way page controller. Implemented with specific emphasis on enabling easy unit/integration testing that doesn't require a browser.
|
26
26
|
email: david@loudthinking.com
|
@@ -37,30 +37,31 @@ files:
|
|
37
37
|
- RUNNING_UNIT_TESTS
|
38
38
|
- CHANGELOG
|
39
39
|
- MIT-LICENSE
|
40
|
+
- lib/action_controller
|
41
|
+
- lib/action_controller/assertions
|
40
42
|
- lib/action_controller/assertions/dom_assertions.rb
|
41
43
|
- lib/action_controller/assertions/model_assertions.rb
|
42
44
|
- lib/action_controller/assertions/response_assertions.rb
|
43
45
|
- lib/action_controller/assertions/routing_assertions.rb
|
44
46
|
- lib/action_controller/assertions/selector_assertions.rb
|
45
47
|
- lib/action_controller/assertions/tag_assertions.rb
|
46
|
-
- lib/action_controller/assertions.rb
|
47
48
|
- lib/action_controller/base.rb
|
48
49
|
- lib/action_controller/benchmarking.rb
|
50
|
+
- lib/action_controller/caching
|
49
51
|
- lib/action_controller/caching/actions.rb
|
50
52
|
- lib/action_controller/caching/fragments.rb
|
51
53
|
- lib/action_controller/caching/pages.rb
|
52
|
-
- lib/action_controller/caching/sql_cache.rb
|
53
54
|
- lib/action_controller/caching/sweeping.rb
|
54
55
|
- lib/action_controller/caching.rb
|
56
|
+
- lib/action_controller/cgi_ext
|
55
57
|
- lib/action_controller/cgi_ext/cookie.rb
|
56
58
|
- lib/action_controller/cgi_ext/query_extension.rb
|
57
|
-
- lib/action_controller/cgi_ext/session.rb
|
58
59
|
- lib/action_controller/cgi_ext/stdinput.rb
|
59
60
|
- lib/action_controller/cgi_ext.rb
|
60
61
|
- lib/action_controller/cgi_process.rb
|
61
|
-
- lib/action_controller/components.rb
|
62
62
|
- lib/action_controller/cookies.rb
|
63
63
|
- lib/action_controller/dispatcher.rb
|
64
|
+
- lib/action_controller/failsafe.rb
|
64
65
|
- lib/action_controller/filters.rb
|
65
66
|
- lib/action_controller/flash.rb
|
66
67
|
- lib/action_controller/headers.rb
|
@@ -68,19 +69,23 @@ files:
|
|
68
69
|
- lib/action_controller/http_authentication.rb
|
69
70
|
- lib/action_controller/integration.rb
|
70
71
|
- lib/action_controller/layout.rb
|
72
|
+
- lib/action_controller/middleware_stack.rb
|
73
|
+
- lib/action_controller/middlewares.rb
|
71
74
|
- lib/action_controller/mime_responds.rb
|
72
75
|
- lib/action_controller/mime_type.rb
|
73
76
|
- lib/action_controller/mime_types.rb
|
77
|
+
- lib/action_controller/params_parser.rb
|
74
78
|
- lib/action_controller/performance_test.rb
|
75
79
|
- lib/action_controller/polymorphic_routes.rb
|
76
|
-
- lib/action_controller/rack_process.rb
|
77
80
|
- lib/action_controller/record_identifier.rb
|
81
|
+
- lib/action_controller/reloader.rb
|
78
82
|
- lib/action_controller/request.rb
|
79
83
|
- lib/action_controller/request_forgery_protection.rb
|
80
|
-
- lib/action_controller/request_profiler.rb
|
81
84
|
- lib/action_controller/rescue.rb
|
82
85
|
- lib/action_controller/resources.rb
|
83
86
|
- lib/action_controller/response.rb
|
87
|
+
- lib/action_controller/rewindable_input.rb
|
88
|
+
- lib/action_controller/routing
|
84
89
|
- lib/action_controller/routing/builder.rb
|
85
90
|
- lib/action_controller/routing/optimisations.rb
|
86
91
|
- lib/action_controller/routing/recognition_optimisation.rb
|
@@ -89,14 +94,15 @@ files:
|
|
89
94
|
- lib/action_controller/routing/routing_ext.rb
|
90
95
|
- lib/action_controller/routing/segments.rb
|
91
96
|
- lib/action_controller/routing.rb
|
92
|
-
- lib/action_controller/session
|
97
|
+
- lib/action_controller/session
|
98
|
+
- lib/action_controller/session/abstract_store.rb
|
93
99
|
- lib/action_controller/session/cookie_store.rb
|
94
|
-
- lib/action_controller/session/drb_server.rb
|
95
|
-
- lib/action_controller/session/drb_store.rb
|
96
100
|
- lib/action_controller/session/mem_cache_store.rb
|
97
101
|
- lib/action_controller/session_management.rb
|
98
102
|
- lib/action_controller/status_codes.rb
|
99
103
|
- lib/action_controller/streaming.rb
|
104
|
+
- lib/action_controller/templates
|
105
|
+
- lib/action_controller/templates/rescues
|
100
106
|
- lib/action_controller/templates/rescues/_request_and_response.erb
|
101
107
|
- lib/action_controller/templates/rescues/_trace.erb
|
102
108
|
- lib/action_controller/templates/rescues/diagnostics.erb
|
@@ -108,18 +114,87 @@ files:
|
|
108
114
|
- lib/action_controller/test_case.rb
|
109
115
|
- lib/action_controller/test_process.rb
|
110
116
|
- lib/action_controller/translation.rb
|
117
|
+
- lib/action_controller/uploaded_file.rb
|
111
118
|
- lib/action_controller/url_rewriter.rb
|
119
|
+
- lib/action_controller/vendor
|
120
|
+
- lib/action_controller/vendor/html-scanner
|
121
|
+
- lib/action_controller/vendor/html-scanner/html
|
112
122
|
- lib/action_controller/vendor/html-scanner/html/document.rb
|
113
123
|
- lib/action_controller/vendor/html-scanner/html/node.rb
|
114
124
|
- lib/action_controller/vendor/html-scanner/html/sanitizer.rb
|
115
125
|
- lib/action_controller/vendor/html-scanner/html/selector.rb
|
116
126
|
- lib/action_controller/vendor/html-scanner/html/tokenizer.rb
|
117
127
|
- lib/action_controller/vendor/html-scanner/html/version.rb
|
128
|
+
- lib/action_controller/vendor/html-scanner.rb
|
129
|
+
- lib/action_controller/vendor/rack-1.0
|
130
|
+
- lib/action_controller/vendor/rack-1.0/rack
|
131
|
+
- lib/action_controller/vendor/rack-1.0/rack/adapter
|
132
|
+
- lib/action_controller/vendor/rack-1.0/rack/adapter/camping.rb
|
133
|
+
- lib/action_controller/vendor/rack-1.0/rack/auth
|
134
|
+
- lib/action_controller/vendor/rack-1.0/rack/auth/abstract
|
135
|
+
- lib/action_controller/vendor/rack-1.0/rack/auth/abstract/handler.rb
|
136
|
+
- lib/action_controller/vendor/rack-1.0/rack/auth/abstract/request.rb
|
137
|
+
- lib/action_controller/vendor/rack-1.0/rack/auth/basic.rb
|
138
|
+
- lib/action_controller/vendor/rack-1.0/rack/auth/digest
|
139
|
+
- lib/action_controller/vendor/rack-1.0/rack/auth/digest/md5.rb
|
140
|
+
- lib/action_controller/vendor/rack-1.0/rack/auth/digest/nonce.rb
|
141
|
+
- lib/action_controller/vendor/rack-1.0/rack/auth/digest/params.rb
|
142
|
+
- lib/action_controller/vendor/rack-1.0/rack/auth/digest/request.rb
|
143
|
+
- lib/action_controller/vendor/rack-1.0/rack/auth/openid.rb
|
144
|
+
- lib/action_controller/vendor/rack-1.0/rack/builder.rb
|
145
|
+
- lib/action_controller/vendor/rack-1.0/rack/cascade.rb
|
146
|
+
- lib/action_controller/vendor/rack-1.0/rack/chunked.rb
|
147
|
+
- lib/action_controller/vendor/rack-1.0/rack/commonlogger.rb
|
148
|
+
- lib/action_controller/vendor/rack-1.0/rack/conditionalget.rb
|
149
|
+
- lib/action_controller/vendor/rack-1.0/rack/content_length.rb
|
150
|
+
- lib/action_controller/vendor/rack-1.0/rack/content_type.rb
|
151
|
+
- lib/action_controller/vendor/rack-1.0/rack/deflater.rb
|
152
|
+
- lib/action_controller/vendor/rack-1.0/rack/directory.rb
|
153
|
+
- lib/action_controller/vendor/rack-1.0/rack/file.rb
|
154
|
+
- lib/action_controller/vendor/rack-1.0/rack/handler
|
155
|
+
- lib/action_controller/vendor/rack-1.0/rack/handler/cgi.rb
|
156
|
+
- lib/action_controller/vendor/rack-1.0/rack/handler/evented_mongrel.rb
|
157
|
+
- lib/action_controller/vendor/rack-1.0/rack/handler/fastcgi.rb
|
158
|
+
- lib/action_controller/vendor/rack-1.0/rack/handler/lsws.rb
|
159
|
+
- lib/action_controller/vendor/rack-1.0/rack/handler/mongrel.rb
|
160
|
+
- lib/action_controller/vendor/rack-1.0/rack/handler/scgi.rb
|
161
|
+
- lib/action_controller/vendor/rack-1.0/rack/handler/swiftiplied_mongrel.rb
|
162
|
+
- lib/action_controller/vendor/rack-1.0/rack/handler/thin.rb
|
163
|
+
- lib/action_controller/vendor/rack-1.0/rack/handler/webrick.rb
|
164
|
+
- lib/action_controller/vendor/rack-1.0/rack/handler.rb
|
165
|
+
- lib/action_controller/vendor/rack-1.0/rack/head.rb
|
166
|
+
- lib/action_controller/vendor/rack-1.0/rack/lint.rb
|
167
|
+
- lib/action_controller/vendor/rack-1.0/rack/lobster.rb
|
168
|
+
- lib/action_controller/vendor/rack-1.0/rack/lock.rb
|
169
|
+
- lib/action_controller/vendor/rack-1.0/rack/methodoverride.rb
|
170
|
+
- lib/action_controller/vendor/rack-1.0/rack/mime.rb
|
171
|
+
- lib/action_controller/vendor/rack-1.0/rack/mock.rb
|
172
|
+
- lib/action_controller/vendor/rack-1.0/rack/recursive.rb
|
173
|
+
- lib/action_controller/vendor/rack-1.0/rack/reloader.rb
|
174
|
+
- lib/action_controller/vendor/rack-1.0/rack/request.rb
|
175
|
+
- lib/action_controller/vendor/rack-1.0/rack/response.rb
|
176
|
+
- lib/action_controller/vendor/rack-1.0/rack/session
|
177
|
+
- lib/action_controller/vendor/rack-1.0/rack/session/abstract
|
178
|
+
- lib/action_controller/vendor/rack-1.0/rack/session/abstract/id.rb
|
179
|
+
- lib/action_controller/vendor/rack-1.0/rack/session/cookie.rb
|
180
|
+
- lib/action_controller/vendor/rack-1.0/rack/session/memcache.rb
|
181
|
+
- lib/action_controller/vendor/rack-1.0/rack/session/pool.rb
|
182
|
+
- lib/action_controller/vendor/rack-1.0/rack/showexceptions.rb
|
183
|
+
- lib/action_controller/vendor/rack-1.0/rack/showstatus.rb
|
184
|
+
- lib/action_controller/vendor/rack-1.0/rack/static.rb
|
185
|
+
- lib/action_controller/vendor/rack-1.0/rack/urlmap.rb
|
186
|
+
- lib/action_controller/vendor/rack-1.0/rack/utils.rb
|
187
|
+
- lib/action_controller/vendor/rack-1.0/rack.rb
|
118
188
|
- lib/action_controller/verification.rb
|
119
189
|
- lib/action_controller.rb
|
190
|
+
- lib/action_pack
|
120
191
|
- lib/action_pack/version.rb
|
121
192
|
- lib/action_pack.rb
|
193
|
+
- lib/action_view
|
122
194
|
- lib/action_view/base.rb
|
195
|
+
- lib/action_view/erb
|
196
|
+
- lib/action_view/erb/util.rb
|
197
|
+
- lib/action_view/helpers
|
123
198
|
- lib/action_view/helpers/active_record_helper.rb
|
124
199
|
- lib/action_view/helpers/asset_tag_helper.rb
|
125
200
|
- lib/action_view/helpers/atom_feed_helper.rb
|
@@ -144,14 +219,17 @@ files:
|
|
144
219
|
- lib/action_view/helpers/url_helper.rb
|
145
220
|
- lib/action_view/helpers.rb
|
146
221
|
- lib/action_view/inline_template.rb
|
222
|
+
- lib/action_view/locale
|
147
223
|
- lib/action_view/locale/en.yml
|
148
224
|
- lib/action_view/partials.rb
|
149
225
|
- lib/action_view/paths.rb
|
226
|
+
- lib/action_view/reloadable_template.rb
|
150
227
|
- lib/action_view/renderable.rb
|
151
228
|
- lib/action_view/renderable_partial.rb
|
152
229
|
- lib/action_view/template.rb
|
153
230
|
- lib/action_view/template_error.rb
|
154
231
|
- lib/action_view/template_handler.rb
|
232
|
+
- lib/action_view/template_handlers
|
155
233
|
- lib/action_view/template_handlers/builder.rb
|
156
234
|
- lib/action_view/template_handlers/erb.rb
|
157
235
|
- lib/action_view/template_handlers/rjs.rb
|
@@ -161,9 +239,11 @@ files:
|
|
161
239
|
- lib/actionpack.rb
|
162
240
|
- test/abstract_unit.rb
|
163
241
|
- test/active_record_unit.rb
|
242
|
+
- test/activerecord
|
164
243
|
- test/activerecord/active_record_store_test.rb
|
165
244
|
- test/activerecord/render_partial_with_record_identification_test.rb
|
166
245
|
- test/adv_attr_test.rb
|
246
|
+
- test/controller
|
167
247
|
- test/controller/action_pack_assertions_test.rb
|
168
248
|
- test/controller/addresses_render_test.rb
|
169
249
|
- test/controller/assert_select_test.rb
|
@@ -171,13 +251,20 @@ files:
|
|
171
251
|
- test/controller/benchmark_test.rb
|
172
252
|
- test/controller/caching_test.rb
|
173
253
|
- test/controller/capture_test.rb
|
174
|
-
- test/controller/cgi_test.rb
|
175
|
-
- test/controller/components_test.rb
|
176
254
|
- test/controller/content_type_test.rb
|
255
|
+
- test/controller/controller_fixtures
|
256
|
+
- test/controller/controller_fixtures/app
|
257
|
+
- test/controller/controller_fixtures/app/controllers
|
258
|
+
- test/controller/controller_fixtures/app/controllers/admin
|
177
259
|
- test/controller/controller_fixtures/app/controllers/admin/user_controller.rb
|
178
260
|
- test/controller/controller_fixtures/app/controllers/user_controller.rb
|
261
|
+
- test/controller/controller_fixtures/vendor
|
262
|
+
- test/controller/controller_fixtures/vendor/plugins
|
263
|
+
- test/controller/controller_fixtures/vendor/plugins/bad_plugin
|
264
|
+
- test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib
|
179
265
|
- test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb
|
180
266
|
- test/controller/cookie_test.rb
|
267
|
+
- test/controller/deprecation
|
181
268
|
- test/controller/deprecation/deprecated_base_methods_test.rb
|
182
269
|
- test/controller/dispatcher_test.rb
|
183
270
|
- test/controller/fake_controllers.rb
|
@@ -187,6 +274,7 @@ files:
|
|
187
274
|
- test/controller/flash_test.rb
|
188
275
|
- test/controller/header_test.rb
|
189
276
|
- test/controller/helper_test.rb
|
277
|
+
- test/controller/html-scanner
|
190
278
|
- test/controller/html-scanner/cdata_node_test.rb
|
191
279
|
- test/controller/html-scanner/document_test.rb
|
192
280
|
- test/controller/html-scanner/node_test.rb
|
@@ -194,11 +282,12 @@ files:
|
|
194
282
|
- test/controller/html-scanner/tag_node_test.rb
|
195
283
|
- test/controller/html-scanner/text_node_test.rb
|
196
284
|
- test/controller/html-scanner/tokenizer_test.rb
|
197
|
-
- test/controller/
|
285
|
+
- test/controller/http_basic_authentication_test.rb
|
286
|
+
- test/controller/http_digest_authentication_test.rb
|
198
287
|
- test/controller/integration_test.rb
|
199
|
-
- test/controller/integration_upload_test.rb
|
200
288
|
- test/controller/layout_test.rb
|
201
289
|
- test/controller/logging_test.rb
|
290
|
+
- test/controller/middleware_stack_test.rb
|
202
291
|
- test/controller/mime_responds_test.rb
|
203
292
|
- test/controller/mime_type_test.rb
|
204
293
|
- test/controller/polymorphic_routes_test.rb
|
@@ -206,6 +295,12 @@ files:
|
|
206
295
|
- test/controller/record_identifier_test.rb
|
207
296
|
- test/controller/redirect_test.rb
|
208
297
|
- test/controller/render_test.rb
|
298
|
+
- test/controller/request
|
299
|
+
- test/controller/request/json_params_parsing_test.rb
|
300
|
+
- test/controller/request/multipart_params_parsing_test.rb
|
301
|
+
- test/controller/request/query_string_parsing_test.rb
|
302
|
+
- test/controller/request/url_encoded_params_parsing_test.rb
|
303
|
+
- test/controller/request/xml_params_parsing_test.rb
|
209
304
|
- test/controller/request_forgery_protection_test.rb
|
210
305
|
- test/controller/request_test.rb
|
211
306
|
- test/controller/rescue_test.rb
|
@@ -213,35 +308,49 @@ files:
|
|
213
308
|
- test/controller/routing_test.rb
|
214
309
|
- test/controller/selector_test.rb
|
215
310
|
- test/controller/send_file_test.rb
|
311
|
+
- test/controller/session
|
216
312
|
- test/controller/session/cookie_store_test.rb
|
217
313
|
- test/controller/session/mem_cache_store_test.rb
|
218
|
-
- test/controller/
|
219
|
-
- test/controller/session_management_test.rb
|
314
|
+
- test/controller/session/test_session_test.rb
|
220
315
|
- test/controller/test_test.rb
|
221
316
|
- test/controller/translation_test.rb
|
222
317
|
- test/controller/url_rewriter_test.rb
|
223
318
|
- test/controller/verification_test.rb
|
224
319
|
- test/controller/view_paths_test.rb
|
225
320
|
- test/controller/webservice_test.rb
|
321
|
+
- test/fixtures
|
226
322
|
- test/fixtures/_top_level_partial.html.erb
|
227
323
|
- test/fixtures/_top_level_partial_only.erb
|
324
|
+
- test/fixtures/addresses
|
228
325
|
- test/fixtures/addresses/list.erb
|
326
|
+
- test/fixtures/alternate_helpers
|
327
|
+
- test/fixtures/alternate_helpers/foo_helper.rb
|
328
|
+
- test/fixtures/bad_customers
|
229
329
|
- test/fixtures/bad_customers/_bad_customer.html.erb
|
230
330
|
- test/fixtures/companies.yml
|
231
331
|
- test/fixtures/company.rb
|
332
|
+
- test/fixtures/content_type
|
232
333
|
- test/fixtures/content_type/render_default_content_types_for_respond_to.rhtml
|
233
334
|
- test/fixtures/content_type/render_default_for_rhtml.rhtml
|
234
335
|
- test/fixtures/content_type/render_default_for_rjs.rjs
|
235
336
|
- test/fixtures/content_type/render_default_for_rxml.rxml
|
337
|
+
- test/fixtures/customers
|
236
338
|
- test/fixtures/customers/_customer.html.erb
|
339
|
+
- test/fixtures/db_definitions
|
237
340
|
- test/fixtures/db_definitions/sqlite.sql
|
238
341
|
- test/fixtures/developer.rb
|
342
|
+
- test/fixtures/developers
|
239
343
|
- test/fixtures/developers/_developer.erb
|
240
344
|
- test/fixtures/developers.yml
|
241
345
|
- test/fixtures/developers_projects.yml
|
346
|
+
- test/fixtures/fun
|
347
|
+
- test/fixtures/fun/games
|
242
348
|
- test/fixtures/fun/games/_game.erb
|
243
349
|
- test/fixtures/fun/games/hello_world.erb
|
350
|
+
- test/fixtures/fun/serious
|
351
|
+
- test/fixtures/fun/serious/games
|
244
352
|
- test/fixtures/fun/serious/games/_game.erb
|
353
|
+
- test/fixtures/functional_caching
|
245
354
|
- test/fixtures/functional_caching/_partial.erb
|
246
355
|
- test/fixtures/functional_caching/formatted_fragment_cached.html.erb
|
247
356
|
- test/fixtures/functional_caching/formatted_fragment_cached.js.rjs
|
@@ -250,70 +359,113 @@ files:
|
|
250
359
|
- test/fixtures/functional_caching/html_fragment_cached_with_partial.html.erb
|
251
360
|
- test/fixtures/functional_caching/inline_fragment_cached.html.erb
|
252
361
|
- test/fixtures/functional_caching/js_fragment_cached_with_partial.js.rjs
|
362
|
+
- test/fixtures/good_customers
|
253
363
|
- test/fixtures/good_customers/_good_customer.html.erb
|
364
|
+
- test/fixtures/helpers
|
254
365
|
- test/fixtures/helpers/abc_helper.rb
|
366
|
+
- test/fixtures/helpers/fun
|
255
367
|
- test/fixtures/helpers/fun/games_helper.rb
|
256
368
|
- test/fixtures/helpers/fun/pdf_helper.rb
|
369
|
+
- test/fixtures/layout_tests
|
370
|
+
- test/fixtures/layout_tests/alt
|
257
371
|
- test/fixtures/layout_tests/alt/hello.rhtml
|
372
|
+
- test/fixtures/layout_tests/alt/layouts
|
373
|
+
- test/fixtures/layout_tests/alt/layouts/alt.rhtml
|
374
|
+
- test/fixtures/layout_tests/layouts
|
375
|
+
- test/fixtures/layout_tests/layouts/controller_name_space
|
258
376
|
- test/fixtures/layout_tests/layouts/controller_name_space/nested.rhtml
|
259
377
|
- test/fixtures/layout_tests/layouts/item.rhtml
|
260
378
|
- test/fixtures/layout_tests/layouts/layout_test.rhtml
|
261
379
|
- test/fixtures/layout_tests/layouts/multiple_extensions.html.erb
|
380
|
+
- test/fixtures/layout_tests/layouts/symlinked
|
262
381
|
- test/fixtures/layout_tests/layouts/third_party_template_library.mab
|
382
|
+
- test/fixtures/layout_tests/views
|
263
383
|
- test/fixtures/layout_tests/views/hello.rhtml
|
384
|
+
- test/fixtures/layouts
|
264
385
|
- test/fixtures/layouts/_column.html.erb
|
265
386
|
- test/fixtures/layouts/block_with_layout.erb
|
266
387
|
- test/fixtures/layouts/builder.builder
|
388
|
+
- test/fixtures/layouts/default_html.html.erb
|
267
389
|
- test/fixtures/layouts/partial_with_layout.erb
|
268
390
|
- test/fixtures/layouts/standard.erb
|
269
391
|
- test/fixtures/layouts/talk_from_action.erb
|
392
|
+
- test/fixtures/layouts/xhr.html.erb
|
270
393
|
- test/fixtures/layouts/yield.erb
|
271
394
|
- test/fixtures/mascot.rb
|
395
|
+
- test/fixtures/mascots
|
272
396
|
- test/fixtures/mascots/_mascot.html.erb
|
273
397
|
- test/fixtures/mascots.yml
|
398
|
+
- test/fixtures/multipart
|
274
399
|
- test/fixtures/multipart/binary_file
|
275
400
|
- test/fixtures/multipart/boundary_problem_file
|
276
401
|
- test/fixtures/multipart/bracketed_param
|
402
|
+
- test/fixtures/multipart/empty
|
403
|
+
- test/fixtures/multipart/hello.txt
|
277
404
|
- test/fixtures/multipart/large_text_file
|
278
405
|
- test/fixtures/multipart/mixed_files
|
279
406
|
- test/fixtures/multipart/mona_lisa.jpg
|
407
|
+
- test/fixtures/multipart/none
|
280
408
|
- test/fixtures/multipart/single_parameter
|
281
409
|
- test/fixtures/multipart/text_file
|
410
|
+
- test/fixtures/override
|
411
|
+
- test/fixtures/override/test
|
282
412
|
- test/fixtures/override/test/hello_world.erb
|
413
|
+
- test/fixtures/override2
|
414
|
+
- test/fixtures/override2/layouts
|
415
|
+
- test/fixtures/override2/layouts/test
|
283
416
|
- test/fixtures/override2/layouts/test/sub.erb
|
417
|
+
- test/fixtures/post_test
|
418
|
+
- test/fixtures/post_test/layouts
|
284
419
|
- test/fixtures/post_test/layouts/post.html.erb
|
285
420
|
- test/fixtures/post_test/layouts/super_post.iphone.erb
|
421
|
+
- test/fixtures/post_test/post
|
286
422
|
- test/fixtures/post_test/post/index.html.erb
|
287
423
|
- test/fixtures/post_test/post/index.iphone.erb
|
424
|
+
- test/fixtures/post_test/super_post
|
288
425
|
- test/fixtures/post_test/super_post/index.html.erb
|
289
426
|
- test/fixtures/post_test/super_post/index.iphone.erb
|
290
427
|
- test/fixtures/project.rb
|
428
|
+
- test/fixtures/projects
|
291
429
|
- test/fixtures/projects/_project.erb
|
292
430
|
- test/fixtures/projects.yml
|
431
|
+
- test/fixtures/public
|
293
432
|
- test/fixtures/public/404.html
|
433
|
+
- test/fixtures/public/500.da.html
|
294
434
|
- test/fixtures/public/500.html
|
435
|
+
- test/fixtures/public/images
|
295
436
|
- test/fixtures/public/images/rails.png
|
437
|
+
- test/fixtures/public/javascripts
|
296
438
|
- test/fixtures/public/javascripts/application.js
|
297
439
|
- test/fixtures/public/javascripts/bank.js
|
440
|
+
- test/fixtures/public/javascripts/cache
|
298
441
|
- test/fixtures/public/javascripts/controls.js
|
299
442
|
- test/fixtures/public/javascripts/dragdrop.js
|
300
443
|
- test/fixtures/public/javascripts/effects.js
|
301
444
|
- test/fixtures/public/javascripts/prototype.js
|
302
445
|
- test/fixtures/public/javascripts/robber.js
|
446
|
+
- test/fixtures/public/javascripts/subdir
|
303
447
|
- test/fixtures/public/javascripts/subdir/subdir.js
|
304
448
|
- test/fixtures/public/javascripts/version.1.0.js
|
449
|
+
- test/fixtures/public/stylesheets
|
305
450
|
- test/fixtures/public/stylesheets/bank.css
|
306
451
|
- test/fixtures/public/stylesheets/robber.css
|
452
|
+
- test/fixtures/public/stylesheets/subdir
|
307
453
|
- test/fixtures/public/stylesheets/subdir/subdir.css
|
308
454
|
- test/fixtures/public/stylesheets/version.1.0.css
|
455
|
+
- test/fixtures/quiz
|
456
|
+
- test/fixtures/quiz/questions
|
457
|
+
- test/fixtures/quiz/questions/_question.html.erb
|
458
|
+
- test/fixtures/replies
|
309
459
|
- test/fixtures/replies/_reply.erb
|
310
460
|
- test/fixtures/replies.yml
|
311
461
|
- test/fixtures/reply.rb
|
462
|
+
- test/fixtures/respond_to
|
312
463
|
- test/fixtures/respond_to/all_types_with_layout.html.erb
|
313
464
|
- test/fixtures/respond_to/all_types_with_layout.js.rjs
|
314
465
|
- test/fixtures/respond_to/custom_constant_handling_without_block.mobile.erb
|
315
466
|
- test/fixtures/respond_to/iphone_with_html_response_type.html.erb
|
316
467
|
- test/fixtures/respond_to/iphone_with_html_response_type.iphone.erb
|
468
|
+
- test/fixtures/respond_to/layouts
|
317
469
|
- test/fixtures/respond_to/layouts/missing.html.erb
|
318
470
|
- test/fixtures/respond_to/layouts/standard.html.erb
|
319
471
|
- test/fixtures/respond_to/layouts/standard.iphone.erb
|
@@ -323,9 +475,13 @@ files:
|
|
323
475
|
- test/fixtures/respond_to/using_defaults_with_type_list.html.erb
|
324
476
|
- test/fixtures/respond_to/using_defaults_with_type_list.js.rjs
|
325
477
|
- test/fixtures/respond_to/using_defaults_with_type_list.xml.builder
|
478
|
+
- test/fixtures/scope
|
479
|
+
- test/fixtures/scope/test
|
326
480
|
- test/fixtures/scope/test/modgreet.erb
|
327
481
|
- test/fixtures/shared.html.erb
|
482
|
+
- test/fixtures/symlink_parent
|
328
483
|
- test/fixtures/symlink_parent/symlinked_layout.erb
|
484
|
+
- test/fixtures/test
|
329
485
|
- test/fixtures/test/_counter.html.erb
|
330
486
|
- test/fixtures/test/_customer.erb
|
331
487
|
- test/fixtures/test/_customer_counter.erb
|
@@ -339,6 +495,7 @@ files:
|
|
339
495
|
- test/fixtures/test/_layout_for_block_with_args.html.erb
|
340
496
|
- test/fixtures/test/_layout_for_partial.html.erb
|
341
497
|
- test/fixtures/test/_local_inspector.html.erb
|
498
|
+
- test/fixtures/test/_one.html.erb
|
342
499
|
- test/fixtures/test/_partial.erb
|
343
500
|
- test/fixtures/test/_partial.html.erb
|
344
501
|
- test/fixtures/test/_partial.js.erb
|
@@ -347,6 +504,7 @@ files:
|
|
347
504
|
- test/fixtures/test/_partial_with_only_html_version.html.erb
|
348
505
|
- test/fixtures/test/_person.erb
|
349
506
|
- test/fixtures/test/_raise.html.erb
|
507
|
+
- test/fixtures/test/_two.html.erb
|
350
508
|
- test/fixtures/test/action_talk_to_layout.erb
|
351
509
|
- test/fixtures/test/calling_partial_with_layout.html.erb
|
352
510
|
- test/fixtures/test/capturing.erb
|
@@ -354,6 +512,8 @@ files:
|
|
354
512
|
- test/fixtures/test/content_for_concatenated.erb
|
355
513
|
- test/fixtures/test/content_for_with_parameter.erb
|
356
514
|
- test/fixtures/test/delete_with_js.rjs
|
515
|
+
- test/fixtures/test/dont_pick_me
|
516
|
+
- test/fixtures/test/dot.directory
|
357
517
|
- test/fixtures/test/dot.directory/render_file_with_ivar.erb
|
358
518
|
- test/fixtures/test/enum_rjs_test.rjs
|
359
519
|
- test/fixtures/test/formatted_html_erb.html.erb
|
@@ -363,8 +523,10 @@ files:
|
|
363
523
|
- test/fixtures/test/greeting.erb
|
364
524
|
- test/fixtures/test/greeting.js.rjs
|
365
525
|
- test/fixtures/test/hello.builder
|
526
|
+
- test/fixtures/test/hello_world.da.html.erb
|
366
527
|
- test/fixtures/test/hello_world.erb
|
367
|
-
- test/fixtures/test/hello_world.
|
528
|
+
- test/fixtures/test/hello_world.erb~
|
529
|
+
- test/fixtures/test/hello_world.pt-BR.html.erb
|
368
530
|
- test/fixtures/test/hello_world_container.builder
|
369
531
|
- test/fixtures/test/hello_world_from_rxml.builder
|
370
532
|
- test/fixtures/test/hello_world_with_layout_false.erb
|
@@ -372,21 +534,33 @@ files:
|
|
372
534
|
- test/fixtures/test/hyphen-ated.erb
|
373
535
|
- test/fixtures/test/implicit_content_type.atom.builder
|
374
536
|
- test/fixtures/test/list.erb
|
537
|
+
- test/fixtures/test/malformed
|
538
|
+
- test/fixtures/test/malformed/malformed.en.html.erb~
|
539
|
+
- test/fixtures/test/malformed/malformed.erb~
|
540
|
+
- test/fixtures/test/malformed/malformed.html.erb~
|
375
541
|
- test/fixtures/test/nested_layout.erb
|
376
542
|
- test/fixtures/test/non_erb_block_content_for.builder
|
377
543
|
- test/fixtures/test/potential_conflicts.erb
|
544
|
+
- test/fixtures/test/render_explicit_html_template.js.rjs
|
378
545
|
- test/fixtures/test/render_file_from_template.html.erb
|
379
546
|
- test/fixtures/test/render_file_with_ivar.erb
|
380
547
|
- test/fixtures/test/render_file_with_locals.erb
|
548
|
+
- test/fixtures/test/render_implicit_html_template.js.rjs
|
549
|
+
- test/fixtures/test/render_implicit_html_template_from_xhr_request.da.html.erb
|
550
|
+
- test/fixtures/test/render_implicit_html_template_from_xhr_request.html.erb
|
551
|
+
- test/fixtures/test/render_implicit_js_template_without_layout.js.erb
|
381
552
|
- test/fixtures/test/render_to_string_test.erb
|
382
553
|
- test/fixtures/test/sub_template_raise.html.erb
|
383
554
|
- test/fixtures/test/template.erb
|
384
555
|
- test/fixtures/test/update_element_with_capture.erb
|
385
556
|
- test/fixtures/test/using_layout_around_block.html.erb
|
386
557
|
- test/fixtures/test/using_layout_around_block_with_args.html.erb
|
558
|
+
- test/fixtures/test/utf8.html.erb
|
387
559
|
- test/fixtures/topic.rb
|
560
|
+
- test/fixtures/topics
|
388
561
|
- test/fixtures/topics/_topic.html.erb
|
389
562
|
- test/fixtures/topics.yml
|
563
|
+
- test/template
|
390
564
|
- test/template/active_record_helper_i18n_test.rb
|
391
565
|
- test/template/active_record_helper_test.rb
|
392
566
|
- test/template/asset_tag_helper_test.rb
|
@@ -413,10 +587,10 @@ files:
|
|
413
587
|
- test/template/translation_helper_test.rb
|
414
588
|
- test/template/url_helper_test.rb
|
415
589
|
- test/testing_sandbox.rb
|
590
|
+
- test/view
|
591
|
+
- test/view/test_case_test.rb
|
416
592
|
has_rdoc: true
|
417
593
|
homepage: http://www.rubyonrails.org
|
418
|
-
licenses: []
|
419
|
-
|
420
594
|
post_install_message:
|
421
595
|
rdoc_options: []
|
422
596
|
|
@@ -437,9 +611,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
437
611
|
requirements:
|
438
612
|
- none
|
439
613
|
rubyforge_project: actionpack
|
440
|
-
rubygems_version: 1.3.
|
614
|
+
rubygems_version: 1.3.1
|
441
615
|
signing_key:
|
442
|
-
specification_version:
|
616
|
+
specification_version: 2
|
443
617
|
summary: Web-flow and rendering framework putting the VC in MVC.
|
444
618
|
test_files: []
|
445
619
|
|