git: c944f0a5cc39 - main - www/rubygem-bullet_train-super_load_and_authorize_resource: Add rubygem-bullet_train-super_load_and_authorize_resource 1.7.2

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 16 May 2024 06:29:49 UTC
The branch main has been updated by sunpoet:

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

commit c944f0a5cc399507a549cae535c69fe08581d426
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-16 06:14:12 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-16 06:21:54 +0000

    www/rubygem-bullet_train-super_load_and_authorize_resource: Add rubygem-bullet_train-super_load_and_authorize_resource 1.7.2
    
    BulletTrain's super load and authorize resource function
    
    It is heavily based on cancancan's load_and_authorize_resource method.
---
 www/Makefile                                         |  1 +
 .../Makefile                                         | 20 ++++++++++++++++++++
 .../distinfo                                         |  3 +++
 .../pkg-descr                                        |  3 +++
 4 files changed, 27 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index becce4badb52..8196225c7762 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1972,6 +1972,7 @@
     SUBDIR += rubygem-bullet_train-roles
     SUBDIR += rubygem-bullet_train-routes
     SUBDIR += rubygem-bullet_train-scope_validator
+    SUBDIR += rubygem-bullet_train-super_load_and_authorize_resource
     SUBDIR += rubygem-cal-heatmap-rails
     SUBDIR += rubygem-carrierwave
     SUBDIR += rubygem-carrierwave1
diff --git a/www/rubygem-bullet_train-super_load_and_authorize_resource/Makefile b/www/rubygem-bullet_train-super_load_and_authorize_resource/Makefile
new file mode 100644
index 000000000000..3191301a6106
--- /dev/null
+++ b/www/rubygem-bullet_train-super_load_and_authorize_resource/Makefile
@@ -0,0 +1,20 @@
+PORTNAME=	bullet_train-super_load_and_authorize_resource
+PORTVERSION=	1.7.2
+CATEGORIES=	www rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Bullet Train Super Load And Authorize Resource
+WWW=		https://github.com/bullet-train-co/bullet_train-core/tree/main/bullet_train-super_load_and_authorize_resource
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/MIT-LICENSE
+
+RUN_DEPENDS=	rubygem-cancancan>=0:security/rubygem-cancancan \
+		rubygem-rails71>=6.0.0:www/rubygem-rails71
+
+USES=		gem
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/rubygem-bullet_train-super_load_and_authorize_resource/distinfo b/www/rubygem-bullet_train-super_load_and_authorize_resource/distinfo
new file mode 100644
index 000000000000..1a30213f6c21
--- /dev/null
+++ b/www/rubygem-bullet_train-super_load_and_authorize_resource/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1714227840
+SHA256 (rubygem/bullet_train-super_load_and_authorize_resource-1.7.2.gem) = ec03cf21173cff8fc4828b4937ee6a9055728f0e7b658fbacf17791455387a56
+SIZE (rubygem/bullet_train-super_load_and_authorize_resource-1.7.2.gem) = 8704
diff --git a/www/rubygem-bullet_train-super_load_and_authorize_resource/pkg-descr b/www/rubygem-bullet_train-super_load_and_authorize_resource/pkg-descr
new file mode 100644
index 000000000000..10a232f58b55
--- /dev/null
+++ b/www/rubygem-bullet_train-super_load_and_authorize_resource/pkg-descr
@@ -0,0 +1,3 @@
+BulletTrain's super load and authorize resource function
+
+It is heavily based on cancancan's load_and_authorize_resource method.