summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-10-13 08:18:32 +0200
committerHans de Graaff <graaff@gentoo.org>2024-10-13 08:25:29 +0200
commit16a785be7eaa4c83b1263424d1d84bd481be065f (patch)
tree084ccf462f25f963a83f23020af70d9e61ce89aa /dev-ruby/zeitwerk
parentdev-python/yarl: Bump to 1.15.1 (diff)
downloadgentoo-16a785be7eaa4c83b1263424d1d84bd481be065f.tar.gz
gentoo-16a785be7eaa4c83b1263424d1d84bd481be065f.tar.bz2
gentoo-16a785be7eaa4c83b1263424d1d84bd481be065f.zip
dev-ruby/zeitwerk: add 2.7.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/zeitwerk')
-rw-r--r--dev-ruby/zeitwerk/Manifest1
-rw-r--r--dev-ruby/zeitwerk/zeitwerk-2.7.0.ebuild37
2 files changed, 38 insertions, 0 deletions
diff --git a/dev-ruby/zeitwerk/Manifest b/dev-ruby/zeitwerk/Manifest
index d6a2277a5252..d78fc838253b 100644
--- a/dev-ruby/zeitwerk/Manifest
+++ b/dev-ruby/zeitwerk/Manifest
@@ -3,3 +3,4 @@ DIST zeitwerk-2.6.16.tar.gz 130657 BLAKE2B a51226a252d13b12f7ec91d0edfaeb814c8de
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
+DIST zeitwerk-2.7.0.tar.gz 129163 BLAKE2B 3c90a6d20f645f662f17bcfad39fe2cf5377c0308b9f5bcc02ae5ce3d7a24e99ae156002fb10aab79c0779efeb32d9966cd2bd3c0da51505f71c1912a570ec8c SHA512 a3699493a1a07b973a9c5e2fc2d894643d3b36a678cb63a0a9a60a069f2e108e8929ffbcc2f4285c13a189ac4732bc17245c0ace3078b12a744edf3036f6bd11
diff --git a/dev-ruby/zeitwerk/zeitwerk-2.7.0.ebuild b/dev-ruby/zeitwerk/zeitwerk-2.7.0.ebuild
new file mode 100644
index 000000000000..f9289076541f
--- /dev/null
+++ b/dev-ruby/zeitwerk/zeitwerk-2.7.0.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="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
+}