actionview 4.1.7.1 → 4.1.8
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of actionview might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/action_view/gem_version.rb +2 -2
- data/lib/action_view/helpers/form_tag_helper.rb +10 -4
- data/lib/action_view/helpers/sanitize_helper.rb +8 -8
- data/lib/action_view/helpers/tags/base.rb +1 -1
- data/lib/action_view/helpers/translation_helper.rb +1 -0
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86fb8f32ab5e38715dbafe55756565b8ea1f3a3f
|
4
|
+
data.tar.gz: 9aedafa35c4b15b5080e7c46e79204544c72ca18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08e42185760497775834265f87f848c7435f1e99b2912f129e958748e53b379e6743643dff1a7fd2da994424090192be383b4290773c17e59f8b8525c95d19d3
|
7
|
+
data.tar.gz: 7ce35dd2f585a636f17cbed5ba2b6d5e9793aea2615a77d5391cc966a16d07a6ee71e58cb3b4e8a4b27442894cb78c69c085f9b7cdff652cfeeee9470a1cb9cf
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
* Update `select_tag` to work correctly with `:include_blank` option passing a string.
|
2
|
+
|
3
|
+
Fixes #16483.
|
4
|
+
|
5
|
+
*Frank Groeneveld*
|
6
|
+
|
7
|
+
|
1
8
|
## Rails 4.1.6 (September 11, 2014) ##
|
2
9
|
|
3
10
|
* Fix that render layout: 'messages/layout' should also be added to the dependency tracker tree.
|
@@ -35,10 +35,10 @@ module ActionView
|
|
35
35
|
# This is helpful when you're fragment-caching the form. Remote forms get the
|
36
36
|
# authenticity token from the <tt>meta</tt> tag, so embedding is unnecessary unless you
|
37
37
|
# support browsers without JavaScript.
|
38
|
-
# * A list of parameters to feed to the URL the form will be posted to.
|
39
38
|
# * <tt>:remote</tt> - If set to true, will allow the Unobtrusive JavaScript drivers to control the
|
40
39
|
# submit behavior. By default this behavior is an ajax submit.
|
41
40
|
# * <tt>:enforce_utf8</tt> - If set to false, a hidden input with name utf8 is not output.
|
41
|
+
# * Any other key creates standard HTML attributes for the tag.
|
42
42
|
#
|
43
43
|
# ==== Examples
|
44
44
|
# form_tag('/posts')
|
@@ -126,12 +126,18 @@ module ActionView
|
|
126
126
|
option_tags ||= ""
|
127
127
|
html_name = (options[:multiple] == true && !name.to_s.ends_with?("[]")) ? "#{name}[]" : name
|
128
128
|
|
129
|
-
if options.
|
130
|
-
|
129
|
+
if options.include?(:include_blank)
|
130
|
+
include_blank = options.delete(:include_blank)
|
131
|
+
|
132
|
+
if include_blank == true
|
133
|
+
include_blank = ''
|
134
|
+
end
|
135
|
+
|
136
|
+
option_tags = content_tag(:option, include_blank, value: '').safe_concat(option_tags)
|
131
137
|
end
|
132
138
|
|
133
139
|
if prompt = options.delete(:prompt)
|
134
|
-
option_tags = content_tag(:option, prompt, :
|
140
|
+
option_tags = content_tag(:option, prompt, value: '').safe_concat(option_tags)
|
135
141
|
end
|
136
142
|
|
137
143
|
content_tag :select, option_tags, { "name" => html_name, "id" => sanitize_to_id(name) }.update(options.stringify_keys)
|
@@ -34,7 +34,7 @@ module ActionView
|
|
34
34
|
# Add table tags to the default allowed tags
|
35
35
|
#
|
36
36
|
# class Application < Rails::Application
|
37
|
-
# config.action_view.sanitized_allowed_tags = 'table', 'tr', 'td'
|
37
|
+
# config.action_view.sanitized_allowed_tags = ['table', 'tr', 'td']
|
38
38
|
# end
|
39
39
|
#
|
40
40
|
# Remove tags to the default allowed tags
|
@@ -174,7 +174,7 @@ module ActionView
|
|
174
174
|
# Adds valid HTML attributes that the +sanitize+ helper checks for URIs.
|
175
175
|
#
|
176
176
|
# class Application < Rails::Application
|
177
|
-
# config.action_view.sanitized_uri_attributes = 'lowsrc', 'target'
|
177
|
+
# config.action_view.sanitized_uri_attributes = ['lowsrc', 'target']
|
178
178
|
# end
|
179
179
|
#
|
180
180
|
def sanitized_uri_attributes=(attributes)
|
@@ -184,7 +184,7 @@ module ActionView
|
|
184
184
|
# Adds to the Set of 'bad' tags for the +sanitize+ helper.
|
185
185
|
#
|
186
186
|
# class Application < Rails::Application
|
187
|
-
# config.action_view.sanitized_bad_tags = 'embed', 'object'
|
187
|
+
# config.action_view.sanitized_bad_tags = ['embed', 'object']
|
188
188
|
# end
|
189
189
|
#
|
190
190
|
def sanitized_bad_tags=(attributes)
|
@@ -194,7 +194,7 @@ module ActionView
|
|
194
194
|
# Adds to the Set of allowed tags for the +sanitize+ helper.
|
195
195
|
#
|
196
196
|
# class Application < Rails::Application
|
197
|
-
# config.action_view.sanitized_allowed_tags = 'table', 'tr', 'td'
|
197
|
+
# config.action_view.sanitized_allowed_tags = ['table', 'tr', 'td']
|
198
198
|
# end
|
199
199
|
#
|
200
200
|
def sanitized_allowed_tags=(attributes)
|
@@ -214,7 +214,7 @@ module ActionView
|
|
214
214
|
# Adds to the Set of allowed CSS properties for the #sanitize and +sanitize_css+ helpers.
|
215
215
|
#
|
216
216
|
# class Application < Rails::Application
|
217
|
-
# config.action_view.sanitized_allowed_css_properties = 'expression'
|
217
|
+
# config.action_view.sanitized_allowed_css_properties = ['expression']
|
218
218
|
# end
|
219
219
|
#
|
220
220
|
def sanitized_allowed_css_properties=(attributes)
|
@@ -224,7 +224,7 @@ module ActionView
|
|
224
224
|
# Adds to the Set of allowed CSS keywords for the +sanitize+ and +sanitize_css+ helpers.
|
225
225
|
#
|
226
226
|
# class Application < Rails::Application
|
227
|
-
# config.action_view.sanitized_allowed_css_keywords = 'expression'
|
227
|
+
# config.action_view.sanitized_allowed_css_keywords = ['expression']
|
228
228
|
# end
|
229
229
|
#
|
230
230
|
def sanitized_allowed_css_keywords=(attributes)
|
@@ -234,7 +234,7 @@ module ActionView
|
|
234
234
|
# Adds to the Set of allowed shorthand CSS properties for the +sanitize+ and +sanitize_css+ helpers.
|
235
235
|
#
|
236
236
|
# class Application < Rails::Application
|
237
|
-
# config.action_view.sanitized_shorthand_css_properties = 'expression'
|
237
|
+
# config.action_view.sanitized_shorthand_css_properties = ['expression']
|
238
238
|
# end
|
239
239
|
#
|
240
240
|
def sanitized_shorthand_css_properties=(attributes)
|
@@ -244,7 +244,7 @@ module ActionView
|
|
244
244
|
# Adds to the Set of allowed protocols for the +sanitize+ helper.
|
245
245
|
#
|
246
246
|
# class Application < Rails::Application
|
247
|
-
# config.action_view.sanitized_allowed_protocols = 'ssh', 'feed'
|
247
|
+
# config.action_view.sanitized_allowed_protocols = ['ssh', 'feed']
|
248
248
|
# end
|
249
249
|
#
|
250
250
|
def sanitized_allowed_protocols=(attributes)
|
@@ -5,6 +5,7 @@ module ActionView
|
|
5
5
|
# = Action View Translation Helpers
|
6
6
|
module Helpers
|
7
7
|
module TranslationHelper
|
8
|
+
include TagHelper
|
8
9
|
# Delegates to <tt>I18n#translate</tt> but also performs three additional functions.
|
9
10
|
#
|
10
11
|
# First, it will ensure that any thrown +MissingTranslation+ messages will be turned
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.1.
|
19
|
+
version: 4.1.8
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.1.
|
26
|
+
version: 4.1.8
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: builder
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,28 +58,28 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 4.1.
|
61
|
+
version: 4.1.8
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 4.1.
|
68
|
+
version: 4.1.8
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: activemodel
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 4.1.
|
75
|
+
version: 4.1.8
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 4.1.
|
82
|
+
version: 4.1.8
|
83
83
|
description: Simple, battle-tested conventions and helpers for building web pages.
|
84
84
|
email: david@loudthinking.com
|
85
85
|
executables: []
|
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
213
|
requirements:
|
214
214
|
- none
|
215
215
|
rubyforge_project:
|
216
|
-
rubygems_version: 2.
|
216
|
+
rubygems_version: 2.4.2
|
217
217
|
signing_key:
|
218
218
|
specification_version: 4
|
219
219
|
summary: Rendering framework putting the V in MVC (part of Rails).
|