diff options
author | Hans de Graaff <graaff@gentoo.org> | 2024-07-23 07:22:50 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2024-07-23 07:29:02 +0200 |
commit | deb295c70edf0a2e6aa8cce729bc7c828e098fce (patch) | |
tree | 9a181fc5b538f50e2b43990f6643100e80c5aa22 /dev-ruby/mocha | |
parent | app-editors/helix: handle QA_FLAGS_IGNORED on 24.07 (diff) | |
download | gentoo-deb295c70edf0a2e6aa8cce729bc7c828e098fce.tar.gz gentoo-deb295c70edf0a2e6aa8cce729bc7c828e098fce.tar.bz2 gentoo-deb295c70edf0a2e6aa8cce729bc7c828e098fce.zip |
dev-ruby/mocha: add 2.4.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/mocha')
-rw-r--r-- | dev-ruby/mocha/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/mocha/mocha-2.4.3.ebuild | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/mocha/Manifest b/dev-ruby/mocha/Manifest index baf1f0221708..9b74b089986d 100644 --- a/dev-ruby/mocha/Manifest +++ b/dev-ruby/mocha/Manifest @@ -7,3 +7,4 @@ DIST mocha-2.3.0.tar.gz 247213 BLAKE2B faf2e9dc189b4db0e33f1ae7c780f998e9f2c4f1e DIST mocha-2.4.0.tar.gz 247401 BLAKE2B 978abe65a059c01f8e41a3d44238f615d68c88dc9b63812503708082803d46c5469b7177ce1f1e87f4071dc1ea93b95c8d965f4c3c359eb221e989c15ca31a49 SHA512 b48915db151bfb66107e855df4172ef63266c9cf08109e4800970df92259b454ce41f1e79eeeb088a4eedccc0d3c8ae9ec2761f6ded92aa04dd61736b85e69e0 DIST mocha-2.4.1.tar.gz 247677 BLAKE2B 171b5b266c8b690a630f9367cfe77006de4f597d4b1e4aabc035090e9930659eec2dcce04742b42bf1dc00b5441bfe97041ad8b94aaa36ae1a6ba29ca32cd787 SHA512 1036cfc5ea4ce975cf59da1029fc1c3ef4c6fee8b2868ad19b354fc0fdbe058ab2782082ffd2fbe099cd177d654697dc919a361a446939eb9ef587c71fd17700 DIST mocha-2.4.2.tar.gz 247840 BLAKE2B a1ce04b304bde7c2d4698f76149d98f9140a57b04f8b55fdd80af42eff5d207c08b0b9b755440d0243c291a34dfc3bcfdaa24e98b7f01d0aa6b859d85b56c93f SHA512 7ce00c2f6e8fdc0d477fb64e12b475a6c4b929906cdadf6a207ff77c763e7109742b520879d8bf72c0075df863d8e937fdf76df724088279ebdcf599ee161b0a +DIST mocha-2.4.3.tar.gz 248219 BLAKE2B 07c5d5c805f36fe5572f0590b7175a6f638a9c49ba330bf5280e61a2a0e0ea26e23ead6499b7819aae8787d071d201321cb13f5a6129ea710ef78aac8f79b14f SHA512 e0314d4b8752f8575e8c784fab702514036fe1ae93d893ea710827abba49939afe37c2dbb6d1e920b47168b4246a84ad5fb702b618bb516f1fc166203656327c diff --git a/dev-ruby/mocha/mocha-2.4.3.ebuild b/dev-ruby/mocha/mocha-2.4.3.ebuild new file mode 100644 index 000000000000..06d86dc2ac9b --- /dev/null +++ b/dev-ruby/mocha/mocha-2.4.3.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 +} |