diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-07-29 07:41:26 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-07-29 07:42:12 +0200 |
commit | ea2edc203d43c38a857146f362dbcb80dbde8e86 (patch) | |
tree | acdf1283f8af3c8606d0bc292e22205ecbdcbaac /dev-ruby | |
parent | dev-ruby/multi_xml: add ruby24 (diff) | |
download | gentoo-ea2edc203d43c38a857146f362dbcb80dbde8e86.tar.gz gentoo-ea2edc203d43c38a857146f362dbcb80dbde8e86.tar.bz2 gentoo-ea2edc203d43c38a857146f362dbcb80dbde8e86.zip |
dev-ruby/faraday_middleware: add 0.12.0
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/faraday_middleware/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/faraday_middleware/faraday_middleware-0.12.0.ebuild | 61 |
2 files changed, 62 insertions, 0 deletions
diff --git a/dev-ruby/faraday_middleware/Manifest b/dev-ruby/faraday_middleware/Manifest index a636861122ef..03795030d7a4 100644 --- a/dev-ruby/faraday_middleware/Manifest +++ b/dev-ruby/faraday_middleware/Manifest @@ -1,3 +1,4 @@ DIST faraday_middleware-0.10.0.tar.gz 22646 SHA256 210e69fc76e2f5c2b76771452e1b859129869961749262e16bee7b50ff98ddc3 SHA512 f516f040a7be7b14635e8685d6d63647fd49ef595f31c655b6cd8e6b9443a80e1d4c68a516cd4088c129a73e411748d15d97b24cbcf321fd15953292ca3c7964 WHIRLPOOL 5c1b3d64358a71b35bd7b721ffff1e76da248e59b3eff6404ef0d46c8c149d1c5045422b05a10bef5205d2bf65c19edff6ad7f96c7ff863ee4a3bd05def2035b DIST faraday_middleware-0.11.0.1.tar.gz 24349 SHA256 5c823e30a0d4ba4cc83103752947c1380344974cf4dffa9de08055edc6bacf91 SHA512 0bda75432ffa406485e60e9f71dc850a13dc1dd89a8262c9a4101d982fec44b63c72452458d29c49b529ca3483b577ea760400b465bf4b30ae1623a42cb96051 WHIRLPOOL 0034d1054809d47f10a18227d0ab444e36ac0b7b5af95d9f84ce3f748e82a43750819ee7be61b0964d0effd6f2383b2c409838701ee8e42a9fd05a0392a104c8 DIST faraday_middleware-0.11.0.tar.gz 24345 SHA256 254413e5e63b8b5879a75090fd796181fb54fba7536a56e4bcc2bc2e0fe4c645 SHA512 555407c2daa220fe050a33a6572626bdd47b800f75a87cc0b4da7a311aa3a89c24873434fdb8c14ae92e34c253179697471c25a42d18034b8a1e1e8c332f0e13 WHIRLPOOL 00ce78b1b6f9b7ff093da0e13f7f7619a53e627191ef977f2894e7dc3827bb8321def94184d588b0124369a55f5a50edabc08481d746ee35631e96a0947568da +DIST faraday_middleware-0.12.0.tar.gz 24896 SHA256 ca5346e0aa668ea33257cc539ab16f6df90e6ca1e705025b01d46c2b245820fa SHA512 e4867c122d69e3b8e8a405a85bc8be4c1489861f4acf42369f34ecda67ca0e821509ef522e742bc8b7a20fb0650a45866a04f4b4469829fbc50cd040cef374af WHIRLPOOL 110b39978e3e3aa02e021c8ea5fbedb051abe215a1e2db856da769bb32c3495f871bb70598b2862a89f2eb0b6c73b95a7597070e571d9196b6fb7cf3798ad3d8 diff --git a/dev-ruby/faraday_middleware/faraday_middleware-0.12.0.ebuild b/dev-ruby/faraday_middleware/faraday_middleware-0.12.0.ebuild new file mode 100644 index 000000000000..3f3eefd7c5d3 --- /dev/null +++ b/dev-ruby/faraday_middleware/faraday_middleware-0.12.0.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 +} |