summaryrefslogtreecommitdiff
path: root/dev-ruby/multipart-parser
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-07-05 10:11:02 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-07-05 10:11:02 +0100
commit20deac35b03e3e15d55e2cfd0236308f20bead59 (patch)
tree025d381424ca1c394c0f8e538633cd942f5ee490 /dev-ruby/multipart-parser
parentfc3556aa4466d278bff2aef2f88113089def0bab (diff)
gentoo auto-resync : 05:07:2023 - 10:11:01
Diffstat (limited to 'dev-ruby/multipart-parser')
-rw-r--r--dev-ruby/multipart-parser/Manifest4
-rw-r--r--dev-ruby/multipart-parser/files/multipart-parser-0.1.1-fix-tests.patch45
-rw-r--r--dev-ruby/multipart-parser/metadata.xml11
-rw-r--r--dev-ruby/multipart-parser/multipart-parser-0.1.1.ebuild23
4 files changed, 83 insertions, 0 deletions
diff --git a/dev-ruby/multipart-parser/Manifest b/dev-ruby/multipart-parser/Manifest
new file mode 100644
index 000000000000..6b63303bd5a6
--- /dev/null
+++ b/dev-ruby/multipart-parser/Manifest
@@ -0,0 +1,4 @@
+AUX multipart-parser-0.1.1-fix-tests.patch 1663 BLAKE2B a224c160e686463e740f25be7454c84b46cdb4503e2178f75967f7b83518450e8a8603db712a0d1b7842dabb3070b93908184a55d1c119098bc046d7a546099a SHA512 bbd91939e0bc9e8a4e750a7113e884fe2f6e2a1b96a3ad0bb80681015868dd588873466b78bc881a4a1ffdda6583ee950c58859368507c99c79062e453a790aa
+DIST multipart-parser-0.1.1.gem 9728 BLAKE2B 2e3fff62f51ebba0fef3ad95d2098d0f3ef45f0fdc13acd9776f0cacbf308c13e5a95b634d6692c5a6b17c208aa05d90c8f0c8469292a8895c95598ac2839edf SHA512 06428785ade714cb5c78dacfb0054c0358a2ba96e3d27fd39c9395d76d32cb4dba92f58086571e0bb5f8f6cd877e61678ad9573be4035c854264418a0199ae69
+EBUILD multipart-parser-0.1.1.ebuild 547 BLAKE2B a8b9f4d72cdd601eccf27ba12f1c4b4dd29c257e4dc248a8369cdd501a6587c381f78329fdb1e7ddb7e1e25976969ea3a0800e008484f76a6d296e69f1b38f15 SHA512 aff1f0c9dcd9f64fed54d9680e909fc4c785378bb979d1046b04a376055e2fb3134635f3b79fbc76e93820a4bb8b54288aba66c389509a561b94d5e0378852ae
+MISC metadata.xml 350 BLAKE2B c5dc153f2509f0d6ee7d45ecccf8177f63eec696919d479af906541426316aaec6cf78159263c0c1b30c1933b8cbd192da83d0ff2b820bdcdc30158611d3ff63 SHA512 96ee551de82e12eb9b1efda257bc459ae1e0079011fe6eedd2b23f1a9e1f9e2cb818e90347ced8f4d4f228fd5ad27d8be67b95dc0534a98c2e6fd63c97e95089
diff --git a/dev-ruby/multipart-parser/files/multipart-parser-0.1.1-fix-tests.patch b/dev-ruby/multipart-parser/files/multipart-parser-0.1.1-fix-tests.patch
new file mode 100644
index 000000000000..16f614b62c36
--- /dev/null
+++ b/dev-ruby/multipart-parser/files/multipart-parser-0.1.1-fix-tests.patch
@@ -0,0 +1,45 @@
+From be3fda8863a84d6380ce08f8c17f9eae34260a1e Mon Sep 17 00:00:00 2001
+From: Akio Tajima <akio.tajima@robotfund.co.jp>
+Date: Wed, 17 Jan 2018 08:41:35 +0000
+Subject: [PATCH] test/fixtures/multipart: fix long boundary and
+ delimiter\ntest/multipart_parser/parser_test: fix require path as reader_test
+
+---
+ test/fixtures/multipart.rb | 10 +++++-----
+ test/multipart_parser/parser_test.rb | 4 ++--
+ 2 files changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/test/fixtures/multipart.rb b/test/fixtures/multipart.rb
+index 89b1bc6..acb737a 100644
+--- a/test/fixtures/multipart.rb
++++ b/test/fixtures/multipart.rb
+@@ -96,11 +96,11 @@ def parts
+ end
+
+ def raw
+- ['----------------------------5c4dc587f69f',
+- 'content-disposition: form-data; name="field1"',
+- '',
+- "Joe Blow\r\nalmost tricked you!",
+- '----------------------------5c4dc587f69f--'
++ ['------------------------------5c4dc587f69f',
++ 'content-disposition: form-data; name="field1"',
++ '',
++ "Joe Blow\r\nalmost tricked you!",
++ '------------------------------5c4dc587f69f--'
+ ].join("\r\n")
+ end
+ end
+diff --git a/test/multipart_parser/parser_test.rb b/test/multipart_parser/parser_test.rb
+index f477031..27455ec 100644
+--- a/test/multipart_parser/parser_test.rb
++++ b/test/multipart_parser/parser_test.rb
+@@ -1,6 +1,6 @@
+ require 'test/unit'
+-require "multipart_parser/parser"
+-require "fixtures/multipart"
++require File.dirname(__FILE__) + "/../../lib/multipart_parser/parser"
++require File.dirname(__FILE__) + "/../fixtures/multipart"
+
+ module MultipartParser
+ class ParserTest < Test::Unit::TestCase
diff --git a/dev-ruby/multipart-parser/metadata.xml b/dev-ruby/multipart-parser/metadata.xml
new file mode 100644
index 000000000000..75116a032393
--- /dev/null
+++ b/dev-ruby/multipart-parser/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">danabr/multipart-parser</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ruby/multipart-parser/multipart-parser-0.1.1.ebuild b/dev-ruby/multipart-parser/multipart-parser-0.1.1.ebuild
new file mode 100644
index 000000000000..a767d56f3529
--- /dev/null
+++ b/dev-ruby/multipart-parser/multipart-parser-0.1.1.ebuild
@@ -0,0 +1,23 @@
+# 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_EXTRADOC="README"
+
+#RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A multipart parser written in Ruby"
+HOMEPAGE="https://github.com/danabr/multipart-parser"
+#SRC_URI="https://github.com/lostisland/faraday-multipart/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+IUSE=""
+
+PATCHES=( "${FILESDIR}"/${P}-fix-tests.patch )