summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2020-03-01 07:13:26 +0100
committerHans de Graaff <graaff@gentoo.org>2020-03-01 09:22:35 +0100
commit9e79a88395a84a663fd14aa16aaf9d4232a38f86 (patch)
tree4bedae7a2012c8d863277fe7b2dcb0834f3068d8 /dev-ruby
parentdev-ruby/docile: add ruby27 (diff)
downloadgentoo-9e79a88395a84a663fd14aa16aaf9d4232a38f86.tar.gz
gentoo-9e79a88395a84a663fd14aa16aaf9d4232a38f86.tar.bz2
gentoo-9e79a88395a84a663fd14aa16aaf9d4232a38f86.zip
dev-ruby/simplecov: add 0.18.5
Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/simplecov/Manifest1
-rw-r--r--dev-ruby/simplecov/simplecov-0.18.5.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/simplecov/Manifest b/dev-ruby/simplecov/Manifest
index 43a1459f0df3..8fad4e234cc6 100644
--- a/dev-ruby/simplecov/Manifest
+++ b/dev-ruby/simplecov/Manifest
@@ -1,3 +1,4 @@
DIST simplecov-0.16.1.tar.gz 62296 BLAKE2B f9ebe2c7ec3d8b5bb80f642be3e9803210f9af334a2e7eacc2d1339567750027bf0505106e9fd641c42b3ad41e5e74ebbe730d8ff80947b1ec2ff23f6ee8fef1 SHA512 5b3c16bcdcbfcbd5282bd91375d1593292ad421a73b88cbdf18fc8f57364e20e1eec44bb084be3619684f9871612ca81f790eea8eec98b61cf523bf38b4a997f
DIST simplecov-0.17.0.tar.gz 64354 BLAKE2B 640d2b312dd8202ddc13c2f33bfbd325441d4fd6502d8c738c15386fbac90a233043de1386c3bc57649b84a699187b71211c1b529071bae387451a16e5604ad9 SHA512 b477c215bfccafe0f24245078a211d6f7355098fc862b6dddf9c44cfaf9a352157535c628d31da4049323c5c7469be2e33566f381de5bbbb690a430d5d5cf5b6
DIST simplecov-0.17.1.tar.gz 64431 BLAKE2B a9de43f4c2e106a9726c769c51d918328de30abcc19fbfe4f2fa1f1bbba0bda99738f7c2af57fabd1e903ae5cb9371a587d837d7428205648a1d9dd7dccaef07 SHA512 f7d6b6fb3a67e033e481fc9d10d71ca2f2d1b41f4cb57c48eff40b3b77842d2c373d8b0ae0377ffe25cb9bba263c9bf7ba72178acf725321427f08d611da3e02
+DIST simplecov-0.18.5.tar.gz 100495 BLAKE2B b92ebac7983e33c36aacad29ac499dbdcbae9f2bcf9d3ffb0cc07eabff112e74ba0489ada7b923453a69cf3a1487c8ea3c7af8b973242fa52671b0ba96b2a2f4 SHA512 05c452138997f4dcbf4b8cb053871591c291229e3f1fa152d128b1ea87668582ac4d72fa412c59f30fa29dbed1a4ca07fbfe8e1a1fe9470a22b2d1e931171874
diff --git a/dev-ruby/simplecov/simplecov-0.18.5.ebuild b/dev-ruby/simplecov/simplecov-0.18.5.ebuild
new file mode 100644
index 000000000000..99d480b4b2ae
--- /dev/null
+++ b/dev-ruby/simplecov/simplecov-0.18.5.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="ruby24 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://www.ruby-toolbox.com/projects/simplecov https://github.com/colszowka/simplecov"
+SRC_URI="https://github.com/colszowka/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
+}