actionview 7.1.4.1 → 7.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/action_view/gem_version.rb +2 -2
- data/lib/action_view/helpers/url_helper.rb +5 -3
- data/lib/action_view/template.rb +8 -2
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9dd79e8bea29225f74f53dcebaa86e1b50c8ea861219c4f2744c0d4439389a7
|
4
|
+
data.tar.gz: 2f4fad4c58ca55d82627bd5a7fa5d253530652dbc95576e6140c3ab9f4aba607
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75e144581b10fae5dfc215276c6336c2b3a4f642077635e4fe8eace91fb1b508843d8b362d7425514d50f3dd8cb9db8053f80462149c82860583cdf01a57977c
|
7
|
+
data.tar.gz: a25474b380ed70c5c09ba0664212d51c056a5ca8628754adb020220f57238fce0955a22f8ea2cf46b8765d705f1710c4992d90b41cfc83123705191dc2fb8019
|
data/CHANGELOG.md
CHANGED
@@ -561,6 +561,8 @@ module ActionView
|
|
561
561
|
content_tag("a", name || email_address, html_options, &block)
|
562
562
|
end
|
563
563
|
|
564
|
+
RFC2396_PARSER = defined?(URI::RFC2396_PARSER) ? URI::RFC2396_PARSER : URI::RFC2396_Parser.new
|
565
|
+
|
564
566
|
# True if the current request URI was generated by the given +options+.
|
565
567
|
#
|
566
568
|
# ==== Examples
|
@@ -617,14 +619,14 @@ module ActionView
|
|
617
619
|
|
618
620
|
options ||= options_as_kwargs
|
619
621
|
check_parameters ||= options.is_a?(Hash) && options.delete(:check_parameters)
|
620
|
-
url_string =
|
622
|
+
url_string = RFC2396_PARSER.unescape(url_for(options)).force_encoding(Encoding::BINARY)
|
621
623
|
|
622
624
|
# We ignore any extra parameters in the request_uri if the
|
623
625
|
# submitted URL doesn't have any either. This lets the function
|
624
626
|
# work with things like ?order=asc
|
625
627
|
# the behavior can be disabled with check_parameters: true
|
626
628
|
request_uri = url_string.index("?") || check_parameters ? request.fullpath : request.path
|
627
|
-
request_uri =
|
629
|
+
request_uri = RFC2396_PARSER.unescape(request_uri).force_encoding(Encoding::BINARY)
|
628
630
|
|
629
631
|
if %r{^\w+://}.match?(url_string)
|
630
632
|
request_uri = +"#{request.protocol}#{request.host_with_port}#{request_uri}"
|
@@ -784,7 +786,7 @@ module ActionView
|
|
784
786
|
end
|
785
787
|
|
786
788
|
def add_method_to_attributes!(html_options, method)
|
787
|
-
if method_not_get_method?(method) && !html_options["rel"]
|
789
|
+
if method_not_get_method?(method) && !html_options["rel"].to_s.include?("nofollow")
|
788
790
|
if html_options["rel"].blank?
|
789
791
|
html_options["rel"] = "nofollow"
|
790
792
|
else
|
data/lib/action_view/template.rb
CHANGED
@@ -424,9 +424,13 @@ module ActionView
|
|
424
424
|
|
425
425
|
method_arguments =
|
426
426
|
if set_strict_locals
|
427
|
-
|
427
|
+
if set_strict_locals.include?("&")
|
428
|
+
"output_buffer, #{set_strict_locals}"
|
429
|
+
else
|
430
|
+
"output_buffer, #{set_strict_locals}, &_"
|
431
|
+
end
|
428
432
|
else
|
429
|
-
"local_assigns, output_buffer"
|
433
|
+
"local_assigns, output_buffer, &_"
|
430
434
|
end
|
431
435
|
|
432
436
|
# Make sure that the resulting String to be eval'd is in the
|
@@ -491,6 +495,8 @@ module ActionView
|
|
491
495
|
![:keyreq, :key, :keyrest, :nokey].include?(parameter[0])
|
492
496
|
end
|
493
497
|
|
498
|
+
non_kwarg_parameters.pop if non_kwarg_parameters.last == %i(block _)
|
499
|
+
|
494
500
|
unless non_kwarg_parameters.empty?
|
495
501
|
mod.undef_method(method_name)
|
496
502
|
|
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: 7.1.
|
4
|
+
version: 7.1.5
|
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: 2024-10-
|
11
|
+
date: 2024-10-31 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: 7.1.
|
19
|
+
version: 7.1.5
|
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: 7.1.
|
26
|
+
version: 7.1.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: builder
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,28 +86,28 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 7.1.
|
89
|
+
version: 7.1.5
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 7.1.
|
96
|
+
version: 7.1.5
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: activemodel
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - '='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 7.1.
|
103
|
+
version: 7.1.5
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - '='
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 7.1.
|
110
|
+
version: 7.1.5
|
111
111
|
description: Simple, battle-tested conventions and helpers for building web pages.
|
112
112
|
email: david@loudthinking.com
|
113
113
|
executables: []
|
@@ -245,10 +245,10 @@ licenses:
|
|
245
245
|
- MIT
|
246
246
|
metadata:
|
247
247
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
248
|
-
changelog_uri: https://github.com/rails/rails/blob/v7.1.
|
249
|
-
documentation_uri: https://api.rubyonrails.org/v7.1.
|
248
|
+
changelog_uri: https://github.com/rails/rails/blob/v7.1.5/actionview/CHANGELOG.md
|
249
|
+
documentation_uri: https://api.rubyonrails.org/v7.1.5/
|
250
250
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
251
|
-
source_code_uri: https://github.com/rails/rails/tree/v7.1.
|
251
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.1.5/actionview
|
252
252
|
rubygems_mfa_required: 'true'
|
253
253
|
post_install_message:
|
254
254
|
rdoc_options: []
|