commit: da12593440e76cfd77dfd16685623e9da54e9568 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Mon Jan 12 06:51:15 2026 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Mon Jan 12 06:51:15 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da125934
dev-ruby/localhost: add 1.7.0 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/localhost/Manifest | 1 + dev-ruby/localhost/localhost-1.7.0.ebuild | 44 +++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/dev-ruby/localhost/Manifest b/dev-ruby/localhost/Manifest index c962fd9b7e6d..d23adaf0c62c 100644 --- a/dev-ruby/localhost/Manifest +++ b/dev-ruby/localhost/Manifest @@ -1,3 +1,4 @@ DIST localhost-1.3.1.tar.gz 2127046 BLAKE2B 16ae987c53dba2a70ec324c7f79403d40e2b4345f92906c37b7f87814bdf8635f746823924b6c62cbeadee0565b1accd8fc340816ea5743c5e89cad4b952a755 SHA512 0120d58b80b0dd88f10ffcefaf67424950e77782ffc67f58144a18cb1d4fff29c4bd128fbff33e420b850a5a97c8670c945039950c59b1f448cb47bb588f5d3e DIST localhost-1.5.0.tar.gz 13437 BLAKE2B 9c6c8cb668af49f1b8250b4f1d977854ecc8bf7fa931b5d41db0712d2811900d7e7380d2c1235eb6800d2ae57a4eeadf56b76a5805cdb2c9bdd5ecf2e53076e4 SHA512 f95a0f53d8c88d61ff28591aae53faac631989b422102dd02f25707532fa38c297700bce020897442a12352af4da1e84bae0be9f1fedbab7c409188fc0b31377 DIST localhost-1.6.0.tar.gz 14009 BLAKE2B 1736b74f4af04e8102c1aa990a6ece8ed8d6f8656126b134dfba6039a25df11941004703578adc22145d77dafaba57caedb104b4d2de13ed6072edb6a4721ab2 SHA512 96b1006b636c7a2da02d815e42efe23dd6790ae9b8f552b50a7710047b4f1a05c2aae4533a089163a27374902ecfdb3a76eee062e047054a8d733688a779ecce +DIST localhost-1.7.0.tar.gz 14685 BLAKE2B 6a4651fe16f89f36581d64eb3137244c6425c6cbc84c9c6675440ffac0493a90665db1b24f4290cfef661da0feaf3d52aa8a8b83f626a1fc14b4375ed8657a81 SHA512 4ce454ad33e2a32d1c42c230e20dd1921d3f9eb7d255a8d23a555f7d555c6feb7ed5e635e8359cd90a761e36c4841655e7735c58c0cdd55d510be87d98866887 diff --git a/dev-ruby/localhost/localhost-1.7.0.ebuild b/dev-ruby/localhost/localhost-1.7.0.ebuild new file mode 100644 index 000000000000..8aa58591cd7d --- /dev/null +++ b/dev-ruby/localhost/localhost-1.7.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2026 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 releases.md" +RUBY_FAKEGEM_GEMSPEC="localhost.gemspec" +RUBY_FAKEGEM_RECIPE_TEST="sus" + +inherit ruby-fakegem + +DESCRIPTION="Manage a local CA for self-signed localhost development servers" +HOMEPAGE="https://github.com/socketry/localhost" +SRC_URI="https://github.com/socketry/localhost/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" + +ruby_add_bdepend " + test? ( + dev-ruby/io-endpoint + dev-ruby/sus-fixtures-async + ) +" + +all_ruby_prepare() { + sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die + sed -i -e '/covered/Id' config/sus.rb || die + + sed -e "s:/tmp/state:${TMP}/state:" \ + -i test/localhost/state.rb || die + + # Avoid unpackaged sus-fixtures-async-http which has a huge dependency tree. + rm -f test/localhost/protocol.rb || die +} + +each_ruby_test() { + # Tests fail in parallel as it tries to use the same port so + # manually replicate ruby-ng_sus for now, as ruby-ng_sus runs sus-parallel. + ${RUBY} -S sus || die +}
