summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-02-10 19:03:17 +0100
committerHans de Graaff <graaff@gentoo.org>2017-02-10 19:04:30 +0100
commitcedbbcf7786eab81c137b67bb6cd2fab73e1364c (patch)
tree2253091550dfdaea5b5b252ea20b2d51e1c288f6 /dev-ruby/http
parentsys-apps/portage: arm64 stable (bug 606936). (diff)
downloadgentoo-cedbbcf7786eab81c137b67bb6cd2fab73e1364c.tar.gz
gentoo-cedbbcf7786eab81c137b67bb6cd2fab73e1364c.tar.bz2
gentoo-cedbbcf7786eab81c137b67bb6cd2fab73e1364c.zip
dev-ruby/http: add 2.2.1
Package-Manager: portage-2.3.3
Diffstat (limited to 'dev-ruby/http')
-rw-r--r--dev-ruby/http/Manifest1
-rw-r--r--dev-ruby/http/http-2.2.1.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/http/Manifest b/dev-ruby/http/Manifest
index 7bbb5670591..a6a36d030e8 100644
--- a/dev-ruby/http/Manifest
+++ b/dev-ruby/http/Manifest
@@ -4,3 +4,4 @@ DIST http-1.0.2.gem 62464 SHA256 90f0b96e221d6c4bd6cfbdb6e2ec5426e1bdbb61f833e2f
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
+DIST http-2.2.1.gem 66560 SHA256 59d3962cc8193540d014d9671d16079dd88eaeccd1dd3f126f7d5d96f2d14671 SHA512 e8edf381548c04d0fb2ea0f28104d85eda92d6de6686013190e84127c4ce118fe8b8a562267aed41ad23481ca54e21a215613d7e3d920d6c5ea9f9a3c4a2032c WHIRLPOOL d5e310bd902bdc1dd5813ddae6393256c04f3bd5de9594c543f7db8931a1d1514c80c13ba9f2dbf36e7cf8eae91c1f3fe0ebd0eade3a812531a9b80b24eee655
diff --git a/dev-ruby/http/http-2.2.1.ebuild b/dev-ruby/http/http-2.2.1.ebuild
new file mode 100644
index 00000000000..13bd382880d
--- /dev/null
+++ b/dev-ruby/http/http-2.2.1.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
+}