diff options
author | Hans de Graaff <graaff@gentoo.org> | 2019-02-10 10:58:52 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2019-02-10 12:07:05 +0100 |
commit | 8297f7f5a9cb151e637b4a281712df23db0f7c5a (patch) | |
tree | 0886fd472b06a787b51ab2571031ba1cfb2f8c11 /dev-ruby | |
parent | dev-ruby/fakefs: add 0.19.0 (diff) | |
download | gentoo-8297f7f5a9cb151e637b4a281712df23db0f7c5a.tar.gz gentoo-8297f7f5a9cb151e637b4a281712df23db0f7c5a.tar.bz2 gentoo-8297f7f5a9cb151e637b4a281712df23db0f7c5a.zip |
dev-ruby/faraday_middleware: add 0.13.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/faraday_middleware/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/faraday_middleware/faraday_middleware-0.13.1.ebuild | 66 |
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-ruby/faraday_middleware/Manifest b/dev-ruby/faraday_middleware/Manifest index a56f834ff7c7..b319c1e0a434 100644 --- a/dev-ruby/faraday_middleware/Manifest +++ b/dev-ruby/faraday_middleware/Manifest @@ -1 +1,2 @@ DIST faraday_middleware-0.12.2.tar.gz 25041 BLAKE2B 0ce9750f9ce8394d1d926345c50c6b565bc2f5bbc3991d8543424dacb243f2176a066cdb4c7dd4fa66f7f90beb477aa66513538d7a6c2f84de56075c304d3caa SHA512 a93c6ad6a97da1c84e539ff5976f464e6126ea444b269be2f3bb3dab71ef6f46fd12cc0b4de7aa34842d4dcc274cca584ef879a8c1b80ca4557af4d4dafcd755 +DIST faraday_middleware-0.13.1.tar.gz 25728 BLAKE2B 7899d9115ad4e93ab1dedecfe5147fc425c5f884f66e473870542662b93e616e48392d7c564079fc55dfc7ffc09f5983d8a481894f295b88178d15ac05e2b312 SHA512 ea58c14e4e45cf1118281f42861df2e54c97ed92ab25d1de68a9d9da73b1ace378d464140ac8c0e42c5b36d5b0cd5f760092727c49da26c10b4e2566af9ab768 diff --git a/dev-ruby/faraday_middleware/faraday_middleware-0.13.1.ebuild b/dev-ruby/faraday_middleware/faraday_middleware-0.13.1.ebuild new file mode 100644 index 000000000000..14abd76211e1 --- /dev/null +++ b/dev-ruby/faraday_middleware/faraday_middleware-0.13.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby23 ruby24 ruby25" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="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:3 + 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\|brotli\)/ 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'//" \ + -e "/webmock/ s/< 2/~> 3.0/" Gemfile || die + + # Avoid unneeded dependency on git + sed -i -e '/git ls-files/d' ${RUBY_FAKEGEM_GEMSPEC} || die + + # Avoid unpackaged brotli dependency + sed -i -e 's/jruby?/true/' \ + -e 's/gzip,deflate,br/gzip,deflate/' spec/unit/gzip_spec.rb || die +} + +each_ruby_test() { + ${RUBY} -S bundle exec rspec-3 spec || die +} |