actionpack 1.13.3 → 1.13.4
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 +44 -2
- data/Rakefile +1 -1
- data/lib/action_controller/assertions/dom_assertions.rb +2 -2
- data/lib/action_controller/assertions/model_assertions.rb +1 -1
- data/lib/action_controller/assertions/response_assertions.rb +2 -0
- data/lib/action_controller/assertions/routing_assertions.rb +1 -0
- data/lib/action_controller/base.rb +7 -1
- data/lib/action_controller/caching.rb +39 -38
- data/lib/action_controller/cgi_ext/pstore_performance_fix.rb +30 -0
- data/lib/action_controller/cgi_ext/raw_post_data_fix.rb +1 -1
- data/lib/action_controller/cgi_process.rb +13 -4
- data/lib/action_controller/cookies.rb +5 -3
- data/lib/action_controller/filters.rb +176 -77
- data/lib/action_controller/integration.rb +31 -21
- data/lib/action_controller/pagination.rb +7 -1
- data/lib/action_controller/resources.rb +117 -32
- data/lib/action_controller/routing.rb +41 -1
- data/lib/action_controller/test_process.rb +5 -2
- data/lib/action_controller/url_rewriter.rb +4 -1
- data/lib/action_controller/verification.rb +1 -0
- data/lib/action_pack/version.rb +1 -1
- data/lib/action_view/base.rb +25 -19
- data/lib/action_view/compiled_templates.rb +2 -2
- data/lib/action_view/helpers/active_record_helper.rb +18 -18
- data/lib/action_view/helpers/debug_helper.rb +10 -0
- data/lib/action_view/helpers/deprecated_helper.rb +3 -0
- data/lib/action_view/helpers/prototype_helper.rb +33 -17
- data/test/activerecord/pagination_test.rb +9 -0
- data/test/controller/addresses_render_test.rb +4 -1
- data/test/controller/base_test.rb +1 -1
- data/test/controller/caching_test.rb +3 -2
- data/test/controller/cookie_test.rb +11 -0
- data/test/controller/deprecation/deprecated_base_methods_test.rb +18 -0
- data/test/controller/filter_params_test.rb +1 -0
- data/test/controller/filters_test.rb +149 -26
- data/test/controller/integration_test.rb +93 -8
- data/test/controller/resources_test.rb +215 -36
- data/test/controller/routing_test.rb +1 -1
- data/test/controller/test_test.rb +16 -0
- data/test/controller/url_rewriter_test.rb +13 -1
- data/test/controller/verification_test.rb +15 -0
- data/test/fixtures/test/hello_world.rxml +2 -1
- data/test/template/asset_tag_helper_test.rb +5 -0
- data/test/template/compiled_templates_test.rb +29 -17
- data/test/template/number_helper_test.rb +1 -1
- data/test/template/prototype_helper_test.rb +2 -2
- metadata +84 -83
@@ -265,7 +265,7 @@ class LegacyRouteSetTests < Test::Unit::TestCase
|
|
265
265
|
map.content '/content/:query', :controller => 'content', :action => 'show'
|
266
266
|
end
|
267
267
|
exception = assert_raise(ActionController::RoutingError) { rs.generate(:controller => 'content', :action => 'show', :use_route => "content") }
|
268
|
-
expected_message =
|
268
|
+
expected_message = "content_url failed to generate from #{{:action=>"show", :controller=>"content"}.inspect} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: [\"content\", :query] - are they all satisifed?"
|
269
269
|
assert_equal expected_message, exception.message
|
270
270
|
end
|
271
271
|
|
@@ -482,6 +482,22 @@ HTML
|
|
482
482
|
end
|
483
483
|
end
|
484
484
|
|
485
|
+
def test_request_uri_updates
|
486
|
+
get :test_params
|
487
|
+
uri = @request.request_uri
|
488
|
+
assert_equal @request.env['REQUEST_URI'], uri
|
489
|
+
|
490
|
+
get :test_uri
|
491
|
+
assert_not_equal uri, @request.request_uri
|
492
|
+
uri = @request.request_uri
|
493
|
+
assert_equal @request.env['REQUEST_URI'], uri
|
494
|
+
|
495
|
+
get :test_uri, :testing => true
|
496
|
+
assert_not_equal uri, @request.request_uri
|
497
|
+
uri = @request.request_uri
|
498
|
+
assert_equal @request.env['REQUEST_URI'], uri
|
499
|
+
end
|
500
|
+
|
485
501
|
protected
|
486
502
|
def with_foo_routing
|
487
503
|
with_routing do |set|
|
@@ -17,7 +17,13 @@ class UrlRewriterTests < Test::Unit::TestCase
|
|
17
17
|
assert_match %r(/hi/hi/2$), u
|
18
18
|
end
|
19
19
|
|
20
|
-
|
20
|
+
def test_anchor
|
21
|
+
assert_equal(
|
22
|
+
'http://test.host/c/a/i#anchor',
|
23
|
+
@rewriter.rewrite(:controller => 'c', :action => 'a', :id => 'i', :anchor => 'anchor')
|
24
|
+
)
|
25
|
+
end
|
26
|
+
|
21
27
|
private
|
22
28
|
def split_query_string(str)
|
23
29
|
[str[0].chr] + str[1..-1].split(/&/).sort
|
@@ -75,6 +81,12 @@ class UrlWriterTests < Test::Unit::TestCase
|
|
75
81
|
W.new.url_for(:controller => 'c', :action => 'a', :id => 'i', :protocol => 'https')
|
76
82
|
)
|
77
83
|
end
|
84
|
+
|
85
|
+
def test_anchor
|
86
|
+
assert_equal('/c/a#anchor',
|
87
|
+
W.new.url_for(:only_path => true, :controller => 'c', :action => 'a', :anchor => 'anchor')
|
88
|
+
)
|
89
|
+
end
|
78
90
|
|
79
91
|
def test_named_route
|
80
92
|
ActionController::Routing::Routes.draw do |map|
|
@@ -34,9 +34,16 @@ class VerificationTest < Test::Unit::TestCase
|
|
34
34
|
|
35
35
|
verify :only => :must_be_post, :method => :post, :render => { :status => 405, :text => "Must be post" }, :add_headers => { "Allow" => "POST" }
|
36
36
|
|
37
|
+
verify :only => :guarded_one_for_named_route_test, :params => "one",
|
38
|
+
:redirect_to => :foo_url
|
39
|
+
|
37
40
|
def guarded_one
|
38
41
|
render :text => "#{params[:one]}"
|
39
42
|
end
|
43
|
+
|
44
|
+
def guarded_one_for_named_route_test
|
45
|
+
render :text => "#{params[:one]}"
|
46
|
+
end
|
40
47
|
|
41
48
|
def guarded_with_flash
|
42
49
|
render :text => "#{params[:one]}"
|
@@ -94,6 +101,14 @@ class VerificationTest < Test::Unit::TestCase
|
|
94
101
|
@controller = TestController.new
|
95
102
|
@request = ActionController::TestRequest.new
|
96
103
|
@response = ActionController::TestResponse.new
|
104
|
+
ActionController::Routing::Routes.add_named_route :foo, '/foo', :controller => 'test', :action => 'foo'
|
105
|
+
end
|
106
|
+
|
107
|
+
def test_no_deprecation_warning_for_named_route
|
108
|
+
assert_not_deprecated do
|
109
|
+
get :guarded_one_for_named_route_test, :two => "not one"
|
110
|
+
assert_redirected_to '/foo'
|
111
|
+
end
|
97
112
|
end
|
98
113
|
|
99
114
|
def test_guarded_one_with_prereqs
|
@@ -165,7 +165,12 @@ class AssetTagHelperTest < Test::Unit::TestCase
|
|
165
165
|
|
166
166
|
def test_preset_empty_asset_id
|
167
167
|
Object.send(:const_set, :RAILS_ROOT, File.dirname(__FILE__) + "/../fixtures/")
|
168
|
+
# on windows, setting ENV["XXX"] to "" makes ENV["XXX"] return nil
|
169
|
+
if RUBY_PLATFORM =~ /win32/
|
170
|
+
ENV["RAILS_ASSET_ID"] = " "
|
171
|
+
else
|
168
172
|
ENV["RAILS_ASSET_ID"] = ""
|
173
|
+
end
|
169
174
|
assert_equal %(<img alt="Rails" src="/images/rails.png" />), image_tag("rails.png")
|
170
175
|
end
|
171
176
|
|
@@ -71,7 +71,12 @@ class CompiledTemplateTests < Test::Unit::TestCase
|
|
71
71
|
end
|
72
72
|
|
73
73
|
def test_compile_time
|
74
|
-
|
74
|
+
File.open(@a, "w"){|f| f.puts @a}
|
75
|
+
File.open(@b, "w"){|f| f.puts @b}
|
76
|
+
|
77
|
+
# windows doesn't support symlinks (even under cygwin)
|
78
|
+
windows = (RUBY_PLATFORM =~ /win32/)
|
79
|
+
`ln -s #{@a} #{@s}` unless windows
|
75
80
|
|
76
81
|
v = ActionView::Base.new
|
77
82
|
v.base_path = '.'
|
@@ -79,47 +84,54 @@ class CompiledTemplateTests < Test::Unit::TestCase
|
|
79
84
|
|
80
85
|
sleep 1
|
81
86
|
t = Time.now
|
87
|
+
sleep 1
|
88
|
+
|
82
89
|
v.compile_and_render_template(:rhtml, '', @a)
|
83
90
|
v.compile_and_render_template(:rhtml, '', @b)
|
84
|
-
v.compile_and_render_template(:rhtml, '', @s)
|
91
|
+
v.compile_and_render_template(:rhtml, '', @s) unless windows
|
92
|
+
|
85
93
|
a_n = v.method_names[@a]
|
86
94
|
b_n = v.method_names[@b]
|
87
|
-
s_n = v.method_names[@s]
|
95
|
+
s_n = v.method_names[@s] unless windows
|
96
|
+
ct_a = v.compile_time[a_n]
|
97
|
+
ct_b = v.compile_time[b_n]
|
98
|
+
ct_s = v.compile_time[s_n] unless windows
|
88
99
|
# all of the files have changed since last compile
|
89
100
|
assert v.compile_time[a_n] > t
|
90
101
|
assert v.compile_time[b_n] > t
|
91
|
-
assert v.compile_time[s_n] > t
|
102
|
+
assert v.compile_time[s_n] > t unless windows
|
92
103
|
|
93
104
|
sleep 1
|
94
|
-
t = Time.now
|
95
105
|
v.compile_and_render_template(:rhtml, '', @a)
|
96
106
|
v.compile_and_render_template(:rhtml, '', @b)
|
97
|
-
v.compile_and_render_template(:rhtml, '', @s)
|
107
|
+
v.compile_and_render_template(:rhtml, '', @s) unless windows
|
98
108
|
# none of the files have changed since last compile
|
99
|
-
|
100
|
-
|
101
|
-
|
109
|
+
# so they should not have been recmpiled
|
110
|
+
assert_equal ct_a, v.compile_time[a_n]
|
111
|
+
assert_equal ct_b, v.compile_time[b_n]
|
112
|
+
assert_equal ct_s, v.compile_time[s_n] unless windows
|
102
113
|
|
103
|
-
`rm #{@s}; ln -s #{@b} #{@s}`
|
114
|
+
`rm #{@s}; ln -s #{@b} #{@s}` unless windows
|
104
115
|
v.compile_and_render_template(:rhtml, '', @a)
|
105
116
|
v.compile_and_render_template(:rhtml, '', @b)
|
106
|
-
v.compile_and_render_template(:rhtml, '', @s)
|
117
|
+
v.compile_and_render_template(:rhtml, '', @s) unless windows
|
107
118
|
# the symlink has changed since last compile
|
108
|
-
|
109
|
-
|
110
|
-
assert v.compile_time[s_n] > t
|
119
|
+
assert_equal ct_a, v.compile_time[a_n]
|
120
|
+
assert_equal ct_b, v.compile_time[b_n]
|
121
|
+
assert v.compile_time[s_n] > t unless windows
|
111
122
|
|
112
123
|
sleep 1
|
113
|
-
|
124
|
+
FileUtils.touch @b
|
114
125
|
t = Time.now
|
126
|
+
sleep 1
|
115
127
|
v.compile_and_render_template(:rhtml, '', @a)
|
116
128
|
v.compile_and_render_template(:rhtml, '', @b)
|
117
|
-
v.compile_and_render_template(:rhtml, '', @s)
|
129
|
+
v.compile_and_render_template(:rhtml, '', @s) unless windows
|
118
130
|
# the file at the end of the symlink has changed since last compile
|
119
131
|
# both the symlink and the file at the end of it should be recompiled
|
120
132
|
assert v.compile_time[a_n] < t
|
121
133
|
assert v.compile_time[b_n] > t
|
122
|
-
assert v.compile_time[s_n] > t
|
134
|
+
assert v.compile_time[s_n] > t unless windows
|
123
135
|
end
|
124
136
|
end
|
125
137
|
|
@@ -22,7 +22,7 @@ class NumberHelperTest < Test::Unit::TestCase
|
|
22
22
|
def test_number_to_currency
|
23
23
|
assert_equal("$1,234,567,890.50", number_to_currency(1234567890.50))
|
24
24
|
assert_equal("$1,234,567,890.51", number_to_currency(1234567890.506))
|
25
|
-
assert_equal("$1,234,567,
|
25
|
+
assert_equal("$1,234,567,891", number_to_currency(1234567890.51, {:precision => 0}))
|
26
26
|
assert_equal("$1,234,567,890.5", number_to_currency(1234567890.50, {:precision => 1}))
|
27
27
|
assert_equal("£1234567890,50", number_to_currency(1234567890.50, {:unit => "£", :separator => ",", :delimiter => ""}))
|
28
28
|
assert_equal("$1,234,567,890.50", number_to_currency("1234567890.50"))
|
@@ -125,7 +125,7 @@ class PrototypeHelperTest < Test::Unit::TestCase
|
|
125
125
|
end
|
126
126
|
|
127
127
|
def test_observe_field
|
128
|
-
assert_dom_equal %(<script type=\"text/javascript\">\n//<![CDATA[\nnew Form.Element.Observer('glass', 300, function(element, value) {new Ajax.Request('http://www.example.com/reorder_if_empty', {asynchronous:true, evalScripts:true})})\n//]]>\n</script>),
|
128
|
+
assert_dom_equal %(<script type=\"text/javascript\">\n//<![CDATA[\nnew Form.Element.Observer('glass', 300, function(element, value) {new Ajax.Request('http://www.example.com/reorder_if_empty', {asynchronous:true, evalScripts:true, parameters:value})})\n//]]>\n</script>),
|
129
129
|
observe_field("glass", :frequency => 5.minutes, :url => { :action => "reorder_if_empty" })
|
130
130
|
end
|
131
131
|
|
@@ -135,7 +135,7 @@ class PrototypeHelperTest < Test::Unit::TestCase
|
|
135
135
|
end
|
136
136
|
|
137
137
|
def test_observe_form
|
138
|
-
assert_dom_equal %(<script type=\"text/javascript\">\n//<![CDATA[\nnew Form.Observer('cart', 2, function(element, value) {new Ajax.Request('http://www.example.com/cart_changed', {asynchronous:true, evalScripts:true})})\n//]]>\n</script>),
|
138
|
+
assert_dom_equal %(<script type=\"text/javascript\">\n//<![CDATA[\nnew Form.Observer('cart', 2, function(element, value) {new Ajax.Request('http://www.example.com/cart_changed', {asynchronous:true, evalScripts:true, parameters:value})})\n//]]>\n</script>),
|
139
139
|
observe_form("cart", :frequency => 2, :url => { :action => "cart_changed" })
|
140
140
|
end
|
141
141
|
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
2
|
+
rubygems_version: 0.9.4
|
3
3
|
specification_version: 1
|
4
4
|
name: actionpack
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.13.
|
7
|
-
date: 2007-
|
6
|
+
version: 1.13.4
|
7
|
+
date: 2007-10-04 00:00:00 -05:00
|
8
8
|
summary: Web-flow and rendering framework putting the VC in MVC.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -37,17 +37,25 @@ files:
|
|
37
37
|
- MIT-LICENSE
|
38
38
|
- examples/.htaccess
|
39
39
|
- lib/action_controller
|
40
|
-
- lib/action_controller.rb
|
41
|
-
- lib/action_pack
|
42
|
-
- lib/action_pack.rb
|
43
|
-
- lib/action_view
|
44
|
-
- lib/action_view.rb
|
45
40
|
- lib/action_controller/assertions
|
41
|
+
- lib/action_controller/assertions/deprecated_assertions.rb
|
42
|
+
- lib/action_controller/assertions/dom_assertions.rb
|
43
|
+
- lib/action_controller/assertions/model_assertions.rb
|
44
|
+
- lib/action_controller/assertions/response_assertions.rb
|
45
|
+
- lib/action_controller/assertions/routing_assertions.rb
|
46
|
+
- lib/action_controller/assertions/selector_assertions.rb
|
47
|
+
- lib/action_controller/assertions/tag_assertions.rb
|
46
48
|
- lib/action_controller/assertions.rb
|
47
49
|
- lib/action_controller/base.rb
|
48
50
|
- lib/action_controller/benchmarking.rb
|
49
51
|
- lib/action_controller/caching.rb
|
50
52
|
- lib/action_controller/cgi_ext
|
53
|
+
- lib/action_controller/cgi_ext/cgi_ext.rb
|
54
|
+
- lib/action_controller/cgi_ext/cgi_methods.rb
|
55
|
+
- lib/action_controller/cgi_ext/cookie_performance_fix.rb
|
56
|
+
- lib/action_controller/cgi_ext/pstore_performance_fix.rb
|
57
|
+
- lib/action_controller/cgi_ext/raw_post_data_fix.rb
|
58
|
+
- lib/action_controller/cgi_ext/session_performance_fix.rb
|
51
59
|
- lib/action_controller/cgi_process.rb
|
52
60
|
- lib/action_controller/components.rb
|
53
61
|
- lib/action_controller/cookies.rb
|
@@ -60,6 +68,8 @@ files:
|
|
60
68
|
- lib/action_controller/integration.rb
|
61
69
|
- lib/action_controller/layout.rb
|
62
70
|
- lib/action_controller/macros
|
71
|
+
- lib/action_controller/macros/auto_complete.rb
|
72
|
+
- lib/action_controller/macros/in_place_editing.rb
|
63
73
|
- lib/action_controller/mime_responds.rb
|
64
74
|
- lib/action_controller/mime_type.rb
|
65
75
|
- lib/action_controller/pagination.rb
|
@@ -70,34 +80,15 @@ files:
|
|
70
80
|
- lib/action_controller/routing.rb
|
71
81
|
- lib/action_controller/scaffolding.rb
|
72
82
|
- lib/action_controller/session
|
73
|
-
- lib/action_controller/session_management.rb
|
74
|
-
- lib/action_controller/status_codes.rb
|
75
|
-
- lib/action_controller/streaming.rb
|
76
|
-
- lib/action_controller/templates
|
77
|
-
- lib/action_controller/test_process.rb
|
78
|
-
- lib/action_controller/url_rewriter.rb
|
79
|
-
- lib/action_controller/vendor
|
80
|
-
- lib/action_controller/verification.rb
|
81
|
-
- lib/action_controller/assertions/deprecated_assertions.rb
|
82
|
-
- lib/action_controller/assertions/dom_assertions.rb
|
83
|
-
- lib/action_controller/assertions/model_assertions.rb
|
84
|
-
- lib/action_controller/assertions/response_assertions.rb
|
85
|
-
- lib/action_controller/assertions/routing_assertions.rb
|
86
|
-
- lib/action_controller/assertions/selector_assertions.rb
|
87
|
-
- lib/action_controller/assertions/tag_assertions.rb
|
88
|
-
- lib/action_controller/cgi_ext/cgi_ext.rb
|
89
|
-
- lib/action_controller/cgi_ext/cgi_methods.rb
|
90
|
-
- lib/action_controller/cgi_ext/cookie_performance_fix.rb
|
91
|
-
- lib/action_controller/cgi_ext/raw_post_data_fix.rb
|
92
|
-
- lib/action_controller/cgi_ext/session_performance_fix.rb
|
93
|
-
- lib/action_controller/macros/auto_complete.rb
|
94
|
-
- lib/action_controller/macros/in_place_editing.rb
|
95
83
|
- lib/action_controller/session/active_record_store.rb
|
96
84
|
- lib/action_controller/session/drb_server.rb
|
97
85
|
- lib/action_controller/session/drb_store.rb
|
98
86
|
- lib/action_controller/session/mem_cache_store.rb
|
87
|
+
- lib/action_controller/session_management.rb
|
88
|
+
- lib/action_controller/status_codes.rb
|
89
|
+
- lib/action_controller/streaming.rb
|
90
|
+
- lib/action_controller/templates
|
99
91
|
- lib/action_controller/templates/rescues
|
100
|
-
- lib/action_controller/templates/scaffolds
|
101
92
|
- lib/action_controller/templates/rescues/_request_and_response.rhtml
|
102
93
|
- lib/action_controller/templates/rescues/_trace.rhtml
|
103
94
|
- lib/action_controller/templates/rescues/diagnostics.rhtml
|
@@ -106,25 +97,32 @@ files:
|
|
106
97
|
- lib/action_controller/templates/rescues/routing_error.rhtml
|
107
98
|
- lib/action_controller/templates/rescues/template_error.rhtml
|
108
99
|
- lib/action_controller/templates/rescues/unknown_action.rhtml
|
100
|
+
- lib/action_controller/templates/scaffolds
|
109
101
|
- lib/action_controller/templates/scaffolds/edit.rhtml
|
110
102
|
- lib/action_controller/templates/scaffolds/layout.rhtml
|
111
103
|
- lib/action_controller/templates/scaffolds/list.rhtml
|
112
104
|
- lib/action_controller/templates/scaffolds/new.rhtml
|
113
105
|
- lib/action_controller/templates/scaffolds/show.rhtml
|
106
|
+
- lib/action_controller/test_process.rb
|
107
|
+
- lib/action_controller/url_rewriter.rb
|
108
|
+
- lib/action_controller/vendor
|
114
109
|
- lib/action_controller/vendor/html-scanner
|
115
|
-
- lib/action_controller/vendor/xml_node.rb
|
116
110
|
- lib/action_controller/vendor/html-scanner/html
|
117
111
|
- lib/action_controller/vendor/html-scanner/html/document.rb
|
118
112
|
- lib/action_controller/vendor/html-scanner/html/node.rb
|
119
113
|
- lib/action_controller/vendor/html-scanner/html/selector.rb
|
120
114
|
- lib/action_controller/vendor/html-scanner/html/tokenizer.rb
|
121
115
|
- lib/action_controller/vendor/html-scanner/html/version.rb
|
116
|
+
- lib/action_controller/vendor/xml_node.rb
|
117
|
+
- lib/action_controller/verification.rb
|
118
|
+
- lib/action_controller.rb
|
119
|
+
- lib/action_pack
|
122
120
|
- lib/action_pack/version.rb
|
121
|
+
- lib/action_pack.rb
|
122
|
+
- lib/action_view
|
123
123
|
- lib/action_view/base.rb
|
124
124
|
- lib/action_view/compiled_templates.rb
|
125
125
|
- lib/action_view/helpers
|
126
|
-
- lib/action_view/partials.rb
|
127
|
-
- lib/action_view/template_error.rb
|
128
126
|
- lib/action_view/helpers/active_record_helper.rb
|
129
127
|
- lib/action_view/helpers/asset_tag_helper.rb
|
130
128
|
- lib/action_view/helpers/benchmark_helper.rb
|
@@ -139,6 +137,10 @@ files:
|
|
139
137
|
- lib/action_view/helpers/java_script_macros_helper.rb
|
140
138
|
- lib/action_view/helpers/javascript_helper.rb
|
141
139
|
- lib/action_view/helpers/javascripts
|
140
|
+
- lib/action_view/helpers/javascripts/controls.js
|
141
|
+
- lib/action_view/helpers/javascripts/dragdrop.js
|
142
|
+
- lib/action_view/helpers/javascripts/effects.js
|
143
|
+
- lib/action_view/helpers/javascripts/prototype.js
|
142
144
|
- lib/action_view/helpers/number_helper.rb
|
143
145
|
- lib/action_view/helpers/pagination_helper.rb
|
144
146
|
- lib/action_view/helpers/prototype_helper.rb
|
@@ -146,20 +148,16 @@ files:
|
|
146
148
|
- lib/action_view/helpers/tag_helper.rb
|
147
149
|
- lib/action_view/helpers/text_helper.rb
|
148
150
|
- lib/action_view/helpers/url_helper.rb
|
149
|
-
- lib/action_view/
|
150
|
-
- lib/action_view/
|
151
|
-
- lib/action_view
|
152
|
-
- lib/action_view/helpers/javascripts/prototype.js
|
151
|
+
- lib/action_view/partials.rb
|
152
|
+
- lib/action_view/template_error.rb
|
153
|
+
- lib/action_view.rb
|
153
154
|
- test/abstract_unit.rb
|
154
155
|
- test/active_record_unit.rb
|
155
156
|
- test/activerecord
|
156
|
-
- test/controller
|
157
|
-
- test/fixtures
|
158
|
-
- test/template
|
159
|
-
- test/testing_sandbox.rb
|
160
157
|
- test/activerecord/active_record_assertions_test.rb
|
161
158
|
- test/activerecord/active_record_store_test.rb
|
162
159
|
- test/activerecord/pagination_test.rb
|
160
|
+
- test/controller
|
163
161
|
- test/controller/action_pack_assertions_test.rb
|
164
162
|
- test/controller/addresses_render_test.rb
|
165
163
|
- test/controller/assert_select_test.rb
|
@@ -171,10 +169,21 @@ files:
|
|
171
169
|
- test/controller/components_test.rb
|
172
170
|
- test/controller/content_type_test.rb
|
173
171
|
- test/controller/controller_fixtures
|
172
|
+
- test/controller/controller_fixtures/app
|
173
|
+
- test/controller/controller_fixtures/app/controllers
|
174
|
+
- test/controller/controller_fixtures/app/controllers/admin
|
175
|
+
- test/controller/controller_fixtures/app/controllers/admin/user_controller.rb
|
176
|
+
- test/controller/controller_fixtures/app/controllers/user_controller.rb
|
177
|
+
- test/controller/controller_fixtures/vendor
|
178
|
+
- test/controller/controller_fixtures/vendor/plugins
|
179
|
+
- test/controller/controller_fixtures/vendor/plugins/bad_plugin
|
180
|
+
- test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib
|
181
|
+
- test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb
|
174
182
|
- test/controller/cookie_test.rb
|
175
183
|
- test/controller/custom_handler_test.rb
|
176
184
|
- test/controller/deprecated_instance_variables_test.rb
|
177
185
|
- test/controller/deprecation
|
186
|
+
- test/controller/deprecation/deprecated_base_methods_test.rb
|
178
187
|
- test/controller/fake_controllers.rb
|
179
188
|
- test/controller/filter_params_test.rb
|
180
189
|
- test/controller/filters_test.rb
|
@@ -199,47 +208,19 @@ files:
|
|
199
208
|
- test/controller/url_rewriter_test.rb
|
200
209
|
- test/controller/verification_test.rb
|
201
210
|
- test/controller/webservice_test.rb
|
202
|
-
- test/
|
203
|
-
- test/controller/controller_fixtures/vendor
|
204
|
-
- test/controller/controller_fixtures/app/controllers
|
205
|
-
- test/controller/controller_fixtures/app/controllers/admin
|
206
|
-
- test/controller/controller_fixtures/app/controllers/user_controller.rb
|
207
|
-
- test/controller/controller_fixtures/app/controllers/admin/user_controller.rb
|
208
|
-
- test/controller/controller_fixtures/vendor/plugins
|
209
|
-
- test/controller/controller_fixtures/vendor/plugins/bad_plugin
|
210
|
-
- test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib
|
211
|
-
- test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb
|
212
|
-
- test/controller/deprecation/deprecated_base_methods_test.rb
|
211
|
+
- test/fixtures
|
213
212
|
- test/fixtures/addresses
|
213
|
+
- test/fixtures/addresses/list.rhtml
|
214
214
|
- test/fixtures/companies.yml
|
215
215
|
- test/fixtures/company.rb
|
216
216
|
- test/fixtures/content_type
|
217
|
-
- test/fixtures/db_definitions
|
218
|
-
- test/fixtures/deprecated_instance_variables
|
219
|
-
- test/fixtures/developer.rb
|
220
|
-
- test/fixtures/developers.yml
|
221
|
-
- test/fixtures/developers_projects.yml
|
222
|
-
- test/fixtures/fun
|
223
|
-
- test/fixtures/helpers
|
224
|
-
- test/fixtures/layout_tests
|
225
|
-
- test/fixtures/layouts
|
226
|
-
- test/fixtures/multipart
|
227
|
-
- test/fixtures/project.rb
|
228
|
-
- test/fixtures/projects.yml
|
229
|
-
- test/fixtures/public
|
230
|
-
- test/fixtures/replies.yml
|
231
|
-
- test/fixtures/reply.rb
|
232
|
-
- test/fixtures/respond_to
|
233
|
-
- test/fixtures/scope
|
234
|
-
- test/fixtures/test
|
235
|
-
- test/fixtures/topic.rb
|
236
|
-
- test/fixtures/topics.yml
|
237
|
-
- test/fixtures/addresses/list.rhtml
|
238
217
|
- test/fixtures/content_type/render_default_content_types_for_respond_to.rhtml
|
239
218
|
- test/fixtures/content_type/render_default_for_rhtml.rhtml
|
240
219
|
- test/fixtures/content_type/render_default_for_rjs.rjs
|
241
220
|
- test/fixtures/content_type/render_default_for_rxml.rxml
|
221
|
+
- test/fixtures/db_definitions
|
242
222
|
- test/fixtures/db_definitions/sqlite.sql
|
223
|
+
- test/fixtures/deprecated_instance_variables
|
243
224
|
- test/fixtures/deprecated_instance_variables/_cookies_ivar.rhtml
|
244
225
|
- test/fixtures/deprecated_instance_variables/_cookies_method.rhtml
|
245
226
|
- test/fixtures/deprecated_instance_variables/_flash_ivar.rhtml
|
@@ -254,46 +235,62 @@ files:
|
|
254
235
|
- test/fixtures/deprecated_instance_variables/_response_method.rhtml
|
255
236
|
- test/fixtures/deprecated_instance_variables/_session_ivar.rhtml
|
256
237
|
- test/fixtures/deprecated_instance_variables/_session_method.rhtml
|
238
|
+
- test/fixtures/developer.rb
|
239
|
+
- test/fixtures/developers.yml
|
240
|
+
- test/fixtures/developers_projects.yml
|
241
|
+
- test/fixtures/fun
|
257
242
|
- test/fixtures/fun/games
|
258
243
|
- test/fixtures/fun/games/hello_world.rhtml
|
244
|
+
- test/fixtures/helpers
|
259
245
|
- test/fixtures/helpers/abc_helper.rb
|
260
246
|
- test/fixtures/helpers/fun
|
261
247
|
- test/fixtures/helpers/fun/games_helper.rb
|
262
248
|
- test/fixtures/helpers/fun/pdf_helper.rb
|
249
|
+
- test/fixtures/layout_tests
|
263
250
|
- test/fixtures/layout_tests/layouts
|
264
|
-
- test/fixtures/layout_tests/views
|
265
251
|
- test/fixtures/layout_tests/layouts/controller_name_space
|
252
|
+
- test/fixtures/layout_tests/layouts/controller_name_space/nested.rhtml
|
266
253
|
- test/fixtures/layout_tests/layouts/item.rhtml
|
267
254
|
- test/fixtures/layout_tests/layouts/layout_test.rhtml
|
268
255
|
- test/fixtures/layout_tests/layouts/third_party_template_library.mab
|
269
|
-
- test/fixtures/layout_tests/
|
256
|
+
- test/fixtures/layout_tests/views
|
270
257
|
- test/fixtures/layout_tests/views/hello.rhtml
|
258
|
+
- test/fixtures/layouts
|
271
259
|
- test/fixtures/layouts/builder.rxml
|
272
260
|
- test/fixtures/layouts/standard.rhtml
|
273
261
|
- test/fixtures/layouts/talk_from_action.rhtml
|
274
262
|
- test/fixtures/layouts/yield.rhtml
|
263
|
+
- test/fixtures/multipart
|
275
264
|
- test/fixtures/multipart/binary_file
|
276
265
|
- test/fixtures/multipart/large_text_file
|
277
266
|
- test/fixtures/multipart/mixed_files
|
278
267
|
- test/fixtures/multipart/mona_lisa.jpg
|
279
268
|
- test/fixtures/multipart/single_parameter
|
280
269
|
- test/fixtures/multipart/text_file
|
270
|
+
- test/fixtures/project.rb
|
271
|
+
- test/fixtures/projects.yml
|
272
|
+
- test/fixtures/public
|
281
273
|
- test/fixtures/public/images
|
282
|
-
- test/fixtures/public/javascripts
|
283
274
|
- test/fixtures/public/images/rails.png
|
275
|
+
- test/fixtures/public/javascripts
|
284
276
|
- test/fixtures/public/javascripts/application.js
|
277
|
+
- test/fixtures/replies.yml
|
278
|
+
- test/fixtures/reply.rb
|
279
|
+
- test/fixtures/respond_to
|
285
280
|
- test/fixtures/respond_to/all_types_with_layout.rhtml
|
286
281
|
- test/fixtures/respond_to/all_types_with_layout.rjs
|
287
282
|
- test/fixtures/respond_to/layouts
|
283
|
+
- test/fixtures/respond_to/layouts/standard.rhtml
|
288
284
|
- test/fixtures/respond_to/using_defaults.rhtml
|
289
285
|
- test/fixtures/respond_to/using_defaults.rjs
|
290
286
|
- test/fixtures/respond_to/using_defaults.rxml
|
291
287
|
- test/fixtures/respond_to/using_defaults_with_type_list.rhtml
|
292
288
|
- test/fixtures/respond_to/using_defaults_with_type_list.rjs
|
293
289
|
- test/fixtures/respond_to/using_defaults_with_type_list.rxml
|
294
|
-
- test/fixtures/
|
290
|
+
- test/fixtures/scope
|
295
291
|
- test/fixtures/scope/test
|
296
292
|
- test/fixtures/scope/test/modgreet.rhtml
|
293
|
+
- test/fixtures/test
|
297
294
|
- test/fixtures/test/_customer.rhtml
|
298
295
|
- test/fixtures/test/_customer_greeting.rhtml
|
299
296
|
- test/fixtures/test/_hash_object.rhtml
|
@@ -306,6 +303,7 @@ files:
|
|
306
303
|
- test/fixtures/test/content_for.rhtml
|
307
304
|
- test/fixtures/test/delete_with_js.rjs
|
308
305
|
- test/fixtures/test/dot.directory
|
306
|
+
- test/fixtures/test/dot.directory/render_file_with_ivar.rhtml
|
309
307
|
- test/fixtures/test/enum_rjs_test.rjs
|
310
308
|
- test/fixtures/test/erb_content_for.rhtml
|
311
309
|
- test/fixtures/test/greeting.rhtml
|
@@ -322,7 +320,9 @@ files:
|
|
322
320
|
- test/fixtures/test/render_file_with_locals.rhtml
|
323
321
|
- test/fixtures/test/render_to_string_test.rhtml
|
324
322
|
- test/fixtures/test/update_element_with_capture.rhtml
|
325
|
-
- test/fixtures/
|
323
|
+
- test/fixtures/topic.rb
|
324
|
+
- test/fixtures/topics.yml
|
325
|
+
- test/template
|
326
326
|
- test/template/active_record_helper_test.rb
|
327
327
|
- test/template/asset_tag_helper_test.rb
|
328
328
|
- test/template/benchmark_helper_test.rb
|
@@ -341,7 +341,10 @@ files:
|
|
341
341
|
- test/template/tag_helper_test.rb
|
342
342
|
- test/template/text_helper_test.rb
|
343
343
|
- test/template/url_helper_test.rb
|
344
|
+
- test/testing_sandbox.rb
|
344
345
|
- examples/address_book
|
346
|
+
- examples/address_book/index.rhtml
|
347
|
+
- examples/address_book/layout.rhtml
|
345
348
|
- examples/address_book_controller.cgi
|
346
349
|
- examples/address_book_controller.fcgi
|
347
350
|
- examples/address_book_controller.rb
|
@@ -350,12 +353,10 @@ files:
|
|
350
353
|
- examples/benchmark_with_ar.fcgi
|
351
354
|
- examples/blog_controller.cgi
|
352
355
|
- examples/debate
|
353
|
-
- examples/debate_controller.cgi
|
354
|
-
- examples/address_book/index.rhtml
|
355
|
-
- examples/address_book/layout.rhtml
|
356
356
|
- examples/debate/index.rhtml
|
357
357
|
- examples/debate/new_topic.rhtml
|
358
358
|
- examples/debate/topic.rhtml
|
359
|
+
- examples/debate_controller.cgi
|
359
360
|
test_files: []
|
360
361
|
|
361
362
|
rdoc_options: []
|
@@ -376,5 +377,5 @@ dependencies:
|
|
376
377
|
requirements:
|
377
378
|
- - "="
|
378
379
|
- !ruby/object:Gem::Version
|
379
|
-
version: 1.4.
|
380
|
+
version: 1.4.3
|
380
381
|
version:
|