From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 78875158094 for ; Thu, 8 Sep 2022 07:45:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 89945E0940; Thu, 8 Sep 2022 07:45:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6C366E0940 for ; Thu, 8 Sep 2022 07:45:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 51F5133BE65 for ; Thu, 8 Sep 2022 07:45:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B0115509 for ; Thu, 8 Sep 2022 07:45:26 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1662623123.c537ab7d9ca6875db88415c08004f9cb176f79f0.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/multipart-post/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/multipart-post/multipart-post-2.2.3-r1.ebuild X-VCS-Directories: dev-ruby/multipart-post/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: c537ab7d9ca6875db88415c08004f9cb176f79f0 X-VCS-Branch: master Date: Thu, 8 Sep 2022 07:45:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a9113eea-491c-41af-9491-3f1935b29b76 X-Archives-Hash: 58ffdd947a2e1f71c0a557e617f32cbf commit: c537ab7d9ca6875db88415c08004f9cb176f79f0 Author: Hans de Graaff gentoo org> AuthorDate: Thu Sep 8 07:44:11 2022 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Thu Sep 8 07:45:23 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c537ab7d dev-ruby/multipart-post: avoid developer-oriented warnings These warnings are aimed at developers using this code but they are not actionable for people consuming this package as part of an existing tool. Signed-off-by: Hans de Graaff gentoo.org> .../multipart-post/multipart-post-2.2.3-r1.ebuild | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/dev-ruby/multipart-post/multipart-post-2.2.3-r1.ebuild b/dev-ruby/multipart-post/multipart-post-2.2.3-r1.ebuild new file mode 100644 index 000000000000..fdf3a83ed1f7 --- /dev/null +++ b/dev-ruby/multipart-post/multipart-post-2.2.3-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby27 ruby30 ruby31" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_TASK_DOC="" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" +RUBY_FAKEGEM_GEMSPEC="multipart-post.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Adds a streamy multipart form post capability to Net::HTTP" +HOMEPAGE="https://github.com/socketry/multipart-post" +SRC_URI="https://github.com/socketry/multipart-post/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" +IUSE="test" + +all_ruby_prepare() { + sed -i -e '/bundler/ s:^:#:' spec/spec_helper.rb || die + + sed -i -e 's:_relative ":"./:' ${RUBY_FAKEGEM_GEMSPEC} || die + + # Remove warnings since these are only actionable for developers, + # not for people consuming this package as part of other tools. + sed -i -e '/Top level/ s/warn/# warn/' lib/*.rb || die +}