git: 6da1d3c86581 - main - www/rubygem-bullet_train-routes: Add rubygem-bullet_train-routes 1.0.0

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

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

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

    www/rubygem-bullet_train-routes: Add rubygem-bullet_train-routes 1.0.0
    
    Bullet Train Routes provides a vastly simplified method for defining shallow,
    nested resource routes in Rails applications when modules and namespaces are
    involved. We do this by introducing a model method to the Rails routing DSL,
    which serves as an interchangable substitute for the resources method.
---
 www/Makefile                              |  1 +
 www/rubygem-bullet_train-routes/Makefile  | 19 +++++++++++++++++++
 www/rubygem-bullet_train-routes/distinfo  |  3 +++
 www/rubygem-bullet_train-routes/pkg-descr |  4 ++++
 4 files changed, 27 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 27c1b567b807..05fe6a234eb8 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1970,6 +1970,7 @@
     SUBDIR += rubygem-bullet_train-fields
     SUBDIR += rubygem-bullet_train-has_uuid
     SUBDIR += rubygem-bullet_train-roles
+    SUBDIR += rubygem-bullet_train-routes
     SUBDIR += rubygem-cal-heatmap-rails
     SUBDIR += rubygem-carrierwave
     SUBDIR += rubygem-carrierwave1
diff --git a/www/rubygem-bullet_train-routes/Makefile b/www/rubygem-bullet_train-routes/Makefile
new file mode 100644
index 000000000000..8a096d060fae
--- /dev/null
+++ b/www/rubygem-bullet_train-routes/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	bullet_train-routes
+PORTVERSION=	1.0.0
+CATEGORIES=	www rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Black magic for defining model-driven routes
+WWW=		https://rubygems.org/gems/bullet_train-routes
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/MIT-LICENSE
+
+RUN_DEPENDS=	rubygem-rails71>=6.0.0:www/rubygem-rails71
+
+USES=		gem
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/rubygem-bullet_train-routes/distinfo b/www/rubygem-bullet_train-routes/distinfo
new file mode 100644
index 000000000000..17ce57feb6c7
--- /dev/null
+++ b/www/rubygem-bullet_train-routes/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1714227836
+SHA256 (rubygem/bullet_train-routes-1.0.0.gem) = 96f47c2d8066dab48c4ceb4f3b71d7c3866cc5c078a6f3a7d27be51e406065cc
+SIZE (rubygem/bullet_train-routes-1.0.0.gem) = 6656
diff --git a/www/rubygem-bullet_train-routes/pkg-descr b/www/rubygem-bullet_train-routes/pkg-descr
new file mode 100644
index 000000000000..7e878ccf7991
--- /dev/null
+++ b/www/rubygem-bullet_train-routes/pkg-descr
@@ -0,0 +1,4 @@
+Bullet Train Routes provides a vastly simplified method for defining shallow,
+nested resource routes in Rails applications when modules and namespaces are
+involved. We do this by introducing a model method to the Rails routing DSL,
+which serves as an interchangable substitute for the resources method.