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 CD35B1586A0 for ; Sun, 26 Mar 2023 03:03:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1F9AFE0848; Sun, 26 Mar 2023 03:03:21 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 09844E0848 for ; Sun, 26 Mar 2023 03:03:21 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 33A33341175 for ; Sun, 26 Mar 2023 03:03:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7A647954 for ; Sun, 26 Mar 2023 03:03:17 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1679799766.0336a69c9adfc672ebc113e6608774511609a06a.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/combustion/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/combustion/Manifest dev-ruby/combustion/combustion-1.3.7-r1.ebuild X-VCS-Directories: dev-ruby/combustion/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 0336a69c9adfc672ebc113e6608774511609a06a X-VCS-Branch: master Date: Sun, 26 Mar 2023 03:03:17 +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: 7ce4f29f-1ba7-4651-a64e-9d38b47c7e6f X-Archives-Hash: 553c77b9c3505b1911d528c8de91db0c commit: 0336a69c9adfc672ebc113e6608774511609a06a Author: Sam James gentoo org> AuthorDate: Sat Mar 25 09:20:42 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sun Mar 26 03:02:46 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0336a69c dev-ruby/combustion: wire up tests Signed-off-by: Sam James gentoo.org> dev-ruby/combustion/Manifest | 1 + dev-ruby/combustion/combustion-1.3.7-r1.ebuild | 57 ++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/dev-ruby/combustion/Manifest b/dev-ruby/combustion/Manifest index 0b19ec13d1d9..de6e848d40c6 100644 --- a/dev-ruby/combustion/Manifest +++ b/dev-ruby/combustion/Manifest @@ -1,2 +1,3 @@ DIST combustion-1.3.6.gem 17408 BLAKE2B 88fb0863d12005606a743a50a6fc19fa11d9c738f8cecd922779440ae78878f21d7af8a33833be418d4e265f86dd01d1f49e31e4521613f2f10cfb9f7e10ce76 SHA512 2ce565af100a998d4fd79b595e2ca8571f5872e9a7adfd2d99ae8cab0ebfc8ee07aa4ccf24af37464d9094feed5e114b68ee45197459c7e0fdb1e190458ef218 DIST combustion-1.3.7.gem 17408 BLAKE2B 702ed32108f6d6dd85da39fce6643d0b55d124798afe03141082493fee9142624e2fb684a14d6d2615b5068498357b7b2d97bd4594f8e8f0ae0ae594b80e6bec SHA512 400c2209c72209a3d670b32569d3dce8623926a1ef531db7cca66cd8f6e1fd56fe96dc4cbe2f6dde6fffa8582883e6b511850fb16051b06fe709c12cf1baa026 +DIST combustion-1.3.7.tar.gz 16922 BLAKE2B 7edb6d68751bdae2c14f564d99bd5e4815aeb0ac5cbf9f86bf265bcf1cc02f39b36c2f439d1a79930f7fee5670451dee87821150b11b765cf3a251272b6bfb46 SHA512 2aedf160b099f16b2225dacbb8198fbdca6a00196bfaf4f869d651309e36976b3a14383c9b38b4361a5174726117200e0fc9da56f2cf08ec9ea99a5f5dbecf7e diff --git a/dev-ruby/combustion/combustion-1.3.7-r1.ebuild b/dev-ruby/combustion/combustion-1.3.7-r1.ebuild new file mode 100644 index 000000000000..ec98a0943661 --- /dev/null +++ b/dev-ruby/combustion/combustion-1.3.7-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby27 ruby30" +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" +inherit ruby-fakegem + +DESCRIPTION="Elegant Rails Engine Testing" +HOMEPAGE="https://github.com/pat/combustion" +SRC_URI="https://github.com/pat/combustion/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +ruby_add_rdepend " + >=dev-ruby/activesupport-3.0.0:* + >=dev-ruby/railties-3.0.0:* + >=dev-ruby/thor-0.14.6:* +" +# Needed for e.g. cannot load such file -- action_mailer/railtie +ruby_add_bdepend " + test? ( + >=dev-ruby/activemodel-3.0.0:* + >=dev-ruby/activerecord-3.0.0:* + dev-ruby/bundler + >=dev-ruby/rails-3.0.0:* + dev-ruby/rspec:3 + >=dev-ruby/sqlite3-1.4 + ) +" + +each_ruby_prepare() { + sed -i \ + -e '/sqlite3/s:1.3.13:1.4:' \ + -e '/rubocop/d' \ + Gemfile || die + + # appraisals, rubocop: useless for us test deps + # mysql2, pg,: optional runtime deps + sed -i \ + -e '/appraisals/d' \ + -e '/mysql2/d' \ + -e '/pg/d' \ + -e '/rubocop/d' \ + ${PN}.gemspec || die + + sed -i -e '/rubocop/d' Rakefile || die +} + +each_ruby_test() { + local -x DB_ADAPTER=sqlite3 + ${RUBY} -S bundle exec rake spec || die +}