actionpack 3.2.7 → 3.2.8.rc1
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.md +24 -10
- data/lib/action_dispatch/middleware/cookies.rb +1 -0
- data/lib/action_pack/version.rb +2 -2
- data/lib/action_view/helpers/asset_tag_helper.rb +0 -2
- data/lib/action_view/helpers/form_tag_helper.rb +0 -10
- data/lib/action_view/helpers/javascript_helper.rb +0 -4
- data/lib/action_view/helpers/url_helper.rb +8 -18
- metadata +10 -10
data/CHANGELOG.md
CHANGED
@@ -1,20 +1,34 @@
|
|
1
|
-
## Rails 3.2.
|
1
|
+
## Rails 3.2.8 ##
|
2
2
|
|
3
|
-
*
|
4
|
-
|
5
|
-
* Bump Journey requirements to 1.0.4
|
3
|
+
* Reverted the deprecation of `:confirm`. *Rafael Mendonça França*
|
6
4
|
|
7
|
-
*
|
5
|
+
* Reverted the deprecation of `:disable_with`. *Rafael Mendonça França*
|
8
6
|
|
9
|
-
*
|
7
|
+
* Reverted the deprecation of `:mouseover` option to `image_tag`. *Rafael Mendonça França*
|
10
8
|
|
11
|
-
*
|
9
|
+
* Reverted the deprecation of `button_to_function` and `link_to_function` helpers.
|
12
10
|
|
13
|
-
*
|
11
|
+
*Rafael Mendonça França*
|
14
12
|
|
15
|
-
* ActionController::Metal doesn't have logger method, check it and then delegate
|
16
13
|
|
17
|
-
|
14
|
+
## Rails 3.2.7 (Jul 26, 2012) ##
|
15
|
+
|
16
|
+
* Do not convert digest auth strings to symbols. CVE-2012-3424
|
17
|
+
|
18
|
+
* Bump Journey requirements to 1.0.4
|
19
|
+
|
20
|
+
* Add support for optional root segments containing slashes
|
21
|
+
|
22
|
+
* Fixed bug creating invalid HTML in select options
|
23
|
+
|
24
|
+
* Show in log correct wrapped keys
|
25
|
+
|
26
|
+
* Fix NumberHelper options wrapping to prevent verbatim blocks being rendered instead of line continuations.
|
27
|
+
|
28
|
+
* ActionController::Metal doesn't have logger method, check it and then delegate
|
29
|
+
|
30
|
+
* ActionController::Caching depends on RackDelegation and AbstractController::Callbacks
|
31
|
+
|
18
32
|
|
19
33
|
## Rails 3.2.6 (Jun 12, 2012) ##
|
20
34
|
|
data/lib/action_pack/version.rb
CHANGED
@@ -367,8 +367,6 @@ module ActionView
|
|
367
367
|
end
|
368
368
|
|
369
369
|
if mouseover = options.delete(:mouseover)
|
370
|
-
ActiveSupport::Deprecation.warn ":mouseover option is deprecated and will be removed from Rails 4.0"
|
371
|
-
|
372
370
|
options[:onmouseover] = "this.src='#{path_to_image(mouseover)}'"
|
373
371
|
options[:onmouseout] = "this.src='#{src}'"
|
374
372
|
end
|
@@ -417,14 +417,10 @@ module ActionView
|
|
417
417
|
options = options.stringify_keys
|
418
418
|
|
419
419
|
if disable_with = options.delete("disable_with")
|
420
|
-
ActiveSupport::Deprecation.warn ":disable_with option is deprecated and will be removed from Rails 4.0. Use 'data-disable-with' instead"
|
421
|
-
|
422
420
|
options["data-disable-with"] = disable_with
|
423
421
|
end
|
424
422
|
|
425
423
|
if confirm = options.delete("confirm")
|
426
|
-
ActiveSupport::Deprecation.warn ":confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => \'Text\' }' instead"
|
427
|
-
|
428
424
|
options["data-confirm"] = confirm
|
429
425
|
end
|
430
426
|
|
@@ -471,14 +467,10 @@ module ActionView
|
|
471
467
|
options = options.stringify_keys
|
472
468
|
|
473
469
|
if disable_with = options.delete("disable_with")
|
474
|
-
ActiveSupport::Deprecation.warn ":disable_with option is deprecated and will be removed from Rails 4.0. Use 'data-disable-with' instead"
|
475
|
-
|
476
470
|
options["data-disable-with"] = disable_with
|
477
471
|
end
|
478
472
|
|
479
473
|
if confirm = options.delete("confirm")
|
480
|
-
ActiveSupport::Deprecation.warn ":confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => \'Text\' }' instead"
|
481
|
-
|
482
474
|
options["data-confirm"] = confirm
|
483
475
|
end
|
484
476
|
|
@@ -514,8 +506,6 @@ module ActionView
|
|
514
506
|
options = options.stringify_keys
|
515
507
|
|
516
508
|
if confirm = options.delete("confirm")
|
517
|
-
ActiveSupport::Deprecation.warn ":confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => \'Text\' }' instead"
|
518
|
-
|
519
509
|
options["data-confirm"] = confirm
|
520
510
|
end
|
521
511
|
|
@@ -82,8 +82,6 @@ module ActionView
|
|
82
82
|
# # => <input class="ok" onclick="alert('Hello world!');" type="button" value="Greeting" />
|
83
83
|
#
|
84
84
|
def button_to_function(name, function=nil, html_options={})
|
85
|
-
ActiveSupport::Deprecation.warn("button_to_function is deprecated and will be removed from Rails 4.0")
|
86
|
-
|
87
85
|
onclick = "#{"#{html_options[:onclick]}; " if html_options[:onclick]}#{function};"
|
88
86
|
|
89
87
|
tag(:input, html_options.merge(:type => 'button', :value => name, :onclick => onclick))
|
@@ -102,8 +100,6 @@ module ActionView
|
|
102
100
|
# # => <a class="nav_link" href="#" onclick="alert('Hello world!'); return false;">Greeting</a>
|
103
101
|
#
|
104
102
|
def link_to_function(name, function, html_options={})
|
105
|
-
ActiveSupport::Deprecation.warn("link_to_function is deprecated and will be removed from Rails 4.0")
|
106
|
-
|
107
103
|
onclick = "#{"#{html_options[:onclick]}; " if html_options[:onclick]}#{function}; return false;"
|
108
104
|
href = html_options[:href] || '#'
|
109
105
|
|
@@ -301,7 +301,7 @@ module ActionView
|
|
301
301
|
# # <div><input value="Create" type="submit" /></div>
|
302
302
|
# # </form>"
|
303
303
|
#
|
304
|
-
#
|
304
|
+
#
|
305
305
|
# <%= button_to "Delete Image", { :action => "delete", :id => @image.id },
|
306
306
|
# :confirm => "Are you sure?", :method => :delete %>
|
307
307
|
# # => "<form method="post" action="/images/delete/1" class="button_to">
|
@@ -317,7 +317,7 @@ module ActionView
|
|
317
317
|
# # => "<form class='button_to' method='post' action='http://www.example.com' data-remote='true'>
|
318
318
|
# # <div>
|
319
319
|
# # <input name='_method' value='delete' type='hidden' />
|
320
|
-
# # <input value='Destroy' type='submit'
|
320
|
+
# # <input value='Destroy' type='submit' disable_with='loading...' data-confirm='Are you sure?' />
|
321
321
|
# # </div>
|
322
322
|
# # </form>"
|
323
323
|
# #
|
@@ -333,9 +333,9 @@ module ActionView
|
|
333
333
|
form_method = method.to_s == 'get' ? 'get' : 'post'
|
334
334
|
form_options = html_options.delete('form') || {}
|
335
335
|
form_options[:class] ||= html_options.delete('form_class') || 'button_to'
|
336
|
-
|
336
|
+
|
337
337
|
remote = html_options.delete('remote')
|
338
|
-
|
338
|
+
|
339
339
|
request_token_tag = ''
|
340
340
|
if form_method == 'post' && protect_against_forgery?
|
341
341
|
request_token_tag = tag(:input, :type => "hidden", :name => request_forgery_protection_token.to_s, :value => form_authenticity_token)
|
@@ -350,7 +350,7 @@ module ActionView
|
|
350
350
|
|
351
351
|
form_options.merge!(:method => form_method, :action => url)
|
352
352
|
form_options.merge!("data-remote" => "true") if remote
|
353
|
-
|
353
|
+
|
354
354
|
"#{tag(:form, form_options, true)}<div>#{method_tag}#{tag("input", html_options)}#{request_token_tag}</div></form>".html_safe
|
355
355
|
end
|
356
356
|
|
@@ -622,19 +622,9 @@ module ActionView
|
|
622
622
|
confirm = html_options.delete('confirm')
|
623
623
|
method = html_options.delete('method')
|
624
624
|
|
625
|
-
if disable_with
|
626
|
-
|
627
|
-
|
628
|
-
html_options["data-disable-with"] = disable_with
|
629
|
-
end
|
630
|
-
|
631
|
-
if confirm
|
632
|
-
ActiveSupport::Deprecation.warn ":confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => \'Text\' }' instead"
|
633
|
-
|
634
|
-
html_options["data-confirm"] = confirm
|
635
|
-
end
|
636
|
-
|
637
|
-
add_method_to_attributes!(html_options, method) if method
|
625
|
+
html_options["data-disable-with"] = disable_with if disable_with
|
626
|
+
html_options["data-confirm"] = confirm if confirm
|
627
|
+
add_method_to_attributes!(html_options, method) if method
|
638
628
|
|
639
629
|
html_options
|
640
630
|
else
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionpack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
5
|
-
prerelease:
|
4
|
+
version: 3.2.8.rc1
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- David Heinemeier Hansson
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.2.
|
21
|
+
version: 3.2.8.rc1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 3.2.
|
29
|
+
version: 3.2.8.rc1
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: activemodel
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - '='
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 3.2.
|
37
|
+
version: 3.2.8.rc1
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - '='
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 3.2.
|
45
|
+
version: 3.2.8.rc1
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: rack-cache
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -384,13 +384,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
384
384
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
385
385
|
none: false
|
386
386
|
requirements:
|
387
|
-
- - ! '
|
387
|
+
- - ! '>'
|
388
388
|
- !ruby/object:Gem::Version
|
389
|
-
version:
|
389
|
+
version: 1.3.1
|
390
390
|
requirements:
|
391
391
|
- none
|
392
392
|
rubyforge_project:
|
393
|
-
rubygems_version: 1.8.
|
393
|
+
rubygems_version: 1.8.24
|
394
394
|
signing_key:
|
395
395
|
specification_version: 3
|
396
396
|
summary: Web-flow and rendering framework putting the VC in MVC (part of Rails).
|