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 (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B5B4615800A for ; Mon, 18 Nov 2024 07:32:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0C01CE0C5A; Mon, 18 Nov 2024 07:32:20 +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 E546CE0C5A for ; Mon, 18 Nov 2024 07:32:19 +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 EE03933BE00 for ; Mon, 18 Nov 2024 07:32:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 209A0AED for ; Mon, 18 Nov 2024 07:32:17 +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: <1731915116.5bd42291e529aa5aedff6b882bd90f2d1cdbcb15.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/roadie-rails/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/roadie-rails/Manifest dev-ruby/roadie-rails/roadie-rails-3.3.0.ebuild X-VCS-Directories: dev-ruby/roadie-rails/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 5bd42291e529aa5aedff6b882bd90f2d1cdbcb15 X-VCS-Branch: master Date: Mon, 18 Nov 2024 07:32: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: 02729e40-6b3b-4ca8-a1fa-d1be8647012f X-Archives-Hash: 5b6021231582c5bfc2e4a0b6ce7fe513 commit: 5bd42291e529aa5aedff6b882bd90f2d1cdbcb15 Author: Hans de Graaff gentoo org> AuthorDate: Mon Nov 18 07:31:56 2024 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Mon Nov 18 07:31:56 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bd42291 dev-ruby/roadie-rails: add 3.3.0 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/roadie-rails/Manifest | 1 + dev-ruby/roadie-rails/roadie-rails-3.3.0.ebuild | 61 +++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/dev-ruby/roadie-rails/Manifest b/dev-ruby/roadie-rails/Manifest index 71b48aad8c6b..9fba7f8b8976 100644 --- a/dev-ruby/roadie-rails/Manifest +++ b/dev-ruby/roadie-rails/Manifest @@ -1 +1,2 @@ DIST roadie-rails-3.2.0.tar.gz 90816 BLAKE2B 546bc1f402c68a9ae60d240470d4e2ed706032b81319ec8ce9b59872f7bb6a102468516fc13412485cb038cb8332615ca36ab6f05b7cc5f6fba9d54bd2a41703 SHA512 10535af44fa490c2d5ab790b956055af64add14bb9eb92dedf5ec6317e1be219974195e30c5e03f876740693aafdba5e2b11c68817c8ad7fc0711262ec16c943 +DIST roadie-rails-3.3.0.tar.gz 104945 BLAKE2B b25da1f2b3210432735388831e4ac78ea01fc599c3ee6676421c4c4d355081f2d390c1d46a46dd7849ee90a42e1ba8bfbe4207136494ac511dba128f59bb4614 SHA512 96ece383f2ded5ea46e008da744222820658ec796d5ea193b046d8f8fc81155c34097b9d4a50e0d7cd14ef3f60209260bb2341773f9c2424e8bbe547e6b5ab93 diff --git a/dev-ruby/roadie-rails/roadie-rails-3.3.0.ebuild b/dev-ruby/roadie-rails/roadie-rails-3.3.0.ebuild new file mode 100644 index 000000000000..aeb401c2ff65 --- /dev/null +++ b/dev-ruby/roadie-rails/roadie-rails-3.3.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32" +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_RECIPE_DOC="yard" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Hooks Roadie into your Rails application to help with email generation" +HOMEPAGE="https://github.com/Mange/roadie-rails" +SRC_URI="https://github.com/Mange/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64" + +ruby_add_rdepend "dev-ruby/roadie:5 + || ( dev-ruby/railties:8.0 dev-ruby/railties:7.2 dev-ruby/railties:7.1 dev-ruby/railties:7.0 dev-ruby/railties:6.1 )" +ruby_add_bdepend " + test? ( + dev-ruby/bundler + || ( dev-ruby/rails:7.0 dev-ruby/rails:6.1 ) + dev-ruby/rspec-rails + dev-ruby/rspec-collection_matchers + dev-ruby/sass-rails )" + +all_ruby_prepare() { + sed -i -e '/\(simplecov\|standard\)/ s:^:#:' Gemfile || die + sed -i -e 's/git ls-files/find * -print/' -e '/standard/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die + + # Avoid already removed rails versions and version incompatible with our sass-rails version. + sed -e '/rails_\(51\|52\|60\)/ s:^:#:' \ + -e '/Rails 7.1 with sprockets/ s:^:#:' \ + -i spec/integration_spec.rb || die + + # Avoid dependency on optional bootsnap + sed -i -e '/bootsnap/ s:^:#:' spec/railsapps/rails_*/Gemfile spec/railsapps/rails_*/config/boot.rb || die + + # Fix versioned sass-rails dependency + sed -i -e '/sass-rails/ s/>= 6/>=5/' spec/railsapps/*/Gemfile || die + + # Revert https://github.com/Mange/roadie-rails/commit/03acd8fddf651d43919e92db35d541ec4281c5fc for now + # Fragile test which is affected by dependency versions (unclear which) + sed -e 's/cd95a25e70dfe61add5a96e11d3fee0f29e9ba2b05099723d57bba7dfa725c8a/322506f9917889126e81df2833a6eecdf2e394658d53dad347e9882dd4dbf28e/' \ + -i spec/integration_spec.rb || die + +} + +each_ruby_prepare() { + sed -i -e '/run_in_app_context/ s:bin/rails:'${RUBY}' -S bin/rails:' spec/support/rails_app.rb || die +} + +each_ruby_test() { + ${RUBY} -S bundle exec rspec-3 spec || die +}