commit:     49e5673e41e9bb84af20d701460ca2afed7fa177
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 13 18:36:41 2022 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Tue Dec 13 18:36:55 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49e5673e

dev-ruby/rails-html-sanitizer: add 1.4.4

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/rails-html-sanitizer/Manifest             |  1 +
 .../rails-html-sanitizer-1.4.4.ebuild              | 30 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)

diff --git a/dev-ruby/rails-html-sanitizer/Manifest 
b/dev-ruby/rails-html-sanitizer/Manifest
index b4e9c6e611d0..d7e731ca9c64 100644
--- a/dev-ruby/rails-html-sanitizer/Manifest
+++ b/dev-ruby/rails-html-sanitizer/Manifest
@@ -1 +1,2 @@
 DIST rails-html-sanitizer-1.4.3.gem 17920 BLAKE2B 
2745ce137612337d4d85593b0af9a3e5102e399957b71dea366cc864a1acc66bb2bd099bd53701c71925ba64ae0287896bbd33eb64bb5ec22cbcbfb3173953dc
 SHA512 
ead339d8ed5aefa737298d886a0db3c353254cfa57bdee7d2011f596ed2871dcad3bd16561728da2447e239fcaa908256bb6436493462bca6310a17a3812ffd9
+DIST rails-html-sanitizer-1.4.4.gem 18432 BLAKE2B 
c6966ae526142219040e98a5bd02190672050dc9831194ecd570498b75bfb168e734fe3f4d9ffa5814d1c5b94f73820e5900e805a199651c9b37645acff0237c
 SHA512 
9a6671334967078f744296ca273a8b44c0071d04c841fe626333bbb62c252b6688b5559079a47cda540f06bd35c924ede8d9ef092c775dfab55e2673137fc05b

diff --git a/dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.4.4.ebuild 
b/dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.4.4.ebuild
new file mode 100644
index 000000000000..ed79bf3bccd8
--- /dev/null
+++ b/dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.4.4.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2022 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
+}

Reply via email to