aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-01-23 18:05:43 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-01-23 18:05:43 +0000
commitc9f2d794eabe290137c5720dd98fb98f0ce9825e (patch)
tree64e3e9ea5a3352e470fa6a99b3ade683b408a81e
parentcfd2a9c5a637869fb32993e5467d952e0e7ff875 (diff)
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
-rw-r--r--www/Makefile1
-rw-r--r--www/rubygem-faraday-multipart/Makefile21
-rw-r--r--www/rubygem-faraday-multipart/distinfo3
-rw-r--r--www/rubygem-faraday-multipart/pkg-descr7
4 files changed, 32 insertions, 0 deletions
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