diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-03-12 11:18:22 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-03-12 13:09:34 +0100 |
commit | 34d771757bf08549a1905a71f4dbb6a879ac7c99 (patch) | |
tree | f97138c5b47b982b8c3b472f5627b2d79bbd6a42 /dev-ruby/amq-client | |
parent | dev-ruby/amqp: enable ruby30, ruby31 (diff) | |
download | gentoo-34d771757bf08549a1905a71f4dbb6a879ac7c99.tar.gz gentoo-34d771757bf08549a1905a71f4dbb6a879ac7c99.tar.bz2 gentoo-34d771757bf08549a1905a71f4dbb6a879ac7c99.zip |
dev-ruby/amq-client: enable ruby30, ruby31
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/amq-client')
-rw-r--r-- | dev-ruby/amq-client/amq-client-1.0.4-r1.ebuild | 10 |
1 files 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 } |