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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afb542680a6bdea85297d58343a24da1754f7893189439ead02c8b566de24d27
4
- data.tar.gz: 53438d080b42df0f88a29b45f9f2a4dfb2afa1129dbe366a612bf47c25645fea
3
+ metadata.gz: bee2854f221042bd39d08a9aa41c871f6029abb0f5b19143051fda4e432ca773
4
+ data.tar.gz: 53a3c5699665ff4ea1bd71a0a750f399dd36d61464a52a99edcc3a90fd399693
5
5
  SHA512:
6
- metadata.gz: 985967fad7c02691fca261d82a25bf1b409071c5ee422127bec7bde426b03a8bac3024736861149c8aa4a80de0240e393c4e98b18f52c2041bbe16223d409f59
7
- data.tar.gz: b5965f912d6ef4a64764370c17adc1f24bdc960fb8a4e549930d54f2d708dde433a1e9495f35d5fbbc66c3e5bee57d66a3b42107fada1bd708d1201cb657d04e
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
- * No changes.
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) ##
@@ -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 = "rc1"
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.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-03-28 00:00:00.000000000 Z
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.3
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.3
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.3
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.3
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.3
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.3
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.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.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: '0'
248
+ version: 1.3.1
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).