mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-ruby/flexmock: add 3.0.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST flexmock-2.4.2.tar.gz 92884 BLAKE2B 0fc233e5a5e6b062977980c2bed401788e3b8da749062434ea23aeade58c589fad18ac136f173cf0dcfb5968105b5954986b0343e8a6a535859b07721a6fac89 SHA512 5a589bfabeab97101d971be64f275a990e0c1188d0075547a62a6a4a828ad447117cfd86d9f352d95d16d8136c7839d8095e4698c861b6fc5ddd473fb7d69cc9
|
||||
DIST flexmock-3.0.2.tar.gz 94180 BLAKE2B 168d9685b098d0a86048947006ce5d38e878a45379d58d1b65a26799fe718e05b7f8923ef2f00d120125bd760754526a3c71cbb92df0b9e0e9e57734da8dfa7e SHA512 9855d51381be3eaed2746391879c463720e4b57fd5de6e4a8f8c380126c0e51fd89e10aa4de60e08e73c1fd928574bcf0b3f6e0ec1f70015c228062c4858a280
|
||||
|
||||
43
dev-ruby/flexmock/flexmock-3.0.2.ebuild
Normal file
43
dev-ruby/flexmock/flexmock-3.0.2.ebuild
Normal file
@@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
USE_RUBY="ruby32 ruby33 ruby34"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGES README.md doc/*.rdoc doc/releases/*"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="none"
|
||||
RUBY_FAKEGEM_RECIPE_DOC="none"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="flexmock.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Simple mock object library for Ruby unit testing"
|
||||
HOMEPAGE="https://github.com/doudou/flexmock"
|
||||
SRC_URI="https://github.com/doudou/flexmock/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="flexmock"
|
||||
SLOT="$(ver_cut 1)"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
IUSE="test"
|
||||
|
||||
ruby_add_bdepend "
|
||||
test? (
|
||||
dev-ruby/minitest:5
|
||||
)"
|
||||
|
||||
each_ruby_test() {
|
||||
MT_NO_PLUGINS=1 ${RUBY} -Ilib:.:test -e 'Dir["test/*_test.rb"].each{|f| require f}' || die
|
||||
}
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e '1igem "minitest", "~>5.0"' test/test_helper.rb || die
|
||||
|
||||
sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
|
||||
# Account for different exception output in Ruby 3.4
|
||||
sed -e '/assert_match/ s/`does_not_exist/.does_not_exist/' \
|
||||
-i test/partial_mock_test.rb || die
|
||||
}
|
||||
Reference in New Issue
Block a user