From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id sPDaFQeXGGRrfgAASxT56A (envelope-from ) for ; Mon, 20 Mar 2023 18:25:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KFrbFQeXGGR8IwEAauVa8A (envelope-from ) for ; Mon, 20 Mar 2023 18:25:27 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 138A139D64 for ; Mon, 20 Mar 2023 18:25:26 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=WCCDup2P; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679333127; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=DGozY897ckI/ewL3YoF2MQVvF39jm3gQwZhw3v8l4mM=; b=Qx+dH4P4NKE5NULbGyRiMFBYiMqG4ADyX15XBN+H3veE5KD70zmOOdwn5PDAi4cS7ienII qA6h6wB0Govi7c6CwdKssPPVrzotWiAfwXuKC0eQiS9CX2xKfrigL3PioXy2WkpT/dG8Hx nUYYtIV260NdTfJ5m/CfqF06LokttLpw4o3j9rbPXwFAZ7pH0NK2jLmVe7+kgGSLD5bNCf jvAwFcQvaDb/slSRyUsfli6AVcSBb1by8pIeS1ovxCr6TCr+VXdzRXbce8jYwrubyg1DLo 4htQBdu1pMrtBgwp4uIEzyVSsGu61isSmjd4yDg7wuiocryL0wY6S6wtAIhMxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=WCCDup2P; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679333127; a=rsa-sha256; cv=none; b=XEA11/pDQZ53mIAiSPGaJ9uA5lZPS+6ilF5lsfyRTcYKKlzPhboXN52zxyf4ZRBJmqz1OG aSgRwTuqqGypVPd1yI14YALkQc8dlc0PeVbQW81bAYiIiWolUvmwiHlxegS4P9rd8h82jY MDz4GNgkuqlzqLlHedoZjmrZD/znQ8obzsSj0OLfo/L4Uk21xKRnIYbdje34jAfn3hshu0 UOZlrvXCR4kyYqe7x6RdtKcr8MnYDQQxzRCl4hIFtdkiG5Y8ETbeEqjj6D6UZN88T6KtRm 3fEBC/Oinvd1PhI0mSM136FceguuPiqqYsByZydhi5pPZypTzIK3jMY5+RK8jQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peJFt-0003S4-4q; Mon, 20 Mar 2023 13:25:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peJFq-0003Ng-P3 for guix-patches@gnu.org; Mon, 20 Mar 2023 13:25:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1peJFq-0004qK-Fx for guix-patches@gnu.org; Mon, 20 Mar 2023 13:25:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peJFq-0003jC-Bt for guix-patches@gnu.org; Mon, 20 Mar 2023 13:25:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62196] [PATCH 106/223] gnu: Add ruby-multipart-parser. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 20 Mar 2023 17:25:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62196 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62196@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 62196-submit@debbugs.gnu.org id=B62196.167933305313930 (code B ref 62196); Mon, 20 Mar 2023 17:25:06 +0000 Received: (at 62196) by debbugs.gnu.org; 20 Mar 2023 17:24:13 +0000 Received: from localhost ([127.0.0.1]:55889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJEy-0003cQ-PL for submit@debbugs.gnu.org; Mon, 20 Mar 2023 13:24:13 -0400 Received: from mail-qt1-f173.google.com ([209.85.160.173]:42671) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJEu-0003Zg-5B for 62196@debbugs.gnu.org; Mon, 20 Mar 2023 13:24:08 -0400 Received: by mail-qt1-f173.google.com with SMTP id r16so13960754qtx.9 for <62196@debbugs.gnu.org>; Mon, 20 Mar 2023 10:24:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679333042; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DGozY897ckI/ewL3YoF2MQVvF39jm3gQwZhw3v8l4mM=; b=WCCDup2PzjBXiGKUMrcnN3X3oNKzJuFAqcRymjnWQMNxU9qb2Rg7At6BMQeJwufOr0 HDgokw9n2PSX9YpapvgKF/sqD5qzw+2T/lMqctLNh33v2gwuXndod6gYEQX/jjdpeuMu EwLaSjMGc8Wym1WevG450BblE+d0sXVKpnR+YB9qs1qwTLnjnimEErrvMDkOfbLZaKai sOmMtekRh+COQsP4+JxczITOsWqnLMj0y629s34NHSqwwFVJyFAePLQxSXArwrvcDire Z/qpDYfZIF9yEIf7SELc0KE9xx5VBCr3g4psrVsjCJ5EWn+obfJO/5HwZ0acQOn9iM/S amtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679333042; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DGozY897ckI/ewL3YoF2MQVvF39jm3gQwZhw3v8l4mM=; b=49o20JtnEjaMzRE28jNOGvBv/CRjet3t+4sudKWqWhxxjpnAAem5vmcAHNUdBr2ZDQ 8IHMbjHDk/ycbY9XDKulxLT2MTlFJkBPS+1f9F4tS9lO8bfia1OQzbWq6U4iqEaEslFB pbwyzeYXxfl/fRV8y57jdq8cLktdDcObYOgY0DN3MRqupASUjzUKkKRUd5yc9+1P4BkP vrpYb1wViStKtk7BcBLtUthnQ8ZZYl+Ab8p1KAMmk+BuQimP9ZH/yyvZlMehvwnpGRJu TrTqscjZ1CvlI1OCSh/ubguY0SrFgAMeiajzz4o8k61YliRuZu7sbtOSCXnJX7d1ajxf 1TXg== X-Gm-Message-State: AO0yUKUX2QyoLFnLDi+g6T6aTYZqnfAlVv3nO5PeV2m/gQJspjscShxX utPR+1A2a/L0Ob7Jqztv1Agoba6/gJE= X-Google-Smtp-Source: AK7set/YqLBnT4/4bKldeTnFgE3U1vIYR+SsYzLQrcdlBflmaBOvcHygnmogVRdEL8zTw8vZwTLTZg== X-Received: by 2002:a05:622a:488:b0:3bf:bb1f:3c2b with SMTP id p8-20020a05622a048800b003bfbb1f3c2bmr29688305qtx.6.1679333042578; Mon, 20 Mar 2023 10:24:02 -0700 (PDT) Received: from localhost.localdomain (dsl-10-128-46.b2b2c.ca. [72.10.128.46]) by smtp.gmail.com with ESMTPSA id i7-20020a378607000000b007422eee8058sm7769352qkd.125.2023.03.20.10.24.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 10:24:02 -0700 (PDT) From: Maxim Cournoyer Date: Mon, 20 Mar 2023 13:21:52 -0400 Message-Id: <20230320172349.12752-5-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230320172349.12752-1-maxim.cournoyer@gmail.com> References: <20230320172349.12752-1-maxim.cournoyer@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 138A139D64 X-Spam-Score: -2.16 X-Migadu-Spam-Score: -2.16 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: hvOacOh2jnYn * gnu/packages/ruby.scm (ruby-multipart-parser): New variable. --- gnu/packages/ruby.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index ad5cc1ebf8..e969107c1a 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -5271,6 +5271,41 @@ (define-public ruby-multi-xml (home-page "https://github.com/sferik/multi_xml") (license license:expat))) +(define-public ruby-multipart-parser + (package + (name "ruby-multipart-parser") + (version "0.1.1") + (source (origin + (method url-fetch) + (uri (rubygems-uri "multipart-parser" version)) + (sha256 + (base32 + "0xb4p475yrfm883h9kn80a021myn17dvs50wpa1djzcmlq7p0882")))) + (build-system ruby-build-system) + (arguments + (list + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'skip-failing-test + ;; One test fails for unknown reasons (see: + ;; https://github.com/danabr/multipart-parser/issues/7). + (lambda _ + (substitute* "test/multipart_parser/reader_test.rb" + (("def test_long" all) + (string-append all "\n return true")))))))) + (synopsis "Parser for multipart MIME messages") + (description "@code{multipart-parser} is a simple parser for multipart +MIME messages, written in Ruby, based on felixge/node-formidable's parser. It +has the following characteristics: +@itemize +@item Pure Ruby +@item Event-driven API +@item Only supports one level of multipart parsing +@item Does not perform I/O +@item Does not depend on any other library. +@end itemize") + (home-page "https://github.com/danabr/multipart-parser") + (license license:expat))) + (define-public ruby-multipart-post (package (name "ruby-multipart-post") -- 2.39.1