1 |
commit: b0042e360fa4ffabdc987817c12911e49be94fc0 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 24 05:59:16 2019 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 24 07:36:23 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0042e36 |
7 |
|
8 |
dev-ruby/rails-html-sanitizer: add 1.2.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/rails-html-sanitizer/Manifest | 1 + |
14 |
.../rails-html-sanitizer-1.2.0.ebuild | 31 ++++++++++++++++++++++ |
15 |
2 files changed, 32 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/rails-html-sanitizer/Manifest b/dev-ruby/rails-html-sanitizer/Manifest |
18 |
index b9927e685d4..e8cf1880015 100644 |
19 |
--- a/dev-ruby/rails-html-sanitizer/Manifest |
20 |
+++ b/dev-ruby/rails-html-sanitizer/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST rails-html-sanitizer-1.0.4.gem 15872 BLAKE2B 4408a494f75bedb4e4286e053536abf62f094873d9e0a8c21f9de6f42b2826f187c9919fb86c84380c1eff241c62f077d48cc21912c93fe85ac2b6039089a84d SHA512 f608f2b642869606fc2c3986298a8ae3e36c676a7eda5e3cce419700961bfed011f8d4a2dcb59e5d32a41f556815ca5f214ec19f8940ce71d1217ba84686b8e1 |
23 |
+DIST rails-html-sanitizer-1.2.0.gem 16384 BLAKE2B f5a5ededf15c199b59dfcd7b2da234f766cd46cf46834b458940d7b68fe27dd97602a6a673d8c0f700cf9c593a8375c97e74da0ac0db355af93bf951540ac368 SHA512 efe006ad2857a21d466375f630fe269cceb78aa467d91cdf193ec5eab8fdb0d58443696989b920840f6aafcb9ddfa6a72972f0e09456b2aa57018d86791cc38f |
24 |
|
25 |
diff --git a/dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.2.0.ebuild b/dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.2.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..aed8ae6608b |
28 |
--- /dev/null |
29 |
+++ b/dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.2.0.ebuild |
30 |
@@ -0,0 +1,31 @@ |
31 |
+# Copyright 1999-2019 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+USE_RUBY="ruby24 ruby25 ruby26" |
36 |
+ |
37 |
+RUBY_FAKEGEM_RECIPE_DOC="rdoc" |
38 |
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" |
39 |
+ |
40 |
+inherit ruby-fakegem |
41 |
+ |
42 |
+DESCRIPTION="Sanitize HTML fragments in Rails applications" |
43 |
+HOMEPAGE="https://github.com/rafaelfranca/rails-html-sanitizer" |
44 |
+ |
45 |
+LICENSE="MIT" |
46 |
+SLOT="1" |
47 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux" |
48 |
+IUSE="" |
49 |
+ |
50 |
+ruby_add_rdepend ">=dev-ruby/loofah-2.2.2:0" |
51 |
+ |
52 |
+ruby_add_bdepend "test? ( dev-ruby/rails-dom-testing )" |
53 |
+ |
54 |
+all_ruby_prepare() { |
55 |
+ # Avoid tests that depend on nokogiri patches to libxml2. |
56 |
+ sed -i -e '/\(name_action\|attr\)_in_a_tag_in_safe_list_sanitizer/askip "libxml2"' test/sanitizer_test.rb || die |
57 |
+} |
58 |
+ |
59 |
+each_ruby_test() { |
60 |
+ ${RUBY} -Ilib:test:. -e 'Dir["test/*_test.rb"].each{|f| require f}' || die |
61 |
+} |