summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-03-27 16:24:34 +0200
committerHans de Graaff <graaff@gentoo.org>2023-03-27 16:24:57 +0200
commitcf13231f2b118a384e540a3bd70b92b3549faff8 (patch)
tree6aebd4243da4e323f3ce16ab6e93e49fef0e993f
parentdev-ruby/did_you_mean: drop 1.4.0 (diff)
downloadgentoo-cf13231f2b118a384e540a3bd70b92b3549faff8.tar.gz
gentoo-cf13231f2b118a384e540a3bd70b92b3549faff8.tar.bz2
gentoo-cf13231f2b118a384e540a3bd70b92b3549faff8.zip
dev-ruby/gh: enable ruby30, ruby31
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r--dev-ruby/gh/gh-0.18.0-r1.ebuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/dev-ruby/gh/gh-0.18.0-r1.ebuild b/dev-ruby/gh/gh-0.18.0-r1.ebuild
index a256ac6f3d6a..b0fb14016be7 100644
--- a/dev-ruby/gh/gh-0.18.0-r1.ebuild
+++ b/dev-ruby/gh/gh-0.18.0-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-USE_RUBY="ruby27"
+USE_RUBY="ruby27 ruby30 ruby31"
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
RUBY_FAKEGEM_GEMSPEC="gh.gemspec"
@@ -19,12 +19,14 @@ SLOT="0"
KEYWORDS="~amd64"
IUSE=""
+PATCHES=( "${FILESDIR}/${P}-ruby30.patch" )
+
ruby_add_bdepend "
dev-ruby/webmock
"
ruby_add_rdepend "
- dev-ruby/activesupport:6.0
+ dev-ruby/activesupport:6.1
>=dev-ruby/addressable-2.4.0:0
dev-ruby/faraday:1
dev-ruby/faraday_middleware:1
@@ -36,7 +38,9 @@ ruby_add_rdepend "
all_ruby_prepare() {
sed -i \
-e '/net-http-persistent/ s/~> 2.9/>= 2.9/' \
- -e "/activesupport/ s/'~> 5.0'/'>= 5', '< 6.1'/" \
+ -e "/activesupport/ s/'~> 5.0'/'>= 5', '< 6.2'/" \
-e 's/git ls-files/find/' \
"${RUBY_FAKEGEM_GEMSPEC}" || die
+
+ sed -i -e '1igem "faraday", "~> 1.0"' spec/spec_helper.rb || die
}