diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-10-23 10:22:57 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-10-23 10:26:31 +0200 |
commit | dfba0e17aaa679e93a7bc825e0a1a1bdde920146 (patch) | |
tree | efb8b03b6e400a667d8bac81cfd5fa11d80d8e47 /dev-ruby | |
parent | dev-ruby/io-event: add 1.1.2 (diff) | |
download | gentoo-dfba0e17aaa679e93a7bc825e0a1a1bdde920146.tar.gz gentoo-dfba0e17aaa679e93a7bc825e0a1a1bdde920146.tar.bz2 gentoo-dfba0e17aaa679e93a7bc825e0a1a1bdde920146.zip |
dev-ruby/rspec-files: add 1.1.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/rspec-files/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rspec-files/rspec-files-1.1.3.ebuild | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/dev-ruby/rspec-files/Manifest b/dev-ruby/rspec-files/Manifest index 7c1bfd853e3d..f5636ea18e38 100644 --- a/dev-ruby/rspec-files/Manifest +++ b/dev-ruby/rspec-files/Manifest @@ -1 +1,2 @@ DIST rspec-files-1.1.2.tar.gz 4546 BLAKE2B fc3c3cc2acbac23e36ec6f85f6f58c8243f9ca769a16cfbdab6a4660dd9a22ba40fe1108b319206e9a6b5aaa4094ec372205ca33d00d2030476f1050448ef21d SHA512 af64435572b61ae4eaaed922160b8db5dca8a64987a3c24f2d15d1ec92abd2655d0e408ff2c7b4aeae29189ef1047901adc7c9e2af8a21f65dfafc974a4661ec +DIST rspec-files-1.1.3.tar.gz 6006 BLAKE2B 30f648f1d364532f81ed169a9f1e32d0cd9cd641093f8aad90b3aa4b239ee30d38ef3331136c47787203dceeada25a499bb0b1f42b08dacffb431835dbfa9698 SHA512 c2c79d0b0cef7db64e83e3335a552f437f2e1a12d703936a2d9dc8b8c81ebf69913302d1d5f65e1485fb0295af8b098c8b25ad4c335a7f8f3d31e0f086d46d2d diff --git a/dev-ruby/rspec-files/rspec-files-1.1.3.ebuild b/dev-ruby/rspec-files/rspec-files-1.1.3.ebuild new file mode 100644 index 000000000000..ba009773ff09 --- /dev/null +++ b/dev-ruby/rspec-files/rspec-files-1.1.3.ebuild @@ -0,0 +1,31 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby27 ruby30 ruby31" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_EXTRADOC="readme.md" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="RSpec helpers for buffering and detecting file descriptor leaks" +HOMEPAGE="https://github.com/socketry/rspec-files" +SRC_URI="https://github.com/socketry/rspec-files/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~sparc" +IUSE="" + +ruby_add_rdepend "dev-ruby/rspec:3" + +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 a test dependency on unpackaged covered + sed -i -e '/covered/ s:^:#:' spec/spec_helper.rb || die +} |