actionview 7.1.4.1 → 7.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db8d0f073efbefc07d2a92e639d64116ee5b0e0b0f4dc97be29cbda2df990213
4
- data.tar.gz: 12eaf3595476b7ccab8b3ce3430cb8de9c98b078bb250abd2647f8e6f1339bd3
3
+ metadata.gz: a9dd79e8bea29225f74f53dcebaa86e1b50c8ea861219c4f2744c0d4439389a7
4
+ data.tar.gz: 2f4fad4c58ca55d82627bd5a7fa5d253530652dbc95576e6140c3ab9f4aba607
5
5
  SHA512:
6
- metadata.gz: 93fa34626597623584116911465db89fdbb07d9633d30174054b336a08c81847d9494930b4951cfc14ff471852205aef5ba12d32d58a5ac0a693bc431aeb67ab
7
- data.tar.gz: a9567f5db1e837d9a3cc6957a1b37cc33df352aa27d9faf54227f50a982c5d0407d4f56123ef90d82edda8aa5a63cfbbd150b9b88094e33bfd967d520b07c2bf
6
+ metadata.gz: 75e144581b10fae5dfc215276c6336c2b3a4f642077635e4fe8eace91fb1b508843d8b362d7425514d50f3dd8cb9db8053f80462149c82860583cdf01a57977c
7
+ data.tar.gz: a25474b380ed70c5c09ba0664212d51c056a5ca8628754adb020220f57238fce0955a22f8ea2cf46b8765d705f1710c4992d90b41cfc83123705191dc2fb8019
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## Rails 7.1.5 (October 30, 2024) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 7.1.4.2 (October 23, 2024) ##
7
+
8
+ * No changes.
9
+
10
+
1
11
  ## Rails 7.1.4.1 (October 15, 2024) ##
2
12
 
3
13
  * No changes.
@@ -9,8 +9,8 @@ module ActionView
9
9
  module VERSION
10
10
  MAJOR = 7
11
11
  MINOR = 1
12
- TINY = 4
13
- PRE = "1"
12
+ TINY = 5
13
+ PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -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 = URI::DEFAULT_PARSER.unescape(url_for(options)).force_encoding(Encoding::BINARY)
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 = URI::DEFAULT_PARSER.unescape(request_uri).force_encoding(Encoding::BINARY)
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"]&.include?("nofollow")
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
@@ -424,9 +424,13 @@ module ActionView
424
424
 
425
425
  method_arguments =
426
426
  if set_strict_locals
427
- "output_buffer, #{set_strict_locals}"
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.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-15 00:00:00.000000000 Z
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.4.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.4.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.4.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.4.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.4.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.4.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.4.1/actionview/CHANGELOG.md
249
- documentation_uri: https://api.rubyonrails.org/v7.1.4.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.4.1/actionview
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: []