From 72a4489a308fc08404d057df1f2d6d4b3a68b111 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Tue, 27 Jul 2021 07:59:36 +0200 Subject: dev-ruby/elasticsearch-transport: add ruby27; fix tests Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Hans de Graaff --- .../elasticsearch-transport-6.8.1.ebuild | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'dev-ruby') diff --git a/dev-ruby/elasticsearch-transport/elasticsearch-transport-6.8.1.ebuild b/dev-ruby/elasticsearch-transport/elasticsearch-transport-6.8.1.ebuild index dde668b3853c..15c571ae204d 100644 --- a/dev-ruby/elasticsearch-transport/elasticsearch-transport-6.8.1.ebuild +++ b/dev-ruby/elasticsearch-transport/elasticsearch-transport-6.8.1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby24 ruby25 ruby26" +USE_RUBY="ruby25 ruby26 ruby27" RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" RUBY_FAKEGEM_TASK_TEST="NOTURN=true test" @@ -48,6 +48,8 @@ all_ruby_prepare() { -i Rakefile || die # Tweak test setup to only run unit tests since we don't have a live cluster - sed -i -e "s/RUBY_VERSION > '1.9'/false/" \ - -e '/module Elasticsearch/,$ s:^:#:' test/test_helper.rb || die + sed -e "s/RUBY_VERSION > '1.9'/false/" \ + -e '/module Elasticsearch/,$ s:^:#:' \ + -e '1igem "faraday", "~> 0.9"; gem "patron"' \ + -i test/test_helper.rb || die } -- cgit v1.2.3-65-gdbad