diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-03-24 23:59:54 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-03-24 23:59:54 +0000 |
commit | 401101f9c8077911929d3f2b60a37098460a5d89 (patch) | |
tree | c2bef4719f6787550f0916aeaa8f4f403a9296af /dev-ruby/rack-test | |
parent | 4cbcc855382a06088e2f016f62cafdbcb7e40665 (diff) |
gentoo resync : 25.03.2022
Diffstat (limited to 'dev-ruby/rack-test')
-rw-r--r-- | dev-ruby/rack-test/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rack-test/rack-test-1.1.0-r1.ebuild | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/dev-ruby/rack-test/Manifest b/dev-ruby/rack-test/Manifest index 0f2db7ee1528..d391ee697658 100644 --- a/dev-ruby/rack-test/Manifest +++ b/dev-ruby/rack-test/Manifest @@ -1,3 +1,4 @@ DIST rack-test-1.1.0.tar.gz 27035 BLAKE2B 640de2303850662c3b6a8fc17f2344223c9928b48abde6d1b251a634689793158f35498c4736e4e2d069efa921d37bc32da92a7e17c0761a6f6111b345b54c1a SHA512 36d947d9b13d33ee8322e5b9d18fe8266787ccb7703f1fafadc040123e34dd44e98e7faf8b6dd816e51ed167065b2ffe79e9bcee74564dc324ba2b7dba76f82a +EBUILD rack-test-1.1.0-r1.ebuild 1070 BLAKE2B ac6a11196276e39efeb7dcc156e385c2cdaf96059c6316493d46e5a0e4f017b08f0cbb07de5a65120d60d3f98e08a07c3ccb8f004172102a642523b754b34118 SHA512 becbc9584e8113000d2dd31810ed02d48164316764b700362868132dcb1f5b04cc734d2e8b45327ed800f5dd7e12cc81a911a9a3f55c63c999d4341d2e3f3072 EBUILD rack-test-1.1.0.ebuild 1108 BLAKE2B 1534d576f8d11d3cb0a968d203c6858939206c5c24f0d923a38a350dedd7dd8d1ccc6f0fe999982bfb0e89ff2297ec41e828d342eb82d7b3fd006a860965dc6b SHA512 37e6bc3b2d4bca5d16f1d924a7a99fddcb19f19a1490bbc47dee4843c5a47c30ff334f544e810c93883dab387c04dd7608c17862fe2104c72b88a50e15bc9085 MISC metadata.xml 344 BLAKE2B e30c148bc0cfee01a015a9f33b641e93cafb8791f46ea7c1ec56942da88eec469d0259780c697b3bae0cbaf806dc47f919b78f2aca4d7565effd47a630f6485b SHA512 93102d50461492b9a866f74783d9d6c3d04698a8766535064d1b3c2600c11f1002b3a8bba79c81b4294e19a33cb06f8b407442c73d24fd2efcf361e39623ad9e diff --git a/dev-ruby/rack-test/rack-test-1.1.0-r1.ebuild b/dev-ruby/rack-test/rack-test-1.1.0-r1.ebuild new file mode 100644 index 000000000000..fff17aea6b0d --- /dev/null +++ b/dev-ruby/rack-test/rack-test-1.1.0-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby26 ruby27 ruby30" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_EXTRADOC="History.md README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Rack::Test is a small, simple testing API for Rack apps" +HOMEPAGE="https://github.com/rack-test/rack-test" +SRC_URI="https://github.com/rack-test/rack-test/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="1.0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="" + +ruby_add_rdepend ">=dev-ruby/rack-1.0:* <dev-ruby/rack-3:*" +ruby_add_bdepend " + test? ( dev-ruby/sinatra:2 )" + +all_ruby_prepare() { + rm Gemfile* || die + sed -e '/bundler/d' \ + -e '/[Cc]ode[Cc]limate/d' \ + -e '/simplecov/,/^end/ s:^:#:' \ + -i spec/spec_helper.rb || die + sed -i -e 's/git ls-files --/find/' ${RUBY_FAKEGEM_GEMSPEC} || die + + # Avoid test broken with rack 2.2 + sed -i -e '/closes response.s body/askip "rack 2.2 compatibility"' spec/rack/test_spec.rb || die +} |