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 B601015ACFB for ; Thu, 13 Apr 2023 03:03:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 84B82E0867; Thu, 13 Apr 2023 03:03:48 +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 6786AE0867 for ; Thu, 13 Apr 2023 03:03:48 +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 609CD340EFD for ; Thu, 13 Apr 2023 03:03:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 79F8FA41 for ; Thu, 13 Apr 2023 03:03:44 +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: <1681354858.caf20c30b2042967b3a9769346a39cac0c4b7228.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/shoulda-matchers/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/shoulda-matchers/shoulda-matchers-5.3.0.ebuild X-VCS-Directories: dev-ruby/shoulda-matchers/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: caf20c30b2042967b3a9769346a39cac0c4b7228 X-VCS-Branch: master Date: Thu, 13 Apr 2023 03:03:44 +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: 8a240656-8f75-435d-b3d3-e911f504ec02 X-Archives-Hash: bf9e5df58d42e0f991733b7c4d387052 commit: caf20c30b2042967b3a9769346a39cac0c4b7228 Author: Sam James gentoo org> AuthorDate: Wed Apr 12 09:59:29 2023 +0000 Commit: Sam James gentoo org> CommitDate: Thu Apr 13 03:00:58 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=caf20c30 dev-ruby/shoulda-matchers: enable ruby32, partly wire up tests I didn't succeed in getting the test suite properly running but it's a bit of progress. Signed-off-by: Sam James gentoo.org> .../shoulda-matchers/shoulda-matchers-5.3.0.ebuild | 26 ++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/dev-ruby/shoulda-matchers/shoulda-matchers-5.3.0.ebuild b/dev-ruby/shoulda-matchers/shoulda-matchers-5.3.0.ebuild index f4717a8de584..0e847b4ec193 100644 --- a/dev-ruby/shoulda-matchers/shoulda-matchers-5.3.0.ebuild +++ b/dev-ruby/shoulda-matchers/shoulda-matchers-5.3.0.ebuild @@ -3,8 +3,8 @@ EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" -RUBY_FAKEGEM_RECIPE_TEST="none" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" RUBY_FAKEGEM_EXTRAINSTALL="CHANGELOG.md README.md" RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" RUBY_FAKEGEM_BINWRAP="" @@ -19,8 +19,30 @@ LICENSE="MIT" SLOT="$(ver_cut 1)" KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +# Fedora manage to run the tests, but it's still pretty tricky. +# https://src.fedoraproject.org/rpms/rubygem-shoulda-matchers/blob/rawhide/f/rubygem-shoulda-matchers.spec +RESTRICT="test" + ruby_add_rdepend ">=dev-ruby/activesupport-5.2.0:*" all_ruby_prepare() { sed -i -e '/pry/ s:^:#:' spec/spec_helper.rb || die + + #rm Gemfile.lock || die + + # Avoid Appraisal and Bundler. + #sed -i "/current_bundle/ s/^/#/" \ + # spec/acceptance_spec_helper.rb \ + # spec/support/unit/load_environment.rb || die + #sed -i "/CurrentBundle/ s/^/#/" \ + # spec/acceptance_spec_helper.rb \ + # spec/support/unit/load_environment.rb || die + + # Avoid git and sprockets dependencies. + #sed -i '/def rails_new_command/,/^ end$/ { + # /rails new/ s/"$/ --skip-git --skip-asset-pipeline&/ + #}' spec/support/unit/rails_application.rb || die + #sed -i '/def rails_new_command/,/^ end$/ { + # /rails new/ s/"$/ --skip-git --skip-asset-pipeline&/ + #}' spec/support/acceptance/helpers/step_helpers.rb || die }