git: 5bf945b54e66 - main - www/rubygem-httparty021: Add rubygem-httparty021 0.21.0 (copied from rubygem-httparty)

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 19 May 2024 17:23:33 UTC
The branch main has been updated by sunpoet:

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

commit 5bf945b54e664301e9e1d2199c542187454d8811
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-19 15:45:53 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-19 17:15:03 +0000

    www/rubygem-httparty021: Add rubygem-httparty021 0.21.0 (copied from rubygem-httparty)
    
    - Add PORTSCOUT
---
 www/Makefile                      |  1 +
 www/rubygem-httparty021/Makefile  | 29 +++++++++++++++++++++++++++++
 www/rubygem-httparty021/distinfo  |  3 +++
 www/rubygem-httparty021/pkg-descr |  9 +++++++++
 4 files changed, 42 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 7cb7a21a98b3..2fb285c57633 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2078,6 +2078,7 @@
     SUBDIR += rubygem-http_router
     SUBDIR += rubygem-httparty
     SUBDIR += rubygem-httparty020
+    SUBDIR += rubygem-httparty021
     SUBDIR += rubygem-httpclient
     SUBDIR += rubygem-httpi
     SUBDIR += rubygem-hurley
diff --git a/www/rubygem-httparty021/Makefile b/www/rubygem-httparty021/Makefile
new file mode 100644
index 000000000000..17fbb7ea902b
--- /dev/null
+++ b/www/rubygem-httparty021/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	httparty
+PORTVERSION=	0.21.0
+CATEGORIES=	www rubygems
+MASTER_SITES=	RG
+PKGNAMESUFFIX=	021
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Ruby Library that Makes HTTP Fun Again
+WWW=		https://www.johnnunemaker.com/httparty/ \
+		https://github.com/jnunemaker/httparty
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/MIT-LICENSE
+
+RUN_DEPENDS=	rubygem-mini_mime>=1.0.0:mail/rubygem-mini_mime \
+		rubygem-multi_xml>=0.5.2:textproc/rubygem-multi_xml
+
+USES=		cpe gem
+
+NO_ARCH=	yes
+
+CPE_VENDOR=	john_nunemaker
+
+PORTSCOUT=	limit:^0\.21\.
+
+post-install:
+	${RM} ${STAGEDIR}${PREFIX}/bin/httparty
+
+.include <bsd.port.mk>
diff --git a/www/rubygem-httparty021/distinfo b/www/rubygem-httparty021/distinfo
new file mode 100644
index 000000000000..c16fcfefdbd8
--- /dev/null
+++ b/www/rubygem-httparty021/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1682354648
+SHA256 (rubygem/httparty-0.21.0.gem) = 00ef7bf9a71f30a3bff88edeb5b16a34bea883ab67c246b3f0db2d6794fe1214
+SIZE (rubygem/httparty-0.21.0.gem) = 47616
diff --git a/www/rubygem-httparty021/pkg-descr b/www/rubygem-httparty021/pkg-descr
new file mode 100644
index 000000000000..7e7ee4388b40
--- /dev/null
+++ b/www/rubygem-httparty021/pkg-descr
@@ -0,0 +1,9 @@
+httparty is a Ruby library that makes HTTP fun again!
+
+Its features:
+* Easy get, post, put, delete requests
+* Basic http authentication
+* Default request query string parameters (i.e. for API keys that are needed on
+  each request)
+* Automatic parsing of JSON and XML into ruby hashes based on response
+  content-type