summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-10-23 12:00:14 +0200
committerHans de Graaff <graaff@gentoo.org>2022-10-23 12:00:37 +0200
commit2c36cc4b3a24cfb2220dd2c7b5a520d95e64d7b0 (patch)
treea44e02381bf7d0e7c7c5c04a698e676f4acaa872 /dev-ruby
parentdev-ruby/async-container: apply ruby project policies (diff)
downloadgentoo-2c36cc4b3a24cfb2220dd2c7b5a520d95e64d7b0.tar.gz
gentoo-2c36cc4b3a24cfb2220dd2c7b5a520d95e64d7b0.tar.bz2
gentoo-2c36cc4b3a24cfb2220dd2c7b5a520d95e64d7b0.zip
dev-ruby/async-rspec: apply ruby project policies
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/async-rspec/async-rspec-1.16.1.ebuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/dev-ruby/async-rspec/async-rspec-1.16.1.ebuild b/dev-ruby/async-rspec/async-rspec-1.16.1.ebuild
index c920dff8061b..12f48d519fe1 100644
--- a/dev-ruby/async-rspec/async-rspec-1.16.1.ebuild
+++ b/dev-ruby/async-rspec/async-rspec-1.16.1.ebuild
@@ -3,24 +3,26 @@
EAPI=8
-USE_RUBY="ruby26 ruby27 ruby30 ruby31"
+USE_RUBY="ruby27 ruby30 ruby31"
+
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
RUBY_FAKEGEM_EXTRADOC="README.md"
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
inherit ruby-fakegem
DESCRIPTION="Helpers for writing specs against the async gem"
HOMEPAGE="https://github.com/socketry/async-rspec"
-SRC_URI="https://github.com/socketry/async-rspec/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="https://github.com/socketry/async-rspec/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
-SLOT="$(ver_cut 1)/$(ver_cut 1-2)"
+SLOT="$(ver_cut 1)"
KEYWORDS="~amd64 ~sparc"
IUSE=""
-ruby_add_rdepend ">=dev-ruby/rspec-3.0:3
- >=dev-ruby/rspec-files-1.0:1
- >=dev-ruby/rspec-memory-1.0:1
+ruby_add_rdepend "dev-ruby/rspec:3
+ dev-ruby/rspec-files:1
+ dev-ruby/rspec-memory:1
"
ruby_add_bdepend "test? (
@@ -30,5 +32,7 @@ ruby_add_bdepend "test? (
all_ruby_prepare() {
sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die
- sed -i -E 's/require '"'"'covered\/rspec'"'"'//g' "spec/spec_helper.rb" || die
+
+ # Avoid dependency on unpackaged covered
+ sed -i -e '/covered/ s:^:#:' spec/spec_helper.rb || die
}