This commit is contained in:
Anton Bolshakov 2025-11-23 11:19:34 +08:00
parent 8b8088cae2
commit 8bf01a8c63
No known key found for this signature in database
GPG key ID: 32BDCED870788F04

View file

@ -33,13 +33,13 @@ ruby_add_bdepend "test? (
>=dev-ruby/dalli-2.7.9 >=dev-ruby/dalli-2.7.9
)" )"
all_ruby_prepare() { #all_ruby_prepare() {
sed -e '/bundler/I s:^:#:' -i Rakefile spec/spec_helper.rb || die # sed -e '/bundler/I s:^:#:' -i Rakefile spec/spec_helper.rb || die
sed -i -e '3igem "rack", "~> 2.2.0"; gem "faraday", "<2"; require "timeout"' spec/spec_helper.rb || die # sed -i -e '3igem "rack", "~> 2.2.0"; gem "faraday", "<2"; require "timeout"' spec/spec_helper.rb || die
sed -i -e '/Rack::Handler::WEBrick/ s/options/\*\*options/' spec/support/localhost_server.rb || die # sed -i -e '/Rack::Handler::WEBrick/ s/options/\*\*options/' spec/support/localhost_server.rb || die
# Avoid specs failing because default headers are provided or # Avoid specs failing because default headers are provided or
# checked now, probably due to changes in either rack or webrick. # checked now, probably due to changes in either rack or webrick.
sed -e '/calls on_headers and on_\(body\|complete\)/ s/it/xit/' \ # sed -e '/calls on_headers and on_\(body\|complete\)/ s/it/xit/' \
-i spec/typhoeus/request/operations_spec.rb || die # -i spec/typhoeus/request/operations_spec.rb || die
} #}