summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-02-18 07:46:20 +0100
committerHans de Graaff <graaff@gentoo.org>2023-02-18 08:29:47 +0100
commitba1d030f52ef57639a695227d766c239a3bc9e05 (patch)
treeb392885f0fb588b22c0db3ef9138a182e928e658 /dev-ruby
parentdev-ruby/database_cleaner-active_record: update upstream metadata (diff)
downloadgentoo-ba1d030f52ef57639a695227d766c239a3bc9e05.tar.gz
gentoo-ba1d030f52ef57639a695227d766c239a3bc9e05.tar.bz2
gentoo-ba1d030f52ef57639a695227d766c239a3bc9e05.zip
dev-ruby/maxitest: add 4.4.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/maxitest/Manifest1
-rw-r--r--dev-ruby/maxitest/maxitest-4.4.1.ebuild51
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-ruby/maxitest/Manifest b/dev-ruby/maxitest/Manifest
index e35382ac970e..f31b1a7cfb42 100644
--- a/dev-ruby/maxitest/Manifest
+++ b/dev-ruby/maxitest/Manifest
@@ -1,3 +1,4 @@
DIST maxitest-3.7.0.tar.gz 62716 BLAKE2B 9919702c3b6c701edf6a5de8c1054547edaeeda518a7b7bae3f419cba9f92f535ec7870ece080fb472d7635243afec4aeed4a27fd839874aa40d63d6ce4ecab8 SHA512 4843f9d405a40177622e9892d1e5fffe297ae03cfef68b73ce3ee966cc3a36e126a9f5a5018b898465f5ad40f8d4fc1e6bf53f5c76b376efeff669b57dd1e8aa
DIST maxitest-4.3.0.tar.gz 62596 BLAKE2B ddfa98aa4b4e1e0c85100ed6b703e8b76f5a251913e34de03f8cacdc0eb3a60014945786c1f60d81163d8c690f1cf37689fdc05b15a53b63b08247842f736176 SHA512 b81cc37bbd1ed5c149c4d541591fcec46e1e1fc74fc20205cf33745de4fad7fc302e8120b79d17e39412d7133b8d57fee064e1a36380efbde9bdd22f7bbc05b7
DIST maxitest-4.4.0.tar.gz 62749 BLAKE2B 0545da95ff3bf6c61a330f041b7944f7ef7dfdb00267d28273b8a0bf8914647a0c34e32a826acc89fe2f2d9a1ac2cc610ca968cef273a6a6e7d64db68c6583cf SHA512 37b6a8c9a992fd54c605c0b26a490ddfd8b06e00e9686a41e6170d81c047b6b255ad337f315d8c5d4176e8acba19e2a51061a402bba7dd3d528e14d20e2d24c4
+DIST maxitest-4.4.1.tar.gz 62757 BLAKE2B 0023472200643dcc17aa7fc3720ebdaccb988628eedd55d69c47a0702b4700760dcc9178f1d63a29d8b0a461ceb7195f9d13579cf0393a3ca669515bcf77239a SHA512 927c5619541f13b2af064f1adb01670ec43570252a62d32b98674b7d4dd72ebc02594c000f6dfae7b9de275086df23e418f13c4c21595d47f429b86d0941dbc2
diff --git a/dev-ruby/maxitest/maxitest-4.4.1.ebuild b/dev-ruby/maxitest/maxitest-4.4.1.ebuild
new file mode 100644
index 000000000000..b0ac344fdff3
--- /dev/null
+++ b/dev-ruby/maxitest/maxitest-4.4.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby27 ruby30 ruby31"
+
+RUBY_FAKEGEM_EXTRADOC="Readme.md"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Minitest + all the features you always wanted"
+HOMEPAGE="https://github.com/grosser/maxitest"
+SRC_URI="https://github.com/grosser/maxitest/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="1"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+ruby_add_rdepend "<dev-ruby/minitest-5.18:5"
+
+ruby_add_bdepend "test? ( dev-ruby/bundler )"
+
+all_ruby_prepare() {
+ rm -f Gemfile.lock || die
+ # Remove developer-only gems from the gemspec and avoid git issues
+ sed -i -e '/wwtd/ s:^:#:' \
+ -e 's/git ls-files/find */' \
+ ${RUBY_FAKEGEM_GEMSPEC} || die
+ sed -i -e '/\(byebug\|bump\)/ s:^:#:' Gemfile || die
+
+ sed -e '/shows short backtraces/askip "fails on ruby27"' \
+ -e '/fails when not used/askip "fails with newer maxitest by design"' \
+ -e '/shows version/askip "fails due to missing require for version"' \
+ -i spec/maxitest_spec.rb || die
+}
+
+each_ruby_prepare() {
+ # Use the correct target
+ sed -i -e '/sh/ s:ruby:'${RUBY}':' \
+ -e '/sh/ s:mtest:'${RUBY}' -S mtest:' \
+ spec/maxitest_spec.rb || die
+}
+
+each_ruby_test() {
+ PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" RSPEC_VERSION=3 ruby-ng_rspec spec
+}