actionview 6.1.2 → 6.1.4
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 +36 -0
- data/lib/action_view/gem_version.rb +1 -1
- data/lib/action_view/helpers/asset_tag_helper.rb +1 -1
- data/lib/action_view/helpers/asset_url_helper.rb +1 -1
- data/lib/action_view/helpers/rendering_helper.rb +1 -1
- data/lib/action_view/helpers/text_helper.rb +1 -1
- data/lib/action_view/helpers/translation_helper.rb +3 -1
- data/lib/action_view/helpers/url_helper.rb +13 -0
- data/lib/assets/compiled/rails-ujs.js +2 -2
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d032131f3879f298ee73bdec251c6b71bcf05c12bda0bb4a8156cb77096c8cb8
|
4
|
+
data.tar.gz: '034379d2e8c7d137f60fcc3044aef37b94f2d5f7b441d634f7e24f72f01c817d'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8a6276b5517f7991936433c76543041c35a7521eae07ec5afd46db1b3fa7292aa15ed92b74784774a72ff5b7af8bf5e07c3bff70f4a25c5fb2d0ec55d2092d5
|
7
|
+
data.tar.gz: 940c438d6ce952627e2bc08a6d7272a6ceae8fe4b89095acc9daa889d8a8eb3f1ceced29ee4c9c3c8ffc41ed9104eae2be6a62c643eba66679d6ab744b125961
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,39 @@
|
|
1
|
+
## Rails 6.1.4 (June 24, 2021) ##
|
2
|
+
|
3
|
+
* The `translate` helper now passes `default` values that aren't
|
4
|
+
translation keys through `I18n.translate` for interpolation.
|
5
|
+
|
6
|
+
*Jonathan Hefner*
|
7
|
+
|
8
|
+
* Don't attach UJS form submission handlers to Turbo forms.
|
9
|
+
|
10
|
+
*David Heinemeier Hansson*
|
11
|
+
|
12
|
+
* Allow both `current_page?(url_hash)` and `current_page?(**url_hash)` on Ruby 2.7.
|
13
|
+
|
14
|
+
*Ryuta Kamizono*
|
15
|
+
|
16
|
+
|
17
|
+
## Rails 6.1.3.2 (May 05, 2021) ##
|
18
|
+
|
19
|
+
* No changes.
|
20
|
+
|
21
|
+
|
22
|
+
## Rails 6.1.3.1 (March 26, 2021) ##
|
23
|
+
|
24
|
+
* No changes.
|
25
|
+
|
26
|
+
|
27
|
+
## Rails 6.1.3 (February 17, 2021) ##
|
28
|
+
|
29
|
+
* No changes.
|
30
|
+
|
31
|
+
|
32
|
+
## Rails 6.1.2.1 (February 10, 2021) ##
|
33
|
+
|
34
|
+
* No changes.
|
35
|
+
|
36
|
+
|
1
37
|
## Rails 6.1.2 (February 09, 2021) ##
|
2
38
|
|
3
39
|
* No changes.
|
@@ -294,7 +294,7 @@ module ActionView
|
|
294
294
|
# # => <link rel="preload" href="/media/audio.ogg" as="audio" type="audio/ogg" />
|
295
295
|
#
|
296
296
|
def preload_link_tag(source, options = {})
|
297
|
-
href =
|
297
|
+
href = path_to_asset(source, skip_pipeline: options.delete(:skip_pipeline))
|
298
298
|
extname = File.extname(source).downcase.delete(".")
|
299
299
|
mime_type = options.delete(:type) || Template::Types[extname]&.to_s
|
300
300
|
as_type = options.delete(:as) || resolve_link_as(extname, mime_type)
|
@@ -98,7 +98,7 @@ module ActionView
|
|
98
98
|
# have SSL certificates for each of the asset hosts this technique allows you
|
99
99
|
# to avoid warnings in the client about mixed media.
|
100
100
|
# Note that the +request+ parameter might not be supplied, e.g. when the assets
|
101
|
-
# are precompiled with the command
|
101
|
+
# are precompiled with the command <tt>bin/rails assets:precompile</tt>. Make sure to use a
|
102
102
|
# +Proc+ instead of a lambda, since a +Proc+ allows missing parameters and sets them
|
103
103
|
# to +nil+.
|
104
104
|
#
|
@@ -24,7 +24,7 @@ module ActionView
|
|
24
24
|
#
|
25
25
|
# If no <tt>options</tt> hash is passed or if <tt>:update</tt> is specified, then:
|
26
26
|
#
|
27
|
-
# If an object responding to
|
27
|
+
# If an object responding to +render_in+ is passed, +render_in+ is called on the object,
|
28
28
|
# passing in the current view context.
|
29
29
|
#
|
30
30
|
# Otherwise, a partial is rendered using the second parameter as the locals hash.
|
@@ -105,7 +105,7 @@ module ActionView
|
|
105
105
|
# Highlights one or more +phrases+ everywhere in +text+ by inserting it into
|
106
106
|
# a <tt>:highlighter</tt> string. The highlighter can be specialized by passing <tt>:highlighter</tt>
|
107
107
|
# as a single-quoted string with <tt>\1</tt> where the phrase is to be inserted (defaults to
|
108
|
-
#
|
108
|
+
# <tt><mark>\1</mark></tt>) or passing a block that receives each matched term. By default +text+
|
109
109
|
# is sanitized to prevent possible XSS attacks. If the input is trustworthy, passing false
|
110
110
|
# for <tt>:sanitize</tt> will turn sanitizing off.
|
111
111
|
#
|
@@ -94,7 +94,9 @@ module ActionView
|
|
94
94
|
break translated unless translated.equal?(MISSING_TRANSLATION)
|
95
95
|
end
|
96
96
|
|
97
|
-
|
97
|
+
if alternatives.present? && !alternatives.first.is_a?(Symbol)
|
98
|
+
break alternatives.first && I18n.translate(**options, default: alternatives)
|
99
|
+
end
|
98
100
|
|
99
101
|
first_key ||= key
|
100
102
|
key = alternatives&.shift
|
@@ -571,6 +571,19 @@ module ActionView
|
|
571
571
|
end
|
572
572
|
end
|
573
573
|
|
574
|
+
if RUBY_VERSION.start_with?("2.7")
|
575
|
+
using Module.new {
|
576
|
+
refine UrlHelper do
|
577
|
+
alias :_current_page? :current_page?
|
578
|
+
end
|
579
|
+
}
|
580
|
+
|
581
|
+
def current_page?(*args) # :nodoc:
|
582
|
+
options = args.pop
|
583
|
+
options.is_a?(Hash) ? _current_page?(*args, **options) : _current_page?(*args, options)
|
584
|
+
end
|
585
|
+
end
|
586
|
+
|
574
587
|
# Creates an SMS anchor link tag to the specified +phone_number+, which is
|
575
588
|
# also used as the name of the link unless +name+ is specified. Additional
|
576
589
|
# HTML attributes for the link can be passed in +html_options+.
|
@@ -16,8 +16,8 @@ Released under the MIT license
|
|
16
16
|
exclude: 'form button'
|
17
17
|
},
|
18
18
|
inputChangeSelector: 'select[data-remote], input[data-remote], textarea[data-remote]',
|
19
|
-
formSubmitSelector: 'form',
|
20
|
-
formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])',
|
19
|
+
formSubmitSelector: 'form:not([data-turbo=true])',
|
20
|
+
formInputClickSelector: 'form:not([data-turbo=true]) input[type=submit], form:not([data-turbo=true]) input[type=image], form:not([data-turbo=true]) button[type=submit], form:not([data-turbo=true]) button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])',
|
21
21
|
formDisableSelector: 'input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled',
|
22
22
|
formEnableSelector: 'input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled',
|
23
23
|
fileInputSelector: 'input[name][type=file]:not([disabled])',
|
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: 6.1.
|
4
|
+
version: 6.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-24 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: 6.1.
|
19
|
+
version: 6.1.4
|
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: 6.1.
|
26
|
+
version: 6.1.4
|
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: 6.1.
|
95
|
+
version: 6.1.4
|
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: 6.1.
|
102
|
+
version: 6.1.4
|
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: 6.1.
|
109
|
+
version: 6.1.4
|
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: 6.1.
|
116
|
+
version: 6.1.4
|
117
117
|
description: Simple, battle-tested conventions and helpers for building web pages.
|
118
118
|
email: david@loudthinking.com
|
119
119
|
executables: []
|
@@ -239,11 +239,11 @@ licenses:
|
|
239
239
|
- MIT
|
240
240
|
metadata:
|
241
241
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
242
|
-
changelog_uri: https://github.com/rails/rails/blob/v6.1.
|
243
|
-
documentation_uri: https://api.rubyonrails.org/v6.1.
|
242
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.1.4/actionview/CHANGELOG.md
|
243
|
+
documentation_uri: https://api.rubyonrails.org/v6.1.4/
|
244
244
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
245
|
-
source_code_uri: https://github.com/rails/rails/tree/v6.1.
|
246
|
-
post_install_message:
|
245
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.1.4/actionview
|
246
|
+
post_install_message:
|
247
247
|
rdoc_options: []
|
248
248
|
require_paths:
|
249
249
|
- lib
|
@@ -259,8 +259,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
259
259
|
version: '0'
|
260
260
|
requirements:
|
261
261
|
- none
|
262
|
-
rubygems_version: 3.2
|
263
|
-
signing_key:
|
262
|
+
rubygems_version: 3.1.2
|
263
|
+
signing_key:
|
264
264
|
specification_version: 4
|
265
265
|
summary: Rendering framework putting the V in MVC (part of Rails).
|
266
266
|
test_files: []
|