diff --git a/dev-ruby/net-http-pipeline/files/net-http-pipeline-accept-encoding.patch b/dev-ruby/net-http-pipeline/files/net-http-pipeline-accept-encoding.patch new file mode 100644 index 0000000000000..3adfdf28afdc2 --- /dev/null +++ b/dev-ruby/net-http-pipeline/files/net-http-pipeline-accept-encoding.patch @@ -0,0 +1,18 @@ +--- test/test_net_http_pipeline.rb.old 2016-11-17 07:58:57.284997283 +0100 ++++ test/test_net_http_pipeline.rb 2016-11-17 07:58:50.345168508 +0100 +@@ -96,6 +96,7 @@ + def http_get + get = [] + get << 'GET / HTTP/1.1' ++ get << 'Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3' + get << 'Accept: */*' + get << 'User-Agent: Ruby' if RUBY_VERSION > '1.9' + get.push nil, nil +@@ -106,6 +107,7 @@ + def http_post + get = [] + get << 'POST / HTTP/1.1' ++ get << 'Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3' + get << 'Accept: */*' + get << 'User-Agent: Ruby' if RUBY_VERSION > '1.9' + get.push nil, nil diff --git a/dev-ruby/net-http-pipeline/net-http-pipeline-1.0.1.ebuild b/dev-ruby/net-http-pipeline/net-http-pipeline-1.0.1.ebuild index f9cfa202eab62..fe348b5ee4720 100644 --- a/dev-ruby/net-http-pipeline/net-http-pipeline-1.0.1.ebuild +++ b/dev-ruby/net-http-pipeline/net-http-pipeline-1.0.1.ebuild @@ -3,7 +3,7 @@ # $Id$ EAPI=5 -USE_RUBY="ruby20 ruby21" +USE_RUBY="ruby20 ruby21 ruby22 ruby23" RUBY_FAKEGEM_RECIPE_DOC="rdoc" inherit ruby-fakegem @@ -16,6 +16,8 @@ SLOT="1" KEYWORDS="~amd64" IUSE="" +RUBY_PATCHES=( ${PN}-accept-encoding.patch ) + ruby_add_bdepend " dev-ruby/hoe test? ( dev-ruby/minitest )