diff options
| author | Xin LI <delphij@FreeBSD.org> | 2026-02-04 06:36:40 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2026-02-04 07:39:23 +0000 |
| commit | 1ef8a34b5bf26c13e8c483e65e9e1628fc880677 (patch) | |
| tree | 5dc960b597ee7b6902288a85673caf09222fca5f | |
| parent | eb9246d864d911ac82c7598eb6ef1ec3eb1e1dc4 (diff) | |
www/rubygem-requestjs-rails{,-rails72}: New port
Tiny Fetch API wrapper for Rails with CSRF token handling
| -rw-r--r-- | www/Makefile | 2 | ||||
| -rw-r--r-- | www/rubygem-requestjs-rails-rails72/Makefile | 7 | ||||
| -rw-r--r-- | www/rubygem-requestjs-rails/Makefile | 22 | ||||
| -rw-r--r-- | www/rubygem-requestjs-rails/distinfo | 3 | ||||
| -rw-r--r-- | www/rubygem-requestjs-rails/pkg-descr | 13 |
5 files changed, 47 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 848ad85295b4..e3f32b4417d2 100644 --- a/www/Makefile +++ b/www/Makefile @@ -2407,6 +2407,8 @@ SUBDIR += rubygem-redis-rails-rails52 SUBDIR += rubygem-redis-rails-rails60 SUBDIR += rubygem-redis-rails-rails61 + SUBDIR += rubygem-requestjs-rails + SUBDIR += rubygem-requestjs-rails-rails72 SUBDIR += rubygem-responders SUBDIR += rubygem-responders-rails-gitlab SUBDIR += rubygem-responders-rails5 diff --git a/www/rubygem-requestjs-rails-rails72/Makefile b/www/rubygem-requestjs-rails-rails72/Makefile new file mode 100644 index 000000000000..185c936f7c87 --- /dev/null +++ b/www/rubygem-requestjs-rails-rails72/Makefile @@ -0,0 +1,7 @@ +PKGNAMESUFFIX= -rails72 + +RAILS_VERSION= 72 + +MASTERDIR= ${.CURDIR}/../rubygem-requestjs-rails + +.include "${MASTERDIR}/Makefile" diff --git a/www/rubygem-requestjs-rails/Makefile b/www/rubygem-requestjs-rails/Makefile new file mode 100644 index 000000000000..21a73a7e6042 --- /dev/null +++ b/www/rubygem-requestjs-rails/Makefile @@ -0,0 +1,22 @@ +PORTNAME= requestjs-rails +PORTVERSION= 0.0.14 +CATEGORIES= www rubygems +MASTER_SITES= RG +PKGNAMESUFFIX?= # empty for base port + +MAINTAINER= ruby@FreeBSD.org +COMMENT= Tiny Fetch API wrapper for Rails with CSRF token handling +WWW= https://github.com/marcelolx/requestjs-rails + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/MIT-LICENSE + +# Default to Rails 7.1 for the base port, can be overridden by slave ports +RAILS_VERSION?= 71 +RUN_DEPENDS= rubygem-railties${RAILS_VERSION}>=7.1.0:www/rubygem-railties${RAILS_VERSION} + +USES= gem + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/www/rubygem-requestjs-rails/distinfo b/www/rubygem-requestjs-rails/distinfo new file mode 100644 index 000000000000..0f4758def80b --- /dev/null +++ b/www/rubygem-requestjs-rails/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1770185645 +SHA256 (rubygem/requestjs-rails-0.0.14.gem) = bb494198993b9bf136adeeffa3594c0143c7d16c7de4485c5e20d9c126e69a2d +SIZE (rubygem/requestjs-rails-0.0.14.gem) = 9216 diff --git a/www/rubygem-requestjs-rails/pkg-descr b/www/rubygem-requestjs-rails/pkg-descr new file mode 100644 index 000000000000..f4143896614a --- /dev/null +++ b/www/rubygem-requestjs-rails/pkg-descr @@ -0,0 +1,13 @@ +requestjs-rails is a tiny Fetch API wrapper that allows you to make HTTP +requests from Rails applications without the need to manually handle CSRF +tokens on every request. + +This gem provides a simple JavaScript library that automatically includes +Rails' CSRF token in AJAX requests, making it easier to build interactive +web applications while maintaining security. + +Key features: +- Automatic CSRF token handling +- Simple Fetch API wrapper +- Lightweight and easy to integrate +- Designed specifically for Rails applications |
