Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-loofah for openSUSE:Factory 
checked in at 2021-12-25 20:16:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-loofah (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-loofah.new.2520 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-loofah"

Sat Dec 25 20:16:44 2021 rev:20 rq:942432 version:2.13.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-loofah/rubygem-loofah.changes    
2021-08-25 20:59:39.893046449 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-loofah.new.2520/rubygem-loofah.changes  
2021-12-25 20:17:11.605276354 +0100
@@ -1,0 +2,9 @@
+Fri Dec 24 23:54:55 UTC 2021 - Manuel Schnitzer <mschnit...@suse.com>
+
+- updated to version 2.13.0
+
+  ### Bug fixes
+
+  * Loofah::HTML::DocumentFragment#text no longer serializes top-level comment 
children. [[#221](https://github.com/flavorjones/loofah/issues/221)]
+
+-------------------------------------------------------------------

Old:
----
  loofah-2.12.0.gem

New:
----
  loofah-2.13.0.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-loofah.spec ++++++
--- /var/tmp/diff_new_pack.mqNPsP/_old  2021-12-25 20:17:12.021276693 +0100
+++ /var/tmp/diff_new_pack.mqNPsP/_new  2021-12-25 20:17:12.025276696 +0100
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-loofah
-Version:        2.12.0
+Version:        2.13.0
 Release:        0
 %define mod_name loofah
 %define mod_full_name %{mod_name}-%{version}

++++++ loofah-2.12.0.gem -> loofah-2.13.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2021-08-11 19:30:17.000000000 +0200
+++ new/CHANGELOG.md    2021-12-10 06:20:57.000000000 +0100
@@ -1,5 +1,12 @@
 # Changelog
 
+## 2.13.0 / 2021-12-10
+
+### Bug fixes
+
+* Loofah::HTML::DocumentFragment#text no longer serializes top-level comment 
children. [[#221](https://github.com/flavorjones/loofah/issues/221)]
+
+
 ## 2.12.0 / 2021-08-11
 
 ### Features
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/loofah/instance_methods.rb 
new/lib/loofah/instance_methods.rb
--- old/lib/loofah/instance_methods.rb  2021-08-11 19:30:17.000000000 +0200
+++ new/lib/loofah/instance_methods.rb  2021-12-10 06:20:57.000000000 +0100
@@ -93,7 +93,11 @@
     #    frag.text(:encode_special_chars => false) # => 
"<script>alert('EVIL');</script>"
     #
     def text(options = {})
-      result = serialize_root.children.inner_text rescue ""
+      result = if serialize_root
+        serialize_root.children.reject(&:comment?).map(&:inner_text).join("")
+      else
+        ""
+      end
       if options[:encode_special_chars] == false
         result # possibly dangerous if rendered in a browser
       else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/loofah/version.rb new/lib/loofah/version.rb
--- old/lib/loofah/version.rb   2021-08-11 19:30:17.000000000 +0200
+++ new/lib/loofah/version.rb   2021-12-10 06:20:57.000000000 +0100
@@ -1,5 +1,5 @@
 # frozen_string_literal: true
 module Loofah
   # The version of Loofah you are using
-  VERSION = "2.12.0"
+  VERSION = "2.13.0"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2021-08-11 19:30:17.000000000 +0200
+++ new/metadata        2021-12-10 06:20:57.000000000 +0100
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: loofah
 version: !ruby/object:Gem::Version
-  version: 2.12.0
+  version: 2.13.0
 platform: ruby
 authors:
 - Mike Dalessio
@@ -9,7 +9,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2021-08-11 00:00:00.000000000 Z
+date: 2021-12-10 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: crass
@@ -199,7 +199,7 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubygems_version: 3.2.15
+rubygems_version: 3.2.32
 signing_key: 
 specification_version: 4
 summary: Loofah is a general library for manipulating and transforming 
HTML/XML documents

Reply via email to