git: 19e8304345f4 - main - www/rubygem-ruby-openai: Add rubygem-ruby-openai 3.7.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 27 Apr 2023 15:52:24 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=19e8304345f46039fbcf33afc85b386939fe58d7

commit 19e8304345f46039fbcf33afc85b386939fe58d7
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-27 15:28:15 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-04-27 15:28:15 +0000

    www/rubygem-ruby-openai: Add rubygem-ruby-openai 3.7.0
    
    Use the OpenAI API with Ruby!
    
    Generate text with ChatGPT, transcribe and translate audio with Whisper, or
    create images with DALL-E...
---
 www/Makefile                      |  1 +
 www/rubygem-ruby-openai/Makefile  | 19 +++++++++++++++++++
 www/rubygem-ruby-openai/distinfo  |  3 +++
 www/rubygem-ruby-openai/pkg-descr |  4 ++++
 4 files changed, 27 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index bfdcd08ed62e..3733c9dd11f4 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2181,6 +2181,7 @@
     SUBDIR += rubygem-rss
     SUBDIR += rubygem-rtlit
     SUBDIR += rubygem-ruby-oembed
+    SUBDIR += rubygem-ruby-openai
     SUBDIR += rubygem-ruby-readability
     SUBDIR += rubygem-savon
     SUBDIR += rubygem-sawyer
diff --git a/www/rubygem-ruby-openai/Makefile b/www/rubygem-ruby-openai/Makefile
new file mode 100644
index 000000000000..b5f8c5c8ca80
--- /dev/null
+++ b/www/rubygem-ruby-openai/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	ruby-openai
+PORTVERSION=	3.7.0
+CATEGORIES=	www rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	OpenAI API for Ruby
+WWW=		https://github.com/alexrudall/ruby-openai
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS=	rubygem-httparty>=0.18.1:www/rubygem-httparty
+
+USES=		gem
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/rubygem-ruby-openai/distinfo b/www/rubygem-ruby-openai/distinfo
new file mode 100644
index 000000000000..028a43ecb752
--- /dev/null
+++ b/www/rubygem-ruby-openai/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1682354464
+SHA256 (rubygem/ruby-openai-3.7.0.gem) = fb735d4c055e282ade264cab9864944c05a8a10e0cddd45a0551e8a9851b1850
+SIZE (rubygem/ruby-openai-3.7.0.gem) = 17920
diff --git a/www/rubygem-ruby-openai/pkg-descr b/www/rubygem-ruby-openai/pkg-descr
new file mode 100644
index 000000000000..cf7752fabed5
--- /dev/null
+++ b/www/rubygem-ruby-openai/pkg-descr
@@ -0,0 +1,4 @@
+Use the OpenAI API with Ruby!
+
+Generate text with ChatGPT, transcribe and translate audio with Whisper, or
+create images with DALL-E...