From nobody Sun Aug 4 17:21:53 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 4WcRFZ24Qwz5Sgh2; Sun, 04 Aug 2024 17:21:54 +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 4WcRFY6CJDz3wjJ; Sun, 4 Aug 2024 17:21:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722792113; 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=OLMPrHF0GidGHWAvnNAuxLel/vUwOunBlsz5J1b5tHM=; b=iTAmMlDr5cHaO1BGIqAj26p/Y5zTWOTGUOiCnNbShIpmCM2EBP478L6x87im4ln0yzSSeR gMz8D+qi07fT6iPF5U/ewVfVk3cSubT8khY0ApNi/FPhgs3IjM4pJnriHyAwXpf4ZmvqQl J37YWUx1QoFsVYDARfvYBDpzsEEZOSdyB5zjMSMN67np8D3B08SvG9CMfMctKJYMlvp1d4 DehOdUAGG85nm9IMlttCx2H6EPMwgmg15a0ZQnZKSYJiH77A/QpwXvz1H5dh/VokLZiesf lprVhluQW2XNLc41mKESA4NZhK94qvTaxBGfSXAXJtHue8l7Qomz/apflGQDGQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722792113; a=rsa-sha256; cv=none; b=Idj7hnFITc9UtTSoNllnNQZMzucZwZHch3xCsQqecbHJP/TcsnZKb8tEbYWVS0OH56FE6S +8UFG/rRSGr41Aivg0r0JMM7yfFlnSTe7aGe2b8cvH4a/CX9gwopebW6OJHpVXXvFGv5hK Iq+t/IPalpcMUYP3mJP94ax9AgTnJ7QJPJrbEUuwpFjVebCBEsSzCUFn9LabStCZ5Ke/0V g+fWbBY69Iza57HTfPFgduK+OZpZ59Lc9nrbmU5aywlXPv8osBPV4ChzJCvpYZbWjgubyf vzTv1+SfjsKONPsotKJN7utxEf5VG2tHr0fkJaT3oKScOlUpQXpcmB1nVSt9pw== 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=1722792113; 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=OLMPrHF0GidGHWAvnNAuxLel/vUwOunBlsz5J1b5tHM=; b=pfphuP3je17uUhEx/745ns53uGmryg0RytzbYI0TVJFLC2A02aQqgtIhZv56HDPUhlQscZ e8FjoSNy/sAilsByWaml+FFOGH1+FqiyFcj8HmoErb/RhXRXFLCFdNq9RzwYwgwXeiOC5y 4I0E+6ZYmDTdf2fhL7ra/s5uCRk2WL1SYu/kEmq3fbCjU3u/pXSDMMoB8crAcIfNlGD2fv RYB772CfX29Q08vXkvss00bKVx19PW4CiX88ZbSIlzRHGN7DKxPlh2df+Lx48lN538pIl7 2c89EubJuLXL52tFFEFDVQUtmY7BlLE2PB/zvfjS4T6ynTJARnf2kSHMv9T8ag== 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 4WcRFY5qntz14Jn; Sun, 4 Aug 2024 17:21:53 +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 474HLrtt059298; Sun, 4 Aug 2024 17:21:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 474HLrtX059294; Sun, 4 Aug 2024 17:21:53 GMT (envelope-from git) Date: Sun, 4 Aug 2024 17:21:53 GMT Message-Id: <202408041721.474HLrtX059294@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: 15815c73b332 - main - devel/rubygem-constant_resolver: Add rubygem-constant_resolver 0.2.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: 15815c73b33285e546baee96a74218cbc068b6eb Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=15815c73b33285e546baee96a74218cbc068b6eb commit 15815c73b33285e546baee96a74218cbc068b6eb Author: Po-Chuan Hsieh AuthorDate: 2024-08-04 16:44:22 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-08-04 17:13:53 +0000 devel/rubygem-constant_resolver: Add rubygem-constant_resolver 0.2.0 ConstantResolver resolves partially qualified constant reference to the fully qualified name and the path of the file defining it. It does not load the files to do that, its inference engine purely works on file paths and constant names. ConstantResolver uses the same assumptions as Rails' code loader, Zeitwerk to infer constant locations. Please see Zeitwerk's documentation on file structure and inflection for more information. --- devel/Makefile | 1 + devel/rubygem-constant_resolver/Makefile | 17 +++++++++++++++++ devel/rubygem-constant_resolver/distinfo | 3 +++ devel/rubygem-constant_resolver/pkg-descr | 7 +++++++ 4 files changed, 28 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 8c591c4cccf0..4225542238f0 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -6933,6 +6933,7 @@ SUBDIR += rubygem-configstruct SUBDIR += rubygem-configuration SUBDIR += rubygem-console + SUBDIR += rubygem-constant_resolver SUBDIR += rubygem-contracts SUBDIR += rubygem-contracts016 SUBDIR += rubygem-cookbook-omnifetch diff --git a/devel/rubygem-constant_resolver/Makefile b/devel/rubygem-constant_resolver/Makefile new file mode 100644 index 000000000000..f79488e83c4c --- /dev/null +++ b/devel/rubygem-constant_resolver/Makefile @@ -0,0 +1,17 @@ +PORTNAME= constant_resolver +PORTVERSION= 0.2.0 +CATEGORIES= devel rubygems +MASTER_SITES= RG + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Resolve any constant to the path of the file that defines it +WWW= https://github.com/Shopify/constant_resolver + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= gem + +NO_ARCH= yes + +.include diff --git a/devel/rubygem-constant_resolver/distinfo b/devel/rubygem-constant_resolver/distinfo new file mode 100644 index 000000000000..355f4d2f8ca7 --- /dev/null +++ b/devel/rubygem-constant_resolver/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1722711137 +SHA256 (rubygem/constant_resolver-0.2.0.gem) = 4f59ff7ed6ee7a19c1d4b35c84fdec9b19f0391801991723c566eb40b4fc226f +SIZE (rubygem/constant_resolver-0.2.0.gem) = 15360 diff --git a/devel/rubygem-constant_resolver/pkg-descr b/devel/rubygem-constant_resolver/pkg-descr new file mode 100644 index 000000000000..ee4f2b5684d9 --- /dev/null +++ b/devel/rubygem-constant_resolver/pkg-descr @@ -0,0 +1,7 @@ +ConstantResolver resolves partially qualified constant reference to the fully +qualified name and the path of the file defining it. It does not load the files +to do that, its inference engine purely works on file paths and constant names. + +ConstantResolver uses the same assumptions as Rails' code loader, Zeitwerk to +infer constant locations. Please see Zeitwerk's documentation on file structure +and inflection for more information.