diff options
author | Hans de Graaff <graaff@gentoo.org> | 2020-08-16 10:10:00 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2020-08-16 18:29:33 +0200 |
commit | d63aef92083f63121dc50255d6251d08d71074fd (patch) | |
tree | 9bc4e41140874f965e5e97f4984721fc95b8a1a3 /dev-ruby/faraday | |
parent | dev-ruby/jquery-ui-rails: add ruby27 (diff) | |
download | gentoo-d63aef92083f63121dc50255d6251d08d71074fd.tar.gz gentoo-d63aef92083f63121dc50255d6251d08d71074fd.tar.bz2 gentoo-d63aef92083f63121dc50255d6251d08d71074fd.zip |
dev-ruby/faraday: allow all rack versions
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/faraday')
-rw-r--r-- | dev-ruby/faraday/faraday-1.0.1.ebuild | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dev-ruby/faraday/faraday-1.0.1.ebuild b/dev-ruby/faraday/faraday-1.0.1.ebuild index 4148d3eb78e6..83b25512b439 100644 --- a/dev-ruby/faraday/faraday-1.0.1.ebuild +++ b/dev-ruby/faraday/faraday-1.0.1.ebuild @@ -29,7 +29,7 @@ ruby_add_rdepend ">=dev-ruby/multipart-post-1.2.0 <dev-ruby/multipart-post-3" ruby_add_bdepend "test? ( >=dev-ruby/test-unit-2.4 >=dev-ruby/connection_pool-2.2.2 - || ( dev-ruby/rack:2.0 dev-ruby/rack:1.6 ) + dev-ruby/rack )" all_ruby_prepare() { @@ -40,7 +40,6 @@ all_ruby_prepare() { # Avoid loading all lib files since some of them require unpackaged dependencies. sed -e '/[Cc]overall/ s:^:#:' \ -e '/lib\/\*\*/ s:^:#:' \ - -e '3igem "rack", "<2.1"' \ -e '/simplecov/ s:^:#:' \ -e '/SimpleCov/,/end/ s:^:#:' \ -e '/pry/ s:^:#:' \ @@ -65,6 +64,9 @@ all_ruby_prepare() { if ! has_version "dev-ruby/typhoeus:1" ; then rm -f spec/faraday/adapter/typhoeus_spec.rb || die fi + + # Fix spec broken by newer rack versions, already fixed upstream + sed -i -e 's/one, two/name=value/' spec/support/shared_examples/request_method.rb || die } each_ruby_prepare() { |