summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2021-07-27 08:01:20 +0200
committerHans de Graaff <graaff@gentoo.org>2021-07-27 08:30:11 +0200
commit37d40528f1bf5d54cf3bad79388847e20b18990f (patch)
treedbf635018d765739addc47e7abdd6b7fcb933f84
parentdev-ruby/elasticsearch-transport: add ruby27; fix tests (diff)
downloadgentoo-37d40528f1bf5d54cf3bad79388847e20b18990f.tar.gz
gentoo-37d40528f1bf5d54cf3bad79388847e20b18990f.tar.bz2
gentoo-37d40528f1bf5d54cf3bad79388847e20b18990f.zip
dev-ruby/elasticsearch-api: add ruby27
Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r--dev-ruby/elasticsearch-api/elasticsearch-api-6.8.1.ebuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/dev-ruby/elasticsearch-api/elasticsearch-api-6.8.1.ebuild b/dev-ruby/elasticsearch-api/elasticsearch-api-6.8.1.ebuild
index 51ffda452deb..61690f9372e5 100644
--- a/dev-ruby/elasticsearch-api/elasticsearch-api-6.8.1.ebuild
+++ b/dev-ruby/elasticsearch-api/elasticsearch-api-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_DOC=doc
@@ -46,7 +46,9 @@ all_ruby_prepare() {
-e '/require.*cane/,/end/d' \
-i Rakefile || die
- sed -i -e '/config.formatter/ s/documentation/progress/' spec/spec_helper.rb || die
+ sed -e '/config.formatter/ s/documentation/progress/' \
+ -e '1irequire "patron"' \
+ -i spec/spec_helper.rb || die
# Avoid tests that require unpackaged jbuilder and jsonify
sed -i -e '/\(pry-nav\|jbuilder\|jsonify\)/ s:^:#:' spec/spec_helper.rb || die