# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/faraday_middleware/faraday_middleware-0.9.1.ebuild,v 1.3 2015/05/25 05:47:01 patrick Exp $ EAPI=5 USE_RUBY="ruby19 ruby20 ruby21" RUBY_FAKEGEM_RECIPE_TEST="rspec" 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/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/simple_oauth-0.1 >=dev-ruby/hashie-1.2 >=dev-ruby/rash-0.3 )" all_ruby_prepare() { sed -i -e '/\(cane\|simplecov\)/ s:^:#:' \ -e '/rspec/ s/>=/~>/' Gemfile || die } each_ruby_test() { ${RUBY} -S bundle exec rspec-2 spec || die }