commit: 5e1872b812f4249dc2894982fbb6556248ea7add Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Tue Sep 26 04:13:32 2023 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Tue Sep 26 04:13:32 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e1872b8
dev-ruby/zeitwerk: add 2.6.12 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/zeitwerk/Manifest | 1 + dev-ruby/zeitwerk/zeitwerk-2.6.12.ebuild | 37 ++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/dev-ruby/zeitwerk/Manifest b/dev-ruby/zeitwerk/Manifest index 74043660ad3a..a8035ed770a9 100644 --- a/dev-ruby/zeitwerk/Manifest +++ b/dev-ruby/zeitwerk/Manifest @@ -1,3 +1,4 @@ DIST zeitwerk-2.6.11.tar.gz 127029 BLAKE2B 7d810c1b6087522757e60ed0d70fe73dc8633474769992a9b9864a4437a44b482e804f8a7d10c1bc54395054539e80e98be926f31025a7abde5016df87636622 SHA512 6fb2fcf158497f7c11b8edc815a4ac4318d9794c9c76af9a6bed969cee3192f552624c9dfcde8147aafbdf6a754e6715523721d91eb219174f9b768ef4688431 +DIST zeitwerk-2.6.12.tar.gz 127162 BLAKE2B 863e9ff44c14843378e49b34c1ce7694d8d5026f823df5abf69c810f01e3affe9a96de5b615b2d04ab5d71f61e24d42df5b72ef4a415f238428efb4914ac695d SHA512 9d153ed6833a799b0cc2fcbeacab9daca4ef94c2b3871ec5a5cc79cb413f845d53901a875d7b4f2d2b13bd18e2aa9f0858642b76ef3550a1b58f90a9f5d54e9e DIST zeitwerk-2.6.7.tar.gz 122658 BLAKE2B 7435f8fb117be8186d56262c0aa8832132105d065cfdd470ed293e9530aa282edd824593f28199b908476a47f90507158beb216b803d39fdaa956d32ffa072ea SHA512 666f527771bc10d34b05a8f27996a9a7adf89466c54fd30a174a1e2e6df2500a2a658e08505964644d25ebd11ed13bf3f741724bfc9fd2a189c3e7b3ce24ffc0 DIST zeitwerk-2.6.8.tar.gz 124209 BLAKE2B 7274b0e9cd55d48fa619d1e9da44074268186c119584fdc3ba18656db33884ec2e24a76ace863d18b0ec51601cde5a3cb9ed35889dcfd3f619960ddfcb1465c6 SHA512 b0609f7d38572d95bdf1a065a9051a7c39b15a7910e354981c991862692e2535477b4abd0a3c623a5d37e53622d95566ecf0d0243ca96fef59f0135693731a71 diff --git a/dev-ruby/zeitwerk/zeitwerk-2.6.12.ebuild b/dev-ruby/zeitwerk/zeitwerk-2.6.12.ebuild new file mode 100644 index 000000000000..ceb5b959ebb4 --- /dev/null +++ b/dev-ruby/zeitwerk/zeitwerk-2.6.12.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32" + +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 ~riscv ~sparc ~x86" +IUSE="" + +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 +}