From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2F95B1584AD for ; Thu, 01 May 2025 17:33:56 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 1B54434302F for ; Thu, 01 May 2025 17:33:56 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 4AC0F11036D; Thu, 01 May 2025 17:33:53 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 3CEAC11036D for ; Thu, 01 May 2025 17:33:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E769F340C77 for ; Thu, 01 May 2025 17:33:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 853BD1D36 for ; Thu, 01 May 2025 17:33:51 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1746120820.94d8467938d98ac198d3559a0ef0c0eaa4cbd55f.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/rspec-expectations/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/rspec-expectations/Manifest dev-ruby/rspec-expectations/rspec-expectations-3.13.4.ebuild X-VCS-Directories: dev-ruby/rspec-expectations/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 94d8467938d98ac198d3559a0ef0c0eaa4cbd55f X-VCS-Branch: master Date: Thu, 01 May 2025 17:33:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e515ab0c-a587-441d-ab93-04ee1d689090 X-Archives-Hash: 0e66851bf8bf51a15e5cc5b42b333582 commit: 94d8467938d98ac198d3559a0ef0c0eaa4cbd55f Author: Hans de Graaff gentoo org> AuthorDate: Thu May 1 17:25:02 2025 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Thu May 1 17:33:40 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94d84679 dev-ruby/rspec-expectations: add 3.13.4 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/rspec-expectations/Manifest | 1 + .../rspec-expectations-3.13.4.ebuild | 69 ++++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/dev-ruby/rspec-expectations/Manifest b/dev-ruby/rspec-expectations/Manifest index ecf032939a65..cde650881387 100644 --- a/dev-ruby/rspec-expectations/Manifest +++ b/dev-ruby/rspec-expectations/Manifest @@ -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 diff --git a/dev-ruby/rspec-expectations/rspec-expectations-3.13.4.ebuild b/dev-ruby/rspec-expectations/rspec-expectations-3.13.4.ebuild new file mode 100644 index 000000000000..b679c944a667 --- /dev/null +++ b/dev-ruby/rspec-expectations/rspec-expectations-3.13.4.ebuild @@ -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 +}