dev-ruby/pundit: add 2.5.1

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2025-09-14 08:56:16 +02:00
parent 6e484e94c9
commit 2eed1cfd29
2 changed files with 41 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST pundit-2.5.0.gem 39424 BLAKE2B 78eb00bc71847d50911d6825fc60430252d2d2a582a7cf9edaf0489aa71bd485e8b5976ae3289e472718f7b9fd0779f54a92fa2b2e90a3227e0d4411d73b73bb SHA512 e0e49400df9f42ca96ec067d129f68125291e0f403cc7da3bcf7f657f022383496a462d011289662bad7ae9d232f6504f5b42f8e7e55e70d86d2faa764cea7a4
DIST pundit-2.5.1.tar.gz 36362 BLAKE2B 3c073a77f195fb937da877fd65216fe70c2b656c961b5a6c12b9777ad831135cdc0e9407a2fd55445b6a3b6d747e89fa0956d97f213d62addeb6535375e25405 SHA512 b2bad4b491819da59e12f3482d8485a325949ae5dd96325d9cdc00bfd896e2adc1b08000738ca611570e3019e43f1067b40ea7dee7fd49d779c9cdf8773133ca

View File

@@ -0,0 +1,40 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby32 ruby33 ruby34"
RUBY_FAKEGEM_BINWRAP=""
RUBY_FAKEGEM_GEMSPEC="pundit.gemspec"
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
inherit ruby-fakegem
DESCRIPTION="Object oriented authorization for Rails applications"
HOMEPAGE="https://github.com/varvet/pundit https://rubygems.org/gems/pundit"
SRC_URI="https://github.com/varvet/pundit/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="2"
KEYWORDS="~amd64"
IUSE="test"
ruby_add_rdepend ">=dev-ruby/activesupport-3.0.0:*"
ruby_add_bdepend "test? (
>=dev-ruby/actionpack-3.0.0
>=dev-ruby/activemodel-3.0.0
>=dev-ruby/railties-3.0.0
)"
all_ruby_prepare() {
sed -e "/pry/ s:^:#:" \
-e '3irequire "ostruct"' \
-i spec/spec_helper.rb || die
sed -e 's:_relative ": "./:' \
-e 's/__dir__/"."/' \
-e 's/git ls-files -z/find * -print0/' \
-i ${RUBY_FAKEGEM_GEMSPEC} || die
}