commit: 1e3f83d85b5ae5bf7be89040e91e30f477b75d36
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 16 07:03:47 2022 +0000
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Apr 16 07:03:47 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e3f83d8
dev-ruby/will_paginate: limit rails version for tests
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
dev-ruby/will_paginate/will_paginate-3.3.1.ebuild | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dev-ruby/will_paginate/will_paginate-3.3.1.ebuild
b/dev-ruby/will_paginate/will_paginate-3.3.1.ebuild
index ce6a5ea33efd..0c766344ec96 100644
--- a/dev-ruby/will_paginate/will_paginate-3.3.1.ebuild
+++ b/dev-ruby/will_paginate/will_paginate-3.3.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -21,11 +21,14 @@ IUSE=""
all_ruby_prepare() {
# Remove tests for unpackaged ORMs
rm -f spec/finders/{sequel,mongoid,data_mapper}* || die
+
+ # Use a supported rails version
+ sed -e '1igem "activerecord", "<7"; gem "actionpack", "<7"' -i
spec/spec_helper.rb || die
}
ruby_add_bdepend "
test? (
- dev-ruby/rails
+ <dev-ruby/rails-7
dev-ruby/sqlite3
dev-ruby/mocha
)"