From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AB55D15800F for ; Sat, 21 Jan 2023 07:20:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8B577E0843; Sat, 21 Jan 2023 07:20:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 77691E0843 for ; Sat, 21 Jan 2023 07:20:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A6237340D43 for ; Sat, 21 Jan 2023 07:20:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 181FE75 for ; Sat, 21 Jan 2023 07:20:44 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1674285441.c2cc672b1ab290d161dfa088ae44c01e54994c80.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/rails-html-sanitizer/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/rails-html-sanitizer/Manifest dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.5.0.ebuild X-VCS-Directories: dev-ruby/rails-html-sanitizer/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: c2cc672b1ab290d161dfa088ae44c01e54994c80 X-VCS-Branch: master Date: Sat, 21 Jan 2023 07:20:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ac2fbf93-3a6d-477b-91e0-75aba4c0e4a0 X-Archives-Hash: a7cf4140d24c6a43fd850b27d5f3b1a1 commit: c2cc672b1ab290d161dfa088ae44c01e54994c80 Author: Hans de Graaff gentoo org> AuthorDate: Sat Jan 21 07:16:58 2023 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sat Jan 21 07:17:21 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2cc672b dev-ruby/rails-html-sanitizer: add 1.5.0 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/rails-html-sanitizer/Manifest | 1 + .../rails-html-sanitizer-1.5.0.ebuild | 31 ++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/dev-ruby/rails-html-sanitizer/Manifest b/dev-ruby/rails-html-sanitizer/Manifest index b068a8476a7f..e6e8f872a987 100644 --- a/dev-ruby/rails-html-sanitizer/Manifest +++ b/dev-ruby/rails-html-sanitizer/Manifest @@ -1 +1,2 @@ DIST rails-html-sanitizer-1.4.4.gem 18432 BLAKE2B c6966ae526142219040e98a5bd02190672050dc9831194ecd570498b75bfb168e734fe3f4d9ffa5814d1c5b94f73820e5900e805a199651c9b37645acff0237c SHA512 9a6671334967078f744296ca273a8b44c0071d04c841fe626333bbb62c252b6688b5559079a47cda540f06bd35c924ede8d9ef092c775dfab55e2673137fc05b +DIST rails-html-sanitizer-1.5.0.gem 19456 BLAKE2B 7f8b0270d9006b975fed28941139e176af4738954bd56e7b34dbc4f778521d770ff0c2c92cb365d1a671fc69d1da79f4d3bd4d90e37913c61084139ba7ff9893 SHA512 533a203d34b0f77b70258fc1b610caf1d4910da48224b136774d094ee8fa74b5cd9f3b1719118334489a41d743b97592539935b05b07770cd745e03634422214 diff --git a/dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.5.0.ebuild b/dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.5.0.ebuild new file mode 100644 index 000000000000..598d5a84bed4 --- /dev/null +++ b/dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.5.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +inherit ruby-fakegem + +DESCRIPTION="Sanitize HTML fragments in Rails applications" +HOMEPAGE="https://github.com/rafaelfranca/rails-html-sanitizer" + +LICENSE="MIT" +SLOT="1" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux" +IUSE="" + +ruby_add_rdepend ">=dev-ruby/loofah-2.19.1:0" + +ruby_add_bdepend "test? ( dev-ruby/rails-dom-testing )" + +all_ruby_prepare() { + # Avoid tests that depend on nokogiri patches to libxml2. +# sed -i -e '/\(name_action\|attr\)_in_a_tag_in_safe_list_sanitizer/askip "libxml2"' test/sanitizer_test.rb || die +: +} + +each_ruby_test() { + ${RUBY} -Ilib:test:. -e 'Dir["test/*_test.rb"].each{|f| require f}' || die +}