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 +4 -4
- data/CHANGELOG.md +1 -8
- data/lib/action_view/gem_version.rb +1 -1
- data/lib/action_view/helpers/tags/base.rb +1 -1
- data/lib/action_view/helpers/url_helper.rb +1 -1
- data/lib/action_view/railtie.rb +9 -0
- data/lib/assets/compiled/rails-ujs.js +8 -0
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e9b05cb9e60dbd3b1aa2689adf77008a3364b79
|
4
|
+
data.tar.gz: dd8f6bdfb4670846a21195cabf8d2a366f818615
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a01cdde81fcf96e681dc8f90acfc0d213be8db2079bdb776df4c6cfce1167408cca5736259e6066da6c724ca355e63af80d0e765a0bdef9149d7492f0e7ac6c3
|
7
|
+
data.tar.gz: b1ca351dbcf16fce71eab9296fe1b696ec670e718c631150bec36f163bd95708d63f9a847ee2ad211b76ae33375cfdfdb53cea74efa2a82a94a09eb8b45a3518
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,4 @@
|
|
1
|
-
## Rails 5.1.0
|
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.
|
@@ -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 ||=
|
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
|
data/lib/action_view/railtie.rb
CHANGED
@@ -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
|
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-
|
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
|
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
|
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
|
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
|
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
|
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
|
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:
|
247
|
+
version: '0'
|
248
248
|
requirements:
|
249
249
|
- none
|
250
250
|
rubyforge_project:
|
251
|
-
rubygems_version: 2.6.
|
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).
|