commit: 19d3476097c0935893440e93c2fba9d715d542ef
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Wed May 28 06:41:22 2025 +0000
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Wed May 28 06:44:46 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19d34760
dev-ruby/rspec-expectations: add 3.13.5
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
dev-ruby/rspec-expectations/Manifest | 1 +
.../rspec-expectations-3.13.5.ebuild | 59 ++++++++++++++++++++++
2 files changed, 60 insertions(+)
diff --git a/dev-ruby/rspec-expectations/Manifest
b/dev-ruby/rspec-expectations/Manifest
index cde650881387..850190625491 100644
--- a/dev-ruby/rspec-expectations/Manifest
+++ b/dev-ruby/rspec-expectations/Manifest
@@ -1,2 +1,3 @@
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
+DIST rspec-expectations-3.13.5-git.tgz 918242 BLAKE2B
8bbfe9f50a262087e0f1bda21716b5c38a4e8594d5d11310b8778ea30f2de0cd58332d458e524f02509e415a058408fe6b72091d1772d4232053e4e4e4316917
SHA512
d7a6d43591f4810defc10ba99ea8dc8fd7032e4339f1499ef92f7ad62a024652cd10956c206b523eac0ac41b6615595eebd16d3fd45df2e037d77858941ad716
diff --git a/dev-ruby/rspec-expectations/rspec-expectations-3.13.5.ebuild
b/dev-ruby/rspec-expectations/rspec-expectations-3.13.5.ebuild
new file mode 100644
index 000000000000..6a4fe3125789
--- /dev/null
+++ b/dev-ruby/rspec-expectations/rspec-expectations-3.13.5.ebuild
@@ -0,0 +1,59 @@
+# 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/rspec-expecations-v${PV}.tar.gz
-> ${P}-git.tgz"
+RUBY_S="rspec-rspec-expecations-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
+}