actionview 6.1.0.rc2 → 6.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 562e430d06a88bfaa7ebf87316f486b7ed0031ac41feec1e6e4eb0c69578216c
4
- data.tar.gz: a19b3a1d9e524cdc1a9714f94891ff8b6f5eb296c14f2e4e662c2b232fecba24
3
+ metadata.gz: 66b9ba4747ae5973f8f784343f64e7201d2bbf8299cb9b9dc2ed7869db55cbc6
4
+ data.tar.gz: da671bc8666ecd9386fa75a7639c837492df9b0d5b81c9f2a66114a522d6dec9
5
5
  SHA512:
6
- metadata.gz: afde04e25e22d1b1dc999322969b96b52b361823dafc75f5c257a001704bd4a8be0d16c6fdf501c2888aeaa87da11bbebeb9b7daf917f719fb565bfa9646479d
7
- data.tar.gz: 98fc45cbfce87e37456f5e3eacf7c53b7d3fb89cc05b44d335b7202128fe444e3a17ce69bdc3f0de0aa10bc6e73dbc56e5241694a895f5fbac635292adde4aae
6
+ metadata.gz: 409ff7a86026884f20e3fbf1eb0560fc990328369c15e90500f27dc8336020edc59acfb3b8da61806c7eac62ae501c1c5f176c4dc7da641f3da338bcfb2cc6f5
7
+ data.tar.gz: 961932d31d4e46c9674a9ea3229db468dfd922c1b79c9f23403b928763f1a8798848dae25554f09255965968109e7557953b4c3a7d6573e142061a3fc3e360c7
@@ -1,4 +1,11 @@
1
- ## Rails 6.1.0.rc2 (December 01, 2020) ##
1
+ ## Rails 6.1.0 (December 09, 2020) ##
2
+
3
+ * SanitizeHelper.sanitized_allowed_attributes and SanitizeHelper.sanitized_allowed_tags
4
+ call safe_list_sanitizer's class method
5
+
6
+ Fixes #39586
7
+
8
+ *Taufiq Muhammadi*
2
9
 
3
10
  * Change form_with to generate non-remote forms by default.
4
11
 
@@ -11,9 +18,6 @@
11
18
 
12
19
  *Petrik de Heus*
13
20
 
14
-
15
- ## Rails 6.1.0.rc1 (November 02, 2020) ##
16
-
17
21
  * Yield translated strings to calls of `ActionView::FormBuilder#button`
18
22
  when a block is given.
19
23
 
@@ -10,7 +10,7 @@ module ActionView
10
10
  MAJOR = 6
11
11
  MINOR = 1
12
12
  TINY = 0
13
- PRE = "rc2"
13
+ PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -897,16 +897,15 @@ module ActionView
897
897
  end
898
898
 
899
899
  def set_default_disable_with(value, tag_options)
900
- return unless ActionView::Base.automatically_disable_submit_tag
901
- data = tag_options["data"]
900
+ data = tag_options.fetch("data", {})
902
901
 
903
- unless tag_options["data-disable-with"] == false || (data && data["disable_with"] == false)
902
+ if tag_options["data-disable-with"] == false || data["disable_with"] == false
903
+ data.delete("disable_with")
904
+ elsif ActionView::Base.automatically_disable_submit_tag
904
905
  disable_with_text = tag_options["data-disable-with"]
905
- disable_with_text ||= data["disable_with"] if data
906
+ disable_with_text ||= data["disable_with"]
906
907
  disable_with_text ||= value.to_s.clone
907
908
  tag_options.deep_merge!("data" => { "disable_with" => disable_with_text })
908
- else
909
- data.delete("disable_with") if data
910
909
  end
911
910
 
912
911
  tag_options.delete("data-disable-with")
@@ -129,11 +129,11 @@ module ActionView
129
129
  end
130
130
 
131
131
  def sanitized_allowed_tags
132
- safe_list_sanitizer.allowed_tags
132
+ sanitizer_vendor.safe_list_sanitizer.allowed_tags
133
133
  end
134
134
 
135
135
  def sanitized_allowed_attributes
136
- safe_list_sanitizer.allowed_attributes
136
+ sanitizer_vendor.safe_list_sanitizer.allowed_attributes
137
137
  end
138
138
 
139
139
  # Gets the Rails::Html::FullSanitizer instance used by +strip_tags+. Replace with
@@ -69,6 +69,7 @@ module ActionView
69
69
  #
70
70
  def translate(key, **options)
71
71
  return key.map { |k| translate(k, **options) } if key.is_a?(Array)
72
+ key = key.to_s unless key.is_a?(Symbol)
72
73
 
73
74
  alternatives = if options.key?(:default)
74
75
  options[:default].is_a?(Array) ? options.delete(:default).compact : [options.delete(:default)]
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: 6.1.0.rc2
4
+ version: 6.1.0
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: 2020-12-01 00:00:00.000000000 Z
11
+ date: 2020-12-09 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: 6.1.0.rc2
19
+ version: 6.1.0
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: 6.1.0.rc2
26
+ version: 6.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: builder
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -92,28 +92,28 @@ dependencies:
92
92
  requirements:
93
93
  - - '='
94
94
  - !ruby/object:Gem::Version
95
- version: 6.1.0.rc2
95
+ version: 6.1.0
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - '='
101
101
  - !ruby/object:Gem::Version
102
- version: 6.1.0.rc2
102
+ version: 6.1.0
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: activemodel
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - '='
108
108
  - !ruby/object:Gem::Version
109
- version: 6.1.0.rc2
109
+ version: 6.1.0
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - '='
115
115
  - !ruby/object:Gem::Version
116
- version: 6.1.0.rc2
116
+ version: 6.1.0
117
117
  description: Simple, battle-tested conventions and helpers for building web pages.
118
118
  email: david@loudthinking.com
119
119
  executables: []
@@ -239,10 +239,10 @@ licenses:
239
239
  - MIT
240
240
  metadata:
241
241
  bug_tracker_uri: https://github.com/rails/rails/issues
242
- changelog_uri: https://github.com/rails/rails/blob/v6.1.0.rc2/actionview/CHANGELOG.md
243
- documentation_uri: https://api.rubyonrails.org/v6.1.0.rc2/
242
+ changelog_uri: https://github.com/rails/rails/blob/v6.1.0/actionview/CHANGELOG.md
243
+ documentation_uri: https://api.rubyonrails.org/v6.1.0/
244
244
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
245
- source_code_uri: https://github.com/rails/rails/tree/v6.1.0.rc2/actionview
245
+ source_code_uri: https://github.com/rails/rails/tree/v6.1.0/actionview
246
246
  post_install_message:
247
247
  rdoc_options: []
248
248
  require_paths:
@@ -254,9 +254,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
254
254
  version: 2.5.0
255
255
  required_rubygems_version: !ruby/object:Gem::Requirement
256
256
  requirements:
257
- - - ">"
257
+ - - ">="
258
258
  - !ruby/object:Gem::Version
259
- version: 1.3.1
259
+ version: '0'
260
260
  requirements:
261
261
  - none
262
262
  rubygems_version: 3.1.4