summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-04-22 08:36:40 +0200
committerHans de Graaff <graaff@gentoo.org>2023-04-22 08:40:32 +0200
commit95c7d83dfd0a3acc7cd402d78111d83cfd74379e (patch)
treeaad8db08cee7faa4f69a0294ef67561662276d44 /dev-ruby/rspec-stubbed_env
parentdev-ruby/rspec-core: drop 3.12.0 (diff)
downloadgentoo-95c7d83dfd0a3acc7cd402d78111d83cfd74379e.tar.gz
gentoo-95c7d83dfd0a3acc7cd402d78111d83cfd74379e.tar.bz2
gentoo-95c7d83dfd0a3acc7cd402d78111d83cfd74379e.zip
dev-ruby/rspec-stubbed_env: add 1.0.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/rspec-stubbed_env')
-rw-r--r--dev-ruby/rspec-stubbed_env/Manifest1
-rw-r--r--dev-ruby/rspec-stubbed_env/rspec-stubbed_env-1.0.1.ebuild29
2 files changed, 30 insertions, 0 deletions
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
+}