git: 0c9d7b447d7b - main - net/rubygem-proxifier2: Add rubygem-proxifier2 1.1.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 27 May 2023 23:51:02 UTC
The branch main has been updated by sunpoet:

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

commit 0c9d7b447d7b530e0aa305e90ef762f0c97ef0fd
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-05-27 23:18:27 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-05-27 23:43:37 +0000

    net/rubygem-proxifier2: Add rubygem-proxifier2 1.1.0
    
    This gem was created for 2 purposes.
    
    First is to enable ruby programmers to use HTTP or SOCKS proxies interchangeably
    when using TCPSockets. Either manually with Proxifier::Proxy#open or by require
    "proxifier/env".
    
    The second purpose is to use ruby code that doesn't use proxies for users that
    have to use proxies. The pruby and pirb executables are simple wrappers for
    their respective ruby executables that support proxies from environment
    variables.
---
 net/Makefile                     |  1 +
 net/rubygem-proxifier2/Makefile  | 21 +++++++++++++++++++++
 net/rubygem-proxifier2/distinfo  |  3 +++
 net/rubygem-proxifier2/pkg-descr | 10 ++++++++++
 4 files changed, 35 insertions(+)

diff --git a/net/Makefile b/net/Makefile
index d342021f1f09..bc6a40446598 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1369,6 +1369,7 @@
     SUBDIR += rubygem-pcaprub
     SUBDIR += rubygem-private_address_check
     SUBDIR += rubygem-proxifier
+    SUBDIR += rubygem-proxifier2
     SUBDIR += rubygem-qiniu
     SUBDIR += rubygem-rabbiter
     SUBDIR += rubygem-rbvmomi
diff --git a/net/rubygem-proxifier2/Makefile b/net/rubygem-proxifier2/Makefile
new file mode 100644
index 000000000000..6c1843b30d65
--- /dev/null
+++ b/net/rubygem-proxifier2/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	proxifier2
+PORTVERSION=	1.1.0
+CATEGORIES=	net rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Add HTTP or SOCKS proxies support and force TCPSocket to use proxies
+WWW=		https://github.com/chef/ruby-proxifier
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		gem
+
+NO_ARCH=	yes
+
+PLIST_FILES=	bin/pirb bin/pruby
+
+CONFLICTS_INSTALL=	rubygem-proxifier
+
+.include <bsd.port.mk>
diff --git a/net/rubygem-proxifier2/distinfo b/net/rubygem-proxifier2/distinfo
new file mode 100644
index 000000000000..bc8060ae84c3
--- /dev/null
+++ b/net/rubygem-proxifier2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1685162020
+SHA256 (rubygem/proxifier2-1.1.0.gem) = 030ed248a649c77f2ad640195f5c57c9f76e5c56a5c9fc0c52ca8ed97000b332
+SIZE (rubygem/proxifier2-1.1.0.gem) = 9728
diff --git a/net/rubygem-proxifier2/pkg-descr b/net/rubygem-proxifier2/pkg-descr
new file mode 100644
index 000000000000..2fb2eccfd43c
--- /dev/null
+++ b/net/rubygem-proxifier2/pkg-descr
@@ -0,0 +1,10 @@
+This gem was created for 2 purposes.
+
+First is to enable ruby programmers to use HTTP or SOCKS proxies interchangeably
+when using TCPSockets. Either manually with Proxifier::Proxy#open or by require
+"proxifier/env".
+
+The second purpose is to use ruby code that doesn't use proxies for users that
+have to use proxies. The pruby and pirb executables are simple wrappers for
+their respective ruby executables that support proxies from environment
+variables.