summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2020-01-25 07:50:56 +0100
committerHans de Graaff <graaff@gentoo.org>2020-01-25 07:50:56 +0100
commit2029c17dac394fd2eb06bc43cb8c66188271f5ec (patch)
treece3e91113a5cc577e3ec5588ec028e76673c9ccf
parentdev-ruby/simple_oauth: add ruby27 (diff)
downloadgentoo-2029c17dac394fd2eb06bc43cb8c66188271f5ec.tar.gz
gentoo-2029c17dac394fd2eb06bc43cb8c66188271f5ec.tar.bz2
gentoo-2029c17dac394fd2eb06bc43cb8c66188271f5ec.zip
dev-ruby/faraday_middleware: add 0.14.0
Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r--dev-ruby/faraday_middleware/Manifest1
-rw-r--r--dev-ruby/faraday_middleware/faraday_middleware-0.14.0.ebuild65
2 files changed, 66 insertions, 0 deletions
diff --git a/dev-ruby/faraday_middleware/Manifest b/dev-ruby/faraday_middleware/Manifest
index a56e9996705b..90c83bd07f0f 100644
--- a/dev-ruby/faraday_middleware/Manifest
+++ b/dev-ruby/faraday_middleware/Manifest
@@ -1 +1,2 @@
DIST faraday_middleware-0.13.1.tar.gz 25728 BLAKE2B 7899d9115ad4e93ab1dedecfe5147fc425c5f884f66e473870542662b93e616e48392d7c564079fc55dfc7ffc09f5983d8a481894f295b88178d15ac05e2b312 SHA512 ea58c14e4e45cf1118281f42861df2e54c97ed92ab25d1de68a9d9da73b1ace378d464140ac8c0e42c5b36d5b0cd5f760092727c49da26c10b4e2566af9ab768
+DIST faraday_middleware-0.14.0.tar.gz 26313 BLAKE2B 2d925f0bd9e4a10505bcdd3b483ac7b8ed2c42dc1187e04069505216dc739af3f10f5c7f2252e3f474e5ddaf972a7b8fe009be9957e66ab625fe49c364a0d217 SHA512 d8e86da166022c04c12acc37981de446ba30050330dc0320eec0414157bdd6c8e92ff49ce92b390a2f5d457c396144dbde698d61993302c0ac416559e7078a8d
diff --git a/dev-ruby/faraday_middleware/faraday_middleware-0.14.0.ebuild b/dev-ruby/faraday_middleware/faraday_middleware-0.14.0.ebuild
new file mode 100644
index 000000000000..9f9051bf59ed
--- /dev/null
+++ b/dev-ruby/faraday_middleware/faraday_middleware-0.14.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+USE_RUBY="ruby24 ruby25 ruby26"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+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
+ >=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
+}