mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
dev-ruby/rspec-mocks: add 3.13.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST rspec-mocks-3.13.2-git.tgz 209159 BLAKE2B de4c16b11e1ae970ae39d5797ded171b72b95b5c2258b284283e499391332c4afe688aa52703a87daa38f31c3da266e676041a0d50e417b379f9e94a66d530dc SHA512 cb9b72cf1c85adddec59a19a683beb582f527ca3ca766f73f086c30e485e9267d8574344286f858d4c519df66cfcf225aa2f6f194c046781b8dec80aa240697f
|
||||
DIST rspec-mocks-3.13.3-git.tgz 917496 BLAKE2B 12eac6d5f3c495d84a36068eb7380921aae860e4e3e234aea273d558dd211713e542f355fd19ad0fd91932de95ed562a71472280b78282e55d89f7cfe8753933 SHA512 2bbf4d6c0cfa31a4b3c5bfe8050da7b0458367ef581a6fef179234130106fbe34163966955f8ab45f5e3e77c5d63b6a240edeb5454199ea3f312ba4e04ee21ef
|
||||
|
||||
67
dev-ruby/rspec-mocks/rspec-mocks-3.13.3.ebuild
Normal file
67
dev-ruby/rspec-mocks/rspec-mocks-3.13.3.ebuild
Normal file
@@ -0,0 +1,67 @@
|
||||
# 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_RECIPE_TEST="rspec3"
|
||||
|
||||
#RUBY_FAKEGEM_RECIPE_DOC="none"
|
||||
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="rspec-mocks.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
|
||||
HOMEPAGE="https://github.com/rspec/rspec-mocks"
|
||||
SRC_URI="https://github.com/rspec/rspec/archive/refs/tags/${PN}-v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
RUBY_S="rspec-${PN}-v${PV}/${PN}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(ver_cut 1)"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
IUSE="test"
|
||||
|
||||
SUBVERSION="$(ver_cut 1-2)"
|
||||
|
||||
ruby_add_rdepend "=dev-ruby/rspec-support-${SUBVERSION}*
|
||||
>=dev-ruby/diff-lcs-1.2.0 =dev-ruby/diff-lcs-1*"
|
||||
|
||||
ruby_add_bdepend "
|
||||
test? (
|
||||
>=dev-ruby/rspec-core-3.12.0:3
|
||||
>=dev-ruby/rspec-expectations-2.99.0:3
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Don't set up bundler: it doesn't understand our setup.
|
||||
sed -i -e '/[Bb]undler/d' Rakefile || die
|
||||
|
||||
# And consequently avoid specs using bundler. This also avoids a
|
||||
# circular dependency on aruba.
|
||||
rm -f spec/integration/rails_support_spec.rb spec/support/aruba.rb || die
|
||||
|
||||
# Remove .rspec options to avoid dependency on newer rspec when
|
||||
# bootstrapping.
|
||||
rm .rspec || die
|
||||
|
||||
sed -i -e '1irequire "spec_helper"' spec/rspec/mocks/any_instance_spec.rb || die
|
||||
|
||||
sed -i -e 's/git ls-files --/find */' ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
|
||||
# Avoid spec failing with newer dev-ruby/diff-lcs. Already fixed upstream.
|
||||
rm -f spec/rspec/mocks/diffing_spec.rb || die
|
||||
}
|
||||
|
||||
each_ruby_prepare() {
|
||||
case ${RUBY} in
|
||||
*ruby34)
|
||||
Avoid specs failing with ruby34. Should be fixed upstream.
|
||||
rm -f spec/rspec/mocks/argument_matchers_spec.rb \
|
||||
spec/rspec/mocks/double_spec.rb \
|
||||
spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb \
|
||||
spec/rspec/mocks/matchers/receive_spec.rb || die
|
||||
;;
|
||||
esac
|
||||
}
|
||||
Reference in New Issue
Block a user