commit: 9eca962bc7efb96d9dbee1a66b4c0302f58913c3 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Sat Aug 5 05:54:51 2017 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Sat Aug 5 05:54:51 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9eca962b
dev-ruby/faraday_middleware: add 0.12.2 Package-Manager: Portage-2.3.6, Repoman-2.3.2 dev-ruby/faraday_middleware/Manifest | 1 + .../faraday_middleware-0.12.2.ebuild | 61 ++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/dev-ruby/faraday_middleware/Manifest b/dev-ruby/faraday_middleware/Manifest index 03795030d7a..78adeb58891 100644 --- a/dev-ruby/faraday_middleware/Manifest +++ b/dev-ruby/faraday_middleware/Manifest @@ -2,3 +2,4 @@ DIST faraday_middleware-0.10.0.tar.gz 22646 SHA256 210e69fc76e2f5c2b76771452e1b8 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 +DIST faraday_middleware-0.12.2.tar.gz 25041 SHA256 a2261140b9afc6b4dbc482bf1c87281da0fc88b92b2ecfdce5951ae89e874cee SHA512 a93c6ad6a97da1c84e539ff5976f464e6126ea444b269be2f3bb3dab71ef6f46fd12cc0b4de7aa34842d4dcc274cca584ef879a8c1b80ca4557af4d4dafcd755 WHIRLPOOL 8bd3912ddcb4d7b0271c985fa72f87a3b7b151c6b55ddcab23cd6cbbf5b9602591b2831ea87ef4f3070a4c8604a9cd53e77a4e9c1c5372de524f609cb80ac4cc 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 00000000000..3f3eefd7c5d --- /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 +}