actionview 7.2.0 → 7.2.2.1

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: 00d61ae3c549bc7d1a9cff55cfa4f096b50878775309401644a1d6fe23032c8c
4
- data.tar.gz: 46dd30ccb2b17b5de7ac58dd981d616e3fbef55794c51a50865d68c10b6875ce
3
+ metadata.gz: 129f00c083e1a4443010be161169e51eea090543c6618289968ed2cdb1c65c76
4
+ data.tar.gz: 568d88d12f7fc363958af2f8bf45308199dc0c221a05fafb9415a96b3eaddc8a
5
5
  SHA512:
6
- metadata.gz: 73a1ea9695efd725f3b50f547852f1c708cc1bc63de0f2a90c6d31c79fd2161c6eb8d08feb9e019c84012d224bd30bf63d4d1535f1e874e287328935141b1f30
7
- data.tar.gz: 818d59c9d7c22fa30695f1f1ad64d040f1187c686cf10d8f679f4f01e623bb809689acf212499cb6058314b2f4097c94b64a85d3e19aec9c708adef29ce38b39
6
+ metadata.gz: de08bd40788b58e9ba6be2169a5ebbc39c6b4f1122d1564b64cf0a6af066f855d4a1ad2d1721ab849fde78ee87c496c61579afd59d1a3062dba6135b6652bee4
7
+ data.tar.gz: cf2f5461be068f0d96d287bbdabe2daf9b3d76a4e80c9db31041d9242f77986b1d5d6774d6db95f5f2b068cbce2161b13335891bfd86d271994d49321bc88733
data/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ ## Rails 7.2.2.1 (December 10, 2024) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 7.2.2 (October 30, 2024) ##
7
+
8
+ * No changes.
9
+
10
+
11
+ ## Rails 7.2.1.2 (October 23, 2024) ##
12
+
13
+ * No changes.
14
+
15
+
16
+ ## Rails 7.2.1.1 (October 15, 2024) ##
17
+
18
+ * No changes.
19
+
20
+
21
+ ## Rails 7.2.1 (August 22, 2024) ##
22
+
23
+ * No changes.
24
+
25
+
1
26
  ## Rails 7.2.0 (August 09, 2024) ##
2
27
 
3
28
  * Fix templates with strict locals to also include `local_assigns`.
@@ -9,8 +9,8 @@ module ActionView
9
9
  module VERSION
10
10
  MAJOR = 7
11
11
  MINOR = 2
12
- TINY = 0
13
- PRE = nil
12
+ TINY = 2
13
+ PRE = "1"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -725,14 +725,14 @@ module ActionView
725
725
  # date_field_tag 'name'
726
726
  # # => <input id="name" name="name" type="date" />
727
727
  #
728
- # date_field_tag 'date', '01/01/2014'
729
- # # => <input id="date" name="date" type="date" value="01/01/2014" />
728
+ # date_field_tag 'date', '2014-12-31'
729
+ # # => <input id="date" name="date" type="date" value="2014-12-31" />
730
730
  #
731
731
  # date_field_tag 'date', nil, class: 'special_input'
732
732
  # # => <input class="special_input" id="date" name="date" type="date" />
733
733
  #
734
- # date_field_tag 'date', '01/01/2014', class: 'special_input', disabled: true
735
- # # => <input disabled="disabled" class="special_input" id="date" name="date" type="date" value="01/01/2014" />
734
+ # date_field_tag 'date', '2014-12-31', class: 'special_input', disabled: true
735
+ # # => <input disabled="disabled" class="special_input" id="date" name="date" type="date" value="2014-12-31" />
736
736
  def date_field_tag(name, value = nil, options = {})
737
737
  text_field_tag(name, value, options.merge(type: :date))
738
738
  end
@@ -166,7 +166,7 @@ module ActionView
166
166
  # highlight('You searched for: rails', 'rails', highlighter: '<a href="search?q=\1">\1</a>')
167
167
  # # => "You searched for: <a href=\"search?q=rails\">rails</a>"
168
168
  #
169
- # highlight('You searched for: rails', 'rails') { |match| link_to(search_path(q: match, match)) }
169
+ # highlight('You searched for: rails', 'rails') { |match| link_to(search_path(q: match)) }
170
170
  # # => "You searched for: <a href=\"search?q=rails\">rails</a>"
171
171
  #
172
172
  # highlight('<a href="javascript:alert(\'no!\')">ruby</a> on rails', 'rails', sanitize: false)
@@ -500,6 +500,8 @@ module ActionView
500
500
  content_tag("a", name || email_address, html_options, &block)
501
501
  end
502
502
 
503
+ RFC2396_PARSER = defined?(URI::RFC2396_PARSER) ? URI::RFC2396_PARSER : URI::RFC2396_Parser.new
504
+
503
505
  # True if the current request URI was generated by the given +options+.
504
506
  #
505
507
  # ==== Examples
@@ -556,14 +558,14 @@ module ActionView
556
558
 
557
559
  options ||= options_as_kwargs
558
560
  check_parameters ||= options.is_a?(Hash) && options.delete(:check_parameters)
559
- url_string = URI::DEFAULT_PARSER.unescape(url_for(options)).force_encoding(Encoding::BINARY)
561
+ url_string = RFC2396_PARSER.unescape(url_for(options)).force_encoding(Encoding::BINARY)
560
562
 
561
563
  # We ignore any extra parameters in the request_uri if the
562
564
  # submitted URL doesn't have any either. This lets the function
563
565
  # work with things like ?order=asc
564
566
  # the behavior can be disabled with check_parameters: true
565
567
  request_uri = url_string.index("?") || check_parameters ? request.fullpath : request.path
566
- request_uri = URI::DEFAULT_PARSER.unescape(request_uri).force_encoding(Encoding::BINARY)
568
+ request_uri = RFC2396_PARSER.unescape(request_uri).force_encoding(Encoding::BINARY)
567
569
 
568
570
  if %r{^\w+://}.match?(url_string)
569
571
  request_uri = +"#{request.protocol}#{request.host_with_port}#{request_uri}"
@@ -710,7 +712,7 @@ module ActionView
710
712
  end
711
713
 
712
714
  def add_method_to_attributes!(html_options, method)
713
- if method_not_get_method?(method) && !html_options["rel"]&.include?("nofollow")
715
+ if method_not_get_method?(method) && !html_options["rel"].to_s.include?("nofollow")
714
716
  if html_options["rel"].blank?
715
717
  html_options["rel"] = "nofollow"
716
718
  else
@@ -230,11 +230,21 @@ module ActionView
230
230
  end
231
231
 
232
232
  def spot(location) # :nodoc:
233
- ast = RubyVM::AbstractSyntaxTree.parse(compiled_source, keep_script_lines: true)
234
233
  node_id = RubyVM::AbstractSyntaxTree.node_id_for_backtrace_location(location)
235
- node = find_node_by_id(ast, node_id)
234
+ found =
235
+ if RubyVM::InstructionSequence.compile("").to_a[4][:parser] == :prism
236
+ require "prism"
236
237
 
237
- ErrorHighlight.spot(node)
238
+ if Prism::VERSION >= "1.0.0"
239
+ result = Prism.parse(compiled_source).value
240
+ result.breadth_first_search { |node| node.node_id == node_id }
241
+ end
242
+ else
243
+ node = RubyVM::AbstractSyntaxTree.parse(compiled_source, keep_script_lines: true)
244
+ find_node_by_id(node, node_id)
245
+ end
246
+
247
+ ErrorHighlight.spot(found) if found
238
248
  end
239
249
 
240
250
  # Translate an error location returned by ErrorHighlight to the correct
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.2.0
4
+ version: 7.2.2.1
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: 2024-08-09 00:00:00.000000000 Z
11
+ date: 2024-12-10 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.2.0
19
+ version: 7.2.2.1
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.2.0
26
+ version: 7.2.2.1
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.2.0
89
+ version: 7.2.2.1
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.2.0
96
+ version: 7.2.2.1
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.2.0
103
+ version: 7.2.2.1
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.2.0
110
+ version: 7.2.2.1
111
111
  description: Simple, battle-tested conventions and helpers for building web pages.
112
112
  email: david@loudthinking.com
113
113
  executables: []
@@ -246,12 +246,12 @@ licenses:
246
246
  - MIT
247
247
  metadata:
248
248
  bug_tracker_uri: https://github.com/rails/rails/issues
249
- changelog_uri: https://github.com/rails/rails/blob/v7.2.0/actionview/CHANGELOG.md
250
- documentation_uri: https://api.rubyonrails.org/v7.2.0/
249
+ changelog_uri: https://github.com/rails/rails/blob/v7.2.2.1/actionview/CHANGELOG.md
250
+ documentation_uri: https://api.rubyonrails.org/v7.2.2.1/
251
251
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
252
- source_code_uri: https://github.com/rails/rails/tree/v7.2.0/actionview
252
+ source_code_uri: https://github.com/rails/rails/tree/v7.2.2.1/actionview
253
253
  rubygems_mfa_required: 'true'
254
- post_install_message:
254
+ post_install_message:
255
255
  rdoc_options: []
256
256
  require_paths:
257
257
  - lib
@@ -267,8 +267,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
267
267
  version: '0'
268
268
  requirements:
269
269
  - none
270
- rubygems_version: 3.5.11
271
- signing_key:
270
+ rubygems_version: 3.5.22
271
+ signing_key:
272
272
  specification_version: 4
273
273
  summary: Rendering framework putting the V in MVC (part of Rails).
274
274
  test_files: []