summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2021-02-08 08:20:06 +0100
committerHans de Graaff <graaff@gentoo.org>2021-02-09 06:44:26 +0100
commit308c7d43e3ba4e406337b73ed7efc9862ec6572b (patch)
treec0830e622e6b9037b0046b2cc36c1f29992e95e8 /dev-ruby/timecop
parentdev-ruby/rjb: add 1.6.4 (diff)
downloadgentoo-308c7d43e3ba4e406337b73ed7efc9862ec6572b.tar.gz
gentoo-308c7d43e3ba4e406337b73ed7efc9862ec6572b.tar.bz2
gentoo-308c7d43e3ba4e406337b73ed7efc9862ec6572b.zip
dev-ruby/timecop: add 0.9.3
Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/timecop')
-rw-r--r--dev-ruby/timecop/Manifest1
-rw-r--r--dev-ruby/timecop/timecop-0.9.3.ebuild39
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-ruby/timecop/Manifest b/dev-ruby/timecop/Manifest
index 23e9c13534b1..2b15f5311c63 100644
--- a/dev-ruby/timecop/Manifest
+++ b/dev-ruby/timecop/Manifest
@@ -1,2 +1,3 @@
DIST timecop-0.9.1.gem 16896 BLAKE2B f4dd9293743f0be4dc5616aae077965a32e348faa7019867d694689b0376c6be06817870842bdcbf5f398ec4814ae1e4f6546c75c95639bbd2cb8021a1dee3f7 SHA512 2c8429ad4d9c706865810caa80dfb12c16acaaa97ea289fc300e172a359817fea7d31789f4bea75cfae8ce1f84e7d8effd32b39a0482f3d68fb4e225b487e13e
DIST timecop-0.9.2.gem 17408 BLAKE2B defe09d5ed0a8eae143b17249502ccd2d2c022147f2e579ced45c3497424d66a420b30c11a1e00e321b5f2772c8bc5cd157a5875f8b66e5d102ac84423975dcf SHA512 d54b87c0a9a711e8c287ebd55083a6f87e31d587fbeebbc892a3e76c7d57fe0926e411dfedd0b5edcd357d995b4a6e7b57eef778a8e380a6675497988f97b29d
+DIST timecop-0.9.3.gem 16896 BLAKE2B 4b021e9a3bd0ca5e35e11dfbfe95a81689c7441315d94857de65bf4708f48f3f62eb768af7d22338edd3c283a22fa784b389979ec8474abffcb599eefb76d639 SHA512 6d6e43ac2e52a049179560fae75a37eefdfde3286aa2fb415fd553af1891427ad56babba91a36e743c8e5e0d915077348152c1e6f518483cfaa20a677db05d45
diff --git a/dev-ruby/timecop/timecop-0.9.3.ebuild b/dev-ruby/timecop/timecop-0.9.3.ebuild
new file mode 100644
index 000000000000..3b1561933da5
--- /dev/null
+++ b/dev-ruby/timecop/timecop-0.9.3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+USE_RUBY="ruby25 ruby26 ruby27"
+
+RUBY_FAKEGEM_TASK_TEST="test"
+
+RUBY_FAKEGEM_TASK_DOC="rdoc"
+RUBY_FAKEGEM_DOCDIR="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.markdown"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A gem providing 'time travel' and 'time freezing' capabilities"
+HOMEPAGE="https://github.com/travisjeffery/timecop"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+# Missing testdep activesupport
+ruby_add_bdepend "test? ( dev-ruby/mocha )"
+
+all_ruby_prepare() {
+ sed -i -e '/bundler/ s:^:#:' -e '/History.rdoc/d' Rakefile test/test_helper.rb || die
+ sed -i -e '/rubygems/ a\gem "test-unit"' \
+ -e '/minitest\/rg/ s:^:#:' test/test_helper.rb || die
+ # FIXME after activesupport gained ruby22 support
+ rm test/time_stack_item_test.rb || die
+}
+
+each_ruby_test() {
+ for f in test/*_test.rb ; do
+ ${RUBY} -Ilib $f || die
+ done
+}