summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-09-03 07:20:20 +0200
committerHans de Graaff <graaff@gentoo.org>2024-09-03 07:25:07 +0200
commit62799fb75a021f6f12c47e5c16a65384b7a5341e (patch)
treeb2dced25c9640ccacb039a6c73d6af67d1f9e2ae /dev-ruby
parentdev-ruby/logger: add 1.6.1 (diff)
downloadgentoo-62799fb75a021f6f12c47e5c16a65384b7a5341e.tar.gz
gentoo-62799fb75a021f6f12c47e5c16a65384b7a5341e.tar.bz2
gentoo-62799fb75a021f6f12c47e5c16a65384b7a5341e.zip
dev-ruby/zeitwerk: add 2.6.18
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/zeitwerk/Manifest1
-rw-r--r--dev-ruby/zeitwerk/zeitwerk-2.6.18.ebuild37
2 files changed, 38 insertions, 0 deletions
diff --git a/dev-ruby/zeitwerk/Manifest b/dev-ruby/zeitwerk/Manifest
index 5717f2cc8212..d6a2277a5252 100644
--- a/dev-ruby/zeitwerk/Manifest
+++ b/dev-ruby/zeitwerk/Manifest
@@ -1,4 +1,5 @@
DIST zeitwerk-2.6.15.tar.gz 129919 BLAKE2B 2a49464a99c97ac1f927d462d87d531e61667e029d4735eb6ac6e8a4c30ab8f542affa4125a0aa768bdedd3c7b5cb75c57a5e1b1cbb0da8f5c5d898f482b240c SHA512 c83bfe793fa4853df461160376fe41359f96bca41d943f77714d69368004373dce007c8aa2f3bb1f796f4036e6a0bc51c670b6b85c137dd0c01919314f56d6ca
DIST zeitwerk-2.6.16.tar.gz 130657 BLAKE2B a51226a252d13b12f7ec91d0edfaeb814c8de574ab923b98f78058ed1e9c11758abebfbc1896c7cf792b0094dafa49a066de5ba3cd8faa480a83fd68da29f30c SHA512 420b053d3ab09443e67e1b386b61d9fbbd1362740fbe155d817f998d8197fec7fa9e5206eecb47a81a9ebeebd65830023b0f86fa05f19db22761c9d931ff83fd
DIST zeitwerk-2.6.17.tar.gz 130738 BLAKE2B cdd81b295108102f83364e1f1c30b58ae56227fd3bcce9c5580ed678009654ce406f02435df254dd20074a9425f7c85ebca4b86f0b6cc9ee673fb9cd3912bad8 SHA512 7bb4e40023e2e7a9283dffd0fb3a0d1792cf2efbc03f8a8a4c2536d4041101f4c1aea12ada76ae0f3c919a81d08b4f1f5bd49390d25f4695b3d17d8a7b2d217b
+DIST zeitwerk-2.6.18.tar.gz 130995 BLAKE2B 05dc3f5deb1c7e3d9967a473a9672b943605ae66e93e2b2201f4d51dac6fc168c5966785f9b911b76afe5523c0d48f203e10d157e7250ec8a3a1d6e59683de56 SHA512 4d2f8338d2ed2a91178345fb1d4b7b1a9f5317d6b1ca538bf6824cbb76951d20f3e44df5e5ad9274900787662f3efce657f15f617e1639f06b3430344d927281
DIST zeitwerk-2.6.8.tar.gz 124209 BLAKE2B 7274b0e9cd55d48fa619d1e9da44074268186c119584fdc3ba18656db33884ec2e24a76ace863d18b0ec51601cde5a3cb9ed35889dcfd3f619960ddfcb1465c6 SHA512 b0609f7d38572d95bdf1a065a9051a7c39b15a7910e354981c991862692e2535477b4abd0a3c623a5d37e53622d95566ecf0d0243ca96fef59f0135693731a71
diff --git a/dev-ruby/zeitwerk/zeitwerk-2.6.18.ebuild b/dev-ruby/zeitwerk/zeitwerk-2.6.18.ebuild
new file mode 100644
index 000000000000..eb0be93eb354
--- /dev/null
+++ b/dev-ruby/zeitwerk/zeitwerk-2.6.18.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32 ruby33"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+inherit ruby-fakegem
+
+DESCRIPTION="Efficient and thread-safe code loader for Ruby"
+HOMEPAGE="https://github.com/fxn/zeitwerk"
+SRC_URI="https://github.com/fxn/zeitwerk/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="2"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="test"
+
+ruby_add_bdepend "test? ( dev-ruby/bundler dev-ruby/warning )"
+
+all_ruby_prepare() {
+ rm -f Gemfile.lock || die
+ # Dropping proveit should be fine based on https://github.com/fxn/zeitwerk/pull/253
+ # It's more of a quality check for the tests themselves rather than a test
+ sed -i -e '/\(focus\|reporters\|Reporters\|prove_\?it\)/ s:^:#:' Gemfile test/test_helper.rb || die
+
+ sed -i -e 's:require_relative "lib:require "./lib:' ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_test() {
+ ${RUBY} -S bundle exec rake test || die
+}