git: 88545fc6189a - main - databases/rubygem-solid_cable: Add rubygem-solid_cable 3.0.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 18 Sep 2024 06:18:37 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=88545fc6189aa73ded22472e6960e4987145628e

commit 88545fc6189aa73ded22472e6960e4987145628e
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-09-18 05:51:28 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-09-18 06:13:03 +0000

    databases/rubygem-solid_cable: Add rubygem-solid_cable 3.0.0
    
    Solid Cable is a database-backed Action Cable adapter that keeps messages in a
    table and continously polls for updates. This makes it possible to drop the
    common dependency on Redis, if it isn't needed for any other purpose. Despite
    polling, the performance of Solid Cable is comparable to Redis in most
    situations. And in all circumstances, it makes it easier to deploy Rails when
    Redis is no longer a required dependency for Action Cable functionality.
---
 databases/Makefile                      |  1 +
 databases/rubygem-solid_cable/Makefile  | 22 ++++++++++++++++++++++
 databases/rubygem-solid_cable/distinfo  |  3 +++
 databases/rubygem-solid_cable/pkg-descr |  6 ++++++
 4 files changed, 32 insertions(+)

diff --git a/databases/Makefile b/databases/Makefile
index e8dd11b92a9c..36d4ad809b0b 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -1042,6 +1042,7 @@
     SUBDIR += rubygem-scenic61
     SUBDIR += rubygem-sdbm
     SUBDIR += rubygem-seed-fu
+    SUBDIR += rubygem-solid_cable
     SUBDIR += rubygem-sqlite3
     SUBDIR += rubygem-sqlite3-ruby
     SUBDIR += rubygem-sqlite31
diff --git a/databases/rubygem-solid_cable/Makefile b/databases/rubygem-solid_cable/Makefile
new file mode 100644
index 000000000000..6487b97e0897
--- /dev/null
+++ b/databases/rubygem-solid_cable/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	solid_cable
+PORTVERSION=	3.0.0
+CATEGORIES=	databases rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Database-backed Action Cable backend
+WWW=		https://github.com/rails/solid_cable
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/MIT-LICENSE
+
+RUN_DEPENDS=	rubygem-actioncable72>=7.2:www/rubygem-actioncable72 \
+		rubygem-activejob72>=7.2:devel/rubygem-activejob72 \
+		rubygem-activerecord72>=7.2:databases/rubygem-activerecord72 \
+		rubygem-railties72>=7.2:www/rubygem-railties72
+
+USES=		gem
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/databases/rubygem-solid_cable/distinfo b/databases/rubygem-solid_cable/distinfo
new file mode 100644
index 000000000000..51a06a8372dd
--- /dev/null
+++ b/databases/rubygem-solid_cable/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1726487306
+SHA256 (rubygem/solid_cable-3.0.0.gem) = 898a08ccc4f36a2e4e346cf77407fa6a4c5d5c88c4fee4d94b450fd0ef19863d
+SIZE (rubygem/solid_cable-3.0.0.gem) = 11776
diff --git a/databases/rubygem-solid_cable/pkg-descr b/databases/rubygem-solid_cable/pkg-descr
new file mode 100644
index 000000000000..9fd6d1664a8d
--- /dev/null
+++ b/databases/rubygem-solid_cable/pkg-descr
@@ -0,0 +1,6 @@
+Solid Cable is a database-backed Action Cable adapter that keeps messages in a
+table and continously polls for updates. This makes it possible to drop the
+common dependency on Redis, if it isn't needed for any other purpose. Despite
+polling, the performance of Solid Cable is comparable to Redis in most
+situations. And in all circumstances, it makes it easier to deploy Rails when
+Redis is no longer a required dependency for Action Cable functionality.