Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Nov 2023 07:40:42 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 34997bf1ced1 - main - devel/rubygem-event_stream_parser: Add rubygem-event_stream_parser 0.3.0
Message-ID:  <202311020740.3A27egAk030515@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=34997bf1ced14f845e1963da17ab7d4e75878a83

commit 34997bf1ced14f845e1963da17ab7d4e75878a83
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-11-02 07:33:28 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-11-02 07:37:17 +0000

    devel/rubygem-event_stream_parser: Add rubygem-event_stream_parser 0.3.0
    
    event_stream_parser is a lightweight, fully spec-compliant parser for the event
    stream format.
    
    It only deals with the parsing of events and not any of the client/transport
    aspects. This is not a Server-sent Events (SSE) client.
    
    Under the hood, it's a stateful parser that receives chunks (that are received
    from an HTTP client, for example) and emits events as it parses them. But it
    remembers the last event id and reconnection time and keeps emitting them as
    long as they are not overwritten by new ones.
    
    BOM stripping is left as a responsibility of the chunk provider.
---
 devel/Makefile                              |  1 +
 devel/rubygem-event_stream_parser/Makefile  | 17 +++++++++++++++++
 devel/rubygem-event_stream_parser/distinfo  |  3 +++
 devel/rubygem-event_stream_parser/pkg-descr | 12 ++++++++++++
 4 files changed, 33 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 8736821f3fb5..4d3b509a4ade 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -6793,6 +6793,7 @@
     SUBDIR += rubygem-et-orbi
     SUBDIR += rubygem-etc
     SUBDIR += rubygem-event_emitter
+    SUBDIR += rubygem-event_stream_parser
     SUBDIR += rubygem-eventmachine
     SUBDIR += rubygem-excon
     SUBDIR += rubygem-execjs
diff --git a/devel/rubygem-event_stream_parser/Makefile b/devel/rubygem-event_stream_parser/Makefile
new file mode 100644
index 000000000000..7e11515f1d1a
--- /dev/null
+++ b/devel/rubygem-event_stream_parser/Makefile
@@ -0,0 +1,17 @@
+PORTNAME=	event_stream_parser
+PORTVERSION=	0.3.0
+CATEGORIES=	devel rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Spec-compliant event stream parser
+WWW=		https://github.com/Shopify/event_stream_parser
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+USES=		gem
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-event_stream_parser/distinfo b/devel/rubygem-event_stream_parser/distinfo
new file mode 100644
index 000000000000..d9b5dc5180d1
--- /dev/null
+++ b/devel/rubygem-event_stream_parser/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1698848688
+SHA256 (rubygem/event_stream_parser-0.3.0.gem) = 5b2bbd1d6fd47699d0c4a664fc965c6e44654c668a034b6d88db49a3c06e7a57
+SIZE (rubygem/event_stream_parser-0.3.0.gem) = 8704
diff --git a/devel/rubygem-event_stream_parser/pkg-descr b/devel/rubygem-event_stream_parser/pkg-descr
new file mode 100644
index 000000000000..863bf4e0d443
--- /dev/null
+++ b/devel/rubygem-event_stream_parser/pkg-descr
@@ -0,0 +1,12 @@
+event_stream_parser is a lightweight, fully spec-compliant parser for the event
+stream format.
+
+It only deals with the parsing of events and not any of the client/transport
+aspects. This is not a Server-sent Events (SSE) client.
+
+Under the hood, it's a stateful parser that receives chunks (that are received
+from an HTTP client, for example) and emits events as it parses them. But it
+remembers the last event id and reconnection time and keeps emitting them as
+long as they are not overwritten by new ones.
+
+BOM stripping is left as a responsibility of the chunk provider.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202311020740.3A27egAk030515>