pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/ruby-faraday-multipart www/ruby-faraday-multipart:...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/deae3bf62a1f
branches:  trunk
changeset: 391279:deae3bf62a1f
user:      taca <taca%pkgsrc.org@localhost>
date:      Sat Jan 07 15:20:12 2023 +0000

description:
www/ruby-faraday-multipart: add package version 1.0.4

Required by newer ruby-faraday package.

Faraday Multipart

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.

Faraday contains a couple helper classes for multipart values:

* Faraday::Multipart::FilePart wraps binary file data with a Content-Type.
  The file data can be specified with a String path to a local file, or an
  IO object.

* Faraday::Multipart::ParamPart wraps a String value with a Content-Type,
  and optionally a Content-ID.

diffstat:

 www/ruby-faraday-multipart/DESCR    |  18 ++++++++++++++++++
 www/ruby-faraday-multipart/Makefile |  16 ++++++++++++++++
 www/ruby-faraday-multipart/PLIST    |  11 +++++++++++
 www/ruby-faraday-multipart/distinfo |   5 +++++
 4 files changed, 50 insertions(+), 0 deletions(-)

diffs (66 lines):

diff -r 95c30ca2912c -r deae3bf62a1f www/ruby-faraday-multipart/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ruby-faraday-multipart/DESCR  Sat Jan 07 15:20:12 2023 +0000
@@ -0,0 +1,18 @@
+Faraday Multipart
+
+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.
+
+Faraday contains a couple helper classes for multipart values:
+
+* Faraday::Multipart::FilePart wraps binary file data with a Content-Type.
+  The file data can be specified with a String path to a local file, or an
+  IO object.
+
+* Faraday::Multipart::ParamPart wraps a String value with a Content-Type,
+  and optionally a Content-ID.
diff -r 95c30ca2912c -r deae3bf62a1f www/ruby-faraday-multipart/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ruby-faraday-multipart/Makefile       Sat Jan 07 15:20:12 2023 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2023/01/07 15:20:12 taca Exp $
+
+DISTNAME=      faraday-multipart-1.0.4
+CATEGORIES=    www
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/lostisland/faraday-multipart
+COMMENT=       Perform multipart-post requests using Faraday
+LICENSE=       mit
+
+DEPENDS+=      ${RUBY_PKGPREFIX}-multipart-post>=2<3:../../www/ruby-multipart-post
+
+USE_LANGUAGES= # none
+
+.include "../../lang/ruby/gem.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 95c30ca2912c -r deae3bf62a1f www/ruby-faraday-multipart/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ruby-faraday-multipart/PLIST  Sat Jan 07 15:20:12 2023 +0000
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1 2023/01/07 15:20:12 taca Exp $
+${GEM_HOME}/cache/${GEM_NAME}.gem
+${GEM_LIBDIR}/CHANGELOG.md
+${GEM_LIBDIR}/LICENSE.md
+${GEM_LIBDIR}/README.md
+${GEM_LIBDIR}/lib/faraday/multipart.rb
+${GEM_LIBDIR}/lib/faraday/multipart/file_part.rb
+${GEM_LIBDIR}/lib/faraday/multipart/middleware.rb
+${GEM_LIBDIR}/lib/faraday/multipart/param_part.rb
+${GEM_LIBDIR}/lib/faraday/multipart/version.rb
+${GEM_HOME}/specifications/${GEM_NAME}.gemspec
diff -r 95c30ca2912c -r deae3bf62a1f www/ruby-faraday-multipart/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ruby-faraday-multipart/distinfo       Sat Jan 07 15:20:12 2023 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2023/01/07 15:20:12 taca Exp $
+
+BLAKE2s (faraday-multipart-1.0.4.gem) = b1f9db065018507f428ac2e07ec87d0075ececbf9fe0e61bd779a0e16fa3f66b
+SHA512 (faraday-multipart-1.0.4.gem) = 49d624d46b0f16ea57ddf5a42a2bcc76846f5a005a63337a1947a0fa4553406b72a90cad6983c6f5b009ca056dda18f3eba6420d7fc604ec358a26725ab0bc39
+Size (faraday-multipart-1.0.4.gem) = 10752 bytes



Home | Main Index | Thread Index | Old Index