dev-ruby/rspec-support: add 3.13.6

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff 2025-09-19 09:04:36 +02:00
parent 390ba58c13
commit 04ed495c39
No known key found for this signature in database
GPG Key ID: DB347F938654FA34
2 changed files with 55 additions and 0 deletions

View File

@ -1,3 +1,4 @@
DIST rspec-support-3.13.2-git.tgz 914469 BLAKE2B 9bb0977420f8e034b47f7f8589e372483265e8a7b783bc2222243a1a500d7852ea948f44a8b19e0c3b1fa62379b8fdb1d68e7dd98ac439585cce91086cc0d5e9 SHA512 f4f46ecfc6d5b9dae9a210fd25b0ac96c9491e9b20aadae8d26997f45cc81b3dce6dbbffc727e406517869ae68cc46f73832f8f3793cb10055c342dc16f5848d
DIST rspec-support-3.13.4-git.tgz 918142 BLAKE2B 2ed20f07a42bb9133baccdf722e8dbe6f6d967aa4d17fcb4fd15baa6c401f69f6b6cd25c5bd944c07d90d49d2a42ae51fd44d9c0248aabae19b056f5c3162267 SHA512 3225aaaea9cda393f0357bc08e739c7333068807f3cb7999355c27bf05384bac2eb99ab921202edce83f686c02e8565031b73f379174f6df74c65852fbc6d4e7
DIST rspec-support-3.13.5-git.tgz 919211 BLAKE2B bb7f963e4f4be9c37cd9485269857def00b7b48edc70157bf04216e8dd6fe036fc888a5beb3d1a8c4fa74b3e881fe8b57c8c346558581167b0251bb278b1457d SHA512 bcce2c6a14f1b5bbcd4345cac539b38bfadb22b277073c429b870209429775b1bf4f5f76fd6ab5dd1dc247ce76dd72568ade6d4c5c27d87d1e39375d375f915c
DIST rspec-support-3.13.6-git.tgz 919280 BLAKE2B c187f756c3cd5cf2880cd85638b19e96d2ee4d31ba41bbf9984e600355a3986d93c68d98528faab25c121ea03902e27ec5c78ec09c3ad7ead4580f4ac54b055e SHA512 609bd79d969dbaab5877050f7faaaf48fe3b8edda29d24d5728ab147bbae41786212852f85f56206d86e91df3bace45932f697336aaf2a1bcedb441a06217119

View File

@ -0,0 +1,54 @@
# 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="${PN}.gemspec"
inherit ruby-fakegem
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
HOMEPAGE="https://github.com/rspec/rspec-support"
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"
ruby_add_bdepend "test? ( >=dev-ruby/rspec-3.9.0:3 >=dev-ruby/thread_order-1.1.0 )"
all_ruby_prepare() {
sed -i -e '/git ls-files/d' ${RUBY_FAKEGEM_GEMSPEC} || die
# Remove spec that, by following symlinks, tries to scan pretty much
# the whole filesystem.
rm spec/rspec/support/caller_filter_spec.rb || die
# Avoid spec that requires a dependency on git
sed -i -e '/library wide checks/,/]/ s:^:#:' spec/rspec/support_spec.rb || die
# Avoid a spec requiring a specific locale
sed -i -e '/copes with encoded strings/ s/RSpec::Support::OS.windows?/true/' spec/rspec/support/differ_spec.rb || die
# Avoid specs failing when run in Gentoo, possibly due to different IO
sed -e '/outputs unified diff message of two arrays/askip "Gentoo IO"' \
-e '/outputs unified diff message for hashes inside arrays with differing key orders/askip "Gentoo IO"' \
-i spec/rspec/support/differ_spec.rb || die
}
each_ruby_prepare() {
# Use the ruby version being tested
sed -i -e '/shell_out/ s:ruby:'${RUBY}':' spec/rspec/support/spec/shell_out_spec.rb || die
}
each_ruby_test() {
RUBYLIB=lib ${RUBY} -S rspec spec || die
}