summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2020-10-28 06:33:42 +0100
committerHans de Graaff <graaff@gentoo.org>2020-10-28 06:33:42 +0100
commite2cab3df729f3c7e73931a1d0c48b0568896d534 (patch)
tree80e2d424c3f7c87fb182b7aefc1961563a73b806 /dev-ruby/simplecov
parentdev-ruby/chunky_png: add 1.3.14 (diff)
downloadgentoo-e2cab3df729f3c7e73931a1d0c48b0568896d534.tar.gz
gentoo-e2cab3df729f3c7e73931a1d0c48b0568896d534.tar.bz2
gentoo-e2cab3df729f3c7e73931a1d0c48b0568896d534.zip
dev-ruby/simplecov: add 0.19.1
Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/simplecov')
-rw-r--r--dev-ruby/simplecov/Manifest1
-rw-r--r--dev-ruby/simplecov/simplecov-0.19.1.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/simplecov/Manifest b/dev-ruby/simplecov/Manifest
index daa118467da1..b60af513325b 100644
--- a/dev-ruby/simplecov/Manifest
+++ b/dev-ruby/simplecov/Manifest
@@ -1,2 +1,3 @@
DIST simplecov-0.18.5.tar.gz 100495 BLAKE2B b92ebac7983e33c36aacad29ac499dbdcbae9f2bcf9d3ffb0cc07eabff112e74ba0489ada7b923453a69cf3a1487c8ea3c7af8b973242fa52671b0ba96b2a2f4 SHA512 05c452138997f4dcbf4b8cb053871591c291229e3f1fa152d128b1ea87668582ac4d72fa412c59f30fa29dbed1a4ca07fbfe8e1a1fe9470a22b2d1e931171874
DIST simplecov-0.19.0.tar.gz 107240 BLAKE2B 64c82c4e2c89717f0fd4d24c95352a8ef435e0c7f2e968d5611c67ee275195cd5d89753f6c009338891464eb400ac87535f6bd800c2e79b9be548d75057b8e49 SHA512 81ee7a3d84346d05f4fb78b85b70a65232a1b13fc5cfec17e6bd7be567bd64fda621721bb287f756c079b2b10a11d30c9ae308270db8d9865e01e7d5f77f2352
+DIST simplecov-0.19.1.tar.gz 107430 BLAKE2B 0f18cd4c8ddfd324f4e3326ad8503530862f0ae67658865183984b81a59ad9aa5fcf650fa9f64fa6841ea23afa07d25e38443a79ad0be26b966fa99b6805a090 SHA512 2d781008769abd79020be96f7c1f91cfb9f27d51d00436f737c408a9b9d57a82955cbe5ba5ee5a628b9a7e8835d9b3e1542b67499355373c4f9b2638bee83235
diff --git a/dev-ruby/simplecov/simplecov-0.19.1.ebuild b/dev-ruby/simplecov/simplecov-0.19.1.ebuild
new file mode 100644
index 000000000000..dd634e2f601c
--- /dev/null
+++ b/dev-ruby/simplecov/simplecov-0.19.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+USE_RUBY="ruby25 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"
+SLOT="0.8"
+IUSE="doc"
+
+ruby_add_rdepend "
+ dev-ruby/simplecov-html:0.12
+ >=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
+}