diff options
author | matoro <matoro@users.noreply.github.com> | 2022-06-15 00:36:31 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2022-10-22 17:33:11 -0400 |
commit | e23fa1ae4c741011be4ab12376f69b3bfbff8572 (patch) | |
tree | dcd77c278819db6e8760b3a61bbf9084cc9d6be1 /dev-ruby/rspec-memory | |
parent | dev-ruby/rspec-files: new package, add 1.1.1 (diff) | |
download | gentoo-e23fa1ae4c741011be4ab12376f69b3bfbff8572.tar.gz gentoo-e23fa1ae4c741011be4ab12376f69b3bfbff8572.tar.bz2 gentoo-e23fa1ae4c741011be4ab12376f69b3bfbff8572.zip |
dev-ruby/rspec-memory: new package, add 1.0.3
Signed-off-by: matoro <matoro@users.noreply.github.com>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'dev-ruby/rspec-memory')
-rw-r--r-- | dev-ruby/rspec-memory/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rspec-memory/metadata.xml | 11 | ||||
-rw-r--r-- | dev-ruby/rspec-memory/rspec-memory-1.0.3.ebuild | 26 |
3 files changed, 38 insertions, 0 deletions
diff --git a/dev-ruby/rspec-memory/Manifest b/dev-ruby/rspec-memory/Manifest new file mode 100644 index 000000000000..ade882afc076 --- /dev/null +++ b/dev-ruby/rspec-memory/Manifest @@ -0,0 +1 @@ +DIST rspec-memory-1.0.3.tar.gz 5248 BLAKE2B cf2cb55a6c3d155a739f1cbe3f307016d9446f9edde8554b6336602b86d95a369b152a413426082061c68d2e4015c68d31a34d7d80706ba09986fb8c8952d670 SHA512 1077bd6cb73ada029fc42f820e42792b58f8e06feeda711725d6f2a7a2af9151f72330d3e5a9d0fa7493eeb42f65ddf02a93fac00f5e24f2596f7df0da9439a3 diff --git a/dev-ruby/rspec-memory/metadata.xml b/dev-ruby/rspec-memory/metadata.xml new file mode 100644 index 000000000000..87c955dadfb9 --- /dev/null +++ b/dev-ruby/rspec-memory/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-memory</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-ruby/rspec-memory/rspec-memory-1.0.3.ebuild b/dev-ruby/rspec-memory/rspec-memory-1.0.3.ebuild new file mode 100644 index 000000000000..0c30ccc070b1 --- /dev/null +++ b/dev-ruby/rspec-memory/rspec-memory-1.0.3.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 checking memory allocations" +HOMEPAGE="https://github.com/socketry/rspec-memory" +SRC_URI="https://github.com/socketry/rspec-memory/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 +} |