actionpack 2.2.2 → 2.2.3
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 +66 -6
- data/Rakefile +1 -1
- data/lib/action_controller/base.rb +3 -0
- data/lib/action_controller/dispatcher.rb +2 -1
- data/lib/action_controller/rack_process.rb +2 -8
- data/lib/action_controller/request.rb +9 -0
- data/lib/action_controller/resources.rb +1 -1
- data/lib/action_controller/routing/route_set.rb +6 -2
- data/lib/action_controller/routing/segments.rb +17 -21
- data/lib/action_controller/session/cookie_store.rb +33 -1
- data/lib/action_pack/version.rb +1 -1
- data/lib/action_view/base.rb +2 -0
- data/lib/action_view/helpers/asset_tag_helper.rb +153 -319
- data/lib/action_view/helpers/number_helper.rb +3 -4
- data/lib/action_view/helpers/tag_helper.rb +1 -1
- data/lib/action_view/locale/en.yml +1 -0
- data/lib/action_view/template_handler.rb +24 -4
- data/test/controller/cgi_test.rb +6 -0
- data/test/controller/dispatcher_test.rb +0 -5
- data/test/controller/request_test.rb +7 -0
- data/test/controller/resources_test.rb +10 -0
- data/test/controller/routing_test.rb +35 -0
- data/test/fixtures/test/hello_world.js +1 -0
- data/test/template/asset_tag_helper_test.rb +20 -2
- data/test/template/number_helper_i18n_test.rb +3 -0
- data/test/template/render_test.rb +15 -0
- metadata +8 -86
@@ -220,8 +220,6 @@ module ActionView
|
|
220
220
|
end
|
221
221
|
end
|
222
222
|
|
223
|
-
STORAGE_UNITS = %w( Bytes KB MB GB TB ).freeze
|
224
|
-
|
225
223
|
# Formats the bytes in +size+ into a more understandable representation
|
226
224
|
# (e.g., giving it 1500 yields 1.5 KB). This method is useful for
|
227
225
|
# reporting file sizes to users. This method returns nil if
|
@@ -257,6 +255,7 @@ module ActionView
|
|
257
255
|
defaults = I18n.translate(:'number.format', :locale => options[:locale], :raise => true) rescue {}
|
258
256
|
human = I18n.translate(:'number.human.format', :locale => options[:locale], :raise => true) rescue {}
|
259
257
|
defaults = defaults.merge(human)
|
258
|
+
storage_units = I18n.translate(:'number.human.storage_units', :locale => options[:locale], :raise => true)
|
260
259
|
|
261
260
|
unless args.empty?
|
262
261
|
ActiveSupport::Deprecation.warn('number_to_human_size takes an option hash ' +
|
@@ -268,12 +267,12 @@ module ActionView
|
|
268
267
|
separator ||= (options[:separator] || defaults[:separator])
|
269
268
|
delimiter ||= (options[:delimiter] || defaults[:delimiter])
|
270
269
|
|
271
|
-
max_exp =
|
270
|
+
max_exp = storage_units.size - 1
|
272
271
|
number = Float(number)
|
273
272
|
exponent = (Math.log(number) / Math.log(1024)).to_i # Convert to base 1024
|
274
273
|
exponent = max_exp if exponent > max_exp # we need this to avoid overflow for the highest unit
|
275
274
|
number /= 1024 ** exponent
|
276
|
-
unit =
|
275
|
+
unit = storage_units[exponent]
|
277
276
|
|
278
277
|
begin
|
279
278
|
escaped_separator = Regexp.escape(separator)
|
@@ -104,7 +104,7 @@ module ActionView
|
|
104
104
|
# escape_once("<< Accept & Checkout")
|
105
105
|
# # => "<< Accept & Checkout"
|
106
106
|
def escape_once(html)
|
107
|
-
html.to_s.gsub(/[\"><]|&(?!([a-zA-Z]+|(#\d+));)/) { |special| ERB::Util::HTML_ESCAPE[special] }
|
107
|
+
ActiveSupport::Multibyte.clean(html.to_s).gsub(/[\"><]|&(?!([a-zA-Z]+|(#\d+));)/) { |special| ERB::Util::HTML_ESCAPE[special] }
|
108
108
|
end
|
109
109
|
|
110
110
|
private
|
@@ -1,14 +1,34 @@
|
|
1
1
|
# Legacy TemplateHandler stub
|
2
|
-
|
3
2
|
module ActionView
|
4
|
-
module TemplateHandlers
|
3
|
+
module TemplateHandlers #:nodoc:
|
5
4
|
module Compilable
|
5
|
+
def self.included(base)
|
6
|
+
base.extend(ClassMethods)
|
7
|
+
end
|
8
|
+
|
9
|
+
module ClassMethods
|
10
|
+
def call(template)
|
11
|
+
new.compile(template)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def compile(template)
|
16
|
+
raise "Need to implement #{self.class.name}#compile(template)"
|
17
|
+
end
|
6
18
|
end
|
7
19
|
end
|
8
20
|
|
9
|
-
class TemplateHandler
|
21
|
+
class TemplateHandler #:nodoc:
|
10
22
|
def self.call(template)
|
11
|
-
new.
|
23
|
+
"#{name}.new(self).render(template, local_assigns)"
|
24
|
+
end
|
25
|
+
|
26
|
+
def initialize(view = nil)
|
27
|
+
@view = view
|
28
|
+
end
|
29
|
+
|
30
|
+
def render(template, local_assigns)
|
31
|
+
raise "Need to implement #{self.class.name}#render(template, local_assigns)"
|
12
32
|
end
|
13
33
|
end
|
14
34
|
end
|
data/test/controller/cgi_test.rb
CHANGED
@@ -161,6 +161,12 @@ class CgiRequestTest < BaseCgiTest
|
|
161
161
|
assert_equal ["c84ace847,96670c052c6ceb2451fb0f2"], alt_cookies["_session_id"], alt_cookies.inspect
|
162
162
|
assert_equal ["yes"], alt_cookies["is_admin"], alt_cookies.inspect
|
163
163
|
end
|
164
|
+
|
165
|
+
def test_relative_url_root
|
166
|
+
assert_deprecated("ActionController::Base.relative_url_root") do
|
167
|
+
assert_equal ActionController::Base.relative_url_root, @request.relative_url_root
|
168
|
+
end
|
169
|
+
end
|
164
170
|
end
|
165
171
|
|
166
172
|
class CgiRequestParamsParsingTest < BaseCgiTest
|
@@ -35,11 +35,6 @@ class DispatcherTest < Test::Unit::TestCase
|
|
35
35
|
dispatch(@output, false)
|
36
36
|
end
|
37
37
|
|
38
|
-
def test_clears_asset_tag_cache_before_dispatch_if_in_loading_mode
|
39
|
-
ActionView::Helpers::AssetTagHelper::AssetTag::Cache.expects(:clear).once
|
40
|
-
dispatch(@output, false)
|
41
|
-
end
|
42
|
-
|
43
38
|
def test_leaves_dependencies_after_dispatch_if_not_in_loading_mode
|
44
39
|
ActionController::Routing::Routes.expects(:reload).never
|
45
40
|
ActiveSupport::Dependencies.expects(:clear).never
|
@@ -471,6 +471,13 @@ class UrlEncodedRequestParameterParsingTest < Test::Unit::TestCase
|
|
471
471
|
)
|
472
472
|
end
|
473
473
|
|
474
|
+
def test_query_string_with_multiple_of_same_name
|
475
|
+
assert_equal(
|
476
|
+
{ "action" => "update_order", "full_name" => "Lau Taarnskov", "products" => "4" },
|
477
|
+
ActionController::AbstractRequest.parse_query_parameters(@query_string_with_multiple_of_same_name)
|
478
|
+
)
|
479
|
+
end
|
480
|
+
|
474
481
|
def test_query_string_with_many_equal
|
475
482
|
assert_equal(
|
476
483
|
{ "action" => "create_customer", "full_name" => "abc=def=ghi"},
|
@@ -997,6 +997,16 @@ class ResourcesTest < Test::Unit::TestCase
|
|
997
997
|
end
|
998
998
|
end
|
999
999
|
|
1000
|
+
def test_default_singleton_restful_route_uses_get
|
1001
|
+
with_routing do |set|
|
1002
|
+
set.draw do |map|
|
1003
|
+
map.resource :product
|
1004
|
+
end
|
1005
|
+
|
1006
|
+
assert_equal :get, set.named_routes.routes[:product].conditions[:method]
|
1007
|
+
end
|
1008
|
+
end
|
1009
|
+
|
1000
1010
|
protected
|
1001
1011
|
def with_restful_routing(*args)
|
1002
1012
|
with_routing do |set|
|
@@ -341,6 +341,30 @@ class ControllerSegmentTest < Test::Unit::TestCase
|
|
341
341
|
end
|
342
342
|
end
|
343
343
|
|
344
|
+
class PathSegmentTest < Test::Unit::TestCase
|
345
|
+
def segment(options = {})
|
346
|
+
unless @segment
|
347
|
+
@segment = ROUTING::PathSegment.new(:path, options)
|
348
|
+
end
|
349
|
+
@segment
|
350
|
+
end
|
351
|
+
|
352
|
+
def test_regexp_chunk_should_return_string
|
353
|
+
segment = segment(:regexp => /[a-z]+/)
|
354
|
+
assert_kind_of String, segment.regexp_chunk
|
355
|
+
end
|
356
|
+
|
357
|
+
def test_regexp_chunk_should_be_wrapped_with_parenthesis
|
358
|
+
segment = segment(:regexp => /[a-z]+/)
|
359
|
+
assert_equal "([a-z]+)", segment.regexp_chunk
|
360
|
+
end
|
361
|
+
|
362
|
+
def test_regexp_chunk_should_respect_options
|
363
|
+
segment = segment(:regexp => /[a-z]+/i)
|
364
|
+
assert_equal "((?i-mx:[a-z]+))", segment.regexp_chunk
|
365
|
+
end
|
366
|
+
end
|
367
|
+
|
344
368
|
class RouteBuilderTest < Test::Unit::TestCase
|
345
369
|
def builder
|
346
370
|
@builder ||= ROUTING::RouteBuilder.new
|
@@ -869,6 +893,16 @@ uses_mocha 'LegacyRouteSet, Route, RouteSet and RouteLoading' do
|
|
869
893
|
assert_equal '/content/foo', rs.generate(:controller => "content", :action => "foo")
|
870
894
|
end
|
871
895
|
|
896
|
+
def test_route_with_regexp_and_captures_for_controller
|
897
|
+
rs.draw do |map|
|
898
|
+
map.connect ':controller/:action/:id', :controller => /admin\/(accounts|users)/
|
899
|
+
end
|
900
|
+
assert_equal({:controller => "admin/accounts", :action => "index"}, rs.recognize_path("/admin/accounts"))
|
901
|
+
assert_equal({:controller => "admin/users", :action => "index"}, rs.recognize_path("/admin/users"))
|
902
|
+
assert_raises(ActionController::RoutingError) { rs.recognize_path("/admin/products") }
|
903
|
+
end
|
904
|
+
|
905
|
+
|
872
906
|
def test_route_with_regexp_and_dot
|
873
907
|
rs.draw do |map|
|
874
908
|
map.connect ':controller/:action/:file',
|
@@ -1149,6 +1183,7 @@ uses_mocha 'LegacyRouteSet, Route, RouteSet and RouteLoading' do
|
|
1149
1183
|
assert_equal({:controller => "content", :action => 'show_page', :id => 'foo'}, rs.recognize_path("/page/foo"))
|
1150
1184
|
|
1151
1185
|
token = "\321\202\320\265\320\272\321\201\321\202" # 'text' in russian
|
1186
|
+
token.force_encoding("UTF-8") if token.respond_to?(:force_encoding)
|
1152
1187
|
escaped_token = CGI::escape(token)
|
1153
1188
|
|
1154
1189
|
assert_equal '/page/' + escaped_token, rs.generate(:controller => 'content', :action => 'show_page', :id => token)
|
@@ -0,0 +1 @@
|
|
1
|
+
var greeting = 'Hallo World!';
|
@@ -38,8 +38,6 @@ class AssetTagHelperTest < ActionView::TestCase
|
|
38
38
|
@controller.request = @request
|
39
39
|
|
40
40
|
ActionView::Helpers::AssetTagHelper::reset_javascript_include_default
|
41
|
-
AssetTag::Cache.clear
|
42
|
-
AssetCollection::Cache.clear
|
43
41
|
end
|
44
42
|
|
45
43
|
def teardown
|
@@ -281,6 +279,26 @@ class AssetTagHelperTest < ActionView::TestCase
|
|
281
279
|
assert_equal copy, source
|
282
280
|
end
|
283
281
|
|
282
|
+
def test_caching_image_path_with_caching_and_proc_asset_host_using_request
|
283
|
+
ENV['RAILS_ASSET_ID'] = ''
|
284
|
+
ActionController::Base.asset_host = Proc.new do |source, request|
|
285
|
+
if request.ssl?
|
286
|
+
"#{request.protocol}#{request.host_with_port}"
|
287
|
+
else
|
288
|
+
"#{request.protocol}assets#{source.length}.example.com"
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
ActionController::Base.perform_caching = true
|
293
|
+
|
294
|
+
|
295
|
+
@controller.request.stubs(:ssl?).returns(false)
|
296
|
+
assert_equal "http://assets15.example.com/images/xml.png", image_path("xml.png")
|
297
|
+
|
298
|
+
@controller.request.stubs(:ssl?).returns(true)
|
299
|
+
assert_equal "http://localhost/images/xml.png", image_path("xml.png")
|
300
|
+
end
|
301
|
+
|
284
302
|
def test_caching_javascript_include_tag_when_caching_on
|
285
303
|
ENV["RAILS_ASSET_ID"] = ""
|
286
304
|
ActionController::Base.asset_host = 'http://a0.example.com'
|
@@ -10,6 +10,7 @@ class NumberHelperI18nTests < Test::Unit::TestCase
|
|
10
10
|
@number_defaults = { :precision => 3, :delimiter => ',', :separator => '.' }
|
11
11
|
@currency_defaults = { :unit => '$', :format => '%u%n', :precision => 2 }
|
12
12
|
@human_defaults = { :precision => 1 }
|
13
|
+
@human_storage_units_defaults = %w(Bytes KB MB GB TB)
|
13
14
|
@percentage_defaults = { :delimiter => '' }
|
14
15
|
@precision_defaults = { :delimiter => '' }
|
15
16
|
|
@@ -47,6 +48,8 @@ class NumberHelperI18nTests < Test::Unit::TestCase
|
|
47
48
|
I18n.expects(:translate).with(:'number.format', :locale => 'en', :raise => true).returns(@number_defaults)
|
48
49
|
I18n.expects(:translate).with(:'number.human.format', :locale => 'en',
|
49
50
|
:raise => true).returns(@human_defaults)
|
51
|
+
I18n.expects(:translate).with(:'number.human.storage_units', :locale => 'en',
|
52
|
+
:raise => true).returns(@human_storage_units_defaults)
|
50
53
|
# can't be called with 1 because this directly returns without calling I18n.translate
|
51
54
|
number_to_human_size(1025, :locale => 'en')
|
52
55
|
end
|
@@ -34,6 +34,10 @@ class ViewRenderTest < Test::Unit::TestCase
|
|
34
34
|
assert_equal "Hello world!", @view.render(:file => template_path)
|
35
35
|
end
|
36
36
|
|
37
|
+
def test_render_file_not_using_template_handler_extension
|
38
|
+
assert_equal "var greeting = 'Hallo World!';", @view.render(:file => 'test/hello_world.js')
|
39
|
+
end
|
40
|
+
|
37
41
|
def test_render_file_with_instance_variables
|
38
42
|
assert_deprecated do
|
39
43
|
assert_equal "The secret is in the sauce\n", @view.render("test/render_file_with_ivar.erb")
|
@@ -181,6 +185,17 @@ class ViewRenderTest < Test::Unit::TestCase
|
|
181
185
|
assert_equal 'source: "Hello, <%= name %>!"', @view.render(:inline => "Hello, <%= name %>!", :locals => { :name => "Josh" }, :type => :foo)
|
182
186
|
end
|
183
187
|
|
188
|
+
class LegacyHandler < ActionView::TemplateHandler
|
189
|
+
def render(template, local_assigns)
|
190
|
+
"source: #{template.source}; locals: #{local_assigns.inspect}"
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
def test_render_legacy_handler_with_custom_type
|
195
|
+
ActionView::Template.register_template_handler :foo, LegacyHandler
|
196
|
+
assert_equal 'source: Hello, <%= name %>!; locals: {:name=>"Josh"}', @view.render(:inline => "Hello, <%= name %>!", :locals => { :name => "Josh" }, :type => :foo)
|
197
|
+
end
|
198
|
+
|
184
199
|
def test_render_with_layout
|
185
200
|
assert_equal %(<title></title>\nHello world!\n),
|
186
201
|
@view.render(:file => "test/hello_world.erb", :layout => "layouts/yield")
|
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.2.3
|
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:
|
12
|
+
date: 2009-09-28 00:00:00 +13: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.2.3
|
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,8 +37,6 @@ files:
|
|
37
37
|
- RUNNING_UNIT_TESTS
|
38
38
|
- CHANGELOG
|
39
39
|
- MIT-LICENSE
|
40
|
-
- lib/action_controller
|
41
|
-
- lib/action_controller/assertions
|
42
40
|
- lib/action_controller/assertions/dom_assertions.rb
|
43
41
|
- lib/action_controller/assertions/model_assertions.rb
|
44
42
|
- lib/action_controller/assertions/response_assertions.rb
|
@@ -48,14 +46,12 @@ files:
|
|
48
46
|
- lib/action_controller/assertions.rb
|
49
47
|
- lib/action_controller/base.rb
|
50
48
|
- lib/action_controller/benchmarking.rb
|
51
|
-
- lib/action_controller/caching
|
52
49
|
- lib/action_controller/caching/actions.rb
|
53
50
|
- lib/action_controller/caching/fragments.rb
|
54
51
|
- lib/action_controller/caching/pages.rb
|
55
52
|
- lib/action_controller/caching/sql_cache.rb
|
56
53
|
- lib/action_controller/caching/sweeping.rb
|
57
54
|
- lib/action_controller/caching.rb
|
58
|
-
- lib/action_controller/cgi_ext
|
59
55
|
- lib/action_controller/cgi_ext/cookie.rb
|
60
56
|
- lib/action_controller/cgi_ext/query_extension.rb
|
61
57
|
- lib/action_controller/cgi_ext/session.rb
|
@@ -85,7 +81,6 @@ files:
|
|
85
81
|
- lib/action_controller/rescue.rb
|
86
82
|
- lib/action_controller/resources.rb
|
87
83
|
- lib/action_controller/response.rb
|
88
|
-
- lib/action_controller/routing
|
89
84
|
- lib/action_controller/routing/builder.rb
|
90
85
|
- lib/action_controller/routing/optimisations.rb
|
91
86
|
- lib/action_controller/routing/recognition_optimisation.rb
|
@@ -94,7 +89,6 @@ files:
|
|
94
89
|
- lib/action_controller/routing/routing_ext.rb
|
95
90
|
- lib/action_controller/routing/segments.rb
|
96
91
|
- lib/action_controller/routing.rb
|
97
|
-
- lib/action_controller/session
|
98
92
|
- lib/action_controller/session/active_record_store.rb
|
99
93
|
- lib/action_controller/session/cookie_store.rb
|
100
94
|
- lib/action_controller/session/drb_server.rb
|
@@ -103,8 +97,6 @@ files:
|
|
103
97
|
- lib/action_controller/session_management.rb
|
104
98
|
- lib/action_controller/status_codes.rb
|
105
99
|
- lib/action_controller/streaming.rb
|
106
|
-
- lib/action_controller/templates
|
107
|
-
- lib/action_controller/templates/rescues
|
108
100
|
- lib/action_controller/templates/rescues/_request_and_response.erb
|
109
101
|
- lib/action_controller/templates/rescues/_trace.erb
|
110
102
|
- lib/action_controller/templates/rescues/diagnostics.erb
|
@@ -117,9 +109,6 @@ files:
|
|
117
109
|
- lib/action_controller/test_process.rb
|
118
110
|
- lib/action_controller/translation.rb
|
119
111
|
- lib/action_controller/url_rewriter.rb
|
120
|
-
- lib/action_controller/vendor
|
121
|
-
- lib/action_controller/vendor/html-scanner
|
122
|
-
- lib/action_controller/vendor/html-scanner/html
|
123
112
|
- lib/action_controller/vendor/html-scanner/html/document.rb
|
124
113
|
- lib/action_controller/vendor/html-scanner/html/node.rb
|
125
114
|
- lib/action_controller/vendor/html-scanner/html/sanitizer.rb
|
@@ -128,12 +117,9 @@ files:
|
|
128
117
|
- lib/action_controller/vendor/html-scanner/html/version.rb
|
129
118
|
- lib/action_controller/verification.rb
|
130
119
|
- lib/action_controller.rb
|
131
|
-
- lib/action_pack
|
132
120
|
- lib/action_pack/version.rb
|
133
121
|
- lib/action_pack.rb
|
134
|
-
- lib/action_view
|
135
122
|
- lib/action_view/base.rb
|
136
|
-
- lib/action_view/helpers
|
137
123
|
- lib/action_view/helpers/active_record_helper.rb
|
138
124
|
- lib/action_view/helpers/asset_tag_helper.rb
|
139
125
|
- lib/action_view/helpers/atom_feed_helper.rb
|
@@ -146,7 +132,6 @@ files:
|
|
146
132
|
- lib/action_view/helpers/form_options_helper.rb
|
147
133
|
- lib/action_view/helpers/form_tag_helper.rb
|
148
134
|
- lib/action_view/helpers/javascript_helper.rb
|
149
|
-
- lib/action_view/helpers/javascripts
|
150
135
|
- lib/action_view/helpers/number_helper.rb
|
151
136
|
- lib/action_view/helpers/prototype_helper.rb
|
152
137
|
- lib/action_view/helpers/record_identification_helper.rb
|
@@ -159,7 +144,6 @@ files:
|
|
159
144
|
- lib/action_view/helpers/url_helper.rb
|
160
145
|
- lib/action_view/helpers.rb
|
161
146
|
- lib/action_view/inline_template.rb
|
162
|
-
- lib/action_view/locale
|
163
147
|
- lib/action_view/locale/en.yml
|
164
148
|
- lib/action_view/partials.rb
|
165
149
|
- lib/action_view/paths.rb
|
@@ -168,7 +152,6 @@ files:
|
|
168
152
|
- lib/action_view/template.rb
|
169
153
|
- lib/action_view/template_error.rb
|
170
154
|
- lib/action_view/template_handler.rb
|
171
|
-
- lib/action_view/template_handlers
|
172
155
|
- lib/action_view/template_handlers/builder.rb
|
173
156
|
- lib/action_view/template_handlers/erb.rb
|
174
157
|
- lib/action_view/template_handlers/rjs.rb
|
@@ -178,11 +161,9 @@ files:
|
|
178
161
|
- lib/actionpack.rb
|
179
162
|
- test/abstract_unit.rb
|
180
163
|
- test/active_record_unit.rb
|
181
|
-
- test/activerecord
|
182
164
|
- test/activerecord/active_record_store_test.rb
|
183
165
|
- test/activerecord/render_partial_with_record_identification_test.rb
|
184
166
|
- test/adv_attr_test.rb
|
185
|
-
- test/controller
|
186
167
|
- test/controller/action_pack_assertions_test.rb
|
187
168
|
- test/controller/addresses_render_test.rb
|
188
169
|
- test/controller/assert_select_test.rb
|
@@ -193,19 +174,10 @@ files:
|
|
193
174
|
- test/controller/cgi_test.rb
|
194
175
|
- test/controller/components_test.rb
|
195
176
|
- test/controller/content_type_test.rb
|
196
|
-
- test/controller/controller_fixtures
|
197
|
-
- test/controller/controller_fixtures/app
|
198
|
-
- test/controller/controller_fixtures/app/controllers
|
199
|
-
- test/controller/controller_fixtures/app/controllers/admin
|
200
177
|
- test/controller/controller_fixtures/app/controllers/admin/user_controller.rb
|
201
178
|
- test/controller/controller_fixtures/app/controllers/user_controller.rb
|
202
|
-
- test/controller/controller_fixtures/vendor
|
203
|
-
- test/controller/controller_fixtures/vendor/plugins
|
204
|
-
- test/controller/controller_fixtures/vendor/plugins/bad_plugin
|
205
|
-
- test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib
|
206
179
|
- test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb
|
207
180
|
- test/controller/cookie_test.rb
|
208
|
-
- test/controller/deprecation
|
209
181
|
- test/controller/deprecation/deprecated_base_methods_test.rb
|
210
182
|
- test/controller/dispatcher_test.rb
|
211
183
|
- test/controller/fake_controllers.rb
|
@@ -215,7 +187,6 @@ files:
|
|
215
187
|
- test/controller/flash_test.rb
|
216
188
|
- test/controller/header_test.rb
|
217
189
|
- test/controller/helper_test.rb
|
218
|
-
- test/controller/html-scanner
|
219
190
|
- test/controller/html-scanner/cdata_node_test.rb
|
220
191
|
- test/controller/html-scanner/document_test.rb
|
221
192
|
- test/controller/html-scanner/node_test.rb
|
@@ -242,7 +213,6 @@ files:
|
|
242
213
|
- test/controller/routing_test.rb
|
243
214
|
- test/controller/selector_test.rb
|
244
215
|
- test/controller/send_file_test.rb
|
245
|
-
- test/controller/session
|
246
216
|
- test/controller/session/cookie_store_test.rb
|
247
217
|
- test/controller/session/mem_cache_store_test.rb
|
248
218
|
- test/controller/session_fixation_test.rb
|
@@ -253,37 +223,25 @@ files:
|
|
253
223
|
- test/controller/verification_test.rb
|
254
224
|
- test/controller/view_paths_test.rb
|
255
225
|
- test/controller/webservice_test.rb
|
256
|
-
- test/fixtures
|
257
226
|
- test/fixtures/_top_level_partial.html.erb
|
258
227
|
- test/fixtures/_top_level_partial_only.erb
|
259
|
-
- test/fixtures/addresses
|
260
228
|
- test/fixtures/addresses/list.erb
|
261
|
-
- test/fixtures/bad_customers
|
262
229
|
- test/fixtures/bad_customers/_bad_customer.html.erb
|
263
230
|
- test/fixtures/companies.yml
|
264
231
|
- test/fixtures/company.rb
|
265
|
-
- test/fixtures/content_type
|
266
232
|
- test/fixtures/content_type/render_default_content_types_for_respond_to.rhtml
|
267
233
|
- test/fixtures/content_type/render_default_for_rhtml.rhtml
|
268
234
|
- test/fixtures/content_type/render_default_for_rjs.rjs
|
269
235
|
- test/fixtures/content_type/render_default_for_rxml.rxml
|
270
|
-
- test/fixtures/customers
|
271
236
|
- test/fixtures/customers/_customer.html.erb
|
272
|
-
- test/fixtures/db_definitions
|
273
237
|
- test/fixtures/db_definitions/sqlite.sql
|
274
238
|
- test/fixtures/developer.rb
|
275
|
-
- test/fixtures/developers
|
276
239
|
- test/fixtures/developers/_developer.erb
|
277
240
|
- test/fixtures/developers.yml
|
278
241
|
- test/fixtures/developers_projects.yml
|
279
|
-
- test/fixtures/fun
|
280
|
-
- test/fixtures/fun/games
|
281
242
|
- test/fixtures/fun/games/_game.erb
|
282
243
|
- test/fixtures/fun/games/hello_world.erb
|
283
|
-
- test/fixtures/fun/serious
|
284
|
-
- test/fixtures/fun/serious/games
|
285
244
|
- test/fixtures/fun/serious/games/_game.erb
|
286
|
-
- test/fixtures/functional_caching
|
287
245
|
- test/fixtures/functional_caching/_partial.erb
|
288
246
|
- test/fixtures/functional_caching/formatted_fragment_cached.html.erb
|
289
247
|
- test/fixtures/functional_caching/formatted_fragment_cached.js.rjs
|
@@ -292,27 +250,17 @@ files:
|
|
292
250
|
- test/fixtures/functional_caching/html_fragment_cached_with_partial.html.erb
|
293
251
|
- test/fixtures/functional_caching/inline_fragment_cached.html.erb
|
294
252
|
- test/fixtures/functional_caching/js_fragment_cached_with_partial.js.rjs
|
295
|
-
- test/fixtures/good_customers
|
296
253
|
- test/fixtures/good_customers/_good_customer.html.erb
|
297
|
-
- test/fixtures/helpers
|
298
254
|
- test/fixtures/helpers/abc_helper.rb
|
299
|
-
- test/fixtures/helpers/fun
|
300
255
|
- test/fixtures/helpers/fun/games_helper.rb
|
301
256
|
- test/fixtures/helpers/fun/pdf_helper.rb
|
302
|
-
- test/fixtures/layout_tests
|
303
|
-
- test/fixtures/layout_tests/alt
|
304
257
|
- test/fixtures/layout_tests/alt/hello.rhtml
|
305
|
-
- test/fixtures/layout_tests/layouts
|
306
|
-
- test/fixtures/layout_tests/layouts/controller_name_space
|
307
258
|
- test/fixtures/layout_tests/layouts/controller_name_space/nested.rhtml
|
308
259
|
- test/fixtures/layout_tests/layouts/item.rhtml
|
309
260
|
- test/fixtures/layout_tests/layouts/layout_test.rhtml
|
310
261
|
- test/fixtures/layout_tests/layouts/multiple_extensions.html.erb
|
311
|
-
- test/fixtures/layout_tests/layouts/symlinked
|
312
262
|
- test/fixtures/layout_tests/layouts/third_party_template_library.mab
|
313
|
-
- test/fixtures/layout_tests/views
|
314
263
|
- test/fixtures/layout_tests/views/hello.rhtml
|
315
|
-
- test/fixtures/layouts
|
316
264
|
- test/fixtures/layouts/_column.html.erb
|
317
265
|
- test/fixtures/layouts/block_with_layout.erb
|
318
266
|
- test/fixtures/layouts/builder.builder
|
@@ -321,10 +269,8 @@ files:
|
|
321
269
|
- test/fixtures/layouts/talk_from_action.erb
|
322
270
|
- test/fixtures/layouts/yield.erb
|
323
271
|
- test/fixtures/mascot.rb
|
324
|
-
- test/fixtures/mascots
|
325
272
|
- test/fixtures/mascots/_mascot.html.erb
|
326
273
|
- test/fixtures/mascots.yml
|
327
|
-
- test/fixtures/multipart
|
328
274
|
- test/fixtures/multipart/binary_file
|
329
275
|
- test/fixtures/multipart/boundary_problem_file
|
330
276
|
- test/fixtures/multipart/bracketed_param
|
@@ -333,61 +279,41 @@ files:
|
|
333
279
|
- test/fixtures/multipart/mona_lisa.jpg
|
334
280
|
- test/fixtures/multipart/single_parameter
|
335
281
|
- test/fixtures/multipart/text_file
|
336
|
-
- test/fixtures/override
|
337
|
-
- test/fixtures/override/test
|
338
282
|
- test/fixtures/override/test/hello_world.erb
|
339
|
-
- test/fixtures/override2
|
340
|
-
- test/fixtures/override2/layouts
|
341
|
-
- test/fixtures/override2/layouts/test
|
342
283
|
- test/fixtures/override2/layouts/test/sub.erb
|
343
|
-
- test/fixtures/post_test
|
344
|
-
- test/fixtures/post_test/layouts
|
345
284
|
- test/fixtures/post_test/layouts/post.html.erb
|
346
285
|
- test/fixtures/post_test/layouts/super_post.iphone.erb
|
347
|
-
- test/fixtures/post_test/post
|
348
286
|
- test/fixtures/post_test/post/index.html.erb
|
349
287
|
- test/fixtures/post_test/post/index.iphone.erb
|
350
|
-
- test/fixtures/post_test/super_post
|
351
288
|
- test/fixtures/post_test/super_post/index.html.erb
|
352
289
|
- test/fixtures/post_test/super_post/index.iphone.erb
|
353
290
|
- test/fixtures/project.rb
|
354
|
-
- test/fixtures/projects
|
355
291
|
- test/fixtures/projects/_project.erb
|
356
292
|
- test/fixtures/projects.yml
|
357
|
-
- test/fixtures/public
|
358
293
|
- test/fixtures/public/404.html
|
359
294
|
- test/fixtures/public/500.html
|
360
|
-
- test/fixtures/public/images
|
361
295
|
- test/fixtures/public/images/rails.png
|
362
|
-
- test/fixtures/public/javascripts
|
363
296
|
- test/fixtures/public/javascripts/application.js
|
364
297
|
- test/fixtures/public/javascripts/bank.js
|
365
|
-
- test/fixtures/public/javascripts/cache
|
366
298
|
- test/fixtures/public/javascripts/controls.js
|
367
299
|
- test/fixtures/public/javascripts/dragdrop.js
|
368
300
|
- test/fixtures/public/javascripts/effects.js
|
369
301
|
- test/fixtures/public/javascripts/prototype.js
|
370
302
|
- test/fixtures/public/javascripts/robber.js
|
371
|
-
- test/fixtures/public/javascripts/subdir
|
372
303
|
- test/fixtures/public/javascripts/subdir/subdir.js
|
373
304
|
- test/fixtures/public/javascripts/version.1.0.js
|
374
|
-
- test/fixtures/public/stylesheets
|
375
305
|
- test/fixtures/public/stylesheets/bank.css
|
376
306
|
- test/fixtures/public/stylesheets/robber.css
|
377
|
-
- test/fixtures/public/stylesheets/subdir
|
378
307
|
- test/fixtures/public/stylesheets/subdir/subdir.css
|
379
308
|
- test/fixtures/public/stylesheets/version.1.0.css
|
380
|
-
- test/fixtures/replies
|
381
309
|
- test/fixtures/replies/_reply.erb
|
382
310
|
- test/fixtures/replies.yml
|
383
311
|
- test/fixtures/reply.rb
|
384
|
-
- test/fixtures/respond_to
|
385
312
|
- test/fixtures/respond_to/all_types_with_layout.html.erb
|
386
313
|
- test/fixtures/respond_to/all_types_with_layout.js.rjs
|
387
314
|
- test/fixtures/respond_to/custom_constant_handling_without_block.mobile.erb
|
388
315
|
- test/fixtures/respond_to/iphone_with_html_response_type.html.erb
|
389
316
|
- test/fixtures/respond_to/iphone_with_html_response_type.iphone.erb
|
390
|
-
- test/fixtures/respond_to/layouts
|
391
317
|
- test/fixtures/respond_to/layouts/missing.html.erb
|
392
318
|
- test/fixtures/respond_to/layouts/standard.html.erb
|
393
319
|
- test/fixtures/respond_to/layouts/standard.iphone.erb
|
@@ -397,13 +323,9 @@ files:
|
|
397
323
|
- test/fixtures/respond_to/using_defaults_with_type_list.html.erb
|
398
324
|
- test/fixtures/respond_to/using_defaults_with_type_list.js.rjs
|
399
325
|
- test/fixtures/respond_to/using_defaults_with_type_list.xml.builder
|
400
|
-
- test/fixtures/scope
|
401
|
-
- test/fixtures/scope/test
|
402
326
|
- test/fixtures/scope/test/modgreet.erb
|
403
327
|
- test/fixtures/shared.html.erb
|
404
|
-
- test/fixtures/symlink_parent
|
405
328
|
- test/fixtures/symlink_parent/symlinked_layout.erb
|
406
|
-
- test/fixtures/test
|
407
329
|
- test/fixtures/test/_counter.html.erb
|
408
330
|
- test/fixtures/test/_customer.erb
|
409
331
|
- test/fixtures/test/_customer_counter.erb
|
@@ -432,7 +354,6 @@ files:
|
|
432
354
|
- test/fixtures/test/content_for_concatenated.erb
|
433
355
|
- test/fixtures/test/content_for_with_parameter.erb
|
434
356
|
- test/fixtures/test/delete_with_js.rjs
|
435
|
-
- test/fixtures/test/dot.directory
|
436
357
|
- test/fixtures/test/dot.directory/render_file_with_ivar.erb
|
437
358
|
- test/fixtures/test/enum_rjs_test.rjs
|
438
359
|
- test/fixtures/test/formatted_html_erb.html.erb
|
@@ -443,6 +364,7 @@ files:
|
|
443
364
|
- test/fixtures/test/greeting.js.rjs
|
444
365
|
- test/fixtures/test/hello.builder
|
445
366
|
- test/fixtures/test/hello_world.erb
|
367
|
+
- test/fixtures/test/hello_world.js
|
446
368
|
- test/fixtures/test/hello_world_container.builder
|
447
369
|
- test/fixtures/test/hello_world_from_rxml.builder
|
448
370
|
- test/fixtures/test/hello_world_with_layout_false.erb
|
@@ -463,10 +385,8 @@ files:
|
|
463
385
|
- test/fixtures/test/using_layout_around_block.html.erb
|
464
386
|
- test/fixtures/test/using_layout_around_block_with_args.html.erb
|
465
387
|
- test/fixtures/topic.rb
|
466
|
-
- test/fixtures/topics
|
467
388
|
- test/fixtures/topics/_topic.html.erb
|
468
389
|
- test/fixtures/topics.yml
|
469
|
-
- test/template
|
470
390
|
- test/template/active_record_helper_i18n_test.rb
|
471
391
|
- test/template/active_record_helper_test.rb
|
472
392
|
- test/template/asset_tag_helper_test.rb
|
@@ -495,6 +415,8 @@ files:
|
|
495
415
|
- test/testing_sandbox.rb
|
496
416
|
has_rdoc: true
|
497
417
|
homepage: http://www.rubyonrails.org
|
418
|
+
licenses: []
|
419
|
+
|
498
420
|
post_install_message:
|
499
421
|
rdoc_options: []
|
500
422
|
|
@@ -515,9 +437,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
515
437
|
requirements:
|
516
438
|
- none
|
517
439
|
rubyforge_project: actionpack
|
518
|
-
rubygems_version: 1.3.
|
440
|
+
rubygems_version: 1.3.2
|
519
441
|
signing_key:
|
520
|
-
specification_version:
|
442
|
+
specification_version: 3
|
521
443
|
summary: Web-flow and rendering framework putting the VC in MVC.
|
522
444
|
test_files: []
|
523
445
|
|