commit: c3d207da1bb5b0544d274fa6ffc0dc2855ed6d85
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 9 05:24:29 2025 +0000
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Mon Jun 9 05:24:29 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3d207da
dev-ruby/http: add 5.3.0
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
dev-ruby/http/Manifest | 1 +
dev-ruby/http/http-5.3.0.ebuild | 62 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 63 insertions(+)
diff --git a/dev-ruby/http/Manifest b/dev-ruby/http/Manifest
index b99c72efca8b..cdd50a74f567 100644
--- a/dev-ruby/http/Manifest
+++ b/dev-ruby/http/Manifest
@@ -1 +1,2 @@
DIST http-5.2.0.gem 85504 BLAKE2B
60391b959752c63e2f8cffcb86d6aad47fd30817f348ac6fc28ebce4fa5186f482c08db5e4413fc84eb54a9beb2682260c0c7241a76b40c3489fe7f2abcfb154
SHA512
88a813498db68827ea665c3a568ce45b0096203484564f3de18d46abdd87d2ecd756745f9f530965db306f8e37185d3d0b31959082bbe01fee5545b36b0716bd
+DIST http-5.3.0.gem 92672 BLAKE2B
23556006e7a178905a4f19e776655a7536067eb9b941e3e38245fe54b5bbdf2cf65bc00edba94ee90f7a68e53c2d2906330a4b3ac714c6370f79a8e89b647ca0
SHA512
7f197299925b1ea7673c5b11701e3c1fad0f115015ca1fe2dbe805bfec85aa506f0f175010c0a827434a26bb3e67f171f7a2fe5a37df6a1beff2005730f8c689
diff --git a/dev-ruby/http/http-5.3.0.ebuild b/dev-ruby/http/http-5.3.0.ebuild
new file mode 100644
index 000000000000..35ce8363b9fb
--- /dev/null
+++ b/dev-ruby/http/http-5.3.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby32 ruby33"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md CHANGES_OLD.md README.md"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+inherit ruby-fakegem
+
+DESCRIPTION="An easy-to-use client library for making requests from Ruby"
+HOMEPAGE="https://github.com/httprb/http"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="test"
+
+ruby_add_rdepend "=dev-ruby/addressable-2*
+ >=dev-ruby/addressable-2.8
+ =dev-ruby/http-cookie-1*
+ >=dev-ruby/http-form_data-2.2:2
+ >=dev-ruby/llhttp-ffi-0.5.0:0/0.5"
+
+ruby_add_bdepend "
+ test? (
+ =dev-ruby/certificate_authority-1*
+ dev-ruby/rspec-its
+ dev-ruby/webrick
+ )"
+
+all_ruby_prepare() {
+ sed -e 's/git ls-files --/echo/' \
+ -e 's/git ls-files/find/' \
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # Avoid specs that require network access
+ sed -i -e '/.persistent/,/^ end/ s:^:#:' \
+ spec/lib/http_spec.rb || die
+ sed -i -e '/with non-ASCII URLs/,/^ end/ s:^:#:' \
+ spec/lib/http/client_spec.rb || die
+
+ # Avoid spec that may fail with a running web server
+ sed -i -e '/unifies socket errors into HTTP::ConnectionError/,/^ end/
s:^:#:' spec/lib/http_spec.rb || die
+
+ # Fix spec for production release
+ sed -i -e '/User-Agent:/ s/.dev//'
spec/lib/http/features/logging_spec.rb || die
+
+ # Avoid specs also failing upstream due to some certificate issue
+ sed -i -e '/context "ssl"/,/^ end/ s:^:#:' spec/lib/http_spec.rb
|| die
+ sed -i -e '/describe "working with SSL"/,/^ end/ s:^:#:'
spec/lib/http/client_spec.rb || die
+
+ # Disable coverage
+ sed -i -e 's/require_relative ".\/support\/simplecov"//g'
"spec/spec_helper.rb" || die
+}
+
+each_ruby_test() {
+ # disables dev-ruby/fuubar dep
+ CI=1 each_fakegem_test
+}