diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-07-19 07:25:17 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-07-19 07:25:17 +0200 |
commit | e8183377fe675a8e6281d1a5161b7e996ec62d75 (patch) | |
tree | fb6cd8d0195cbc1c0cb552c607d21443e7268513 /dev-ruby/rack-cache | |
parent | dev-ruby/msgpack: add 1.7.2 (diff) | |
download | gentoo-e8183377fe675a8e6281d1a5161b7e996ec62d75.tar.gz gentoo-e8183377fe675a8e6281d1a5161b7e996ec62d75.tar.bz2 gentoo-e8183377fe675a8e6281d1a5161b7e996ec62d75.zip |
dev-ruby/rack-cache: add 1.14.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/rack-cache')
-rw-r--r-- | dev-ruby/rack-cache/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rack-cache/rack-cache-1.14.0.ebuild | 46 |
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-ruby/rack-cache/Manifest b/dev-ruby/rack-cache/Manifest index 4218b279ef62..ad725d150f50 100644 --- a/dev-ruby/rack-cache/Manifest +++ b/dev-ruby/rack-cache/Manifest @@ -1 +1,2 @@ DIST rack-cache-1.13.0.tar.gz 262945 BLAKE2B ea0dafe105c8c1e10815c39b928c5a86bf77a0cf3a31f085169028cb633dddd3db761138fb85b7f5da6c3374e749e898d97622994ad3a7b4972befbd46d31e3b SHA512 049302994663703ea593e01194e1c5c3b95afc889e628906e65302dd1fe64fc280bac9d26855db2fc7af1e287201a47c7f6a52329a3151b3efc775c0585d837c +DIST rack-cache-1.14.0.tar.gz 263917 BLAKE2B 1d8a95bcb4d4d3c5a61282fa7466a728c234d9b39e1fa7db27c3804e665618bb13a5a797d2b989768f51b1d0d4b0f1cdec44f6e3bd3f4cfae4e9e530d12c701a SHA512 258d8b9f8daf282e6614b8cb10d44e747a29e4d1ff4b5acf0c57546f0714161fd4b9fc8ff5b2ca7b175b4f9158337ee1281d46c2238a158ee06a07ed79c71636 diff --git a/dev-ruby/rack-cache/rack-cache-1.14.0.ebuild b/dev-ruby/rack-cache/rack-cache-1.14.0.ebuild new file mode 100644 index 000000000000..f36440096e15 --- /dev/null +++ b/dev-ruby/rack-cache/rack-cache-1.14.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31 ruby32" + +# no documentation is generable, it needs hanna, which is broken +RUBY_FAKEGEM_RECIPE_DOC="none" + +RUBY_FAKEGEM_TASK_TEST="none" + +RUBY_FAKEGEM_EXTRADOC="CHANGES README.md doc/*" + +RUBY_FAKEGEM_GEMSPEC="rack-cache.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Enable HTTP caching for Rack-based applications that produce freshness info" +HOMEPAGE="https://github.com/rack/rack-cache" +SRC_URI="https://github.com/rack/rack-cache/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="1.2" +KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="" + +ruby_add_rdepend "dev-ruby/rack:*" + +ruby_add_bdepend "test? ( + >=dev-ruby/maxitest-3.4.0 + >=dev-ruby/minitest-5.7.0:5 + >=dev-ruby/mocha-2 )" + +all_ruby_prepare() { + sed -i -e '/bundler/ s:^:#:' \ + test/test_helper.rb || die +} + +all_ruby_prepare() { + sed -i -e 's/git ls-files/find */' -e "s:_relative ': './:" ${RUBY_FAKEGEM_GEMSPEC} || die + sed -i -e '/bundler/ s:^:#:' test/test_helper.rb || die +} + +each_ruby_test() { + MT_NO_PLUGINS=true ${RUBY} -I.:lib:test -e 'Dir["test/*_test.rb"].each{|f| require f}' || die +} |