1 |
commit: 5ba5c34cee44cd5726195ffbfa76e35fba62bca4 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 30 06:44:46 2022 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 31 05:39:22 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ba5c34c |
7 |
|
8 |
dev-ruby/rspec-support: enable ruby31 |
9 |
|
10 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
11 |
|
12 |
dev-ruby/rspec-support/rspec-support-3.11.0.ebuild | 11 ++++++++++- |
13 |
1 file changed, 10 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/dev-ruby/rspec-support/rspec-support-3.11.0.ebuild b/dev-ruby/rspec-support/rspec-support-3.11.0.ebuild |
16 |
index d7fe9d10c9e9..b655ae6d9d07 100644 |
17 |
--- a/dev-ruby/rspec-support/rspec-support-3.11.0.ebuild |
18 |
+++ b/dev-ruby/rspec-support/rspec-support-3.11.0.ebuild |
19 |
@@ -2,7 +2,7 @@ |
20 |
# Distributed under the terms of the GNU General Public License v2 |
21 |
|
22 |
EAPI=8 |
23 |
-USE_RUBY="ruby26 ruby27 ruby30" |
24 |
+USE_RUBY="ruby26 ruby27 ruby30 ruby31" |
25 |
|
26 |
RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
27 |
|
28 |
@@ -44,6 +44,15 @@ all_ruby_prepare() { |
29 |
each_ruby_prepare() { |
30 |
# Use the ruby version being tested |
31 |
sed -i -e '/shell_out/ s:ruby:'${RUBY}':' spec/rspec/support/spec/shell_out_spec.rb || die |
32 |
+ |
33 |
+ case ${RUBY} in |
34 |
+ *ruby31) |
35 |
+ # Avoid specs failing when run in Gentoo, possibly due to different IO |
36 |
+ sed -e '/outputs unified diff message of two arrays/askip "ruby31 IO"' \ |
37 |
+ -e '/outputs unified diff message for hashes inside arrays with differing key orders/askip "ruby31 IO"' \ |
38 |
+ -i spec/rspec/support/differ_spec.rb || die |
39 |
+ ;; |
40 |
+ esac |
41 |
} |
42 |
|
43 |
each_ruby_test() { |