summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-09-24 06:49:55 +0200
committerHans de Graaff <graaff@gentoo.org>2024-09-24 07:09:03 +0200
commitcf8757f5626352ecfd5d7ae218172d7fe55332ec (patch)
tree53947e72b7c4086fc26029503ba11432f2c9f338 /dev-ruby/faraday
parentdev-ruby/gettext_i18n_rails: enable ruby33 (diff)
downloadgentoo-cf8757f5626352ecfd5d7ae218172d7fe55332ec.tar.gz
gentoo-cf8757f5626352ecfd5d7ae218172d7fe55332ec.tar.bz2
gentoo-cf8757f5626352ecfd5d7ae218172d7fe55332ec.zip
dev-ruby/faraday: add 2.12.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/faraday')
-rw-r--r--dev-ruby/faraday/Manifest1
-rw-r--r--dev-ruby/faraday/faraday-2.12.0.ebuild61
2 files changed, 62 insertions, 0 deletions
diff --git a/dev-ruby/faraday/Manifest b/dev-ruby/faraday/Manifest
index 64757c7cfe22..de7497e28d4c 100644
--- a/dev-ruby/faraday/Manifest
+++ b/dev-ruby/faraday/Manifest
@@ -2,4 +2,5 @@ DIST faraday-1.10.3.tar.gz 835008 BLAKE2B 5b2cff7877cd1e73dc52830aed67988eb5ed33
DIST faraday-2.10.0.tar.gz 1031426 BLAKE2B b532fdaf9e13d29554b45d6a99d6eaedfa815a9681684727b31c66e80a6d0fea86f3883aba2a374e4c9dbb5033dbf92b189f57867b7c9616c2a414ff06814732 SHA512 30399c03b44c64fb50b327c61b190ae178447f1831f5916f6f396740af80b929f2a5191d75ab563017172c986d379dcd0395b43ac127a772443eb321bfbc6b1f
DIST faraday-2.10.1.tar.gz 1033252 BLAKE2B 2df625d91cedcfc3f78b97570e0a87404db74728f82e7c77776f806a0e388d629cb1fe0b35157c4b300db93db056a9c2bd1aff90f39a9dc326c6cae76e37fc0e SHA512 21a1777e1bb2f7b62963ad9063bc5ac373a9d1c6e827cf346630ea9dc1bd8f09009a554363dc92e030ce07bca002a24e10dce2736f43414e4e20bd394e55cdb4
DIST faraday-2.11.0.tar.gz 1033671 BLAKE2B a8db332300353afaaac62667cd70c5e3fcc812022aba3e76309b01122b65f7ff052cb114e72deebf72c3857fd2d9618ac901c16a489a331953e034c30d79ddc3 SHA512 1b38efb37869a37efc89eb56961f5cee4ecd4a815b1e4b30dcdc1157d210291078b408025ee5e22e0adc328c730cb70741e8840d749681fed1bd031b4db132cf
+DIST faraday-2.12.0.tar.gz 1033916 BLAKE2B e61c7854f6f3c5c3c8aa1d3d34352bce68390f2ec5a19e182451d0823311685e8608dcd1832362b6286c2c8a280ce764088fc45057c208730a90d91afadd29bc SHA512 654cd863eebb9bc85ec71ec5c8bfee53d959d9c0461db7c21c214bcf60ad5242431fceb5764966d5a15d607f5e9374a420135a2e67da2576f8c8805a9df100ff
DIST faraday-2.9.2.tar.gz 1031072 BLAKE2B 78a30d62bde0146274cc0c47a8f504d695fbdae0be50b49b92fdeb2e0fb83501b30a0a60c8d098d56f70263322fae5763b17dd2e8c6eea121b48cd4143034d9d SHA512 5f6af1a79f082e17113939282fdadae5ab2bba167f8d109b8f64b53ca3819d138f6e8a090c9d30036ab796a53ae53f4ecf2fd8c645e59a2aec025430b2c0e803
diff --git a/dev-ruby/faraday/faraday-2.12.0.ebuild b/dev-ruby/faraday/faraday-2.12.0.ebuild
new file mode 100644
index 000000000000..13153bccb2df
--- /dev/null
+++ b/dev-ruby/faraday/faraday-2.12.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32 ruby33"
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_RECIPE_DOC="none"
+
+RUBY_FAKEGEM_EXTRADOC="README.md"
+RUBY_FAKEGEM_EXTRAINSTALL="spec"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="HTTP/REST API client library with pluggable components"
+HOMEPAGE="https://github.com/lostisland/faraday"
+SRC_URI="https://github.com/lostisland/faraday/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+IUSE="test"
+
+DEPEND+=" test? ( sys-process/lsof )"
+
+ruby_add_rdepend "
+ || ( <dev-ruby/faraday-net_http-3.4:3 dev-ruby/faraday-net_http:2 )
+ dev-ruby/json
+ dev-ruby/logger
+"
+ruby_add_bdepend "test? (
+ >=dev-ruby/test-unit-2.4
+ >=dev-ruby/connection_pool-2.2.2
+ dev-ruby/rack:3.0
+ dev-ruby/webmock
+ )"
+
+all_ruby_prepare() {
+ # Remove bundler support.
+ rm Gemfile || die
+ sed -i -e '/[Bb]undler/d ; 1irequire "yaml"' Rakefile || die
+ # Avoid loading all lib files since some of them require unpackaged dependencies.
+ sed -e '/[Cc]overall/ s:^:#:' \
+ -e '/lib\/\*\*/ s:^:#:' \
+ -e '/simplecov/ s:^:#:' \
+ -e '/SimpleCov/,/end/ s:^:#:' \
+ -e '/pry/ s:^:#:' \
+ -i spec/spec_helper.rb || die
+
+ sed -e '/git ls-files/ s:^:#:' \
+ -e "s:_relative ': './:" \
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_test() {
+ MT_NO_PLUGINS=true each_fakegem_test
+}