summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-04-30 07:02:37 +0200
committerHans de Graaff <graaff@gentoo.org>2017-04-30 07:02:37 +0200
commite8247b66edcd169efb8e854e2f8212d66088324b (patch)
tree3f8f31920a8a98364b836c6cc840c85597d11a58 /dev-ruby/http
parentdev-ruby/http: cleanup (diff)
downloadgentoo-e8247b66edcd169efb8e854e2f8212d66088324b.tar.gz
gentoo-e8247b66edcd169efb8e854e2f8212d66088324b.tar.bz2
gentoo-e8247b66edcd169efb8e854e2f8212d66088324b.zip
dev-ruby/http: add 2.2.2
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-ruby/http')
-rw-r--r--dev-ruby/http/Manifest1
-rw-r--r--dev-ruby/http/http-2.2.2.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/http/Manifest b/dev-ruby/http/Manifest
index c9032ce63b1a..59f38d3bec30 100644
--- a/dev-ruby/http/Manifest
+++ b/dev-ruby/http/Manifest
@@ -2,3 +2,4 @@ DIST http-0.6.3.gem 67072 SHA256 bbefb6ab1255f2967437b0ea9b29058066c89b1e30448e3
DIST http-0.9.8.gem 66560 SHA256 517790c159adc2755c0a6dac5b64d719d4dd8fb4437409e443f4a42b31ea89d2 SHA512 bb89147a3c28ebd75d2453e51c0c422557907e055b9a20a560b803bc64edfcdfe96e997ff225a26c9ca278211b0f70faaccf2d18ce2cdc9fd95bc4048093ef68 WHIRLPOOL 5a061560f2c34f951d862a11cdafae61a684f76b3a5298c46dc78f2f3536035cadae1c35ac26833774041a7687593b2b47a9b066e7a46cdaf1faa9d5bbb3217d
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
diff --git a/dev-ruby/http/http-2.2.2.ebuild b/dev-ruby/http/http-2.2.2.ebuild
new file mode 100644
index 000000000000..6c13db38412e
--- /dev/null
+++ b/dev-ruby/http/http-2.2.2.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="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
+}