summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-02-05 09:56:46 +0100
committerHans de Graaff <graaff@gentoo.org>2017-02-05 10:18:04 +0100
commitafb175996ca93635f6b521caed5151b4d230de68 (patch)
treecdef6b9dfbfab99dc121f2d1719b6b8e894f7a82
parentdev-ruby/certificate_authority: restore x86 keyword (diff)
downloadgentoo-afb175996ca93635f6b521caed5151b4d230de68.tar.gz
gentoo-afb175996ca93635f6b521caed5151b4d230de68.tar.bz2
gentoo-afb175996ca93635f6b521caed5151b4d230de68.zip
dev-ruby/http: add 2.2.0
Package-Manager: portage-2.3.3
-rw-r--r--dev-ruby/http/Manifest1
-rw-r--r--dev-ruby/http/http-2.2.0.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/http/Manifest b/dev-ruby/http/Manifest
index 2f794f3c24f..7bbb5670591 100644
--- a/dev-ruby/http/Manifest
+++ b/dev-ruby/http/Manifest
@@ -3,3 +3,4 @@ DIST http-0.9.8.gem 66560 SHA256 517790c159adc2755c0a6dac5b64d719d4dd8fb4437409e
DIST http-1.0.2.gem 62464 SHA256 90f0b96e221d6c4bd6cfbdb6e2ec5426e1bdbb61f833e2fa23ac8385cfdeb34b SHA512 fbfa76f588d46b10dfa0d3b319d0ca1a5a92749575cf27791febaf5d55f2e4458cf34f48d8b9792d4e220c89c702b75b039ca5b66d3c43d31bab982082312113 WHIRLPOOL 8c0d4a94aa182d0d38e2e27e2eb21272efa7b2b48309d7c225acb56aa6a169a1d399a693e897a2ae0cb19b98ba09972370d31fca7b74a24df8002ecf36cb2920
DIST http-2.0.3.gem 62976 SHA256 f8681ff9f77fbc1ca4b92e70f112d1664efd56172862a175912092082051eb56 SHA512 957f40b627f2da98632636053ddd37d7ca6fb29b94b78157eade3fd13696611808f74c8e12b6a458a47f9494d192656610968b5273754fb006876690a6d0211f WHIRLPOOL ed130b4e36d62e353c35c96ecd493c9805ff9372d1397dee89ad54828e57212f71f5d63a9d70390b2a89c90405af7aae745dcb3de71397dd7f1b81985919093e
DIST http-2.1.0.gem 63488 SHA256 64c1a2811811e379f8ca0c1102f378242c09d1f721c17edcdb4d6c9250467fed SHA512 0562abd7e53520085559f388bd401475b0c09943dc842b5b1c25cc9f184f31ae41b75001940dd5c7b7a6b2727d52c2f4f701bdb60d0b233a93f66ea1b2434657 WHIRLPOOL 6d949451c565453c88b6f69c26bd87fd030344e2020d65cdd99ffabe9ad32085ca4b81e9363a3ce167c30fe5d2db05b490b3877e45912cb5eea6bf8f0bade51f
+DIST http-2.2.0.gem 66560 SHA256 b01a96c88bffb5eb5340b842ef9647c91090915a1363e9d25452d53768d26eaf SHA512 82e3c11f8b5df23e42fea9528aab65d09e130ff12b919a0fda5539054883a29f7f512b0d120beec46e2879840c2525fdd2c8ce97311ba8417dc36947cae062f7 WHIRLPOOL 329f0349d318309594905b365118dc9d95faf319bdb3b0bdcac340c2ff6996d1ece600109554c494bcc10699a1ddd4a13d38c6028c036e78742ea5239e24dc6c
diff --git a/dev-ruby/http/http-2.2.0.ebuild b/dev-ruby/http/http-2.2.0.ebuild
new file mode 100644
index 00000000000..13bd382880d
--- /dev/null
+++ b/dev-ruby/http/http-2.2.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="An easy-to-use client library for making requests from Ruby"
+HOMEPAGE="https://github.com/tarcieri/http"
+
+LICENSE="MIT"
+SLOT="2.0"
+KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
+IUSE=""
+
+ruby_add_rdepend "
+ >=dev-ruby/addressable-2.3
+ >=dev-ruby/http-cookie-1.0
+ >=dev-ruby/http-form_data-1.0.1:1.0
+ >=dev-ruby/http_parser_rb-0.6.0 =dev-ruby/http_parser_rb-0.6*"
+
+ruby_add_bdepend "
+ test? ( dev-ruby/certificate_authority dev-ruby/rspec-its )"
+
+all_ruby_prepare() {
+ sed -i -e '/simplecov/,/end/ s:^:#:' \
+ -e '1irequire "cgi"' spec/spec_helper.rb || die
+
+ # Avoid specs that require network access
+ sed -i -e '/.persistent/,/^ end/ s:^:#:' \
+ spec/lib/http_spec.rb || die
+ sed -i -e '/with non-ASCII URLs/,/^ end/ s:^:#:' \
+ spec/lib/http/client_spec.rb || die
+
+ # Avoid spec that may fail with a running web server
+ sed -i -e '/unifies socket errors into HTTP::ConnectionError/,/^ end/ s:^:#:' spec/lib/http_spec.rb || die
+}