summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-05-08 07:05:48 +0200
committerHans de Graaff <graaff@gentoo.org>2024-05-08 07:06:28 +0200
commitcec52c8314929f3fa41770f2ce46af5b8cefb2b4 (patch)
tree741fc600f5c0e5436ef1ae1942c9061ae164ef15 /dev-ruby/multipart-post
parentdev-ruby/multi_xml: add 0.7.1 (diff)
downloadgentoo-cec52c8314929f3fa41770f2ce46af5b8cefb2b4.tar.gz
gentoo-cec52c8314929f3fa41770f2ce46af5b8cefb2b4.tar.bz2
gentoo-cec52c8314929f3fa41770f2ce46af5b8cefb2b4.zip
dev-ruby/multipart-post: add 2.4.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/multipart-post')
-rw-r--r--dev-ruby/multipart-post/Manifest1
-rw-r--r--dev-ruby/multipart-post/multipart-post-2.4.1.ebuild32
2 files changed, 33 insertions, 0 deletions
diff --git a/dev-ruby/multipart-post/Manifest b/dev-ruby/multipart-post/Manifest
index a5203d6c07c4..ed5358fc73ea 100644
--- a/dev-ruby/multipart-post/Manifest
+++ b/dev-ruby/multipart-post/Manifest
@@ -1,2 +1,3 @@
DIST multipart-post-2.3.0.tar.gz 13151 BLAKE2B 59ac6cfc743a6aaa285dd14a81fedfb123aa09720dc96a7243de94d45b3b23295d5a7de1cfb61c40c64881ad213fbf2debca49d3b1f6de7e1772c60b7d3c4d78 SHA512 ac15090cbf6dc629d57efe4810406571aec8782d021891f1f2764d4f00b735a2282162b06ee140c5b2ad21fd83f3d25028f386768166cef668bb508c235f04b2
DIST multipart-post-2.4.0.tar.gz 13693 BLAKE2B 2340aed254d98dd6f2444eaa90009893fc6430aa8f9c1c000522afb7656de2545a734246316adf97d40b87078517005e9dd3f281532a1f966d371cff4875bc1d SHA512 9a96dc66424d8a0575f982c58bc016eda93c17195b968821b342873b4b6b02d8f53ae210fb9eea5adedfa0d9bdd70f78b37a0196782bddcd01bbbfd0e757ac38
+DIST multipart-post-2.4.1.tar.gz 13732 BLAKE2B 9a5b606109148a5e2679aa454286b2a8481cc8e90253bb22b13053cfaa45fd1882c6d6b2b7fecc17d49f4d3ced8667aa483a4e5023fc675a5d86f310ab20b40e SHA512 f21500a05428cbcc567be7b1bfdd8c38cfbc4b67cd646f96927478b768f45db996fc3868324c81e4adff5eb4013f0c5bede19802437f4539a334604c4736f8be
diff --git a/dev-ruby/multipart-post/multipart-post-2.4.1.ebuild b/dev-ruby/multipart-post/multipart-post-2.4.1.ebuild
new file mode 100644
index 000000000000..15834224ce07
--- /dev/null
+++ b/dev-ruby/multipart-post/multipart-post-2.4.1.ebuild
@@ -0,0 +1,32 @@
+# 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_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"
+
+all_ruby_prepare() {
+ sed -i -e '/\(bundler\|covered\)/ 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
+}