diff options
author | Hans de Graaff <graaff@gentoo.org> | 2024-06-20 07:25:04 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2024-06-20 07:25:04 +0200 |
commit | 1f036fd91cb20209eb4da994c6525b35e8b964cf (patch) | |
tree | 9909691e6c10b22e813acf28526b354a354f3e14 /dev-ruby/timecop | |
parent | dev-ruby/term-ansicolor: add 1.9.0 (diff) | |
download | gentoo-1f036fd91cb20209eb4da994c6525b35e8b964cf.tar.gz gentoo-1f036fd91cb20209eb4da994c6525b35e8b964cf.tar.bz2 gentoo-1f036fd91cb20209eb4da994c6525b35e8b964cf.zip |
dev-ruby/timecop: add 0.9.10
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/timecop')
-rw-r--r-- | dev-ruby/timecop/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/timecop/timecop-0.9.10.ebuild | 40 |
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-ruby/timecop/Manifest b/dev-ruby/timecop/Manifest index 459969011dce..4c260f9104c5 100644 --- a/dev-ruby/timecop/Manifest +++ b/dev-ruby/timecop/Manifest @@ -1,3 +1,4 @@ +DIST timecop-0.9.10.tar.gz 20101 BLAKE2B 05fa8fae57700c4d18f3fea51e35be5fa425ac8487333edfecde5a417e0d192d4d03047909c7e8b2e32c885786159fa1be36de466f9920cde989a8d55d248026 SHA512 17a10e5aa951cccd561ebb098eb2078e35b4bd4860bf9bfe865471eee6def4e724560905b133bfec840445eaac8b12ae8eeae01e460f25a9415c3c2748dcf8fd DIST timecop-0.9.6.gem 17408 BLAKE2B 53afa8313be94fb8774812b014f11d9a134b51b7dafcc0fd8d91d10756e042bfd6d56b10f8072c1d606519e532beb2e02032bd4e3f6d45b4cf41dd968ba86224 SHA512 a5cbdf38caa5bccb9887a6abb5d99bdd1470c9ff8d52d19f0c46f116dc73b62512f76021adc1ec98ca4abe85ca61a4ab1e821d80980fa7ab3c821abd13b9695a DIST timecop-0.9.7.tar.gz 17818 BLAKE2B c978a3765864963b4dbbb8a9cf2172208fa7b66afd68417a057bba44b6d35141bab5182bef3404d6233f394e9d874026886dc85b2e400908bdbf2f3af273b6bf SHA512 4db43b655225b8017769497b5ffc88d7b6d728677439ade09d8e0b8e8ef01c0307e49575ed9e1d2ac379cd222a5a0d34feae018d15ee34b70934e93a019a76e6 DIST timecop-0.9.8.tar.gz 17936 BLAKE2B bb66dac74df498b6a5c284805c2c8a486523d43c2923c2e11f65d24bc2e9ad59c3bdd356bf3e93946859ed9e95ac9924e48747afb17ec81a5378e0370d7dff20 SHA512 cbf74e8d4e459f17cb841fee14353feccfa26e401d999521abb5653639a3d6b8e0dbd73d4317cb18b185d33d23e20e7603992cd6e2752ac74cbf0c0c927263b3 diff --git a/dev-ruby/timecop/timecop-0.9.10.ebuild b/dev-ruby/timecop/timecop-0.9.10.ebuild new file mode 100644 index 000000000000..8c17e583d7c0 --- /dev/null +++ b/dev-ruby/timecop/timecop-0.9.10.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_BINWRAP="" +RUBY_FAKEGEM_TASK_TEST="test" + +RUBY_FAKEGEM_TASK_DOC="rdoc" +RUBY_FAKEGEM_DOCDIR="rdoc" +RUBY_FAKEGEM_EXTRADOC="README.markdown" +RUBY_FAKEGEM_GEMSPEC="timecop.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A gem providing 'time travel' and 'time freezing' capabilities" +HOMEPAGE="https://github.com/travisjeffery/timecop" +SRC_URI="https://github.com/travisjeffery/timecop/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="test" + +ruby_add_bdepend "test? ( dev-ruby/activesupport dev-ruby/mocha )" + +all_ruby_prepare() { + sed -e '/bundler/ s:^:#:' -e '/History.rdoc/d' \ + -i Rakefile test/test_helper.rb test/timecop_with_active_support_test.rb || die + sed -i -e '/rubygems/ a\gem "test-unit"' \ + -e '/minitest\/rg/ s:^:#:' -e '/pry/ s:^:#:' test/test_helper.rb || die +} + +each_ruby_test() { + for f in test/*_test.rb ; do + ${RUBY} -Ilib $f || die + done +} |