summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-12-14 08:46:10 +0100
committerHans de Graaff <graaff@gentoo.org>2024-12-14 08:47:07 +0100
commitbe9654589a936524a20c8f581c783779ce36cb21 (patch)
treea9fea9bf59b67ac0188b070ca6e033456923cf81 /dev-ruby
parentdev-ruby/logger: add 1.6.3 (diff)
downloadgentoo-be9654589a936524a20c8f581c783779ce36cb21.tar.gz
gentoo-be9654589a936524a20c8f581c783779ce36cb21.tar.bz2
gentoo-be9654589a936524a20c8f581c783779ce36cb21.zip
dev-ruby/mocha: add 2.7.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/mocha/Manifest1
-rw-r--r--dev-ruby/mocha/mocha-2.7.1.ebuild35
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/mocha/Manifest b/dev-ruby/mocha/Manifest
index 3aea672cb157..c759439bd1c1 100644
--- a/dev-ruby/mocha/Manifest
+++ b/dev-ruby/mocha/Manifest
@@ -6,3 +6,4 @@ DIST mocha-2.4.5.tar.gz 248872 BLAKE2B 739dfe4945d153117e5c644b6f0ed568c08e88e27
DIST mocha-2.5.0.tar.gz 250685 BLAKE2B 4ad2b4b0ba7c1d77b6d15de456e4998fe0c02b9004a02a070c1b7e852f25b028ca1837bba59c086d259aeb0c687ef45dbf435133e47fea612778ab4317b60ab6 SHA512 4ca3be919cf143f661e135f9b477d305688a69f3ea8587028eff20ab93a05b8259632edcc7704773aff88e85237ae95c42f08d48700bcd102696a28ceb11973a
DIST mocha-2.6.1.tar.gz 251543 BLAKE2B db9ed8d31b72c229dd56c0417fa32312fb9142b443743be896a7f02e38b46e1f7a36a5be377122c007cc9eb0c735d019fefa1958aa46c22c5d11af61a70cfc00 SHA512 25fb178d6f63b1357017b7b007c35e0cb94fd854ceaeaf74686e5a104006aa9033fc554d69e3b59e0a03cecde8d6aa06b24ac2055e2cd4467ea340ec1710c955
DIST mocha-2.7.0.tar.gz 252168 BLAKE2B 355f8998815eb2c9206f25e5201c577e725a57f58fb3627292517b2cc579806f2865da8c05647a57f522dbb475e330cbdf7fc94b2850122ff2232ddbda0654bb SHA512 9ba9d7f4f14f17435b32527233a3664d07e505827c1a8f932314232e807992364f5f74fc1b5e8a14dd1b06daac962c147cb801d52a333e4f8ca51dff9267b144
+DIST mocha-2.7.1.tar.gz 253415 BLAKE2B 857c188e4eda776ab00f28b79c8adcf1a92621c37ea930623a12a34cb3ee76781eb9293c9dd1091290ae3c1457da2a26255e3f3421b3b392483e5fc945dd1ae7 SHA512 951fc766e49f6bd76846e18929d9463da7575aeb4169e623dd954760eff6f8f883d696db4379ce93215a966abfd15ed734ad812c7cdc6c461690fe948141c215
diff --git a/dev-ruby/mocha/mocha-2.7.1.ebuild b/dev-ruby/mocha/mocha-2.7.1.ebuild
new file mode 100644
index 000000000000..06d86dc2ac9b
--- /dev/null
+++ b/dev-ruby/mocha/mocha-2.7.1.ebuild
@@ -0,0 +1,35 @@
+# 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_TASK_TEST="test:units test:acceptance"
+RUBY_FAKEGEM_EXTRADOC="README.md RELEASE.md"
+RUBY_FAKEGEM_GEMSPEC="mocha.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Mocking and stubbing using a syntax like that of JMock and SchMock"
+HOMEPAGE="https://mocha.jamesmead.org/"
+SRC_URI="https://github.com/freerange/mocha/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+ruby_add_rdepend ">=dev-ruby/ruby2_keywords-0.0.5"
+
+ruby_add_bdepend "
+ test? ( >=dev-ruby/test-unit-2.5.1-r1 dev-ruby/introspection )"
+
+all_ruby_prepare() {
+ sed -i -e '/[Bb]undler/ s:^:#:' -e '1iload "lib/mocha/version.rb"' Rakefile || die
+
+ sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_test() {
+ export MOCHA_NO_DOCS=true
+ each_fakegem_test
+}