git: 170cb208782b - main - devel/rubygem-event_stream_parser0: Add rubygem-event_stream_parser0 0.3.0 (copied from rubygem-event_stream_parser)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 14 Nov 2023 21:23:26 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=170cb208782b18feccb96acef5176e604df07569 commit 170cb208782b18feccb96acef5176e604df07569 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-11-14 20:57:08 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-11-14 21:19:26 +0000 devel/rubygem-event_stream_parser0: Add rubygem-event_stream_parser0 0.3.0 (copied from rubygem-event_stream_parser) - Add PORTSCOUT --- devel/Makefile | 1 + devel/rubygem-event_stream_parser0/Makefile | 20 ++++++++++++++++++++ devel/rubygem-event_stream_parser0/distinfo | 3 +++ devel/rubygem-event_stream_parser0/pkg-descr | 12 ++++++++++++ 4 files changed, 36 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index dfd997d70d71..a7b0a294ceac 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -6769,6 +6769,7 @@ SUBDIR += rubygem-etc SUBDIR += rubygem-event_emitter SUBDIR += rubygem-event_stream_parser + SUBDIR += rubygem-event_stream_parser0 SUBDIR += rubygem-eventmachine SUBDIR += rubygem-excon SUBDIR += rubygem-execjs diff --git a/devel/rubygem-event_stream_parser0/Makefile b/devel/rubygem-event_stream_parser0/Makefile new file mode 100644 index 000000000000..b315a299c4ec --- /dev/null +++ b/devel/rubygem-event_stream_parser0/Makefile @@ -0,0 +1,20 @@ +PORTNAME= event_stream_parser +PORTVERSION= 0.3.0 +CATEGORIES= devel rubygems +MASTER_SITES= RG +PKGNAMESUFFIX= 0 + +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 + +PORTSCOUT= limit:^0\. + +.include <bsd.port.mk> diff --git a/devel/rubygem-event_stream_parser0/distinfo b/devel/rubygem-event_stream_parser0/distinfo new file mode 100644 index 000000000000..d9b5dc5180d1 --- /dev/null +++ b/devel/rubygem-event_stream_parser0/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_parser0/pkg-descr b/devel/rubygem-event_stream_parser0/pkg-descr new file mode 100644 index 000000000000..863bf4e0d443 --- /dev/null +++ b/devel/rubygem-event_stream_parser0/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.