From c9f2d794eabe290137c5720dd98fb98f0ce9825e Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Mon, 24 Jan 2022 02:05:43 +0800 Subject: [PATCH] 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(+) create mode 100644 www/rubygem-faraday-multipart/Makefile create mode 100644 www/rubygem-faraday-multipart/distinfo create mode 100644 www/rubygem-faraday-multipart/pkg-descr 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 + +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 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