dev-ruby/rspec-mocks: add 3.13.5

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2025-05-28 08:35:20 +02:00
parent a01b71c2e9
commit 5cc2738ad5
2 changed files with 53 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST rspec-mocks-3.13.2-git.tgz 209159 BLAKE2B de4c16b11e1ae970ae39d5797ded171b72b95b5c2258b284283e499391332c4afe688aa52703a87daa38f31c3da266e676041a0d50e417b379f9e94a66d530dc SHA512 cb9b72cf1c85adddec59a19a683beb582f527ca3ca766f73f086c30e485e9267d8574344286f858d4c519df66cfcf225aa2f6f194c046781b8dec80aa240697f
DIST rspec-mocks-3.13.4-git.tgz 917740 BLAKE2B a153cd8338dedea9a0559ba878d493a348fe078e4b95c442f69b6d1fd94d6fc67337c3304a30e1ee7e818182e0a5f6422819ab6fda20a134ad1a219e62654dc8 SHA512 93b41b418c09824b64efe50401eced57e508d2e3bb7fd7cdfe03c827f2763520f6707e3f7bc64b1fc4f5257f80b7412fd9f0d18a5622036ee3f9073def66bb65
DIST rspec-mocks-3.13.5-git.tgz 918208 BLAKE2B 0f0f103ba0b7d0ee68e4d6961cbd2d3ae943878844ad0e686cb01db0770cd4610a9db125b98472d5906cf3f3341d3b0788b79e0353e689c094b0e051a7e51966 SHA512 66c0cb52a33e789aed3cab91d39367bbd4950f4b68057cfd331a986a0a0074142853a3cd85fdb528fdcf95ef86c9faf205c121bea6ef192dc15f5f5b613a8a49

View File

@@ -0,0 +1,52 @@
# 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_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
}