diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-08-05 07:54:51 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-08-05 07:54:51 +0200 |
commit | 9eca962bc7efb96d9dbee1a66b4c0302f58913c3 (patch) | |
tree | 8f2720c68621ee5b8ca53bcb63acc0889e2e463a /dev-ruby/faraday_middleware/faraday_middleware-0.12.2.ebuild | |
parent | dev-ruby/hitimes: add 1.2.6 (diff) | |
download | gentoo-9eca962bc7efb96d9dbee1a66b4c0302f58913c3.tar.gz gentoo-9eca962bc7efb96d9dbee1a66b4c0302f58913c3.tar.bz2 gentoo-9eca962bc7efb96d9dbee1a66b4c0302f58913c3.zip |
dev-ruby/faraday_middleware: add 0.12.2
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'dev-ruby/faraday_middleware/faraday_middleware-0.12.2.ebuild')
-rw-r--r-- | dev-ruby/faraday_middleware/faraday_middleware-0.12.2.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-ruby/faraday_middleware/faraday_middleware-0.12.2.ebuild b/dev-ruby/faraday_middleware/faraday_middleware-0.12.2.ebuild new file mode 100644 index 000000000000..3f3eefd7c5d3 --- /dev/null +++ b/dev-ruby/faraday_middleware/faraday_middleware-0.12.2.ebuild @@ -0,0 +1,61 @@ +# 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="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" +IUSE="+parsexml +oauth +mashify +rashify" + +ruby_add_rdepend " + >=dev-ruby/faraday-0.7.4 <dev-ruby/faraday-1 + 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_alt-0.4.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/addressable + dev-ruby/rake + dev-ruby/webmock:0 + dev-ruby/json:0 + >=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_alt-0.4.3 )" + +all_ruby_prepare() { + sed -i -e '/\(cane\|parallel\|simplecov\)/ s:^:#:' \ + -e '/rspec/ s/>=/~>/' \ + -e "/addressable/ s/, '< 2.4'//" \ + -e "/rake/ s/, '< 11'//" \ + -e "/rack-cache/ s/, '< 1.3'//" \ + -e "/simple_oauth/ s/, '< 0.3'//" Gemfile || die + + # Avoid unneeded dependency on git + sed -i -e '/git ls-files/d' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_test() { + ${RUBY} -S bundle exec rspec-3 spec || die +} |