git: 6b3f3860b9a9 - main - www/rubygem-bullet_train-roles: Add rubygem-bullet_train-roles 1.7.2

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

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

commit 6b3f3860b9a9ce32e4b330838d4de3c2cc0e49dc
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-16 06:14:04 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-16 06:21:53 +0000

    www/rubygem-bullet_train-roles: Add rubygem-bullet_train-roles 1.7.2
    
    Bullet Train Roles provides a Yaml-based configuration layer on top of
    CanCanCan. You can use this configuration file to simplify the definition of
    many common permissions, while still implementing more complicated permissions
    in CanCanCan's traditional app/model/ability.rb.
    
    Additionally, Bullet Train Roles makes it trivial to assign the same roles and
    associated permissions at different levels in your application. For example, you
    can assign someone administrative privileges at a team level, or only at a
    project level.
---
 www/Makefile                             |  1 +
 www/rubygem-bullet_train-roles/Makefile  | 21 +++++++++++++++++++++
 www/rubygem-bullet_train-roles/distinfo  |  3 +++
 www/rubygem-bullet_train-roles/pkg-descr |  9 +++++++++
 4 files changed, 34 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 562720b4b392..27c1b567b807 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1969,6 +1969,7 @@
     SUBDIR += rubygem-bullet_train
     SUBDIR += rubygem-bullet_train-fields
     SUBDIR += rubygem-bullet_train-has_uuid
+    SUBDIR += rubygem-bullet_train-roles
     SUBDIR += rubygem-cal-heatmap-rails
     SUBDIR += rubygem-carrierwave
     SUBDIR += rubygem-carrierwave1
diff --git a/www/rubygem-bullet_train-roles/Makefile b/www/rubygem-bullet_train-roles/Makefile
new file mode 100644
index 000000000000..202e7cf56f75
--- /dev/null
+++ b/www/rubygem-bullet_train-roles/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	bullet_train-roles
+PORTVERSION=	1.7.2
+CATEGORIES=	www rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Yaml-backed ApplicationHash for CanCan Roles
+WWW=		https://github.com/bullet-train-co/bullet_train-core/tree/main/bullet_train-roles
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS=	rubygem-active_hash>=0:devel/rubygem-active_hash \
+		rubygem-activesupport71>=0:devel/rubygem-activesupport71 \
+		rubygem-cancancan>=0:security/rubygem-cancancan
+
+USES=		gem
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/rubygem-bullet_train-roles/distinfo b/www/rubygem-bullet_train-roles/distinfo
new file mode 100644
index 000000000000..2f73dfba478d
--- /dev/null
+++ b/www/rubygem-bullet_train-roles/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1714227834
+SHA256 (rubygem/bullet_train-roles-1.7.2.gem) = 64c6233eb8d3543b3265f7a0360bf020ce1debd91284d8815ac587d7d220ea59
+SIZE (rubygem/bullet_train-roles-1.7.2.gem) = 21504
diff --git a/www/rubygem-bullet_train-roles/pkg-descr b/www/rubygem-bullet_train-roles/pkg-descr
new file mode 100644
index 000000000000..7137999e3848
--- /dev/null
+++ b/www/rubygem-bullet_train-roles/pkg-descr
@@ -0,0 +1,9 @@
+Bullet Train Roles provides a Yaml-based configuration layer on top of
+CanCanCan. You can use this configuration file to simplify the definition of
+many common permissions, while still implementing more complicated permissions
+in CanCanCan's traditional app/model/ability.rb.
+
+Additionally, Bullet Train Roles makes it trivial to assign the same roles and
+associated permissions at different levels in your application. For example, you
+can assign someone administrative privileges at a team level, or only at a
+project level.