actionview 5.2.3 → 5.2.4.rc1
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 +18 -1
- data/lib/action_view/gem_version.rb +2 -2
- data/lib/action_view/helpers/form_helper.rb +2 -2
- data/lib/action_view/helpers/form_tag_helper.rb +2 -0
- data/lib/action_view/helpers/url_helper.rb +1 -1
- data/lib/assets/compiled/rails-ujs.js +4 -4
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bee2854f221042bd39d08a9aa41c871f6029abb0f5b19143051fda4e432ca773
|
4
|
+
data.tar.gz: 53a3c5699665ff4ea1bd71a0a750f399dd36d61464a52a99edcc3a90fd399693
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f041a35b39a2505bcaff2eec99fea13e39df28eca2b1155afdec458c24e4d814595aa2246dbdfb9e528ce89c60c135ddb188e7a5c1eb963d03d91525529e78f6
|
7
|
+
data.tar.gz: c5d8b7f212b06ebc6325fc4695b8af33a1c5f4196a9e7ed820b2f8a9a53ec6fb4ab91cf503ac819b02660a88218759c83df12c8336bb6ad9d99f3d8619916148
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## Rails 5.2.4.rc1 (November 22, 2019) ##
|
2
|
+
|
3
|
+
* Allow programmatic click events to trigger Rails UJS click handlers.
|
4
|
+
Programmatic click events (eg. ones generated by `Rails.fire(link, "click")`) don't specify a button. These events were being incorrectly stopped by code meant to ignore scroll wheel and right clicks introduced in #34573.
|
5
|
+
|
6
|
+
*Sudara Williams*
|
7
|
+
|
8
|
+
|
1
9
|
## Rails 5.2.3 (March 27, 2019) ##
|
2
10
|
|
3
11
|
* Prevent non-primary mouse keys from triggering Rails UJS click handlers.
|
@@ -15,7 +23,16 @@
|
|
15
23
|
|
16
24
|
## Rails 5.2.2.1 (March 11, 2019) ##
|
17
25
|
|
18
|
-
*
|
26
|
+
* Only accept formats from registered mime types
|
27
|
+
|
28
|
+
A lack of filtering on mime types could allow an attacker to read
|
29
|
+
arbitrary files on the target server or to perform a denial of service
|
30
|
+
attack.
|
31
|
+
|
32
|
+
Fixes CVE-2019-5418
|
33
|
+
Fixes CVE-2019-5419
|
34
|
+
|
35
|
+
*John Hawthorn*, *Eileen M. Uchitelle*, *Aaron Patterson*
|
19
36
|
|
20
37
|
|
21
38
|
## Rails 5.2.2 (December 04, 2018) ##
|
@@ -736,7 +736,7 @@ module ActionView
|
|
736
736
|
# def labelled_form_with(**options, &block)
|
737
737
|
# form_with(**options.merge(builder: LabellingFormBuilder), &block)
|
738
738
|
# end
|
739
|
-
def form_with(model: nil, scope: nil, url: nil, format: nil, **options)
|
739
|
+
def form_with(model: nil, scope: nil, url: nil, format: nil, **options, &block)
|
740
740
|
options[:allow_method_names_outside_object] = true
|
741
741
|
options[:skip_default_ids] = !form_with_generates_ids
|
742
742
|
|
@@ -749,7 +749,7 @@ module ActionView
|
|
749
749
|
|
750
750
|
if block_given?
|
751
751
|
builder = instantiate_builder(scope, model, options)
|
752
|
-
output = capture(builder, &
|
752
|
+
output = capture(builder, &block)
|
753
753
|
options[:multipart] ||= builder.multipart?
|
754
754
|
|
755
755
|
html_options = html_options_for_form_with(url, model, options)
|
@@ -163,6 +163,8 @@ module ActionView
|
|
163
163
|
# * <tt>:size</tt> - The number of visible characters that will fit in the input.
|
164
164
|
# * <tt>:maxlength</tt> - The maximum number of characters that the browser will allow the user to enter.
|
165
165
|
# * <tt>:placeholder</tt> - The text contained in the field by default which is removed when the field receives focus.
|
166
|
+
# If set to true, use a translation is found in the current I18n locale
|
167
|
+
# (through helpers.placeholders.<modelname>.<attribute>).
|
166
168
|
# * Any other key creates standard HTML attributes for the tag.
|
167
169
|
#
|
168
170
|
# ==== Examples
|
@@ -253,7 +253,7 @@ module ActionView
|
|
253
253
|
# # <input value="New" type="submit" />
|
254
254
|
# # </form>"
|
255
255
|
#
|
256
|
-
# <%= button_to "New",
|
256
|
+
# <%= button_to "New", new_article_path %>
|
257
257
|
# # => "<form method="post" action="/articles/new" class="button_to">
|
258
258
|
# # <input value="New" type="submit" />
|
259
259
|
# # </form>"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Unobtrusive JavaScript
|
3
3
|
https://github.com/rails/rails/blob/master/actionview/app/assets/javascripts
|
4
4
|
Released under the MIT license
|
5
|
-
|
5
|
+
*/;
|
6
6
|
|
7
7
|
(function() {
|
8
8
|
var context = this;
|
@@ -622,14 +622,14 @@ Released under the MIT license
|
|
622
622
|
};
|
623
623
|
|
624
624
|
Rails.preventInsignificantClick = function(e) {
|
625
|
-
var data, insignificantMetaClick, link, metaClick, method,
|
625
|
+
var data, insignificantMetaClick, link, metaClick, method, nonPrimaryMouseClick;
|
626
626
|
link = this;
|
627
627
|
method = (link.getAttribute('data-method') || 'GET').toUpperCase();
|
628
628
|
data = link.getAttribute('data-params');
|
629
629
|
metaClick = e.metaKey || e.ctrlKey;
|
630
630
|
insignificantMetaClick = metaClick && method === 'GET' && !data;
|
631
|
-
|
632
|
-
if (
|
631
|
+
nonPrimaryMouseClick = (e.button != null) && e.button !== 0;
|
632
|
+
if (nonPrimaryMouseClick || insignificantMetaClick) {
|
633
633
|
return e.stopImmediatePropagation();
|
634
634
|
}
|
635
635
|
};
|
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: 5.2.
|
4
|
+
version: 5.2.4.rc1
|
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: 2019-
|
11
|
+
date: 2019-11-23 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: 5.2.
|
19
|
+
version: 5.2.4.rc1
|
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: 5.2.
|
26
|
+
version: 5.2.4.rc1
|
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: 5.2.
|
95
|
+
version: 5.2.4.rc1
|
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: 5.2.
|
102
|
+
version: 5.2.4.rc1
|
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: 5.2.
|
109
|
+
version: 5.2.4.rc1
|
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: 5.2.
|
116
|
+
version: 5.2.4.rc1
|
117
117
|
description: Simple, battle-tested conventions and helpers for building web pages.
|
118
118
|
email: david@loudthinking.com
|
119
119
|
executables: []
|
@@ -230,8 +230,8 @@ homepage: http://rubyonrails.org
|
|
230
230
|
licenses:
|
231
231
|
- MIT
|
232
232
|
metadata:
|
233
|
-
source_code_uri: https://github.com/rails/rails/tree/v5.2.
|
234
|
-
changelog_uri: https://github.com/rails/rails/blob/v5.2.
|
233
|
+
source_code_uri: https://github.com/rails/rails/tree/v5.2.4.rc1/actionview
|
234
|
+
changelog_uri: https://github.com/rails/rails/blob/v5.2.4.rc1/actionview/CHANGELOG.md
|
235
235
|
post_install_message:
|
236
236
|
rdoc_options: []
|
237
237
|
require_paths:
|
@@ -243,12 +243,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
243
243
|
version: 2.2.2
|
244
244
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
245
245
|
requirements:
|
246
|
-
- - "
|
246
|
+
- - ">"
|
247
247
|
- !ruby/object:Gem::Version
|
248
|
-
version:
|
248
|
+
version: 1.3.1
|
249
249
|
requirements:
|
250
250
|
- none
|
251
|
-
rubygems_version: 3.0.
|
251
|
+
rubygems_version: 3.0.3
|
252
252
|
signing_key:
|
253
253
|
specification_version: 4
|
254
254
|
summary: Rendering framework putting the V in MVC (part of Rails).
|