diff options
author | Hans de Graaff <graaff@gentoo.org> | 2020-05-10 10:14:41 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2020-05-10 10:14:53 +0200 |
commit | 06afa37c2790c054791fa05fb485e1e1842b57b5 (patch) | |
tree | d1502aedaeb20eb9e57fc8450f7fd7b4c1eae9de /dev-ruby/rack-test | |
parent | dev-ruby/rack-test: fix gemspec install (diff) | |
download | gentoo-06afa37c2790c054791fa05fb485e1e1842b57b5.tar.gz gentoo-06afa37c2790c054791fa05fb485e1e1842b57b5.tar.bz2 gentoo-06afa37c2790c054791fa05fb485e1e1842b57b5.zip |
dev-ruby/rack-test: fix tests with newer rack
Closes: https://bugs.gentoo.org/718386
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/rack-test')
-rw-r--r-- | dev-ruby/rack-test/rack-test-1.1.0.ebuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dev-ruby/rack-test/rack-test-1.1.0.ebuild b/dev-ruby/rack-test/rack-test-1.1.0.ebuild index eb442b6dd861..9ddb9c014689 100644 --- a/dev-ruby/rack-test/rack-test-1.1.0.ebuild +++ b/dev-ruby/rack-test/rack-test-1.1.0.ebuild @@ -25,10 +25,14 @@ IUSE="" ruby_add_rdepend ">=dev-ruby/rack-1.0:* <dev-ruby/rack-3:*" ruby_add_bdepend " - test? ( dev-ruby/sinatra:2 dev-ruby/rack:2.0 )" + test? ( dev-ruby/sinatra:2 || ( dev-ruby/rack:2.1 dev-ruby/rack:2.0 ) )" all_ruby_prepare() { rm Gemfile* || die - sed -i -e '/bundler/d' -e '/[Cc]ode[Cc]limate/d' -e '/simplecov/,/^end/ s:^:#:' spec/spec_helper.rb || die + sed -e '/bundler/d' \ + -e '/[Cc]ode[Cc]limate/d' \ + -e '/simplecov/,/^end/ s:^:#:' \ + -e '1igem "rack", "<2.2"' \ + -i spec/spec_helper.rb || die sed -i -e 's/git ls-files --/find/' ${RUBY_FAKEGEM_GEMSPEC} || die } |