actionview 5.2.3 → 5.2.4.1

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: afb542680a6bdea85297d58343a24da1754f7893189439ead02c8b566de24d27
4
- data.tar.gz: 53438d080b42df0f88a29b45f9f2a4dfb2afa1129dbe366a612bf47c25645fea
3
+ metadata.gz: 26e44222b9ac065298a40d380e61ef50a66f3a7acdec237f4fb6716f993752f4
4
+ data.tar.gz: 9335d0266925c66f02fb06b43f809510a6c3bdfb3bd3bbb6bbac53309be12f31
5
5
  SHA512:
6
- metadata.gz: 985967fad7c02691fca261d82a25bf1b409071c5ee422127bec7bde426b03a8bac3024736861149c8aa4a80de0240e393c4e98b18f52c2041bbe16223d409f59
7
- data.tar.gz: b5965f912d6ef4a64764370c17adc1f24bdc960fb8a4e549930d54f2d708dde433a1e9495f35d5fbbc66c3e5bee57d66a3b42107fada1bd708d1201cb657d04e
6
+ metadata.gz: b04d4c91be4d3813c1289c5d59d2899e477e26ee5498fff8df115ba5b95fd98237afd51ff402a857eae2d60a2ca532168e0abbc87bc7fde320f73bce9ee905d9
7
+ data.tar.gz: 1c01d9cd9b72f33a29cb60dba0ffdd3c2b05569a931aad3811f195b339c512db1a32f0f2c13c546d1fde691b3c72546d3ae6da3f479dfe86b3bc519647d4698d
@@ -1,3 +1,16 @@
1
+ ## Rails 5.2.4.1 (December 18, 2019) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 5.2.4 (November 27, 2019) ##
7
+
8
+ * Allow programmatic click events to trigger Rails UJS click handlers.
9
+ 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.
10
+
11
+ *Sudara Williams*
12
+
13
+
1
14
  ## Rails 5.2.3 (March 27, 2019) ##
2
15
 
3
16
  * Prevent non-primary mouse keys from triggering Rails UJS click handlers.
@@ -15,7 +28,16 @@
15
28
 
16
29
  ## Rails 5.2.2.1 (March 11, 2019) ##
17
30
 
18
- * No changes.
31
+ * Only accept formats from registered mime types
32
+
33
+ A lack of filtering on mime types could allow an attacker to read
34
+ arbitrary files on the target server or to perform a denial of service
35
+ attack.
36
+
37
+ Fixes CVE-2019-5418
38
+ Fixes CVE-2019-5419
39
+
40
+ *John Hawthorn*, *Eileen M. Uchitelle*, *Aaron Patterson*
19
41
 
20
42
 
21
43
  ## Rails 5.2.2 (December 04, 2018) ##
@@ -9,8 +9,8 @@ module ActionView
9
9
  module VERSION
10
10
  MAJOR = 5
11
11
  MINOR = 2
12
- TINY = 3
13
- PRE = nil
12
+ TINY = 4
13
+ PRE = "1"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -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, &Proc.new)
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", new_articles_path %>
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, primaryMouseKey;
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
- primaryMouseKey = e.button === 0;
632
- if (!primaryMouseKey || insignificantMetaClick) {
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.3
4
+ version: 5.2.4.1
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-03-28 00:00:00.000000000 Z
11
+ date: 2019-12-18 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.3
19
+ version: 5.2.4.1
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.3
26
+ version: 5.2.4.1
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.3
95
+ version: 5.2.4.1
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.3
102
+ version: 5.2.4.1
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.3
109
+ version: 5.2.4.1
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.3
116
+ version: 5.2.4.1
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.3/actionview
234
- changelog_uri: https://github.com/rails/rails/blob/v5.2.3/actionview/CHANGELOG.md
233
+ source_code_uri: https://github.com/rails/rails/tree/v5.2.4.1/actionview
234
+ changelog_uri: https://github.com/rails/rails/blob/v5.2.4.1/actionview/CHANGELOG.md
235
235
  post_install_message:
236
236
  rdoc_options: []
237
237
  require_paths:
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
248
  version: '0'
249
249
  requirements:
250
250
  - none
251
- rubygems_version: 3.0.1
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).