Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/simplecov/
Date: Tue, 05 Jul 2022 05:15:44
Message-Id: 1656998136.c187bd1d6dd9998678a1d70440a06196c4da1b5f.graaff@gentoo
1 commit: c187bd1d6dd9998678a1d70440a06196c4da1b5f
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 5 05:10:28 2022 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 5 05:15:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c187bd1d
7
8 dev-ruby/simplecov: add 0.21.2
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11
12 dev-ruby/simplecov/Manifest | 1 +
13 dev-ruby/simplecov/simplecov-0.21.2.ebuild | 50 ++++++++++++++++++++++++++++++
14 2 files changed, 51 insertions(+)
15
16 diff --git a/dev-ruby/simplecov/Manifest b/dev-ruby/simplecov/Manifest
17 index c119b765e596..68692cc5b902 100644
18 --- a/dev-ruby/simplecov/Manifest
19 +++ b/dev-ruby/simplecov/Manifest
20 @@ -1 +1,2 @@
21 DIST simplecov-0.19.1.tar.gz 107430 BLAKE2B 0f18cd4c8ddfd324f4e3326ad8503530862f0ae67658865183984b81a59ad9aa5fcf650fa9f64fa6841ea23afa07d25e38443a79ad0be26b966fa99b6805a090 SHA512 2d781008769abd79020be96f7c1f91cfb9f27d51d00436f737c408a9b9d57a82955cbe5ba5ee5a628b9a7e8835d9b3e1542b67499355373c4f9b2638bee83235
22 +DIST simplecov-0.21.2.tar.gz 114080 BLAKE2B b1bdfd45a39f97072d871a6d4ba4a2d9f2b94642cbbe329fba91b53b1d6a9b024e224e822ca49c28c4849b7bc3ade19027c6aab739d3acf28c09cd3c773ce4eb SHA512 68e9a901b2ecef07aebad214ea86a092871b0ebf5b62881ca97ca0033c1ee5b9ba395116f9960e69cd88b90f569a3b573a3879178e9ccfa06d28c94de8b4f918
23
24 diff --git a/dev-ruby/simplecov/simplecov-0.21.2.ebuild b/dev-ruby/simplecov/simplecov-0.21.2.ebuild
25 new file mode 100644
26 index 000000000000..8dfe63648ed6
27 --- /dev/null
28 +++ b/dev-ruby/simplecov/simplecov-0.21.2.ebuild
29 @@ -0,0 +1,50 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +USE_RUBY="ruby26 ruby27"
36 +
37 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
38 +
39 +RUBY_FAKEGEM_DOCDIR="doc"
40 +RUBY_FAKEGEM_RECIPE_DOC="none"
41 +
42 +RUBY_FAKEGEM_GEMSPEC="simplecov.gemspec"
43 +
44 +inherit ruby-fakegem
45 +
46 +DESCRIPTION="Code coverage with a configuration library and merging across test suites"
47 +HOMEPAGE="https://github.com/simplecov-ruby/simplecov"
48 +SRC_URI="https://github.com/simplecov-ruby/simplecov/archive/v${PV}.tar.gz -> ${P}.tar.gz"
49 +LICENSE="MIT"
50 +
51 +KEYWORDS="~amd64 ~riscv"
52 +SLOT="0.8"
53 +IUSE="doc"
54 +
55 +ruby_add_rdepend "
56 + dev-ruby/simplecov-html:0.12
57 + >=dev-ruby/simplecov_json_formatter-0.1:0
58 + >=dev-ruby/docile-1.1:0"
59 +
60 +ruby_add_bdepend "test? (
61 + dev-ruby/bundler
62 + dev-ruby/rspec:3
63 + dev-ruby/test-unit:2
64 +)"
65 +
66 +# There are also cucumber tests that require poltergeist and unpackaged phantomjs gem.
67 +
68 +all_ruby_prepare() {
69 + # Avoid test depending on spawning ruby and having timing issues
70 + sed -i -e '/blocks other processes/askip "gentoo"' spec/result_merger_spec.rb || die
71 +
72 + sed -i -e '5i require "bundler"' spec/helper.rb || die
73 +}
74 +
75 +each_ruby_test() {
76 + RSPEC_VERSION=3 ruby-ng_rspec spec/*spec.rb || die
77 +
78 + #${RUBY} -S cucumber features || die
79 +}