diff --git a/www/ruby-rails-html-sanitizer/Makefile b/www/ruby-rails-html-sanitizer/Makefile
index b6f94159cee1..e288a1c3f798 100644
--- a/www/ruby-rails-html-sanitizer/Makefile
+++ b/www/ruby-rails-html-sanitizer/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2020/03/20 17:54:27 taca Exp $
+# $NetBSD: Makefile,v 1.4 2021/08/30 15:38:02 taca Exp $
-DISTNAME= rails-html-sanitizer-1.3.0
+DISTNAME= rails-html-sanitizer-1.4.2
CATEGORIES= www
MAINTAINER= minskim@NetBSD.org
@@ -8,7 +8,9 @@ HOMEPAGE= https://github.com/rails/rails-html-sanitizer
COMMENT= HTML sanitizer for Rails applications
LICENSE= mit
-DEPENDS+= ${RUBY_PKGPREFIX}-loofah>=2.2.0:../../www/ruby-loofah
+DEPENDS+= ${RUBY_PKGPREFIX}-loofah>=2.3<3:../../www/ruby-loofah
+
+USE_LANGUAGES= # empty
.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/www/ruby-rails-html-sanitizer/distinfo b/www/ruby-rails-html-sanitizer/distinfo
index 09debd16a406..71085f7404a1 100644
--- a/www/ruby-rails-html-sanitizer/distinfo
+++ b/www/ruby-rails-html-sanitizer/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2020/03/20 17:54:27 taca Exp $
+$NetBSD: distinfo,v 1.4 2021/08/30 15:38:02 taca Exp $
-SHA1 (rails-html-sanitizer-1.3.0.gem) = 90c3c3d2c2cff685b1308b67ff441e94aae579d0
-RMD160 (rails-html-sanitizer-1.3.0.gem) = 73d30b8952a7dadfbb70d6dfb4025292f8103806
-SHA512 (rails-html-sanitizer-1.3.0.gem) = 01d67f750ffc6ac857e4dc47b77d66e02acc4488f353af97e2fc367590fe85107b631aaf8b32f61f9e1f375c93e1b24fbf966f738e35483f5174880a0ffe5ddb
-Size (rails-html-sanitizer-1.3.0.gem) = 16384 bytes
+SHA1 (rails-html-sanitizer-1.4.2.gem) = a8017ee65b75b61b1d487585eec4bd48b4191ac5
+RMD160 (rails-html-sanitizer-1.4.2.gem) = d1024ab6a0111d5b5996bd6dcd12e92c496806a3
+SHA512 (rails-html-sanitizer-1.4.2.gem) = 9f0872f1000c758918f66a889322d3393ec678604eb3b01fc21bbb861189ec04fcf05f5c9487bd5eeb63ce6d99a80064718c82bfce2daf25c07754979a2ed747
+Size (rails-html-sanitizer-1.4.2.gem) = 16896 bytes