From nobody Thu May 16 06:29:40 2024 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 4Vg0Yw3c7Zz5Kg6t; Thu, 16 May 2024 06:29:40 +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 4Vg0Yw1ccLz42r5; Thu, 16 May 2024 06:29:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715840980; 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=w9QLspHyPgwvlq8TYOShke6VTxa3BTmPsItA/anK2EU=; b=u3v3ADo+9W6k8ZLQsBrFwIsKFRP0Dj+9C7CxcX7jIAk6rZsF49EY02l0N1ozjeAAKCQf4n cUAZT3obZY0ChNuHnVRwq2vYWLvBi1+Q0K9rHMpmxn6+/phhauQ6dRIWXteu4tqwLfOkrs kvzspgXsDu3msoA811AZ4y3p6VLfl37mRNiC4GCIyaTBZyvNggifrXJRSt2AH6YiQpCHXA 449Ir6t9bMfpzfnS3ZMr4ayzINO9rN1OYBjtNX3aLgL3iaZlePNApM3rzX87Q9kusx0zCA ZQODYa6WD7yK51b9M8Xbcmb3Yv5/RcjPZX0hVNVWwi7Z/cov5Va7Wi+C9s41DQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715840980; a=rsa-sha256; cv=none; b=v0L5SyNyMXUauKoSDuhpgdB4uRtNXHnhCDC7v9Zrmyc3yoZcD/NmXNEjFQsIjMeqkyFrZj daoTbYj1C1Xwm2DlC7QjxyGxkcN7et+8IE9fUnEOsavhueGQd9v34gPrBtBQE/PmKnubbN ydjd905mNzA9y0jANEGuVExuMGvkIqLx5MCIPBPqtpnR2ZwCnFSi9lsCpNUh2UqQisIFfq iXZVIdIptrWhxryYuEv9idopu2Lu006XzXp7L52AEFxXPG6wxkhXRHlntLj6tXvrRAB+C/ 0m7bWJ3+iSE0X4YShZhiO+nWPBL/5/v7rxYDNkF5eoUmbjxJUmCnawzxDnD9kw== 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=1715840980; 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=w9QLspHyPgwvlq8TYOShke6VTxa3BTmPsItA/anK2EU=; b=Gb46q4z2TOF6dPyRDKlmcKETI2lPe/hVXr57JF/hErN+xikCcpuJ3JqZJuroxXdxin9Op7 l4Gg19b0cgFBwkkugcC80DCYqSCvwZGEi7eHWlFm94uR4zGFyvf0s584saMJnG4XnKIlJh lWwpCnHVQ+5isYQvPxQD9Q2GZ3azGcKNGG2zeT1WtJcxIiLs6fSPghVGMbySjGuGOJRKgc DQOC+TkkUKBcTC68i/5DEvlDV3qUe8qiwCBg+hGJDFhLhH+T49OAYRI91l2G2GgMrnI/Ek 5YdKcf/TMA0hf9S3umnzhzClYTzpJuspW4hx7ocLo65YmCmovziFxbRvHb/iVg== 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 4Vg0Yw1Dw6znCr; Thu, 16 May 2024 06:29:40 +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 44G6Te3Y032595; Thu, 16 May 2024 06:29:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44G6TeIc032592; Thu, 16 May 2024 06:29:40 GMT (envelope-from git) Date: Thu, 16 May 2024 06:29:40 GMT Message-Id: <202405160629.44G6TeIc032592@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: 7f7a8549a45b - main - security/rubygem-cancancan: Add rubygem-cancancan 3.5.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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-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: 7f7a8549a45bde7be3734eaf9d38976164c20566 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=7f7a8549a45bde7be3734eaf9d38976164c20566 commit 7f7a8549a45bde7be3734eaf9d38976164c20566 Author: Po-Chuan Hsieh AuthorDate: 2024-05-16 06:13:49 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-05-16 06:21:52 +0000 security/rubygem-cancancan: Add rubygem-cancancan 3.5.0 CanCanCan is an authorization library for Ruby and Ruby on Rails which restricts what resources a given user is allowed to access. All permissions can be defined in one or multiple ability files and not duplicated across controllers, views, and database queries, keeping your permissions logic in one place for easy maintenance and testing. It consists of two main parts: - Authorizations library that allows you to define the rules to access different objects, and provides helpers to check for those permissions. - Rails helpers to simplify the code in Rails Controllers by performing the loading and checking of permissions of models automatically and reduce duplicated code. --- security/Makefile | 1 + security/rubygem-cancancan/Makefile | 16 ++++++++++++++++ security/rubygem-cancancan/distinfo | 3 +++ security/rubygem-cancancan/pkg-descr | 13 +++++++++++++ 4 files changed, 33 insertions(+) diff --git a/security/Makefile b/security/Makefile index 09bc64eeb561..c029efaad458 100644 --- a/security/Makefile +++ b/security/Makefile @@ -1108,6 +1108,7 @@ SUBDIR += rubygem-bcrypt SUBDIR += rubygem-bcrypt-ruby SUBDIR += rubygem-bcrypt_pbkdf + SUBDIR += rubygem-cancancan SUBDIR += rubygem-cose SUBDIR += rubygem-cvss-suite SUBDIR += rubygem-declarative_policy diff --git a/security/rubygem-cancancan/Makefile b/security/rubygem-cancancan/Makefile new file mode 100644 index 000000000000..b4e77e7c4284 --- /dev/null +++ b/security/rubygem-cancancan/Makefile @@ -0,0 +1,16 @@ +PORTNAME= cancancan +PORTVERSION= 3.5.0 +CATEGORIES= security rubygems +MASTER_SITES= RG + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Simple authorization solution for Rails with all permissions stored in a single location +WWW= https://github.com/CanCanCommunity/cancancan + +LICENSE= MIT + +USES= gem + +NO_ARCH= yes + +.include diff --git a/security/rubygem-cancancan/distinfo b/security/rubygem-cancancan/distinfo new file mode 100644 index 000000000000..c77ca721ba54 --- /dev/null +++ b/security/rubygem-cancancan/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1714227824 +SHA256 (rubygem/cancancan-3.5.0.gem) = 85fe7777f3c65fb5e55612bd1cacbd52963a981bbc697eefd5ff57edb64bb6c0 +SIZE (rubygem/cancancan-3.5.0.gem) = 29696 diff --git a/security/rubygem-cancancan/pkg-descr b/security/rubygem-cancancan/pkg-descr new file mode 100644 index 000000000000..6ad7a47d2c3a --- /dev/null +++ b/security/rubygem-cancancan/pkg-descr @@ -0,0 +1,13 @@ +CanCanCan is an authorization library for Ruby and Ruby on Rails which restricts +what resources a given user is allowed to access. + +All permissions can be defined in one or multiple ability files and not +duplicated across controllers, views, and database queries, keeping your +permissions logic in one place for easy maintenance and testing. + +It consists of two main parts: +- Authorizations library that allows you to define the rules to access different + objects, and provides helpers to check for those permissions. +- Rails helpers to simplify the code in Rails Controllers by performing the + loading and checking of permissions of models automatically and reduce + duplicated code.