summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-06-25 19:35:50 +0200
committerHans de Graaff <graaff@gentoo.org>2023-06-25 19:36:19 +0200
commitd8598759fc1da9dc6d58aa932293fe5f5c879e3f (patch)
treecca91d48042be85dcc82ec324e470a60a53db04d
parentapp-backup/dar: add 2.7.10 (diff)
downloadgentoo-d8598759fc1da9dc6d58aa932293fe5f5c879e3f.tar.gz
gentoo-d8598759fc1da9dc6d58aa932293fe5f5c879e3f.tar.bz2
gentoo-d8598759fc1da9dc6d58aa932293fe5f5c879e3f.zip
dev-ruby/faraday-retry: new package, add 2.2.0
New dependency for dev-ruby/acme-client. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r--dev-ruby/faraday-retry/Manifest1
-rw-r--r--dev-ruby/faraday-retry/faraday-retry-2.2.0.ebuild37
-rw-r--r--dev-ruby/faraday-retry/metadata.xml11
3 files changed, 49 insertions, 0 deletions
diff --git a/dev-ruby/faraday-retry/Manifest b/dev-ruby/faraday-retry/Manifest
new file mode 100644
index 000000000000..c8776d0308f9
--- /dev/null
+++ b/dev-ruby/faraday-retry/Manifest
@@ -0,0 +1 @@
+DIST faraday-retry-2.2.0.tar.gz 12498 BLAKE2B a6cd459b745b219ee004cda59e4b1d9199676968ff4e6ef1ba8676badb1c10614a09a30467356032be9054d276055047a78a23b41d65ba84444680151eec688a SHA512 d7dd1bb5e7dd9b0cb94c5565bfd3a1c6c3f67277e15c0fb85a3fbd422a9939be22037089c918a607ae1cb71c18069ea766ab0fc18c9ed2b24fac820d25a6f85a
diff --git a/dev-ruby/faraday-retry/faraday-retry-2.2.0.ebuild b/dev-ruby/faraday-retry/faraday-retry-2.2.0.ebuild
new file mode 100644
index 000000000000..3d8eadb6288a
--- /dev/null
+++ b/dev-ruby/faraday-retry/faraday-retry-2.2.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby30 ruby31 ruby32"
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Faraday adapter for Net::HTTP"
+HOMEPAGE="https://github.com/lostisland/faraday-retry"
+SRC_URI="https://github.com/lostisland/faraday-retry/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+IUSE=""
+
+ruby_add_rdepend "dev-ruby/faraday:2"
+
+all_ruby_prepare() {
+ sed -i -e "s:_relative ':'./:" ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ sed -i -e '2igem "faraday", "~> 2.0"' spec/spec_helper.rb || die
+
+ # Avoid unpackaged, test-only, faraday-multipart for now.
+ sed -i -e '/multipart/ s:^:#:' spec/spec_helper.rb || die
+ sed -e '/should rewind files on retry/askip "faraday-multipart not packaged"' \
+ -i spec/faraday/retry/middleware_spec.rb || die
+}
diff --git a/dev-ruby/faraday-retry/metadata.xml b/dev-ruby/faraday-retry/metadata.xml
new file mode 100644
index 000000000000..9230a4c30cad
--- /dev/null
+++ b/dev-ruby/faraday-retry/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ruby@gentoo.org</email>
+ <name>Gentoo Ruby Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">lostisland/faraday-retry</remote-id>
+ </upstream>
+</pkgmetadata>