git: 6f0ee272541c - main - www/rubygem-bullet_train-scope_validator: Add rubygem-bullet_train-scope_validator 1.7.2

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

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

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

    www/rubygem-bullet_train-scope_validator: Add rubygem-bullet_train-scope_validator 1.7.2
    
    Bullet Train Scope Validator provides a simple pattern for protecting belongs_to
    associations from malicious ID stuffing.
---
 www/Makefile                                       |  1 +
 www/rubygem-bullet_train-scope_validator/Makefile  | 19 +++++++++++++++++++
 www/rubygem-bullet_train-scope_validator/distinfo  |  3 +++
 www/rubygem-bullet_train-scope_validator/pkg-descr |  2 ++
 4 files changed, 25 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 05fe6a234eb8..becce4badb52 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1971,6 +1971,7 @@
     SUBDIR += rubygem-bullet_train-has_uuid
     SUBDIR += rubygem-bullet_train-roles
     SUBDIR += rubygem-bullet_train-routes
+    SUBDIR += rubygem-bullet_train-scope_validator
     SUBDIR += rubygem-cal-heatmap-rails
     SUBDIR += rubygem-carrierwave
     SUBDIR += rubygem-carrierwave1
diff --git a/www/rubygem-bullet_train-scope_validator/Makefile b/www/rubygem-bullet_train-scope_validator/Makefile
new file mode 100644
index 000000000000..bfcbbb6dd18c
--- /dev/null
+++ b/www/rubygem-bullet_train-scope_validator/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	bullet_train-scope_validator
+PORTVERSION=	1.7.2
+CATEGORIES=	www rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Protect belongs_to attributes from ID stuffing
+WWW=		https://github.com/bullet-train-co/bullet_train-core/tree/main/bullet_train-scope_validator
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS=	rubygem-rails71>=0:www/rubygem-rails71
+
+USES=		gem
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/rubygem-bullet_train-scope_validator/distinfo b/www/rubygem-bullet_train-scope_validator/distinfo
new file mode 100644
index 000000000000..a2ab4d46d776
--- /dev/null
+++ b/www/rubygem-bullet_train-scope_validator/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1714227838
+SHA256 (rubygem/bullet_train-scope_validator-1.7.2.gem) = a037833e9d82f1c3a74bcfe7b7750a12339a92f0f74bda850cbb8ae59c7c18b1
+SIZE (rubygem/bullet_train-scope_validator-1.7.2.gem) = 11776
diff --git a/www/rubygem-bullet_train-scope_validator/pkg-descr b/www/rubygem-bullet_train-scope_validator/pkg-descr
new file mode 100644
index 000000000000..a84854c94e99
--- /dev/null
+++ b/www/rubygem-bullet_train-scope_validator/pkg-descr
@@ -0,0 +1,2 @@
+Bullet Train Scope Validator provides a simple pattern for protecting belongs_to
+associations from malicious ID stuffing.