actionview 5.1.1 → 5.1.2.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 +22 -0
- data/lib/action_view/gem_version.rb +2 -2
- data/lib/action_view/helpers/cache_helper.rb +2 -4
- data/lib/action_view/helpers/tags/collection_check_boxes.rb +1 -0
- data/lib/action_view/helpers/tags/collection_radio_buttons.rb +1 -0
- data/lib/action_view/helpers/url_helper.rb +4 -1
- data/lib/action_view/log_subscriber.rb +4 -3
- data/lib/action_view/renderer/partial_renderer.rb +1 -1
- data/lib/action_view/renderer/renderer.rb +4 -0
- data/lib/assets/compiled/rails-ujs.js +1 -1
- metadata +11 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66f7c3746a14468bd2f3178dd4ada4ce7462f7b9
|
4
|
+
data.tar.gz: cba31c8040a058e306acb690b4aa43f33eb19907
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ba089f4b51ca78efb7a407f0bd33b2a854fe73f4b570c47a0541fc526257aa02aef150a72dc33d5450513637ef3f434a836974148921807500a851f65b7d62a
|
7
|
+
data.tar.gz: 8d7337d03585076c925ee81995a9decdf27baa47807fabc7ed711bd8a055a42317edd04779316dfc05839c0f16c36e4fa1c251a99bfffad9c2f3dd956820d2ca
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,25 @@
|
|
1
|
+
## Rails 5.1.2.rc1 (June 20, 2017) ##
|
2
|
+
|
3
|
+
* Fix issues with scopes and engine on `current_page?` method.
|
4
|
+
|
5
|
+
Fixes #29401.
|
6
|
+
|
7
|
+
*Nikita Savrov*
|
8
|
+
|
9
|
+
* Generate field ids in `collection_check_boxes` and `collection_radio_buttons`.
|
10
|
+
|
11
|
+
This makes sure that the labels are linked up with the fields.
|
12
|
+
|
13
|
+
Fixes #29014.
|
14
|
+
|
15
|
+
*Yuji Yaginuma*
|
16
|
+
|
17
|
+
|
18
|
+
## Rails 5.1.1 (May 12, 2017) ##
|
19
|
+
|
20
|
+
* No changes.
|
21
|
+
|
22
|
+
|
1
23
|
## Rails 5.1.0 (April 27, 2017) ##
|
2
24
|
|
3
25
|
* Remove the option `encode_special_chars` misnomer from `strip_tags`
|
@@ -211,8 +211,6 @@ module ActionView
|
|
211
211
|
end
|
212
212
|
end
|
213
213
|
|
214
|
-
attr_reader :cache_hit # :nodoc:
|
215
|
-
|
216
214
|
private
|
217
215
|
|
218
216
|
def fragment_name_with_digest(name, virtual_path)
|
@@ -228,10 +226,10 @@ module ActionView
|
|
228
226
|
|
229
227
|
def fragment_for(name = {}, options = nil, &block)
|
230
228
|
if content = read_fragment_for(name, options)
|
231
|
-
@
|
229
|
+
@view_renderer.cache_hits[@virtual_path] = :hit if defined?(@view_renderer)
|
232
230
|
content
|
233
231
|
else
|
234
|
-
@
|
232
|
+
@view_renderer.cache_hits[@virtual_path] = :miss if defined?(@view_renderer)
|
235
233
|
write_fragment_for(name, options, &block)
|
236
234
|
end
|
237
235
|
end
|
@@ -10,6 +10,7 @@ module ActionView
|
|
10
10
|
def check_box(extra_html_options = {})
|
11
11
|
html_options = extra_html_options.merge(@input_html_options)
|
12
12
|
html_options[:multiple] = true
|
13
|
+
html_options[:skip_default_ids] = false
|
13
14
|
@template_object.check_box(@object_name, @method_name, html_options, @value, nil)
|
14
15
|
end
|
15
16
|
end
|
@@ -9,6 +9,7 @@ module ActionView
|
|
9
9
|
class RadioButtonBuilder < Builder # :nodoc:
|
10
10
|
def radio_button(extra_html_options = {})
|
11
11
|
html_options = extra_html_options.merge(@input_html_options)
|
12
|
+
html_options[:skip_default_ids] = false
|
12
13
|
@template_object.radio_button(@object_name, @method_name, @value, html_options)
|
13
14
|
end
|
14
15
|
end
|
@@ -552,7 +552,10 @@ module ActionView
|
|
552
552
|
request_uri = url_string.index("?") || check_parameters ? request.fullpath : request.path
|
553
553
|
request_uri = URI.parser.unescape(request_uri).force_encoding(Encoding::BINARY)
|
554
554
|
|
555
|
-
|
555
|
+
if url_string.start_with?("/") && url_string != "/"
|
556
|
+
url_string.chomp!("/")
|
557
|
+
request_uri.chomp!("/")
|
558
|
+
end
|
556
559
|
|
557
560
|
if %r{^\w+://}.match?(url_string)
|
558
561
|
url_string == "#{request.protocol}#{request.host_with_port}#{request_uri}"
|
@@ -25,7 +25,7 @@ module ActionView
|
|
25
25
|
message = " Rendered #{from_rails_root(event.payload[:identifier])}"
|
26
26
|
message << " within #{from_rails_root(event.payload[:layout])}" if event.payload[:layout]
|
27
27
|
message << " (#{event.duration.round(1)}ms)"
|
28
|
-
message << " #{cache_message(event.payload)}"
|
28
|
+
message << " #{cache_message(event.payload)}" unless event.payload[:cache_hit].nil?
|
29
29
|
message
|
30
30
|
end
|
31
31
|
end
|
@@ -73,9 +73,10 @@ module ActionView
|
|
73
73
|
end
|
74
74
|
|
75
75
|
def cache_message(payload) # :doc:
|
76
|
-
|
76
|
+
case payload[:cache_hit]
|
77
|
+
when :hit
|
77
78
|
"[cache hit]"
|
78
|
-
|
79
|
+
when :miss
|
79
80
|
"[cache miss]"
|
80
81
|
end
|
81
82
|
end
|
@@ -611,7 +611,7 @@ Released under the MIT license
|
|
611
611
|
|
612
612
|
fire = Rails.fire, delegate = Rails.delegate, getData = Rails.getData, $ = Rails.$, refreshCSRFTokens = Rails.refreshCSRFTokens, CSRFProtection = Rails.CSRFProtection, enableElement = Rails.enableElement, disableElement = Rails.disableElement, handleDisabledElement = Rails.handleDisabledElement, handleConfirm = Rails.handleConfirm, handleRemote = Rails.handleRemote, formSubmitButtonClick = Rails.formSubmitButtonClick, handleMetaClick = Rails.handleMetaClick, handleMethod = Rails.handleMethod;
|
613
613
|
|
614
|
-
if ((typeof jQuery !== "undefined" && jQuery !== null) && !jQuery.rails) {
|
614
|
+
if ((typeof jQuery !== "undefined" && jQuery !== null) && (jQuery.ajax != null) && !jQuery.rails) {
|
615
615
|
jQuery.rails = Rails;
|
616
616
|
jQuery.ajaxPrefilter(function(options, originalOptions, xhr) {
|
617
617
|
if (!options.crossDomain) {
|
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.
|
4
|
+
version: 5.1.2.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: 2017-
|
11
|
+
date: 2017-06-20 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.
|
19
|
+
version: 5.1.2.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.1.
|
26
|
+
version: 5.1.2.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.1.
|
95
|
+
version: 5.1.2.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.1.
|
102
|
+
version: 5.1.2.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.1.
|
109
|
+
version: 5.1.2.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.1.
|
116
|
+
version: 5.1.2.rc1
|
117
117
|
description: Simple, battle-tested conventions and helpers for building web pages.
|
118
118
|
email: david@loudthinking.com
|
119
119
|
executables: []
|
@@ -242,15 +242,14 @@ 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: 1.3.1
|
248
248
|
requirements:
|
249
249
|
- none
|
250
250
|
rubyforge_project:
|
251
|
-
rubygems_version: 2.6.
|
251
|
+
rubygems_version: 2.6.12
|
252
252
|
signing_key:
|
253
253
|
specification_version: 4
|
254
254
|
summary: Rendering framework putting the V in MVC (part of Rails).
|
255
255
|
test_files: []
|
256
|
-
has_rdoc:
|