git: 7c304a83c4da - main - textproc/rubygem-rails-dom-testing-rails81: Add rubygem-rails-dom-testing-rails81 2.3.0 (copied from rubygem-rails-dom-testing-rails80)

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 17 Nov 2025 21:07:54 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7c304a83c4da1f5ce56575adff4abd27c2deefcd

commit 7c304a83c4da1f5ce56575adff4abd27c2deefcd
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-11-17 21:03:20 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-11-17 21:06:50 +0000

    textproc/rubygem-rails-dom-testing-rails81: Add rubygem-rails-dom-testing-rails81 2.3.0 (copied from rubygem-rails-dom-testing-rails80)
---
 textproc/Makefile                                  |  1 +
 .../rubygem-rails-dom-testing-rails81/Makefile     | 22 ++++++++++++++++++++++
 .../rubygem-rails-dom-testing-rails81/distinfo     |  3 +++
 .../rubygem-rails-dom-testing-rails81/pkg-descr    |  6 ++++++
 4 files changed, 32 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 5a5a8c5384ec..f42e84207f5b 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1963,6 +1963,7 @@
     SUBDIR += rubygem-rails-dom-testing-rails71
     SUBDIR += rubygem-rails-dom-testing-rails72
     SUBDIR += rubygem-rails-dom-testing-rails80
+    SUBDIR += rubygem-rails-dom-testing-rails81
     SUBDIR += rubygem-rails-dom-testing1
     SUBDIR += rubygem-rails-html-sanitizer
     SUBDIR += rubygem-rak
diff --git a/textproc/rubygem-rails-dom-testing-rails81/Makefile b/textproc/rubygem-rails-dom-testing-rails81/Makefile
new file mode 100644
index 000000000000..6994c31344dc
--- /dev/null
+++ b/textproc/rubygem-rails-dom-testing-rails81/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	rails-dom-testing
+PORTVERSION=	2.3.0
+CATEGORIES=	textproc rubygems
+MASTER_SITES=	RG
+PKGNAMESUFFIX=	-rails81
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Analyse and compare DOMs using Nokogiri
+WWW=		https://github.com/rails/rails-dom-testing
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/MIT-LICENSE
+
+RUN_DEPENDS=	rubygem-activesupport81>=5.0.0:devel/rubygem-activesupport81 \
+		rubygem-minitest>=0:devel/rubygem-minitest \
+		rubygem-nokogiri>=1.6:textproc/rubygem-nokogiri
+
+USES=		gem
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/textproc/rubygem-rails-dom-testing-rails81/distinfo b/textproc/rubygem-rails-dom-testing-rails81/distinfo
new file mode 100644
index 000000000000..a0b7ecf2e656
--- /dev/null
+++ b/textproc/rubygem-rails-dom-testing-rails81/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1748496007
+SHA256 (rubygem/rails-dom-testing-2.3.0.gem) = 8acc7953a7b911ca44588bf08737bc16719f431a1cc3091a292bca7317925c1d
+SIZE (rubygem/rails-dom-testing-2.3.0.gem) = 17920
diff --git a/textproc/rubygem-rails-dom-testing-rails81/pkg-descr b/textproc/rubygem-rails-dom-testing-rails81/pkg-descr
new file mode 100644
index 000000000000..ddabc817c4fd
--- /dev/null
+++ b/textproc/rubygem-rails-dom-testing-rails81/pkg-descr
@@ -0,0 +1,6 @@
+This gem is responsible for comparing HTML doms and asserting that DOM elements
+are present in Rails applications. Doms are compared via assert_dom_equal and
+assert_dom_not_equal. Elements are asserted via assert_select,
+assert_select_encoded, assert_select_email and a subset of the dom can be
+selected with css_select. The gem is developed for Rails 4.2 and above, and
+will not work on previous versions.