dev-ruby/sawyer: add 0.9.3

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff 2025-10-24 11:54:38 +02:00
parent 5a0c5ad11a
commit 610823bd2b
No known key found for this signature in database
GPG Key ID: DB347F938654FA34
2 changed files with 36 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST sawyer-0.9.2.tar.gz 15545 BLAKE2B 83fc7b6776e888ed4f26a21febc93edf954a1d926c14311078b5ecf7db57614472ed42d33ffc30bceb23c4ea1f1b1047cf3c1a0be9feecb4a3c92458938c6c03 SHA512 560c5bb6fd8f73f68b4dc1151608bc3b1f60aec511fef449cd6361a1307e2c1bf64cfa6cc7ad951ce92db22ce90f3318668af31708f0c1ee5909db3684566c72
DIST sawyer-0.9.3.tar.gz 15778 BLAKE2B 027acf9626ce3e65f58ee383869a1ce74d493cd827e7cc4eaf0d228b044fa102f3e79137ad5115f44b59df9695b082bc2dc76bb09da2dac0a6fd3c8c93c525cb SHA512 922b6edc576cc8fea2757b6252acdaa7572d830cffc4d1abf0c6fb97815d4652b15cc8310844c3e7420b146deb3852fb3bb2f568f92d9a7c21b392d64d594fe9

View File

@ -0,0 +1,35 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby32 ruby33 ruby34"
RUBY_FAKEGEM_EXTRADOC="README.md"
RUBY_FAKEGEM_GEMSPEC="sawyer.gemspec"
inherit ruby-fakegem
DESCRIPTION="Secret User Agent of HTTP"
HOMEPAGE="https://github.com/lostisland/sawyer"
SRC_URI="https://github.com/lostisland/sawyer/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
ruby_add_rdepend "
<dev-ruby/faraday-3:*
>=dev-ruby/addressable-2.3.5
"
all_ruby_prepare() {
# Avoid tests that require network access
sed -i -e '/test_blank_response_doesnt_raise/,/^ end/ s:^:#:' test/agent_test.rb || die
# Account for different inspect output in Ruby 3.4
sed -e '204 s/"{:a=>1}"/({:a=>1}).inspect/' \
-i test/resource_test.rb || die
sed -e '174 s|"{:self_url=>\\\"/users/1\\\"}"|({:self_url=>\"/users/1\"}).inspect|' \
-i test/relation_test.rb || die
}