From nobody Tue Nov 14 21:23:26 2023 X-Original-To: dev-commits-ports-main@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 4SVK664hZ2z50tcc; Tue, 14 Nov 2023 21:23:26 +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 4SVK662MZvz3Frp; Tue, 14 Nov 2023 21:23:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699997006; 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=4asVHpYCcdNBSYoU1Gb268i9AiEpqAfwQl7liofcuIw=; b=cczqMfxogyCYCKEr4lkivCYer15p2o9fEU/9xB6uZjYOiAtzZyus4BG932aSRFpDNv4x2E pTKzrWUNywXUF96xn4ETRj2tN5pE+9FniCYzvYg5Mhn0uy2rviNKAxXCXdln2Vuqf0wqpV /HpWNMKZzLU9upyzfB7ieKUA5excxOGDPZHQMrLgIdb6Xr1ffks08vCFqjaj8kdH1xm1Kj vYkk2Srt/14adW3JzCmm+vHVKKnNKUI3uQvfKCThEjGqQobLQLzBaXk8m/QWw37Hu2rOpq 8aeiNeBur/P+feKso7qQZU2/qh8mZBXl+9WoacPyb212sgLy7u2/7smNFLroSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699997006; 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=4asVHpYCcdNBSYoU1Gb268i9AiEpqAfwQl7liofcuIw=; b=q2cO+9Je4zHu5xGfOMPs+5nlke9Kc7t3bAXXydoSTzOTKTVMaeOy/kTAmfS05HPHc2Itz3 lj80jh6LYVsGv/WYA+V3N196IOGoncc8SfzgYECH/nMFiodjhRX5XCXjoSDhZfkpmZt0dG t1OAZ+bBqH86UWQOBOvN+3mHLgtSU1a9O829wCfbzqaNGkkDcB2pJioaV502YQrL3tmcvj 6XovVTUawShy9PPTtCdoUFCf7DiJOzn2CJKn7XgEL63YhbQ1OsXNDhYOUgTqavJJswgaBG xuSe3ZMI6NlrDWR/aecRBie4LESmFT7700dWpYyxpxzDe5T8/FgKf0Ydg3fxBg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699997006; a=rsa-sha256; cv=none; b=vEM9q5ojlOebigBkU7PnuTTvJ3nZPEPzEY8WeOYhvOsQcQuQLaPKNg4+LFCdzCBmzJcGmA yli+V5dNkVZotRsqARhy7dkVWfyw6JSgi0u+5+en7To32CM7/QXL3fQy9OW1qy6Kzl+SmA K5okEpKfS/XPUED9hRgExGgLkgXf/DFzY2cKX0hsXJBIdXy34a+rR6BMHIYNvjCSxSLsaB D3j2+dWGWei4LQLbFdLJ/d3ry/BsxBiT148lKAJVNdiWdY5L+JUq+QPwZDULXYML+RG7sR cXz+Bf3H1DINQXpzwMGbOgCf57422AuHaRA2DJNTAppd+mx128N5ZVc1vdi6+Q== 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 4SVK661SWxz14fk; Tue, 14 Nov 2023 21:23:26 +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 3AELNQPB090098; Tue, 14 Nov 2023 21:23:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AELNQc1090095; Tue, 14 Nov 2023 21:23:26 GMT (envelope-from git) Date: Tue, 14 Nov 2023 21:23:26 GMT Message-Id: <202311142123.3AELNQc1090095@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: 170cb208782b - main - devel/rubygem-event_stream_parser0: Add rubygem-event_stream_parser0 0.3.0 (copied from rubygem-event_stream_parser) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@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: 170cb208782b18feccb96acef5176e604df07569 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=170cb208782b18feccb96acef5176e604df07569 commit 170cb208782b18feccb96acef5176e604df07569 Author: Po-Chuan Hsieh AuthorDate: 2023-11-14 20:57:08 +0000 Commit: Po-Chuan Hsieh 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 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.