dev-ruby/rspec-expectations: add 3.13.4

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff 2025-05-01 19:25:02 +02:00
parent 86ff71aa72
commit 94d8467938
No known key found for this signature in database
GPG Key ID: DB347F938654FA34
2 changed files with 70 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST rspec-expectations-3.13.3-git.tgz 223417 BLAKE2B c246789687c9b09b715093d0e730a76d04f009866e2886c9d2ee189015c93456cbb046cde72d2775d23978d5410e3e0f1b0337d7bbee7645319f14fe7375f6e8 SHA512 919e01204264611c77fddcf2e6c0e1707f95707ef3b04c40241951d732118e72ab9b7ad860f6f5639da631fb844ca76f512283a988b6561bd23ec6ae95aa013e
DIST rspec-expectations-3.13.4-git.tgz 917486 BLAKE2B 66edcc543f3778373f1e0b98873e71f2cedb4bf8445e8d67a4373a7b61b44cd38bf5e5a74f638b6bdf9e23acbcf5914d69f07c09ecc62016b9a94370994ef5a4 SHA512 5a472f49d1b7fcbd6d1b171ed70b6e4baa817d146759af3de4193947e6dcc9a30580f38a77771776aa188681e7cbde7c17a62ec8ce05c6ba0af6871cefb44476

View File

@ -0,0 +1,69 @@
# 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="${PN}.gemspec"
inherit ruby-fakegem
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
HOMEPAGE="https://github.com/rspec/rspec-expectations"
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/diff-lcs-1.2.0 =dev-ruby/diff-lcs-1*
=dev-ruby/rspec-support-${SUBVERSION}*"
ruby_add_bdepend "test? (
>=dev-ruby/rspec-mocks-3.2.0:3
>=dev-ruby/rspec-support-3.5.0:3
)"
all_ruby_prepare() {
# Don't set up bundler: it doesn't understand our setup.
sed -i -e '/[Bb]undler/d' Rakefile || die
# Fix minitest deprecation
sed -i -e 's/MiniTest/Minitest/' spec/rspec/expectations/minitest_integration_spec.rb || die
# Remove the Gemfile to avoid running through 'bundle exec'
rm -f Gemfile || die
# fix up the gemspecs
sed -i \
-e '/git ls/d' \
-e '/add_development_dependency/d' \
"${RUBY_FAKEGEM_GEMSPEC}" || die
# Avoid specs failing with newer diff-lcs. Already fixed upstream.
rm -f spec/rspec/matchers/dsl_spec.rb \
spec/rspec/matchers/built_in/{compound,have_attributes,include}_spec.rb || die
sed -e '/simplecov/,/^end/ s:^:#:' \
-i spec/spec_helper.rb || die
}
each_ruby_prepare() {
case ${RUBY} in
*ruby34)
# Avoid tests failing on ruby34. Should be fixed upstream.
rm -f spec/rspec/matchers/aliases_spec.rb \
spec/rspec/matchers/built_in/{change,eq,has,captures,start_and_end_with}_spec.rb \
spec/rspec/matchers/english_phrasing_spec.rb || die
;;
esac
}