diff options
author | Hans de Graaff <graaff@gentoo.org> | 2019-10-07 07:18:17 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2019-10-07 07:46:10 +0200 |
commit | 2ff87ddd4a57bb0edde6b0e6602fc7d5b239346f (patch) | |
tree | c84730dc24219fcb635a98417b6cd08d96da087b /dev-ruby/rails-html-sanitizer | |
parent | dev-libs/spdlog: fix wrong dependency version (diff) | |
download | gentoo-2ff87ddd4a57bb0edde6b0e6602fc7d5b239346f.tar.gz gentoo-2ff87ddd4a57bb0edde6b0e6602fc7d5b239346f.tar.bz2 gentoo-2ff87ddd4a57bb0edde6b0e6602fc7d5b239346f.zip |
dev-ruby/rails-html-sanitizer: add 1.3.0
Package-Manager: Portage-2.3.76, Repoman-2.3.16
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/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.3.0.ebuild | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/dev-ruby/rails-html-sanitizer/Manifest b/dev-ruby/rails-html-sanitizer/Manifest index e8cf1880015b..2d17ae9c4fc6 100644 --- a/dev-ruby/rails-html-sanitizer/Manifest +++ b/dev-ruby/rails-html-sanitizer/Manifest @@ -1,2 +1,3 @@ DIST rails-html-sanitizer-1.0.4.gem 15872 BLAKE2B 4408a494f75bedb4e4286e053536abf62f094873d9e0a8c21f9de6f42b2826f187c9919fb86c84380c1eff241c62f077d48cc21912c93fe85ac2b6039089a84d SHA512 f608f2b642869606fc2c3986298a8ae3e36c676a7eda5e3cce419700961bfed011f8d4a2dcb59e5d32a41f556815ca5f214ec19f8940ce71d1217ba84686b8e1 DIST rails-html-sanitizer-1.2.0.gem 16384 BLAKE2B f5a5ededf15c199b59dfcd7b2da234f766cd46cf46834b458940d7b68fe27dd97602a6a673d8c0f700cf9c593a8375c97e74da0ac0db355af93bf951540ac368 SHA512 efe006ad2857a21d466375f630fe269cceb78aa467d91cdf193ec5eab8fdb0d58443696989b920840f6aafcb9ddfa6a72972f0e09456b2aa57018d86791cc38f +DIST rails-html-sanitizer-1.3.0.gem 16384 BLAKE2B ae0b9acfd4ffc53b84b92cb42c149022312112f90d64866de916be2b91b680ecfbbdc94d278626c992cc90b0061705c11c9a604f6d9e91092e1117e40e003e6d SHA512 01d67f750ffc6ac857e4dc47b77d66e02acc4488f353af97e2fc367590fe85107b631aaf8b32f61f9e1f375c93e1b24fbf966f738e35483f5174880a0ffe5ddb diff --git a/dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.3.0.ebuild b/dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.3.0.ebuild new file mode 100644 index 000000000000..3b19aa92c2a1 --- /dev/null +++ b/dev-ruby/rails-html-sanitizer/rails-html-sanitizer-1.3.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby24 ruby25 ruby26" + +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 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux" +IUSE="" + +ruby_add_rdepend ">=dev-ruby/loofah-2.3: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 +} |