summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-11-09 07:34:43 +0100
committerHans de Graaff <graaff@gentoo.org>2016-11-09 07:34:43 +0100
commit56494ef416f7e5b61edf5ce7fe6b4721aa2d1cfa (patch)
treed1f8f5778faf74e5dbecaa6ba933c72eab59d8fd /dev-ruby/http
parentdev-ruby/flexmock: add 2.3.2 (diff)
downloadgentoo-56494ef416f7e5b61edf5ce7fe6b4721aa2d1cfa.tar.gz
gentoo-56494ef416f7e5b61edf5ce7fe6b4721aa2d1cfa.tar.bz2
gentoo-56494ef416f7e5b61edf5ce7fe6b4721aa2d1cfa.zip
dev-ruby/http: add 2.1.0
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-ruby/http')
-rw-r--r--dev-ruby/http/Manifest1
-rw-r--r--dev-ruby/http/http-2.1.0.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/http/Manifest b/dev-ruby/http/Manifest
index a2d28ddcf5c6..b5ecb982f435 100644
--- a/dev-ruby/http/Manifest
+++ b/dev-ruby/http/Manifest
@@ -5,3 +5,4 @@ DIST http-2.0.0.gem 62464 SHA256 995c38950b382f3982ed1c3adaad27d087855fced1c62a2
DIST http-2.0.1.gem 62464 SHA256 f46f7ea5aec6e56b22fefe2de0d03d081156d348c6ff1f5c063f1f8c79dfe27b SHA512 db3166b11388974ca07acfd5de0cfeb5971363e6dbeb712abcba025b338d97704cc85593accf4a89c87c139fb2bd327c58665f4b12bc66cf4ab9eedb49c19ab2 WHIRLPOOL c69ccbfeafb5ac8d37942d6923df267136e225d9312c38d6e3999ec00bbf2c19f264a765ac9e90cf54e2cb082e56959411ba16ad90520e7af20f8c5f5c42e6eb
DIST http-2.0.2.gem 62976 SHA256 d881dfc7cb8f63fd25e522e8f99cdb922c9fe15410cd0d95b1bba083e07d6b76 SHA512 0466d270a5bc2fdbd0d5dff085373e16e99bd52142187ae6ec127ece982bfca2998fc369be724647725c7519bef61a4c8ad9a405e0a44a454729fa68984e8862 WHIRLPOOL 27ad8882f7d52d38c894ee0297826790a08941574f83f00e2cf2a6b282336857575818cfbf5451736671aa52475672b80b374553ade01b1fa8a9660c455bd3bd
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
diff --git a/dev-ruby/http/http-2.1.0.ebuild b/dev-ruby/http/http-2.1.0.ebuild
new file mode 100644
index 000000000000..da335b5cf727
--- /dev/null
+++ b/dev-ruby/http/http-2.1.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22"
+
+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
+}