diff options
Diffstat (limited to 'dev-ruby/http')
| -rw-r--r-- | dev-ruby/http/Manifest | 2 | ||||
| -rw-r--r-- | dev-ruby/http/http-5.3.0.ebuild | 62 | ||||
| -rw-r--r-- | dev-ruby/http/http-5.3.1.ebuild | 62 | ||||
| -rw-r--r-- | dev-ruby/http/metadata.xml | 9 |
4 files changed, 135 insertions, 0 deletions
diff --git a/dev-ruby/http/Manifest b/dev-ruby/http/Manifest new file mode 100644 index 000000000000..e5d836ea8b12 --- /dev/null +++ b/dev-ruby/http/Manifest @@ -0,0 +1,2 @@ +DIST http-5.3.0.gem 92672 BLAKE2B 23556006e7a178905a4f19e776655a7536067eb9b941e3e38245fe54b5bbdf2cf65bc00edba94ee90f7a68e53c2d2906330a4b3ac714c6370f79a8e89b647ca0 SHA512 7f197299925b1ea7673c5b11701e3c1fad0f115015ca1fe2dbe805bfec85aa506f0f175010c0a827434a26bb3e67f171f7a2fe5a37df6a1beff2005730f8c689 +DIST http-5.3.1.gem 92672 BLAKE2B 8e5e84d608fc52064f3d17e38456ae09da2471b37a52c2b01b665c3ca4a6d29530d73fb6d3d35f58ad9b201522df22b9dacf87f13ec61ada9dd601e4bdfda7d2 SHA512 57902d997cfa51b8cb091ce0651d12a9bffb05992b6582c7fc0260a5208539faebedbcc1e837a2ff502336a8930abf4a1b8d531bac3f5643986850735efaa658 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 +} diff --git a/dev-ruby/http/http-5.3.1.ebuild b/dev-ruby/http/http-5.3.1.ebuild new file mode 100644 index 000000000000..35ce8363b9fb --- /dev/null +++ b/dev-ruby/http/http-5.3.1.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 +} diff --git a/dev-ruby/http/metadata.xml b/dev-ruby/http/metadata.xml new file mode 100644 index 000000000000..c685ebad7e3a --- /dev/null +++ b/dev-ruby/http/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
