Received: by mail.netbsd.org (Postfix, from userid 605) id 47FA084EE0; Sun, 14 May 2023 14:24:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 73F9284CFF for ; Sun, 14 May 2023 14:24:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id GAtoSf2PJP3M for ; Sun, 14 May 2023 14:24:49 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 7C1A184CEE for ; Sun, 14 May 2023 14:24:49 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 701FBFA87; Sun, 14 May 2023 14:24:49 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1684074289103140" MIME-Version: 1.0 Date: Sun, 14 May 2023 14:24:49 +0000 From: "Takahiro Kambe" Subject: CVS commit: pkgsrc/www/ruby-loofah To: pkgsrc-changes@NetBSD.org Reply-To: taca@netbsd.org X-Mailer: log_accum Message-Id: <20230514142449.701FBFA87@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1684074289103140 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" Module Name: pkgsrc Committed By: taca Date: Sun May 14 14:24:49 UTC 2023 Modified Files: pkgsrc/www/ruby-loofah: Makefile PLIST distinfo Log Message: www/ruby-loofah: update to 2.21.2 2.21.0 (2023-05-10) HTML5 Support Classes Loofah::HTML5::Document and Loofah::HTML5::DocumentFragment are introduced, along with helper methods: * Loofah.html5_document * Loofah.html5_fragment * Loofah.scrub_html5_document * Loofah.scrub_html5_fragment These classes and methods use Nokogiri's HTML5 parser to ensure modern web standards are used. ⚠ HTML5 functionality is only available with Nokogiri v1.14.0 and higher. ⚠ HTML5 functionality is not available for JRuby. Please see this upstream Nokogiri issue if you're interested in helping implement and support HTML5 support. Loofah::HTML4 module and namespace Loofah::HTML has been renamed to Loofah::HTML4, and Loofah::HTML is aliased to preserve backwards-compatibility. Nokogiri::HTML and Nokogiri::HTML4 parse methods still use libxml2's (or NekoHTML's) HTML4 parser. Take special note that if you rely on the class name of an object in your code, objects will now report a class of Loofah::HTML4::Foo where they previously reported Loofah::HTML::Foo. Instead of relying on the string returned by Object#class, prefer Class#=== or Object#is_a? or Object#instance_of?. Future releases of Nokogiri may deprecate HTML classes and methods or otherwise change this behavior, so please start using HTML4 in place of HTML. Official support for JRuby This version introduces official support for JRuby. Previously, the test suite had never been green due to differences in behavior in the underlying HTML parser used by Nokogiri. We've updated the test suite to accommodate those differences, and have added JRuby to the CI suite. 2.21.1 (2023-05-10) Fixed * Don't define HTML5::Document and HTML5::DocumentFragment when Nokogiri is < 1.14. In 2.21.0 these classes were defined whenever Nokogiri::HTML5 was defined, but Nokogiri v1.12 and v1.13 do not support Loofah subclassing properly. 2.21.2 (2023-05-11) Dependencies * Update the dependency on Nokogiri to be >= 1.12.0. The dependency in 2.21.0 and 2.21.1 was left at >= 1.5.9 but versions before 1.12 would result in a NameError exception. [#266] To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 pkgsrc/www/ruby-loofah/Makefile cvs rdiff -u -r1.7 -r1.8 pkgsrc/www/ruby-loofah/PLIST cvs rdiff -u -r1.21 -r1.22 pkgsrc/www/ruby-loofah/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1684074289103140 Content-Disposition: inline Content-Length: 3090 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/www/ruby-loofah/Makefile diff -u pkgsrc/www/ruby-loofah/Makefile:1.19 pkgsrc/www/ruby-loofah/Makefile:1.20 --- pkgsrc/www/ruby-loofah/Makefile:1.19 Sun Apr 30 14:22:55 2023 +++ pkgsrc/www/ruby-loofah/Makefile Sun May 14 14:24:49 2023 @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.19 2023/04/30 14:22:55 taca Exp $ +# $NetBSD: Makefile,v 1.20 2023/05/14 14:24:49 taca Exp $ -DISTNAME= loofah-2.20.0 +DISTNAME= loofah-2.21.2 CATEGORIES= www MAINTAINER= minskim@NetBSD.org @@ -8,7 +8,7 @@ HOMEPAGE= https://github.com/flavorjones COMMENT= HTML sanitizer for Rails applications LICENSE= mit -DEPENDS+= ${RUBY_PKGPREFIX}-nokogiri>=1.5.9:../../textproc/ruby-nokogiri +DEPENDS+= ${RUBY_PKGPREFIX}-nokogiri>=1.12.0:../../textproc/ruby-nokogiri DEPENDS+= ${RUBY_PKGPREFIX}-crass>=1.0.2<1.1:../../www/ruby-crass USE_LANGUAGES= # none Index: pkgsrc/www/ruby-loofah/PLIST diff -u pkgsrc/www/ruby-loofah/PLIST:1.7 pkgsrc/www/ruby-loofah/PLIST:1.8 --- pkgsrc/www/ruby-loofah/PLIST:1.7 Mon Jan 18 16:02:38 2021 +++ pkgsrc/www/ruby-loofah/PLIST Sun May 14 14:24:49 2023 @@ -1,18 +1,20 @@ -@comment $NetBSD: PLIST,v 1.7 2021/01/18 16:02:38 taca Exp $ +@comment $NetBSD: PLIST,v 1.8 2023/05/14 14:24:49 taca Exp $ ${GEM_HOME}/cache/${GEM_NAME}.gem ${GEM_LIBDIR}/CHANGELOG.md ${GEM_LIBDIR}/MIT-LICENSE.txt ${GEM_LIBDIR}/README.md ${GEM_LIBDIR}/SECURITY.md ${GEM_LIBDIR}/lib/loofah.rb +${GEM_LIBDIR}/lib/loofah/concerns.rb ${GEM_LIBDIR}/lib/loofah/elements.rb ${GEM_LIBDIR}/lib/loofah/helpers.rb -${GEM_LIBDIR}/lib/loofah/html/document.rb -${GEM_LIBDIR}/lib/loofah/html/document_fragment.rb +${GEM_LIBDIR}/lib/loofah/html4/document.rb +${GEM_LIBDIR}/lib/loofah/html4/document_fragment.rb +${GEM_LIBDIR}/lib/loofah/html5/document.rb +${GEM_LIBDIR}/lib/loofah/html5/document_fragment.rb ${GEM_LIBDIR}/lib/loofah/html5/libxml2_workarounds.rb ${GEM_LIBDIR}/lib/loofah/html5/safelist.rb ${GEM_LIBDIR}/lib/loofah/html5/scrub.rb -${GEM_LIBDIR}/lib/loofah/instance_methods.rb ${GEM_LIBDIR}/lib/loofah/metahelpers.rb ${GEM_LIBDIR}/lib/loofah/scrubber.rb ${GEM_LIBDIR}/lib/loofah/scrubbers.rb Index: pkgsrc/www/ruby-loofah/distinfo diff -u pkgsrc/www/ruby-loofah/distinfo:1.21 pkgsrc/www/ruby-loofah/distinfo:1.22 --- pkgsrc/www/ruby-loofah/distinfo:1.21 Sun Apr 30 14:22:55 2023 +++ pkgsrc/www/ruby-loofah/distinfo Sun May 14 14:24:49 2023 @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.21 2023/04/30 14:22:55 taca Exp $ +$NetBSD: distinfo,v 1.22 2023/05/14 14:24:49 taca Exp $ -BLAKE2s (loofah-2.20.0.gem) = 7a48d58ffd6a97ceb7e3eba8dbea0ef98ff5968cb7b5a3a40c21dee0d31f8a0d -SHA512 (loofah-2.20.0.gem) = 71cbed9b08caac6133ac0da4444b80879684a284b58f4c733c06e3db56d948f06b667b50471f19ba1a6701b3995ab677eea245b49bbb577b6af54985f7fe5ad9 -Size (loofah-2.20.0.gem) = 32768 bytes +BLAKE2s (loofah-2.21.2.gem) = 94a4dd782ae00914db4cf3f9176946e4b45738f699511c669e48516c670d24ca +SHA512 (loofah-2.21.2.gem) = f9f539e6338c29c3f5d1bd2bcdff34e539fdad39a8f24469cacd578205dfe538341e3b021bd3efcccac5cff0adf363a06fd8fefdb661c074f3b1704f953a3ff9 +Size (loofah-2.21.2.gem) = 32256 bytes --_----------=_1684074289103140--