diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-07-05 07:10:28 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-07-05 07:15:36 +0200 |
commit | c187bd1d6dd9998678a1d70440a06196c4da1b5f (patch) | |
tree | 1d11573e0f9dd6867f5e85a425dfc2197ced470b /dev-ruby/simplecov | |
parent | dev-ruby/simplecov_json_formatter: initial import of 0.1.4 (diff) | |
download | gentoo-c187bd1d6dd9998678a1d70440a06196c4da1b5f.tar.gz gentoo-c187bd1d6dd9998678a1d70440a06196c4da1b5f.tar.bz2 gentoo-c187bd1d6dd9998678a1d70440a06196c4da1b5f.zip |
dev-ruby/simplecov: add 0.21.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/simplecov')
-rw-r--r-- | dev-ruby/simplecov/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/simplecov/simplecov-0.21.2.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/simplecov/Manifest b/dev-ruby/simplecov/Manifest index c119b765e596..68692cc5b902 100644 --- a/dev-ruby/simplecov/Manifest +++ b/dev-ruby/simplecov/Manifest @@ -1 +1,2 @@ DIST simplecov-0.19.1.tar.gz 107430 BLAKE2B 0f18cd4c8ddfd324f4e3326ad8503530862f0ae67658865183984b81a59ad9aa5fcf650fa9f64fa6841ea23afa07d25e38443a79ad0be26b966fa99b6805a090 SHA512 2d781008769abd79020be96f7c1f91cfb9f27d51d00436f737c408a9b9d57a82955cbe5ba5ee5a628b9a7e8835d9b3e1542b67499355373c4f9b2638bee83235 +DIST simplecov-0.21.2.tar.gz 114080 BLAKE2B b1bdfd45a39f97072d871a6d4ba4a2d9f2b94642cbbe329fba91b53b1d6a9b024e224e822ca49c28c4849b7bc3ade19027c6aab739d3acf28c09cd3c773ce4eb SHA512 68e9a901b2ecef07aebad214ea86a092871b0ebf5b62881ca97ca0033c1ee5b9ba395116f9960e69cd88b90f569a3b573a3879178e9ccfa06d28c94de8b4f918 diff --git a/dev-ruby/simplecov/simplecov-0.21.2.ebuild b/dev-ruby/simplecov/simplecov-0.21.2.ebuild new file mode 100644 index 000000000000..8dfe63648ed6 --- /dev/null +++ b/dev-ruby/simplecov/simplecov-0.21.2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby26 ruby27" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_RECIPE_DOC="none" + +RUBY_FAKEGEM_GEMSPEC="simplecov.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Code coverage with a configuration library and merging across test suites" +HOMEPAGE="https://github.com/simplecov-ruby/simplecov" +SRC_URI="https://github.com/simplecov-ruby/simplecov/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" + +KEYWORDS="~amd64 ~riscv" +SLOT="0.8" +IUSE="doc" + +ruby_add_rdepend " + dev-ruby/simplecov-html:0.12 + >=dev-ruby/simplecov_json_formatter-0.1:0 + >=dev-ruby/docile-1.1:0" + +ruby_add_bdepend "test? ( + dev-ruby/bundler + dev-ruby/rspec:3 + dev-ruby/test-unit:2 +)" + +# There are also cucumber tests that require poltergeist and unpackaged phantomjs gem. + +all_ruby_prepare() { + # Avoid test depending on spawning ruby and having timing issues + sed -i -e '/blocks other processes/askip "gentoo"' spec/result_merger_spec.rb || die + + sed -i -e '5i require "bundler"' spec/helper.rb || die +} + +each_ruby_test() { + RSPEC_VERSION=3 ruby-ng_rspec spec/*spec.rb || die + + #${RUBY} -S cucumber features || die +} |