commit: 95c7d83dfd0a3acc7cd402d78111d83cfd74379e Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Sat Apr 22 06:36:40 2023 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Sat Apr 22 06:40:32 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95c7d83d
dev-ruby/rspec-stubbed_env: add 1.0.1 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/rspec-stubbed_env/Manifest | 1 + .../rspec-stubbed_env-1.0.1.ebuild | 29 ++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/dev-ruby/rspec-stubbed_env/Manifest b/dev-ruby/rspec-stubbed_env/Manifest index 59a169465bd2..a6700d269a18 100644 --- a/dev-ruby/rspec-stubbed_env/Manifest +++ b/dev-ruby/rspec-stubbed_env/Manifest @@ -1 +1,2 @@ DIST rspec-stubbed_env-1.0.0.gem 11264 BLAKE2B 1f00ef85dc0677a35814d2bb6a59e8c836cf08bda2de024f9cf7f8d4696a409ef286d72303428854cb7ca59a7c479a89c731d7e412cd97ae6fae0edaafa84d1e SHA512 e4624614852674035d2c0a7b426d9aa62d8f621a7e52c4f79410ac9e3f833980f50530a7f7da7241c763ec92926bf87bf0be2d2dab4200faa9a17eaacd404640 +DIST v1.0.1.tar.gz 21188 BLAKE2B b84dfd729b0f8f362b10ac36a18e7469d137d05108f031d6d96b6f8da658b20e9c11fea8f70f2f217c511505e41ea69ffbfb182582615798804ddc22e9bc136b SHA512 7ac1b2ece0812edd8e884c025300eb693fe22da22f1ca126ad62107c2ca1559b25311be588e7839e97b84fc98a9a5aa161e3f1718a4a42c69a23b8a2301d7593 diff --git a/dev-ruby/rspec-stubbed_env/rspec-stubbed_env-1.0.1.ebuild b/dev-ruby/rspec-stubbed_env/rspec-stubbed_env-1.0.1.ebuild new file mode 100644 index 000000000000..ea5e6eb33831 --- /dev/null +++ b/dev-ruby/rspec-stubbed_env/rspec-stubbed_env-1.0.1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_BINWRAP="" +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_GEMSPEC="rspec-stubbed_env.gemspec" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +inherit ruby-fakegem + +DESCRIPTION="Stub environment variables in a scoped context for testing" +HOMEPAGE="https://github.com/pboling/rspec-stubbed_env" +SRC_URI="https://github.com/pboling/rspec-stubbed_env/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +IUSE="" +SLOT="1" + +LICENSE="MIT" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +ruby_add_rdepend ">=dev-ruby/rspec-3.0" + +all_ruby_prepare() { + # Avoid spec depending on unpackaged block_is_expected + sed -i -e '/block_is_expected/ s:^:#:' spec/spec_helper.rb || die + sed -i -e '/describe "stubbing"/,/^ end/ s:^:#:' spec/rspec/stubbed_env/test_helpers_spec.rb || die +}