git: 04ad24954232 - main - devel/rubygem-better_html: Add rubygem-better_html 2.1.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 04 Aug 2024 17:21:52 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=04ad24954232d40d34f69602796f618185a58656

commit 04ad24954232d40d34f69602796f618185a58656
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-08-04 17:06:55 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-08-04 17:13:53 +0000

    devel/rubygem-better_html: Add rubygem-better_html 2.1.1
    
    This gem replaces the normal ERB parsing with an HTML-aware ERB parsing. This
    makes your templates smarter by adding runtime checks around the data
    interpolated from Ruby into HTML.
---
 devel/Makefile                      |  1 +
 devel/rubygem-better_html/Makefile  | 22 ++++++++++++++++++++++
 devel/rubygem-better_html/distinfo  |  3 +++
 devel/rubygem-better_html/pkg-descr |  3 +++
 4 files changed, 29 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 8d30ff65f664..8c591c4cccf0 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -6860,6 +6860,7 @@
     SUBDIR += rubygem-batch-loader
     SUBDIR += rubygem-bcp47_spec
     SUBDIR += rubygem-benelux
+    SUBDIR += rubygem-better_html
     SUBDIR += rubygem-better_html-rails61
     SUBDIR += rubygem-bin_utils
     SUBDIR += rubygem-bindata
diff --git a/devel/rubygem-better_html/Makefile b/devel/rubygem-better_html/Makefile
new file mode 100644
index 000000000000..482c190d98fe
--- /dev/null
+++ b/devel/rubygem-better_html/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	better_html
+PORTVERSION=	2.1.1
+CATEGORIES=	devel rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Better HTML for Rails
+WWW=		https://github.com/Shopify/better-html
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/MIT-LICENSE
+
+RUN_DEPENDS=	rubygem-actionview71>=6.0:devel/rubygem-actionview71 \
+		rubygem-activesupport71>=6.0:devel/rubygem-activesupport71 \
+		rubygem-ast>=2.0<3:devel/rubygem-ast \
+		rubygem-erubi>=1.4<2:www/rubygem-erubi \
+		rubygem-parser>=2.4:devel/rubygem-parser \
+		rubygem-smart_properties>=0:devel/rubygem-smart_properties
+
+USES=		gem
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-better_html/distinfo b/devel/rubygem-better_html/distinfo
new file mode 100644
index 000000000000..678713b22d54
--- /dev/null
+++ b/devel/rubygem-better_html/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1722711135
+SHA256 (rubygem/better_html-2.1.1.gem) = 046c3551d1488a3f2939a7cac6fabf2bde08c32e135c91fcd683380118e5af55
+SIZE (rubygem/better_html-2.1.1.gem) = 27648
diff --git a/devel/rubygem-better_html/pkg-descr b/devel/rubygem-better_html/pkg-descr
new file mode 100644
index 000000000000..3a1a0c94d73b
--- /dev/null
+++ b/devel/rubygem-better_html/pkg-descr
@@ -0,0 +1,3 @@
+This gem replaces the normal ERB parsing with an HTML-aware ERB parsing. This
+makes your templates smarter by adding runtime checks around the data
+interpolated from Ruby into HTML.