From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 45F6515800A for ; Sat, 26 Aug 2023 15:39:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5AC222BC1E0; Sat, 26 Aug 2023 15:39:35 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 06AEB2BC1DF for ; Sat, 26 Aug 2023 15:39:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C084B340D65 for ; Sat, 26 Aug 2023 15:39:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2FBEB1044 for ; Sat, 26 Aug 2023 15:39:32 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1693064365.486f0e4259f850f65b22d7a3e0010f884f6ecdb2.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/arel-helpers/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/arel-helpers/arel-helpers-2.14.0-r1.ebuild X-VCS-Directories: dev-ruby/arel-helpers/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 486f0e4259f850f65b22d7a3e0010f884f6ecdb2 X-VCS-Branch: master Date: Sat, 26 Aug 2023 15:39:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 791063ec-8c17-4432-8dc4-5e8b6a50887e X-Archives-Hash: f29e2715a6a4d2f77e9afc5024fb6dc7 commit: 486f0e4259f850f65b22d7a3e0010f884f6ecdb2 Author: Hans de Graaff gentoo org> AuthorDate: Sat Aug 26 10:50:36 2023 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sat Aug 26 15:39:25 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=486f0e42 dev-ruby/arel-helpers: add ruby32 Relax sqlite3 dependency to match update to gemspec. Signed-off-by: Hans de Graaff gentoo.org> .../arel-helpers/arel-helpers-2.14.0-r1.ebuild | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/dev-ruby/arel-helpers/arel-helpers-2.14.0-r1.ebuild b/dev-ruby/arel-helpers/arel-helpers-2.14.0-r1.ebuild new file mode 100644 index 000000000000..62e4e4422c0f --- /dev/null +++ b/dev-ruby/arel-helpers/arel-helpers-2.14.0-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" +RUBY_S=${PN}-* +RUBY_FAKEGEM_VERSION="$(ver_cut 1-3)" +inherit ruby-fakegem + +DESCRIPTION="Tools to help construct database queries" +HOMEPAGE="https://github.com/camertron/arel-helpers" +# No test data in gems +SRC_URI="https://github.com/camertron/arel-helpers/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm" + +ruby_add_rdepend " + || ( + dev-ruby/activerecord:7.0 + dev-ruby/activerecord:6.1 + ) +" + +ruby_add_bdepend " + test? ( + dev-ruby/rr + dev-ruby/activerecord[sqlite] + dev-ruby/bundler + dev-ruby/combustion + >=dev-ruby/database_cleaner-1.8 + >=dev-ruby/sqlite3-1.4 + ) +" + +all_ruby_prepare() { + # pry is for debugging, not useful here + sed -i -e '/pry-/ s:^:#:' spec/spec_helper.rb || die + + sed \ + -e '/rake/ s/~>/>=/' \ + -e '/appraisal/ s:^:#:' \ + -e '/database_cleaner/ s/1.8/1.7/' \ + -e '/database_cleaner/ s/~>/>=/' \ + -e '/sqlite3/ s/~>/>=/' \ + -i arel-helpers.gemspec || die +} + +each_ruby_test() { + ${RUBY} -S bundle exec rake spec || die +}