actionpack 0.9.5 → 1.0.0
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 +177 -0
- data/README +0 -1
- data/install.rb +1 -0
- data/lib/action_controller.rb +6 -1
- data/lib/action_controller/assertions/active_record_assertions.rb +2 -2
- data/lib/action_controller/base.rb +53 -41
- data/lib/action_controller/benchmarking.rb +1 -1
- data/lib/action_controller/cgi_ext/cgi_methods.rb +14 -16
- data/lib/action_controller/cgi_process.rb +16 -6
- data/lib/action_controller/cookies.rb +70 -0
- data/lib/action_controller/dependencies.rb +106 -0
- data/lib/action_controller/helpers.rb +14 -3
- data/lib/action_controller/layout.rb +16 -2
- data/lib/action_controller/request.rb +17 -7
- data/lib/action_controller/rescue.rb +33 -3
- data/lib/action_controller/support/class_inheritable_attributes.rb +4 -0
- data/lib/action_controller/support/inflector.rb +14 -12
- data/lib/action_controller/support/misc.rb +6 -0
- data/lib/action_controller/templates/rescues/_request_and_response.rhtml +2 -2
- data/lib/action_controller/templates/rescues/diagnostics.rhtml +4 -6
- data/lib/action_controller/templates/rescues/template_error.rhtml +1 -9
- data/lib/action_controller/templates/scaffolds/edit.rhtml +2 -1
- data/lib/action_controller/templates/scaffolds/layout.rhtml +36 -0
- data/lib/action_controller/templates/scaffolds/new.rhtml +1 -0
- data/lib/action_controller/test_process.rb +27 -8
- data/lib/action_controller/url_rewriter.rb +15 -4
- data/lib/action_view/base.rb +4 -3
- data/lib/action_view/helpers/active_record_helper.rb +29 -15
- data/lib/action_view/helpers/date_helper.rb +6 -5
- data/lib/action_view/helpers/form_helper.rb +31 -4
- data/lib/action_view/helpers/form_options_helper.rb +13 -3
- data/lib/action_view/helpers/tag_helper.rb +14 -16
- data/lib/action_view/helpers/url_helper.rb +46 -1
- data/lib/action_view/partials.rb +8 -1
- data/lib/action_view/template_error.rb +10 -3
- data/lib/action_view/vendor/builder/blankslate.rb +33 -1
- data/lib/action_view/vendor/builder/xmlevents.rb +1 -1
- data/lib/action_view/vendor/builder/xmlmarkup.rb +1 -1
- data/rakefile +4 -13
- data/test/controller/action_pack_assertions_test.rb +39 -1
- data/test/controller/active_record_assertions_test.rb +6 -5
- data/test/controller/cgi_test.rb +33 -3
- data/test/controller/cookie_test.rb +43 -2
- data/test/controller/helper_test.rb +1 -1
- data/test/controller/render_test.rb +9 -0
- data/test/controller/url_test.rb +16 -0
- data/test/fixtures/scope/test/modgreet.rhtml +1 -0
- data/test/template/active_record_helper_test.rb +34 -8
- data/test/template/date_helper_test.rb +164 -20
- data/test/template/form_helper_test.rb +12 -0
- data/test/template/form_options_helper_test.rb +7 -16
- data/test/template/url_helper_test.rb +12 -0
- metadata +8 -2
@@ -27,6 +27,18 @@ class UrlHelperTest < Test::Unit::TestCase
|
|
27
27
|
)
|
28
28
|
end
|
29
29
|
|
30
|
+
def test_link_to_image
|
31
|
+
assert_equal(
|
32
|
+
"<a href=\"http://www.world.com\"><img alt=\"Rss\" border=\"0\" height=\"45\" src=\"/images/rss.png\" width=\"30\" /></a>",
|
33
|
+
link_to_image("rss", "http://www.world.com", "size" => "30x45")
|
34
|
+
)
|
35
|
+
|
36
|
+
assert_equal(
|
37
|
+
"<a class=\"admin\" href=\"http://www.world.com\"><img alt=\"Feed\" border=\"0\" height=\"45\" src=\"/images/rss.gif\" width=\"30\" /></a>",
|
38
|
+
link_to_image("rss.gif", "http://www.world.com", "size" => "30x45", "alt" => "Feed", "class" => "admin")
|
39
|
+
)
|
40
|
+
end
|
41
|
+
|
30
42
|
def test_link_unless_current
|
31
43
|
@params = { "controller" => "weblog", "action" => "show"}
|
32
44
|
assert_equal "Showing", link_to_unless_current("Showing", :action => "show", :controller => "weblog")
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.1
|
|
3
3
|
specification_version: 1
|
4
4
|
name: actionpack
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2004-
|
6
|
+
version: 1.0.0
|
7
|
+
date: 2004-12-16
|
8
8
|
summary: Web-flow and rendering framework putting the VC in MVC.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -42,6 +42,8 @@ files:
|
|
42
42
|
- lib/action_controller/benchmarking.rb
|
43
43
|
- lib/action_controller/cgi_ext
|
44
44
|
- lib/action_controller/cgi_process.rb
|
45
|
+
- lib/action_controller/cookies.rb
|
46
|
+
- lib/action_controller/dependencies.rb
|
45
47
|
- lib/action_controller/filters.rb
|
46
48
|
- lib/action_controller/flash.rb
|
47
49
|
- lib/action_controller/helpers.rb
|
@@ -67,6 +69,7 @@ files:
|
|
67
69
|
- lib/action_controller/support/clean_logger.rb
|
68
70
|
- lib/action_controller/support/cookie_performance_fix.rb
|
69
71
|
- lib/action_controller/support/inflector.rb
|
72
|
+
- lib/action_controller/support/misc.rb
|
70
73
|
- lib/action_controller/templates/rescues
|
71
74
|
- lib/action_controller/templates/scaffolds
|
72
75
|
- lib/action_controller/templates/rescues/_request_and_response.rhtml
|
@@ -117,10 +120,13 @@ files:
|
|
117
120
|
- test/controller/url_test.rb
|
118
121
|
- test/fixtures/helpers
|
119
122
|
- test/fixtures/layouts
|
123
|
+
- test/fixtures/scope
|
120
124
|
- test/fixtures/test
|
121
125
|
- test/fixtures/helpers/abc_helper.rb
|
122
126
|
- test/fixtures/layouts/builder.rxml
|
123
127
|
- test/fixtures/layouts/standard.rhtml
|
128
|
+
- test/fixtures/scope/test
|
129
|
+
- test/fixtures/scope/test/modgreet.rhtml
|
124
130
|
- test/fixtures/test/_customer.rhtml
|
125
131
|
- test/fixtures/test/greeting.rhtml
|
126
132
|
- test/fixtures/test/hello.rxml
|