summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-12-13 19:36:41 +0100
committerHans de Graaff <graaff@gentoo.org>2022-12-13 19:36:55 +0100
commit49e5673e41e9bb84af20d701460ca2afed7fa177 (patch)
tree6f74a4104dc2154e81efd3a1a77060c3beb49aa9 /dev-ruby/rails-html-sanitizer
parentdev-ruby/loofah: add 2.19.1 (diff)
downloadgentoo-49e5673e41e9bb84af20d701460ca2afed7fa177.tar.gz
gentoo-49e5673e41e9bb84af20d701460ca2afed7fa177.tar.bz2
gentoo-49e5673e41e9bb84af20d701460ca2afed7fa177.zip
dev-ruby/rails-html-sanitizer: add 1.4.4
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/rails-html-sanitizer')
-rw-r--r--dev-ruby/rails-html-sanitizer/Manifest1
-rw-r--r--dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.4.4.ebuild30
2 files changed, 31 insertions, 0 deletions
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
+}