summaryrefslogtreecommitdiff
path: root/dev-ruby/rails-html-sanitizer
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-ruby/rails-html-sanitizer
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ruby/rails-html-sanitizer')
-rw-r--r--dev-ruby/rails-html-sanitizer/Manifest5
-rw-r--r--dev-ruby/rails-html-sanitizer/metadata.xml11
-rw-r--r--dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.0.3-r1.ebuild32
3 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/rails-html-sanitizer/Manifest b/dev-ruby/rails-html-sanitizer/Manifest
new file mode 100644
index 000000000000..f4b285ad546c
--- /dev/null
+++ b/dev-ruby/rails-html-sanitizer/Manifest
@@ -0,0 +1,5 @@
+DIST rails-html-sanitizer-1.0.3.gem 15360 SHA256 a7da8eb4ce2e673ba909d36a94a9e06f196e88a92e76d01dfee3803d0d6a0e8d SHA512 84d91014384773389492d7cde0afcdc7e3324320970788d88861f89395d847d2599d1e645177f5301109194805ffb684f591e287f3e4280117738416655d934a WHIRLPOOL 1d0b46c1c41dce9518b7f5ec9c19f1564c4888db25d63041d8010870441ef9079457fd359cfac9b3329bc893e7d8a1be0cc398c82e69bf0487af571a444875fd
+EBUILD rails-html-sanitizer-1.0.3-r1.ebuild 1019 SHA256 ab6f9635fb8302a28b25c723ab8d8fd37947e82925a65c1e534025e42f59a223 SHA512 c4875264aa3ae8c582116dbaa1f9e9de9b1bb4abb03d0c97fc367c5dc09f4ef2a96fc227410118616d6e7e0b947f6850f3e4750abfc98bc74fa56d2c47ef6433 WHIRLPOOL 9ca15a71aef281997258a8ebe203e1ff0f1928970de81561d6946bdde7b94e315f9fdbaf41a7642b90ba71a905c3723eef32be10635dc6248a4bb07899305494
+MISC ChangeLog 4042 SHA256 d0a19565109e036123d154ddf78168f8d27e6d0b341eba451971d68dd6d9adc3 SHA512 9a5575de5e598a22609b16814a23c467ea8219bafffdf8ea6c878a41975b8ead8a1ac56072409bb712d2d0312f512131613fc775c5b6d0710366727b211dee9e WHIRLPOOL 45288c9ab4f37fc740679c8b2bc138461e384c17101f9209d671fed9f6c819e98dfb11bffb82d8a29e5ff4310ee6e419814c8adbc5325179025a0af63638ba05
+MISC ChangeLog-2015 1282 SHA256 867583d1cb5d950fcfd597f4ad3cc4a6120f1c787a43e583c575e49d820b8faa SHA512 2b211c78980cb2795310bab37dca115745f51d76f40168e6412d3fb5c15734a53bcde062f80a6d478fab51ac26457583ce12393d82e3d13a55c373b8495a0b18 WHIRLPOOL ecb35a04b357b30c5006a78b8810a603ff8aa43bc519897f31445b8b0ef1a45d74a4519d23efc6ab614ae3919b720dc20b57b6f6745261e6569e52431b7b289f
+MISC metadata.xml 359 SHA256 53ed7ee5582d2cd02d3517a72fe03c26725f2956ad4e4dd751c8d90c09970253 SHA512 a7b934bec0d958559083b417dac76c3ffee71d9efa912b6bab2c2c01e6aa9acf39a46d71fff54a9b750afe6f59a8eb4b12c10b5cbee62fc5f32dab29911f4bd5 WHIRLPOOL 4686bab3bc4d4a2bf0b8503962cbc121a2d394ccc24378aae43785dee8345dae82c168962431bbe256147c4faaf96a9a2c7b6e5b9ca5acfe876b41248eb92f70
diff --git a/dev-ruby/rails-html-sanitizer/metadata.xml b/dev-ruby/rails-html-sanitizer/metadata.xml
new file mode 100644
index 000000000000..a4fcd6097795
--- /dev/null
+++ b/dev-ruby/rails-html-sanitizer/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ruby@gentoo.org</email>
+ <name>Gentoo Ruby Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">rafaelfranca/rails-html-sanitizer</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.0.3-r1.ebuild b/dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.0.3-r1.ebuild
new file mode 100644
index 000000000000..2528ffd9528c
--- /dev/null
+++ b/dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.0.3-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby21 ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+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 ~ppc ~ppc64 ~x86 ~amd64-linux"
+IUSE=""
+
+ruby_add_rdepend "dev-ruby/loofah:0"
+
+ruby_add_bdepend "test? ( dev-ruby/rails-dom-testing )"
+
+all_ruby_prepare() {
+ # Avoid tests failing with libxml2-2.9.3
+ # https://github.com/rails/rails-html-sanitizer/issues/49
+ sed -i -e '/test_\(strip_links_with_tags_in_tags\|strip_nested_tags\|should_sanitize_script_tag_with_multiple_open_brackets\|strip_tags_with_many_open_quotes\|strip_invalid_html\)/,/^ end/ s:^:#:' test/sanitizer_test.rb || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:test:. -e 'Dir["test/*_test.rb"].each{|f| require f}' || die
+}