git: c9f2d794eabe - main - www/rubygem-faraday-multipart: Add rubygem-faraday-multipart 1.0.3

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 23 Jan 2022 19:26:16 UTC
The branch main has been updated by sunpoet:

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

commit c9f2d794eabe290137c5720dd98fb98f0ce9825e
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-01-23 18:05:43 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-01-23 18:05:43 +0000

    www/rubygem-faraday-multipart: Add rubygem-faraday-multipart 1.0.3
    
    The Multipart middleware converts a Faraday::Request#body Hash of key/value
    pairs into a multipart form request, but only under these conditions:
    - The request's Content-Type is "multipart/form-data"
    - Content-Type is unspecified, AND one of the values in the Body responds to
      #content_type.
    
    WWW: https://github.com/lostisland/faraday-multipart
---
 www/Makefile                            |  1 +
 www/rubygem-faraday-multipart/Makefile  | 21 +++++++++++++++++++++
 www/rubygem-faraday-multipart/distinfo  |  3 +++
 www/rubygem-faraday-multipart/pkg-descr |  7 +++++++
 4 files changed, 32 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index fe81415bdcf7..30d9d06264c7 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1901,6 +1901,7 @@
     SUBDIR += rubygem-faraday-em_http
     SUBDIR += rubygem-faraday-em_synchrony
     SUBDIR += rubygem-faraday-httpclient
+    SUBDIR += rubygem-faraday-multipart
     SUBDIR += rubygem-faraday-net_http
     SUBDIR += rubygem-faraday-net_http_persistent
     SUBDIR += rubygem-faraday-patron
diff --git a/www/rubygem-faraday-multipart/Makefile b/www/rubygem-faraday-multipart/Makefile
new file mode 100644
index 000000000000..4a215abea7d4
--- /dev/null
+++ b/www/rubygem-faraday-multipart/Makefile
@@ -0,0 +1,21 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME=	faraday-multipart
+PORTVERSION=	1.0.3
+CATEGORIES=	www rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Perform multipart-post requests using Faraday
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+RUN_DEPENDS=	rubygem-multipart-post>=1.2<3:www/rubygem-multipart-post
+
+USES=		gem
+USE_RUBY=	yes
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/rubygem-faraday-multipart/distinfo b/www/rubygem-faraday-multipart/distinfo
new file mode 100644
index 000000000000..3dc0644ab343
--- /dev/null
+++ b/www/rubygem-faraday-multipart/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1642102121
+SHA256 (rubygem/faraday-multipart-1.0.3.gem) = 72c82136270b0930efb03162f2dce19bd22a9a0e00abd8263cce7a20408a0e0f
+SIZE (rubygem/faraday-multipart-1.0.3.gem) = 9216
diff --git a/www/rubygem-faraday-multipart/pkg-descr b/www/rubygem-faraday-multipart/pkg-descr
new file mode 100644
index 000000000000..6fd08e9f634a
--- /dev/null
+++ b/www/rubygem-faraday-multipart/pkg-descr
@@ -0,0 +1,7 @@
+The Multipart middleware converts a Faraday::Request#body Hash of key/value
+pairs into a multipart form request, but only under these conditions:
+- The request's Content-Type is "multipart/form-data"
+- Content-Type is unspecified, AND one of the values in the Body responds to
+  #content_type.
+
+WWW: https://github.com/lostisland/faraday-multipart