commit:     d29f03ecd23ced825a22f52378b8649910c7f8e3
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Mon Jul  7 12:01:11 2025 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Mon Jul  7 12:14:18 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d29f03ec

dev-ruby/dry-struct: fix tests

Ensure a consistent cgi version is used.

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/dry-struct/dry-struct-1.8.0.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dev-ruby/dry-struct/dry-struct-1.8.0.ebuild 
b/dev-ruby/dry-struct/dry-struct-1.8.0.ebuild
index 0e6d2634ae6e..c8539405ec93 100644
--- a/dev-ruby/dry-struct/dry-struct-1.8.0.ebuild
+++ b/dev-ruby/dry-struct/dry-struct-1.8.0.ebuild
@@ -2,7 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-USE_RUBY="ruby31 ruby32 ruby33"
+
+USE_RUBY="ruby32 ruby33"
 
 RUBY_FAKEGEM_BINWRAP=""
 RUBY_FAKEGEM_RECIPE_TEST="rspec3"
@@ -44,4 +45,8 @@ all_ruby_prepare() {
 
        # Avoid spec for unpackaged optional super_diff
        rm -f spec/extensions/super_diff_spec.rb || die
+
+       # Require a consistent cgi.rb version (needed for ruby32)
+       sed -e '/require.*dry-struct/arequire "cgi"' \
+               -i spec/spec_helper.rb || die
 }

Reply via email to