From nobody Thu Nov 02 07:40:42 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SLbQL6KNcz50H7k; Thu, 2 Nov 2023 07:40:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SLbQL31Jqz4MML; Thu, 2 Nov 2023 07:40:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698910842; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=86hUD9nIv/c4d1HajEdwaBUqBH9tt2VC564IAkOm4+8=; b=Og5vR/eTJohsz/m5SXfyuL6n00M3me4XnVuXh+/9MCRNjUxjBp8Ys0FYvlTSp7eBKB/Xz1 siNVCcc8tD8q1VE+50e8e7xGYbO+3mCX3oMhXQflQdE0013vieqZUQwVJq0vHoqvejqKJF azDawDrRd7kjYiNHrEf2jRJTTbXrXnvWIrypJB1gg8BUkBbCSSOtENGVBdPbFAJwuoGu+Y cw7t2A1nBHsYvef5W4e78mRVQ0jm/WeekPb02Gt6iAhGruWnK/4Yr0OR01Aw+0RsPy+FHT 5QDfTCXnJsT92npr7NuosLQDb3ERvzgA8Lkxip7OLKgzQxwnh8hcrlAw67w9wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698910842; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=86hUD9nIv/c4d1HajEdwaBUqBH9tt2VC564IAkOm4+8=; b=FQGB9NBip3p/j52FDQp34Cl9OjKk1MwHv+zBRcJBUi7mBPfEqdWghr2RjZ3qaYhqCbEcv+ JlVkbnXNj4H+rj6++ntlxnY7OLYDZxZAxSO442OrZa3HEcXC02Ts3u3X3Vme6n8OHRwtz3 OAKhJrFJN+reFb13qR8TzIo7RFABLsOCEZaJflzyO+PFrvVDw7ke4zxh3EK5gLpSQF5gfg G00cwebEt+mtlOwJBLzN8hwLtfecqos+SY4B857IQtMlM31tXYUMprAdrvBBxThFxX+nXK Zjxqo/6SecXu2tk6a9/cxnVhKoveQpsoUT3tRWHh8nKOmv1m0aT6RMEyjCKxcA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698910842; a=rsa-sha256; cv=none; b=nQHrWvCCmEVlNIltInZv5ezGaUV/tK+Fti50N623MpSdDepNp+lZDTeozhelYACj+TAdoQ 3y2e1NsVBTTEIuKF9WXdzscuOrpJKP4EYF6PdNRGUCCITTS9HBYF6f6Y+jmxVLXGkaHXAu 11YMAykAlTFynyqjdof+cI4cyyZHZovXD3sZcQFMDdFHoBqyf1liqp0KHKXZ6ydX3eBvUn 3IjNVae2tz4Y7mB5QZkQyBPrtC5suwD5l+61841g1V9xcUvLYSmbmcG+qGGL/9gXqOQQX4 +SZpkR+/yRJ8rh7qLpivG+b8ogMLmWh9ndh5RjfqEY6xKG/IQB711lTfybj2RA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SLbQL26Fpz5wn; Thu, 2 Nov 2023 07:40:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3A27egYv030518; Thu, 2 Nov 2023 07:40:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A27egAk030515; Thu, 2 Nov 2023 07:40:42 GMT (envelope-from git) Date: Thu, 2 Nov 2023 07:40:42 GMT Message-Id: <202311020740.3A27egAk030515@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 34997bf1ced1 - main - devel/rubygem-event_stream_parser: Add rubygem-event_stream_parser 0.3.0 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 34997bf1ced14f845e1963da17ab7d4e75878a83 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=34997bf1ced14f845e1963da17ab7d4e75878a83 commit 34997bf1ced14f845e1963da17ab7d4e75878a83 Author: Po-Chuan Hsieh AuthorDate: 2023-11-02 07:33:28 +0000 Commit: Po-Chuan Hsieh 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 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.