actionview 5.1.0.rc2 → 5.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
  SHA1:
3
- metadata.gz: 82bc842e6a1cad972a1aea3fa6297953c215188c
4
- data.tar.gz: d601a12106a2c0f157cddbbf7a11dd05885fb226
3
+ metadata.gz: 1e9b05cb9e60dbd3b1aa2689adf77008a3364b79
4
+ data.tar.gz: dd8f6bdfb4670846a21195cabf8d2a366f818615
5
5
  SHA512:
6
- metadata.gz: ea5f7f2fc5328e585e6b0911bb39a1842909c950dd79e047de9e19e095b239c350a069957386c41256da3c1dee6228d5c318e7041b132c5d6e2f160fec9dc928
7
- data.tar.gz: 23eac9774afa65e0bd38900f35f025b38421a3ab081e71a37a16d8688ef9773d89451c10a9b153a601245298d0d823cc2d506d828a060ef30bb763c857b63d83
6
+ metadata.gz: a01cdde81fcf96e681dc8f90acfc0d213be8db2079bdb776df4c6cfce1167408cca5736259e6066da6c724ca355e63af80d0e765a0bdef9149d7492f0e7ac6c3
7
+ data.tar.gz: b1ca351dbcf16fce71eab9296fe1b696ec670e718c631150bec36f163bd95708d63f9a847ee2ad211b76ae33375cfdfdb53cea74efa2a82a94a09eb8b45a3518
data/CHANGELOG.md CHANGED
@@ -1,9 +1,4 @@
1
- ## Rails 5.1.0.rc2 (April 20, 2017) ##
2
-
3
- * No changes.
4
-
5
-
6
- ## Rails 5.1.0.rc1 (March 20, 2017) ##
1
+ ## Rails 5.1.0 (April 27, 2017) ##
7
2
 
8
3
  * Remove the option `encode_special_chars` misnomer from `strip_tags`
9
4
 
@@ -14,8 +9,6 @@
14
9
 
15
10
  *Andrew Hood*
16
11
 
17
- ## Rails 5.1.0.beta1 (February 23, 2017) ##
18
-
19
12
  * Change the ERB handler from Erubis to Erubi.
20
13
 
21
14
  Erubi is an Erubis fork that's svelte, simple, and currently maintained.
@@ -8,7 +8,7 @@ module ActionView
8
8
  MAJOR = 5
9
9
  MINOR = 1
10
10
  TINY = 0
11
- PRE = "rc2"
11
+ PRE = nil
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -149,7 +149,7 @@ module ActionView
149
149
  end
150
150
 
151
151
  value = options.fetch(:selected) { value(object) }
152
- select = content_tag("select", add_options(option_tags, options, value), html_options)
152
+ select = content_tag("select", add_options(option_tags, options, value), html_options.except!("skip_default_ids", "allow_method_names_outside_object"))
153
153
 
154
154
  if html_options["multiple"] && options.fetch(:include_hidden, true)
155
155
  tag("input", disabled: html_options["disabled"], name: html_options["name"], type: "hidden", value: "") + select
@@ -542,7 +542,7 @@ module ActionView
542
542
 
543
543
  return false unless request.get? || request.head?
544
544
 
545
- check_parameters ||= !options.is_a?(String) && options.try(:delete, :check_parameters)
545
+ check_parameters ||= options.is_a?(Hash) && options.delete(:check_parameters)
546
546
  url_string = URI.parser.unescape(url_for(options)).force_encoding(Encoding::BINARY)
547
547
 
548
548
  # We ignore any extra parameters in the request_uri if the
@@ -17,6 +17,15 @@ module ActionView
17
17
  end
18
18
  end
19
19
 
20
+ initializer "action_view.form_with_generates_remote_forms" do |app|
21
+ ActiveSupport.on_load(:action_view) do
22
+ form_with_generates_remote_forms = app.config.action_view.delete(:form_with_generates_remote_forms)
23
+ unless form_with_generates_remote_forms.nil?
24
+ ActionView::Helpers::FormHelper.form_with_generates_remote_forms = form_with_generates_remote_forms
25
+ end
26
+ end
27
+ end
28
+
20
29
  initializer "action_view.logger" do
21
30
  ActiveSupport.on_load(:action_view) { self.logger ||= Rails.logger }
22
31
  end
@@ -365,6 +365,14 @@ Released under the MIT license
365
365
 
366
366
  matches = Rails.matches, getData = Rails.getData, setData = Rails.setData, stopEverything = Rails.stopEverything, formElements = Rails.formElements;
367
367
 
368
+ Rails.handleDisabledElement = function(e) {
369
+ var element;
370
+ element = this;
371
+ if (element.disabled) {
372
+ return stopEverything(e);
373
+ }
374
+ };
375
+
368
376
  Rails.enableElement = function(e) {
369
377
  var element;
370
378
  element = e instanceof Event ? e.target : e;
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.1.0.rc2
4
+ version: 5.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: 2017-04-21 00:00:00.000000000 Z
11
+ date: 2017-04-27 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.1.0.rc2
19
+ version: 5.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: 5.1.0.rc2
26
+ version: 5.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: 5.1.0.rc2
95
+ version: 5.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: 5.1.0.rc2
102
+ version: 5.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: 5.1.0.rc2
109
+ version: 5.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: 5.1.0.rc2
116
+ version: 5.1.0
117
117
  description: Simple, battle-tested conventions and helpers for building web pages.
118
118
  email: david@loudthinking.com
119
119
  executables: []
@@ -242,13 +242,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
242
242
  version: 2.2.2
243
243
  required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  requirements:
245
- - - ">"
245
+ - - ">="
246
246
  - !ruby/object:Gem::Version
247
- version: 1.3.1
247
+ version: '0'
248
248
  requirements:
249
249
  - none
250
250
  rubyforge_project:
251
- rubygems_version: 2.6.10
251
+ rubygems_version: 2.6.11
252
252
  signing_key:
253
253
  specification_version: 4
254
254
  summary: Rendering framework putting the V in MVC (part of Rails).