From nobody Thu May 16 06:29:24 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 4Vg0Yc60L9z5KfwV; Thu, 16 May 2024 06:29:24 +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 4Vg0Yc1tD9z42ch; Thu, 16 May 2024 06:29:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715840964; 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=JcesMhb83KTmCt1Fwmt3pc8KjM2IQvo/RHm5CnfmEvc=; b=i74v96AkFCkEltcNfbgEiHXMoLYRVeMAeDaCJO0LC245bqTrHRyxkh/Jz+uL9ul7RSwgtE Fzc8yIcvqqcftUXtNkBsXbSWFt/0gFx4tW4o72YRcqRRCBP/Xen+k8yVys1uo4YXl/S1+l yqT/J6eZjpgqGakIYKaraAy2OLVC5OsGggP7+hrZqfShRtSnLw0LwUVLYUztWQNOoqCOMN JFiOmMd2zeWil40Vg8WCF9BC8CRh6MhQQhw6zuO0LpeeswIhciWU9x6DDWC5YE0C+CnxhP Dt8w+tLPeQll3Ylj07+UcsnMAT9NWRwFox8sJmBD2IhUBs1m7KrUMr/rQ7/2GQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715840964; a=rsa-sha256; cv=none; b=VJJD6aznRGHr8lcYFU4BwMO8zQOt5QPjroj+py0sVXgqwZmHPoQAFhN/rwkhHEbzm3Ve/D +MH7igtYM+2SbX7zA5Kuhc0l5qH7bTosDBkTY9RMjfonlYLM71Au8392vUFAYqvfg0R8A6 GfP/uvPpqiotVKp/s+KBXuwMl0/POrgJ5qEnf+q+KJgTSLmrOJPQBy6Jq3gQZnKT+p2ptG 67Dp1My1CMdG6fgSifm706SjJFUqZoiw7CX2Rox+ddizJFayRZ7Ik3+HwhnyPsP1E51p0m 6tiVHccblH5dkz9Gjy/N2dxgW1Q1+0OA7utkBfd0P1KiZTIRHSZpMAbsu42lSA== 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=1715840964; 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=JcesMhb83KTmCt1Fwmt3pc8KjM2IQvo/RHm5CnfmEvc=; b=Vud5GnuyUqO2f7MBpP8tESK/4NYVFGzH0U7C5grQWnxlBeQJ7HCZ9XPUdpJZSrv7iLHzbB w7zgEVcOED/1rIzoQx7mZ/G8i9R6wwBGy48uzsp5TRH9DgwRC1FPa6ePL58kFtdmX+Ec03 TG0mDmsgYEf+xC5g9BL9thziqHkVLAdbudLjHgGu3ksj5dahDqwMKzVOLEXWYj0Vu+eL/n Wu1EI3cYxa+wLrMsvfgmw/h0KpwMMAcfcyWj6mgILVyndAYnBG6U1DSnnza8v1w0FZntSP pNl53jW3TUvVR72FR4IviOg/v3uKySTBJDx8xbL7Bnazy/zfn/dNHCQUebmdag== 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 4Vg0Yc1VfyznsF; Thu, 16 May 2024 06:29:24 +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 44G6TOsP032014; Thu, 16 May 2024 06:29:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44G6TOA2032011; Thu, 16 May 2024 06:29:24 GMT (envelope-from git) Date: Thu, 16 May 2024 06:29:24 GMT Message-Id: <202405160629.44G6TOA2032011@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: 926831c62fe0 - main - devel/rubygem-active_hash: Add rubygem-active_hash 3.3.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: 926831c62fe0344906ccfc40095e5cda258c7a7e Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=926831c62fe0344906ccfc40095e5cda258c7a7e commit 926831c62fe0344906ccfc40095e5cda258c7a7e Author: Po-Chuan Hsieh AuthorDate: 2024-05-16 06:13:36 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-05-16 06:21:48 +0000 devel/rubygem-active_hash: Add rubygem-active_hash 3.3.0 ActiveHash is a simple base class that allows you to use a ruby hash as a readonly datasource for an ActiveRecord-like model. ActiveHash assumes that every hash has an :id key, which is what you would probably store in a database. This allows you to seamlessly upgrade from ActiveHash objects to full ActiveRecord objects without having to change any code in your app, or any foreign keys in your database. It also allows you to use #has_many and #belongs_to (via belongs_to_active_hash) in your AR objects. ActiveHash can also be useful to create simple test classes that run without a database - ideal for testing plugins or gems that rely on simple AR behavior, but don't want to deal with databases or migrations for the spec suite. ActiveHash also ships with: - ActiveFile: a base class that you can use to create file data sources - ActiveYaml: a base class that will turn YAML into a hash and load the data into an ActiveHash object --- devel/Makefile | 1 + devel/rubygem-active_hash/Makefile | 19 +++++++++++++++++++ devel/rubygem-active_hash/distinfo | 3 +++ devel/rubygem-active_hash/pkg-descr | 19 +++++++++++++++++++ 4 files changed, 42 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index e1df574c474d..c4b66813ffe2 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -6173,6 +6173,7 @@ SUBDIR += rubygem-actionview61 SUBDIR += rubygem-actionview70 SUBDIR += rubygem-actionview71 + SUBDIR += rubygem-active_hash SUBDIR += rubygem-active_scaffold SUBDIR += rubygem-activejob4 SUBDIR += rubygem-activejob5 diff --git a/devel/rubygem-active_hash/Makefile b/devel/rubygem-active_hash/Makefile new file mode 100644 index 000000000000..91904852691f --- /dev/null +++ b/devel/rubygem-active_hash/Makefile @@ -0,0 +1,19 @@ +PORTNAME= active_hash +PORTVERSION= 3.3.0 +CATEGORIES= devel rubygems +MASTER_SITES= RG + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Include the ability to specify data using hashes, yml files or JSON files +WWW= https://github.com/active-hash/active_hash + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= rubygem-activesupport71>=5.0.0:devel/rubygem-activesupport71 + +USES= gem + +NO_ARCH= yes + +.include diff --git a/devel/rubygem-active_hash/distinfo b/devel/rubygem-active_hash/distinfo new file mode 100644 index 000000000000..9e06cb86c844 --- /dev/null +++ b/devel/rubygem-active_hash/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1714227800 +SHA256 (rubygem/active_hash-3.3.0.gem) = 44014718d97f04b96df5183d84d0478b9322ec20ee1bfd39a71d43d90cf680f5 +SIZE (rubygem/active_hash-3.3.0.gem) = 26112 diff --git a/devel/rubygem-active_hash/pkg-descr b/devel/rubygem-active_hash/pkg-descr new file mode 100644 index 000000000000..5adffca6decd --- /dev/null +++ b/devel/rubygem-active_hash/pkg-descr @@ -0,0 +1,19 @@ +ActiveHash is a simple base class that allows you to use a ruby hash as a +readonly datasource for an ActiveRecord-like model. + +ActiveHash assumes that every hash has an :id key, which is what you would +probably store in a database. This allows you to seamlessly upgrade from +ActiveHash objects to full ActiveRecord objects without having to change any +code in your app, or any foreign keys in your database. + +It also allows you to use #has_many and #belongs_to (via belongs_to_active_hash) +in your AR objects. + +ActiveHash can also be useful to create simple test classes that run without a +database - ideal for testing plugins or gems that rely on simple AR behavior, +but don't want to deal with databases or migrations for the spec suite. + +ActiveHash also ships with: +- ActiveFile: a base class that you can use to create file data sources +- ActiveYaml: a base class that will turn YAML into a hash and load the data + into an ActiveHash object