commit: 34d771757bf08549a1905a71f4dbb6a879ac7c99
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 12 10:18:22 2023 +0000
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Mar 12 12:09:34 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34d77175
dev-ruby/amq-client: enable ruby30, ruby31
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
dev-ruby/amq-client/amq-client-1.0.4-r1.ebuild | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/dev-ruby/amq-client/amq-client-1.0.4-r1.ebuild
b/dev-ruby/amq-client/amq-client-1.0.4-r1.ebuild
index 34a9498d3994..f47b8e023b73 100644
--- a/dev-ruby/amq-client/amq-client-1.0.4-r1.ebuild
+++ b/dev-ruby/amq-client/amq-client-1.0.4-r1.ebuild
@@ -1,13 +1,13 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-USE_RUBY="ruby26 ruby27"
+USE_RUBY="ruby27 ruby30 ruby31"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRADOC="README.textile"
-RUBY_FAKEGEM_RECIPE_TEST="rspec"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
RUBY_FAKEGEM_BINWRAP=""
@@ -32,4 +32,8 @@ all_ruby_prepare() {
# Drop integration tests since these require a running AMQP server.
rm -rf spec/integration
spec/regression/bad_frame_slicing_in_adapters_spec.rb spec/unit/client_spec.rb
|| die
+
+ # Make specs compatible with rspec 3
+ sed -e 's/be_false/be_falsey/ ; s/be_true/be_truthy/' \
+ -i spec/unit/client/*_spec.rb spec/client/protocol/*_spec.rb ||
die
}