summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatoro <matoro@users.noreply.github.com>2022-06-15 00:36:13 -0400
committerMatt Turner <mattst88@gentoo.org>2022-10-22 17:33:10 -0400
commit057a7d0e4f535761e9deb32fc0cecffa7a1835ec (patch)
tree390be64cf52136e16c47d9f0a3cee4bcbe3d65e7 /dev-ruby/rspec-files
parentdev-ruby/rack-test: enable ruby31 (diff)
downloadgentoo-057a7d0e4f535761e9deb32fc0cecffa7a1835ec.tar.gz
gentoo-057a7d0e4f535761e9deb32fc0cecffa7a1835ec.tar.bz2
gentoo-057a7d0e4f535761e9deb32fc0cecffa7a1835ec.zip
dev-ruby/rspec-files: new package, add 1.1.1
Signed-off-by: matoro <matoro@users.noreply.github.com> Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'dev-ruby/rspec-files')
-rw-r--r--dev-ruby/rspec-files/Manifest1
-rw-r--r--dev-ruby/rspec-files/metadata.xml11
-rw-r--r--dev-ruby/rspec-files/rspec-files-1.1.1.ebuild26
3 files changed, 38 insertions, 0 deletions
diff --git a/dev-ruby/rspec-files/Manifest b/dev-ruby/rspec-files/Manifest
new file mode 100644
index 000000000000..5eb4b6e486c0
--- /dev/null
+++ b/dev-ruby/rspec-files/Manifest
@@ -0,0 +1 @@
+DIST rspec-files-1.1.1.tar.gz 4460 BLAKE2B ac2a17383173f3b562e93c42061b90ae9a5dab908bcc8bdd5d32f4ad20d3735beb602aab97e9d97acd78071a55ebe4c83adc611ffa9ebf5b0ea92878641e92f3 SHA512 e0c71361911d00f0df316f05bd69a187a219e963721a1f90b8ef8fb5a479c06c9f9ac41fa3c35417a0cb024f165b842506ff088a5d371ee6a4b022c97b9fc028
diff --git a/dev-ruby/rspec-files/metadata.xml b/dev-ruby/rspec-files/metadata.xml
new file mode 100644
index 000000000000..dfae27f7746a
--- /dev/null
+++ b/dev-ruby/rspec-files/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ruby@gentoo.org</email>
+ <name>Gentoo Ruby Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">socketry/rspec-files</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ruby/rspec-files/rspec-files-1.1.1.ebuild b/dev-ruby/rspec-files/rspec-files-1.1.1.ebuild
new file mode 100644
index 000000000000..b1009e5db552
--- /dev/null
+++ b/dev-ruby/rspec-files/rspec-files-1.1.1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby26 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/refs/tags/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
+}