summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2015-10-10 07:56:42 +0200
committerHans de Graaff <graaff@gentoo.org>2015-10-10 07:56:42 +0200
commit5496f3fc9cc81b0be8724f81feb39269d0c52e9a (patch)
tree2bd190a0270458396d998a760eeba6b2fb0041f1 /dev-ruby/faraday_middleware
parentdev-ruby/faraday_middleware: cleanup (diff)
downloadgentoo-5496f3fc9cc81b0be8724f81feb39269d0c52e9a.tar.gz
gentoo-5496f3fc9cc81b0be8724f81feb39269d0c52e9a.tar.bz2
gentoo-5496f3fc9cc81b0be8724f81feb39269d0c52e9a.zip
dev-ruby/faraday_middleware: add 0.10.0
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-ruby/faraday_middleware')
-rw-r--r--dev-ruby/faraday_middleware/Manifest1
-rw-r--r--dev-ruby/faraday_middleware/faraday_middleware-0.10.0.ebuild52
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-ruby/faraday_middleware/Manifest b/dev-ruby/faraday_middleware/Manifest
index 78c3a43d2632..e83ebc76fde3 100644
--- a/dev-ruby/faraday_middleware/Manifest
+++ b/dev-ruby/faraday_middleware/Manifest
@@ -1 +1,2 @@
+DIST faraday_middleware-0.10.0.tar.gz 22646 SHA256 210e69fc76e2f5c2b76771452e1b859129869961749262e16bee7b50ff98ddc3 SHA512 f516f040a7be7b14635e8685d6d63647fd49ef595f31c655b6cd8e6b9443a80e1d4c68a516cd4088c129a73e411748d15d97b24cbcf321fd15953292ca3c7964 WHIRLPOOL 5c1b3d64358a71b35bd7b721ffff1e76da248e59b3eff6404ef0d46c8c149d1c5045422b05a10bef5205d2bf65c19edff6ad7f96c7ff863ee4a3bd05def2035b
DIST faraday_middleware-0.9.2.tar.gz 21926 SHA256 014cfce128eb50a696168eb012e830c349c52c9e6ae25a5bbaea30f2c59de17d SHA512 74d0a63eac16f119ca2c2c6da16fe3b7a1c9e6949044ec312ed5828544bb83e3bdfd65a1991cfb1fdeb29543f1ee978781bed76299361683b69ed362feb4f18d WHIRLPOOL 3c4ebb2c690fb9624d7f908cc2b31e87264b7746d48873494e23de642067b2149e5fd115e27d00c332d652ad7f2321396a52ee8d09242169c952863859c43bad
diff --git a/dev-ruby/faraday_middleware/faraday_middleware-0.10.0.ebuild b/dev-ruby/faraday_middleware/faraday_middleware-0.10.0.ebuild
new file mode 100644
index 000000000000..74cf6b4458c2
--- /dev/null
+++ b/dev-ruby/faraday_middleware/faraday_middleware-0.10.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+USE_RUBY="ruby19 ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem eutils
+
+DESCRIPTION="Various middleware for Faraday"
+HOMEPAGE="https://github.com/lostisland/faraday_middleware"
+SRC_URI="https://github.com/lostisland/faraday_middleware/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+parsexml +oauth +mashify +rashify"
+
+ruby_add_rdepend "
+ >=dev-ruby/faraday-0.7.4 <dev-ruby/faraday-0.10
+ parsexml? ( >=dev-ruby/multi_xml-0.5.3 )
+ oauth? ( >=dev-ruby/simple_oauth-0.1 )
+ mashify? ( >=dev-ruby/hashie-1.2:* )
+ rashify? ( >=dev-ruby/rash-0.3 )"
+
+# Bundler must be used because the optional dependencies have different
+# version requirements that must be resolved.
+ruby_add_bdepend "test? (
+ dev-ruby/bundler
+ >=dev-ruby/multi_xml-0.5.3
+ >=dev-ruby/rack-cache-1.1
+ >=dev-ruby/simple_oauth-0.1
+ >=dev-ruby/hashie-1.2
+ >=dev-ruby/rash-0.3 )"
+
+all_ruby_prepare() {
+ sed -i -e '/\(cane\|parallel\|simplecov\)/ s:^:#:' \
+ -e '/rspec/ s/>=/~>/' \
+ -e "/simple_oauth/ s/, '< 0.3'//" Gemfile || die
+}
+
+each_ruby_test() {
+ ${RUBY} -S bundle exec rspec-3 spec || die
+}