[arch-commits] Commit in ruby-rails-html-sanitizer/trunk (PKGBUILD)

Andreas Schleifer segaja at gemini.archlinux.org
Mon Jan 24 21:16:40 UTC 2022


    Date: Monday, January 24, 2022 @ 21:16:39
  Author: segaja
Revision: 1114887

upgpkg: ruby-rails-html-sanitizer 1.4.2-2; add tests

Modified:
  ruby-rails-html-sanitizer/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-24 20:58:25 UTC (rev 1114886)
+++ PKGBUILD	2022-01-24 21:16:39 UTC (rev 1114887)
@@ -3,7 +3,7 @@
 _gemname='rails-html-sanitizer'
 pkgname="ruby-${_gemname}"
 pkgver=1.4.2
-pkgrel=1
+pkgrel=2
 pkgdesc='HTML sanitization for Rails applications'
 arch=('any')
 url='https://github.com/rails/rails-html-sanitizer'
@@ -11,13 +11,18 @@
 options=(!emptydirs)
 depends=('ruby' 'ruby-loofah')
 makedepends=('ruby-bundler' 'ruby-minitest' 'ruby-rake')
-#checkdepends=('ruby-rails-dom-testing')
-source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('bbffcb04169ae8036126d1e14bff56f46741a9fd8d34b4dad106e43f82ba1c6b8a471bd515d0e62989fbecb021e25c227d4c3e91e6bddcb00349ce044ce483d2')
+checkdepends=('ruby-rails-dom-testing')
+source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
+        # https://github.com/rails/rails-html-sanitizer/pull/126
+        fix_tests.patch::https://github.com/rails/rails-html-sanitizer/commit/6a1ae1b88053ccc4070c307a757878cfbdca117d.patch)
+sha512sums=('bbffcb04169ae8036126d1e14bff56f46741a9fd8d34b4dad106e43f82ba1c6b8a471bd515d0e62989fbecb021e25c227d4c3e91e6bddcb00349ce044ce483d2'
+            '5f01b9c019e5c6dec25651c48a6a13c8b57bfabd61eb6c6279dd7a126d03a085a89926cf94592381d12aa154c9dfa7d9c21c8da2c72f98f8f1cce5865db4f68d')
 
 prepare() {
   cd "${_gemname}-${pkgver}"
 
+  patch --verbose --strip=1 --input=../fix_tests.patch
+
   # update gemspec/Gemfile to allow newer version of the dependencies
   sed -r 's|~>|>=|g' -i "${_gemname}.gemspec" Gemfile
 }
@@ -28,13 +33,12 @@
   rake build
 }
 
-# errors in tests: https://github.com/rails/rails-html-sanitizer/issues/125
-#check() {
-#  cd "${_gemname}-${pkgver}"
-#
-#  rake test
-#}
+check() {
+  cd "${_gemname}-${pkgver}"
 
+  rake test
+}
+
 package() {
   cd "${_gemname}-${pkgver}"
 



More information about the arch-commits mailing list