summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-10-14 09:12:01 +0200
committerHans de Graaff <graaff@gentoo.org>2017-10-14 10:08:02 +0200
commit1ab9324a7d45e7b824e64b3ad336a8e815911455 (patch)
treeb40c03da8fc9ee7c7f989b2fcb19ca9fc7dc869c /dev-ruby/http
parentmedia-gfx/exiv2: Fix !multilib_is_native_abi build (diff)
downloadgentoo-1ab9324a7d45e7b824e64b3ad336a8e815911455.tar.gz
gentoo-1ab9324a7d45e7b824e64b3ad336a8e815911455.tar.bz2
gentoo-1ab9324a7d45e7b824e64b3ad336a8e815911455.zip
dev-ruby/http: add 3.0.0
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-ruby/http')
-rw-r--r--dev-ruby/http/Manifest1
-rw-r--r--dev-ruby/http/http-3.0.0.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/http/Manifest b/dev-ruby/http/Manifest
index 59f38d3bec3..b26216063d8 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.2.1.gem 66560 SHA256 59d3962cc8193540d014d9671d16079dd88eaeccd1dd3f126f7d5d96f2d14671 SHA512 e8edf381548c04d0fb2ea0f28104d85eda92d6de6686013190e84127c4ce118fe8b8a562267aed41ad23481ca54e21a215613d7e3d920d6c5ea9f9a3c4a2032c WHIRLPOOL d5e310bd902bdc1dd5813ddae6393256c04f3bd5de9594c543f7db8931a1d1514c80c13ba9f2dbf36e7cf8eae91c1f3fe0ebd0eade3a812531a9b80b24eee655
DIST http-2.2.2.gem 67072 SHA256 391515043d4a37cdd6856b8bbf4f8af70fba1a9008ba77ae9f39d48d2e4e8dcd SHA512 9c22f7f4473e5cb0b605b9c8d25c1a93c34e7e440fb7cf4f3690cb9dd9e65ce3619d0575da3d97da6dfcf8e1560113b638bb447340605bebc160f589fb007bed WHIRLPOOL 1f4f665f24758a682a99e03fd9cc43747e80b1c97a78f47557ff9ce6eca740017b81fc6fc7851bab54cc6393ee8a0e0d930f800937addf492ebe915f7fe4c9b5
+DIST http-3.0.0.gem 69632 SHA256 da797d880d2d731097ab8ea4431ab7b0905e2cb02b19bcedf87920dc1e9612d7 SHA512 ef8c4148b68838e0669d5012c3548d373ef99d9273eb2ea25e7e0237027c766ffdbcdede766eb890f042b7211c2ed953688a372c46b120bf0bbd045c06b8aec3 WHIRLPOOL 2d678bfeefafed7809a10954dc5d6a1b4c392e73762c155a72add450219d43ede00e73d8b64bcb0b71a4a0f0e0fcbbcca7a6e2d96cbadde4bd0ea49a5e35e647
diff --git a/dev-ruby/http/http-3.0.0.ebuild b/dev-ruby/http/http-3.0.0.ebuild
new file mode 100644
index 00000000000..06a9349cf24
--- /dev/null
+++ b/dev-ruby/http/http-3.0.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby22 ruby23 ruby24"
+
+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="3"
+KEYWORDS="~amd64 ~arm ~ppc64"
+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
+}