diff options
Diffstat (limited to 'dev-ruby/timecop')
| -rw-r--r-- | dev-ruby/timecop/Manifest | 1 | ||||
| -rw-r--r-- | dev-ruby/timecop/metadata.xml | 12 | ||||
| -rw-r--r-- | dev-ruby/timecop/timecop-0.9.1.ebuild | 39 |
3 files changed, 52 insertions, 0 deletions
diff --git a/dev-ruby/timecop/Manifest b/dev-ruby/timecop/Manifest new file mode 100644 index 000000000000..fe6b3324fb30 --- /dev/null +++ b/dev-ruby/timecop/Manifest @@ -0,0 +1 @@ +DIST timecop-0.9.1.gem 16896 BLAKE2B f4dd9293743f0be4dc5616aae077965a32e348faa7019867d694689b0376c6be06817870842bdcbf5f398ec4814ae1e4f6546c75c95639bbd2cb8021a1dee3f7 SHA512 2c8429ad4d9c706865810caa80dfb12c16acaaa97ea289fc300e172a359817fea7d31789f4bea75cfae8ce1f84e7d8effd32b39a0482f3d68fb4e225b487e13e diff --git a/dev-ruby/timecop/metadata.xml b/dev-ruby/timecop/metadata.xml new file mode 100644 index 000000000000..47a9b6ccc59b --- /dev/null +++ b/dev-ruby/timecop/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> + </maintainer> + <upstream> + <remote-id type="github">jtrupiano/timecop</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-ruby/timecop/timecop-0.9.1.ebuild b/dev-ruby/timecop/timecop-0.9.1.ebuild new file mode 100644 index 000000000000..19d7745b7f4e --- /dev/null +++ b/dev-ruby/timecop/timecop-0.9.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby24 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 +} |
