From nobody Sun Aug 04 17:21:58 2024 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 4WcRFf504fz5Sgf6; Sun, 04 Aug 2024 17:21:58 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WcRFf2yfpz3wsC; Sun, 4 Aug 2024 17:21:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722792118; 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=fLMaltYG/pXePPKBYY8KqejkHuTd13H5NyEFvB5P3DI=; b=qcNevM3NLyg7EQPgQAgfcwQxwdE48cSCNMgEzdDzLXfDjIVbC0RMBycL+vALKiQFVsotR3 DEblgs/3SklVY5XpTBvG3iYtFUO++cWCgXwCKSZOsnljCiJFCO9uu8GapxjlyOsELImijX YCG4QCIuVlQNt5zl18MYEKIQm+LDqT7mMOQQWJYhO4z4q5rguJSGISMl0Od20u0NasA4ib IqaeGEbNLsFYI1ele/vf3rwIRLSk9GdQyuD8GY+GxL+Inp02+/lFmv15Aldz+IDbhYVSRG GaNzPJOLD66YGMfYqej7j+vAKWmOPYkHFgpJ9GVSQrquQdTT7Iwjz2sUo/VfNQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722792118; a=rsa-sha256; cv=none; b=fBoJPZiLK691PoRLX4rnzBMPJ9PVY2g47f5Ti+qtGKNYKYemapXuUUTUFYkQSCQGmuDPKM f/nmqBarQVj1Oq4NGafO54gHp2ntMNjf/TyuU5Y+Xd9J4yF5MH2Skki13cUYbYqmBXbgxZ fyWz318EBitJfavRCdg9Xq6cWfgNJ5wS8oLxB/csKJ5HF+ByuruLHWVrJIzPOsIc3upvVM VIU/Jq607JPW6EtCMnsJV4miBocMxdvWXoe0Wh8nA+TOCSMSyEZdXqx9olkuQeAGOHWvgR MuSx/BOC+ZwJ79LpUWnRb5O3hJWPozxZbhwhdFY3NR+4BYNgFvfH5VO6e3IGsg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722792118; 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=fLMaltYG/pXePPKBYY8KqejkHuTd13H5NyEFvB5P3DI=; b=dV1F1NxIJLUGyD0BalRJy9RmIcf+r43izOwpdxjgwDQxHosw8ONbzPgoxw262aAN3cVPx8 +I8jtQ21fJTCWc90w3WyiXDZ2YJFxKMdWEH2rWJPWNCBMDXXpVELloaSeTS1bgOOQ2NscP kMXBbvyiMP/uS1pqbogdu47mYNJzsUzF5TYNJN/Kg40bFaOD7GzPmsPa/E5qwzf3fWy4rO jeWgVqil/l1HZShwrER4ONXJLunN1sM70L0lTuEJwnGgrhU/4xGYtjddLubYZMVZ3IelJz xhVoYaJ2jc67RYBgXJMR4BhRC+0UtRwwUVQl+zLAdmMbwReckO0MU94/VUcBHw== 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 4WcRFf2b9nz141t; Sun, 4 Aug 2024 17:21:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 474HLwAG062046; Sun, 4 Aug 2024 17:21:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 474HLw1D062043; Sun, 4 Aug 2024 17:21:58 GMT (envelope-from git) Date: Sun, 4 Aug 2024 17:21:58 GMT Message-Id: <202408041721.474HLw1D062043@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: 11cc85b90ae3 - main - devel/rubygem-yard-sorbet: Add rubygem-yard-sorbet 0.9.0 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-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: 11cc85b90ae33beba96127ef26e5295e224ed6a4 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=11cc85b90ae33beba96127ef26e5295e224ed6a4 commit 11cc85b90ae33beba96127ef26e5295e224ed6a4 Author: Po-Chuan Hsieh AuthorDate: 2024-08-04 16:44:26 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-08-04 17:13:55 +0000 devel/rubygem-yard-sorbet: Add rubygem-yard-sorbet 0.9.0 yard-sorbet is a YARD plugin that parses Sorbet type annotations. Features: - Attaches existing documentation to methods and attributes that follow sig declarations. (This information is otherwise discarded.) - Translates sig type signatures into corresponding YARD tags - Generates method definitions from T::Struct fields - Generates constant definitions from T::Enum enums - Modules marked abstract! or interface! are tagged @abstract - Modules using mixes_in_class_methods will attach class methods - Merges sigs in rbi files with source code documentation (rbi files must come after source code in yard configuration) --- devel/Makefile | 1 + devel/rubygem-yard-sorbet/Makefile | 20 ++++++++++++++++++++ devel/rubygem-yard-sorbet/distinfo | 3 +++ devel/rubygem-yard-sorbet/pkg-descr | 12 ++++++++++++ 4 files changed, 36 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 52645f5f6c12..0d1f8791c461 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -7857,6 +7857,7 @@ SUBDIR += rubygem-xpath SUBDIR += rubygem-xxhash SUBDIR += rubygem-yajl-ruby + SUBDIR += rubygem-yard-sorbet SUBDIR += rubygem-yui-compressor SUBDIR += rubygem-zeitwerk SUBDIR += rubygem-zentest diff --git a/devel/rubygem-yard-sorbet/Makefile b/devel/rubygem-yard-sorbet/Makefile new file mode 100644 index 000000000000..d6e47e1a35a8 --- /dev/null +++ b/devel/rubygem-yard-sorbet/Makefile @@ -0,0 +1,20 @@ +PORTNAME= yard-sorbet +PORTVERSION= 0.9.0 +CATEGORIES= devel rubygems +MASTER_SITES= RG + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= YARD plugin that incorporates Sorbet type information +WWW= https://github.com/dduugg/yard-sorbet + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= rubygem-sorbet-runtime>=0:devel/rubygem-sorbet-runtime \ + rubygem-yard>=0:textproc/rubygem-yard + +USES= gem + +NO_ARCH= yes + +.include diff --git a/devel/rubygem-yard-sorbet/distinfo b/devel/rubygem-yard-sorbet/distinfo new file mode 100644 index 000000000000..77a98419901c --- /dev/null +++ b/devel/rubygem-yard-sorbet/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1722711143 +SHA256 (rubygem/yard-sorbet-0.9.0.gem) = 03d1aa461b9e9c82b886919a13aa3e09fcf4d1852239d2967ed97e92723ffe21 +SIZE (rubygem/yard-sorbet-0.9.0.gem) = 15872 diff --git a/devel/rubygem-yard-sorbet/pkg-descr b/devel/rubygem-yard-sorbet/pkg-descr new file mode 100644 index 000000000000..84075fc05346 --- /dev/null +++ b/devel/rubygem-yard-sorbet/pkg-descr @@ -0,0 +1,12 @@ +yard-sorbet is a YARD plugin that parses Sorbet type annotations. + +Features: +- Attaches existing documentation to methods and attributes that follow sig + declarations. (This information is otherwise discarded.) +- Translates sig type signatures into corresponding YARD tags +- Generates method definitions from T::Struct fields +- Generates constant definitions from T::Enum enums +- Modules marked abstract! or interface! are tagged @abstract +- Modules using mixes_in_class_methods will attach class methods +- Merges sigs in rbi files with source code documentation (rbi files must come + after source code in yard configuration)