git: d70c8dc9f9cf - main - net/rubygem-x-uploads: Add rubygem-x-uploads 1.0.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 14 Nov 2026 23:41:20 UTC
The branch main has been updated by sunpoet:

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

commit d70c8dc9f9cf0279138383e2d41f8a52dd9affe6
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-11-14 23:11:17 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-11-14 23:36:23 +0000

    net/rubygem-x-uploads: Add rubygem-x-uploads 1.0.0
    
    Media uploads for the x gem, built on the HTTP client in x-core.
    - X::Uploads::MediaUpload uploads images, GIFs, videos, and subtitles. Videos,
      subtitles, and a GIF larger than a single request takes are split into chunks
      that upload in parallel, with retries, and processing can be awaited.
    - X::Uploads::Account updates the authenticated user's profile image and banner
      through the v1.1 API, at the host of the base URL of the client it is given.
    
    Installing x installs this gem too.
---
 net/Makefile                    |  1 +
 net/rubygem-x-uploads/Makefile  | 20 ++++++++++++++++++++
 net/rubygem-x-uploads/distinfo  |  3 +++
 net/rubygem-x-uploads/pkg-descr |  8 ++++++++
 4 files changed, 32 insertions(+)

diff --git a/net/Makefile b/net/Makefile
index 12e006431955..42a53d5f5073 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1516,6 +1516,7 @@
     SUBDIR += rubygem-x-core
     SUBDIR += rubygem-x-resources
     SUBDIR += rubygem-x-streams
+    SUBDIR += rubygem-x-uploads
     SUBDIR += rubygem-xmlrpc
     SUBDIR += rude
     SUBDIR += rustconn
diff --git a/net/rubygem-x-uploads/Makefile b/net/rubygem-x-uploads/Makefile
new file mode 100644
index 000000000000..b32268ad7936
--- /dev/null
+++ b/net/rubygem-x-uploads/Makefile
@@ -0,0 +1,20 @@
+PORTNAME=	x-uploads
+PORTVERSION=	1.0.0
+CATEGORIES=	net rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Uploads for the X gem: images, GIFs, videos, and subtitles, and profile images and banners
+WWW=		https://github.com/sferik/x-ruby/tree/main/x-uploads \
+		https://github.com/sferik/x-ruby
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS=	rubygem-x-core>=1.0.0<2:net/rubygem-x-core
+
+USES=		gem
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/net/rubygem-x-uploads/distinfo b/net/rubygem-x-uploads/distinfo
new file mode 100644
index 000000000000..2a1d8e9438d2
--- /dev/null
+++ b/net/rubygem-x-uploads/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1794588474
+SHA256 (rubygem/x-uploads-1.0.0.gem) = bfd6116b8ae2188ffdffc0294a91812e2391ac34c5867098b11967fc8f7ff367
+SIZE (rubygem/x-uploads-1.0.0.gem) = 62976
diff --git a/net/rubygem-x-uploads/pkg-descr b/net/rubygem-x-uploads/pkg-descr
new file mode 100644
index 000000000000..85749884cf0c
--- /dev/null
+++ b/net/rubygem-x-uploads/pkg-descr
@@ -0,0 +1,8 @@
+Media uploads for the x gem, built on the HTTP client in x-core.
+- X::Uploads::MediaUpload uploads images, GIFs, videos, and subtitles. Videos,
+  subtitles, and a GIF larger than a single request takes are split into chunks
+  that upload in parallel, with retries, and processing can be awaited.
+- X::Uploads::Account updates the authenticated user's profile image and banner
+  through the v1.1 API, at the host of the base URL of the client it is given.
+
+Installing x installs this gem too.