Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-actionview-8.0 for
openSUSE:Factory checked in at 2026-11-26 18:32:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-actionview-8.0 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-actionview-8.0.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-actionview-8.0"
Thu Nov 26 18:32:06 2026 rev:7 rq:1400827 version:8.0.5.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-actionview-8.0/rubygem-actionview-8.0.changes
2026-07-07 21:07:45.699756996 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-actionview-8.0.new.1340718/rubygem-actionview-8.0.changes
2026-11-26 18:32:10.229360794 +0100
@@ -1,0 +2,6 @@
+Thu Nov 26 11:43:01 UTC 2026 - Aleksei Burlakov <[email protected]>
+
+- Update to version 8.0.5.2:
+
https://rubyonrails.org/2026/11/4/Rails-8.0.5.2-and-8.1.4.1-have-been-released
+
+-------------------------------------------------------------------
Old:
----
actionview-8.0.5.gem
New:
----
actionview-8.0.5.2.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-actionview-8.0.spec ++++++
--- /var/tmp/diff_new_pack.fhFnQQ/_old 2026-11-26 18:32:11.024394478 +0100
+++ /var/tmp/diff_new_pack.fhFnQQ/_new 2026-11-26 18:32:11.025394520 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-actionview-8.0
-Version: 8.0.5
+Version: 8.0.5.2
Release: 0
%define mod_name actionview
%define mod_full_name %{mod_name}-%{version}
++++++ actionview-8.0.5.gem -> actionview-8.0.5.2.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 1980-01-02 01:00:00.000000000 +0100
+++ new/CHANGELOG.md 1980-01-02 01:00:00.000000000 +0100
@@ -1,3 +1,64 @@
+## Rails 8.0.5.2 (November 03, 2026) ##
+
+* Skip attribute names in tag helpers that are blank once converted to a
+ string.
+
+ A Symbol such as `:" "` is not blank, because `Symbol#blank?` is
+ `Symbol#empty?`, so it reached the escaping step and produced an attribute
+ with no name. The asset helpers symbolize their keys, so an ordinary String
+ key reached the same place.
+
+ [GHSA-68p9-83h6-5wpj]
+
+ *Mike Dalessio*
+
+* Fix `strip_tags` to encode `"` and `'` in its output.
+
+ `strip_tags` returns an `html_safe` string, but was not encoding quotation
+ marks. The method now encodes all five HTML-significant characters (`&`,
+ `<`, `>`, `"`, `'`), consistent with the existing `html_safe` convention.
+
+ Output used outside HTML, such as in a text template or JSON, now contains
+ `"` and `'` where it contained `"` and `'`. `CGI.unescapeHTML`
+ decodes them.
+
+ [GHSA-rq8q-p985-fjq7]
+
+ *Mike Dalessio*
+
+* Escape the matched phrase before substituting it into `highlight`'s
+ `:highlighter`.
+
+ A match was copied into each `\1` of the highlighter as it appeared in
+ the sanitized text, which keeps `"` and `'` as they are, so a match
+ containing a quote ended a quoted attribute value such as the
+ documented `'<a href="search?q=\1">\1</a>'` and added attributes of
+ its own. Each substituted group now goes through
+ `ERB::Util.html_escape_once`, so quotes in a match render as `"`
+ and `'`. Only the numbered placeholders `\0` to `\9` are expanded,
+ and a match never replaces the `>` that closes a tag.
+
+ [GHSA-v6rj-xm57-3p59]
+
+ *Jeremy Daer*
+
+* Require rails-html-sanitizer 1.7.2 or later.
+
+ With the HTML5 sanitizer, Nokogiri before 1.19.5 left `<` and `>`
+ unescaped in attribute values. `highlight` and `simple_format`, which
+ edit the sanitized HTML as a string, could then turn markup inside an
+ attribute value into live elements. rails-html-sanitizer 1.7.2 requires
+ Loofah 2.25.3, which requires Nokogiri 1.19.5.
+
+ [GHSA-2p2f-4rq4-gjwc]
+
+ *Mike Dalessio*
+
+## Rails 8.0.5.1 (July 29, 2026) ##
+
+* No changes.
+
+
## Rails 8.0.5 (March 24, 2026) ##
* Fix encoding errors for string locals containing non-ASCII characters.
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/action_view/gem_version.rb
new/lib/action_view/gem_version.rb
--- old/lib/action_view/gem_version.rb 1980-01-02 01:00:00.000000000 +0100
+++ new/lib/action_view/gem_version.rb 1980-01-02 01:00:00.000000000 +0100
@@ -10,7 +10,7 @@
MAJOR = 8
MINOR = 0
TINY = 5
- PRE = nil
+ PRE = "2"
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/action_view/helpers/sanitize_helper.rb
new/lib/action_view/helpers/sanitize_helper.rb
--- old/lib/action_view/helpers/sanitize_helper.rb 1980-01-02
01:00:00.000000000 +0100
+++ new/lib/action_view/helpers/sanitize_helper.rb 1980-01-02
01:00:00.000000000 +0100
@@ -1,5 +1,6 @@
# frozen_string_literal: true
+require "active_support/core_ext/string/output_safety"
require "rails-html-sanitizer"
module ActionView
@@ -33,6 +34,9 @@
# Please note that sanitizing user-provided text does not guarantee that
the
# resulting markup is valid or even well-formed.
#
+ # The output is markup, which is safe only as element content. Do not
use it in an attribute
+ # value; use +strip_tags+ or a tag helper such as <tt>tag.a(title:
...)</tt> instead.
+ #
# ==== Options
#
# [+:tags+]
@@ -137,7 +141,8 @@
# strip_tags("> A quote from Smith & Wesson")
# # => > A quote from Smith & Wesson
def strip_tags(html)
- self.class.full_sanitizer.sanitize(html)&.html_safe
+ stripped = self.class.full_sanitizer.sanitize(html)
+ ERB::Util.html_escape_once(stripped) if stripped
end
# Strips all link tags from +html+ leaving just the link text.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/action_view/helpers/tag_helper.rb
new/lib/action_view/helpers/tag_helper.rb
--- old/lib/action_view/helpers/tag_helper.rb 1980-01-02 01:00:00.000000000
+0100
+++ new/lib/action_view/helpers/tag_helper.rb 1980-01-02 01:00:00.000000000
+0100
@@ -252,18 +252,27 @@
options.each_pair do |key, value|
next if key.blank?
+ name = Symbol === key ? key.name : key.to_s
+ next if name.blank?
+
type = TAG_TYPES[key]
if type == :data && value.is_a?(Hash)
value.each_pair do |k, v|
next if k.blank? || v.nil?
+ nested_name = Symbol === k ? k.name : k.to_s
+ next if nested_name.blank?
+
output << sep
- output << prefix_tag_option(key, k, v, escape)
+ output << prefix_tag_option(name, nested_name, v, escape)
end
elsif type == :aria && value.is_a?(Hash)
value.each_pair do |k, v|
next if k.blank? || v.nil?
+ nested_name = Symbol === k ? k.name : k.to_s
+ next if nested_name.blank?
+
case v
when Array, Hash
tokens = TagHelper.build_tag_values(v)
@@ -275,16 +284,16 @@
end
output << sep
- output << prefix_tag_option(key, k, v, escape)
+ output << prefix_tag_option(name, nested_name, v, escape)
end
elsif type == :boolean
if value
output << sep
- output << boolean_tag_option(key)
+ output << boolean_tag_option(name)
end
elsif !value.nil?
output << sep
- output << tag_option(key, value, escape)
+ output << tag_option(name, value, escape)
end
end
output unless output.empty?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/action_view/helpers/text_helper.rb
new/lib/action_view/helpers/text_helper.rb
--- old/lib/action_view/helpers/text_helper.rb 1980-01-02 01:00:00.000000000
+0100
+++ new/lib/action_view/helpers/text_helper.rb 1980-01-02 01:00:00.000000000
+0100
@@ -143,8 +143,15 @@
#
# [+:highlighter+]
# The highlighter string. Uses <tt>\1</tt> as the placeholder for a
- # phrase, similar to +String#sub+. Defaults to
<tt>"<mark>\1</mark>"</tt>.
- # This option is ignored if a block is specified.
+ # phrase. Defaults to <tt>"<mark>\1</mark>"</tt>. The numbered
placeholders
+ # <tt>\0</tt> to <tt>\9</tt> are expanded; other +String#sub+
replacement escapes
+ # are not. The phrase is HTML escaped, quotes included. This option
+ # is ignored if a block is specified.
+ #
+ # WARNING: Put a placeholder only in element content or inside a
+ # quoted attribute value. HTML escaping does not make the phrase safe
+ # in an unquoted attribute value, in a URL, JavaScript or CSS
+ # context, or in an attribute whose value is HTML, such as +srcdoc+.
#
# [+:sanitize+]
# Whether to sanitize +text+ before highlighting. Defaults to true.
@@ -163,8 +170,8 @@
# highlight('You searched for: rails', ['for', 'rails'], highlighter:
'<em>\1</em>')
# # => "You searched <em>for</em>: <em>rails</em>"
#
- # highlight('You searched for: rails', 'rails', highlighter: '<a
href="search?q=\1">\1</a>')
- # # => "You searched for: <a href=\"search?q=rails\">rails</a>"
+ # highlight('You searched for: rails', 'rails', highlighter: '<mark
title="\1">\1</mark>')
+ # # => "You searched for: <mark title=\"rails\">rails</mark>"
#
# highlight('You searched for: rails', 'rails') { |match|
link_to(search_path(q: match)) }
# # => "You searched for: <a href=\"search?q=rails\">rails</a>"
@@ -179,14 +186,23 @@
else
patterns = Array(phrases).map { |phrase| Regexp === phrase ? phrase
: Regexp.escape(phrase) }
pattern = /(#{patterns.join("|")})/i
+ # The text after a tag begins with the ">" that closes it. Leave it
+ # in the segment so phrases can see it as context, but keep it out
+ # of the match so the highlighter can't take the place of the ">".
+ pattern_after_tag = /(?!\A)#{pattern}/
highlighter = options.fetch(:highlighter, '<mark>\1</mark>') unless
block
- text.scan(/<[^>]*|[^<]+/).each do |segment|
+ text.scan(/<[^>]*|[^<]+/).each_with_index do |segment, index|
if !segment.start_with?("<")
+ segment_pattern = index > 0 ? pattern_after_tag : pattern
+
if block
- segment.gsub!(pattern, &block)
+ segment.gsub!(segment_pattern, &block)
else
- segment.gsub!(pattern, highlighter)
+ segment.gsub!(segment_pattern) do
+ match = Regexp.last_match
+ highlighter.gsub(/\\(\d)/) {
ERB::Util.html_escape_once(match[$1.to_i]) }
+ end
end
end
end.join
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 1980-01-02 01:00:00.000000000 +0100
+++ new/metadata 1980-01-02 01:00:00.000000000 +0100
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: actionview
version: !ruby/object:Gem::Version
- version: 8.0.5
+ version: 8.0.5.2
platform: ruby
authors:
- David Heinemeier Hansson
@@ -15,14 +15,14 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 8.0.5
+ version: 8.0.5.2
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 8.0.5
+ version: 8.0.5.2
- !ruby/object:Gem::Dependency
name: builder
requirement: !ruby/object:Gem::Requirement
@@ -58,6 +58,9 @@
- - "~>"
- !ruby/object:Gem::Version
version: '1.6'
+ - - ">="
+ - !ruby/object:Gem::Version
+ version: 1.7.2
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
@@ -65,6 +68,9 @@
- - "~>"
- !ruby/object:Gem::Version
version: '1.6'
+ - - ">="
+ - !ruby/object:Gem::Version
+ version: 1.7.2
- !ruby/object:Gem::Dependency
name: rails-dom-testing
requirement: !ruby/object:Gem::Requirement
@@ -85,28 +91,28 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 8.0.5
+ version: 8.0.5.2
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 8.0.5
+ version: 8.0.5.2
- !ruby/object:Gem::Dependency
name: activemodel
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 8.0.5
+ version: 8.0.5.2
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 8.0.5
+ version: 8.0.5.2
description: Simple, battle-tested conventions and helpers for building web
pages.
email: [email protected]
executables: []
@@ -246,10 +252,10 @@
- MIT
metadata:
bug_tracker_uri: https://github.com/rails/rails/issues
- changelog_uri:
https://github.com/rails/rails/blob/v8.0.5/actionview/CHANGELOG.md
- documentation_uri: https://api.rubyonrails.org/v8.0.5/
+ changelog_uri:
https://github.com/rails/rails/blob/v8.0.5.2/actionview/CHANGELOG.md
+ documentation_uri: https://api.rubyonrails.org/v8.0.5.2/
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
- source_code_uri: https://github.com/rails/rails/tree/v8.0.5/actionview
+ source_code_uri: https://github.com/rails/rails/tree/v8.0.5.2/actionview
rubygems_mfa_required: 'true'
rdoc_options: []
require_paths:
@@ -266,7 +272,7 @@
version: '0'
requirements:
- none
-rubygems_version: 4.0.6
+rubygems_version: 4.0.20
specification_version: 4
summary: Rendering framework putting the V in MVC (part of Rails).
test_files: []