From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id aOJcCOegxGUmFwEA62LTzQ:P1 (envelope-from ) for ; Thu, 08 Feb 2024 10:37:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id aOJcCOegxGUmFwEA62LTzQ (envelope-from ) for ; Thu, 08 Feb 2024 10:37:43 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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=1707385062; a=rsa-sha256; cv=none; b=DzDJ2IRZTnYAP3IieNjyW/9GcYyVUZV/FH6/5JxvduuYJgDSgxsBRJTUOwaowyTTBrOhZi hVH74flLELE+ZoXbztGArze//gmoAZq8ip4XMd/Y5hV42WdrxIjN1/q+klXSW46PKHQU/B xaUh02mjJTUaQfcLeS0IgDotiniPEfxq/Dc2uheTr2q64E4ud33r+c5dvSzTi+Jy5uf4GR IAwi2SKUyJeEom/AitNFOTQl3aTN2Kbq3NB37919J22+XFMtwjfK6MgU/+Kb3nTDbgjhSq hHanmqJk71CGdmdDaAVtOAKIMNHoAV6w+tNVMqoTuGlfkiw0Dky5dUZXbDmlAQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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=1707385062; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: 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; bh=8XzU9trt9LNmQv6a4Iu71ARmMb6PCnsXNGsLCaxRgkQ=; b=lixE0rfQkNkvj3vjY5EGQ68j7f33Xf2k3jDvuhDTrm+UHHT2bo2O2HAF12xOk5U2FcKxAT q53lmqvfvoPtXV0N5+tpnBm0Rd8DdzGTZyn6V6HU2wA9zQah2XKRe7IEJSM91IdxDch4hJ KtlZ4tMrT5/N4FYv9bBISh+tq8bxE0oIaK/j0i445sZNGaR9Pmgg991ImpYDzSHYjEErWg 5z1W4OmQwK4uxr3JLtx87LfDZw3wMRemzUassKOPerHuPJoaeC+bucgYJ7CbDTDbUslWUO HtOrd8I7RNRiL36lKhOehdJU1TM/oIdRFrLkNiTrXyHKJpJ70lD543gS5v3jnQ== 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 D7A3171401 for ; Thu, 8 Feb 2024 10:37:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rY0pv-0004bu-Ky; Thu, 08 Feb 2024 04:36:51 -0500 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 1rY0pt-0004ac-NO for guix-patches@gnu.org; Thu, 08 Feb 2024 04:36:49 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rY0pt-0001wP-Ey for guix-patches@gnu.org; Thu, 08 Feb 2024 04:36:49 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rY0q7-0006JN-N4 for guix-patches@gnu.org; Thu, 08 Feb 2024 04:37:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68990] [PATCH 02/28] gnu: Add ruby-excon. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 08 Feb 2024 09:37:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68990 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68990@debbugs.gnu.org Received: via spool by 68990-submit@debbugs.gnu.org id=B68990.170738498223931 (code B ref 68990); Thu, 08 Feb 2024 09:37:03 +0000 Received: (at 68990) by debbugs.gnu.org; 8 Feb 2024 09:36:22 +0000 Received: from localhost ([127.0.0.1]:59035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rY0pS-0006Du-0N for submit@debbugs.gnu.org; Thu, 08 Feb 2024 04:36:22 -0500 Received: from mail01.noris.net ([62.128.1.221]:60101) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rY0pP-0006DW-9V for 68990@debbugs.gnu.org; Thu, 08 Feb 2024 04:36:20 -0500 Received: from p57b09e9c.dip0.t-ipconnect.de ([87.176.158.156] helo=hermia.goebel-consult.de) by mail01.noris.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) (envelope-from ) id 1rY0p9-0002jq-Ul for 68990@debbugs.gnu.org; Thu, 08 Feb 2024 10:36:03 +0100 Received: from lenashee.fritz.box (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 635005F53C; Thu, 8 Feb 2024 10:35:59 +0100 (CET) From: Hartmut Goebel Date: Thu, 8 Feb 2024 10:35:32 +0100 Message-ID: <56bce381f1543b1d73ff64aa0616e2667bf0d638.1707383694.git.h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Noris-IP: 87.176.158.156 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: 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Spam-Score: -5.77 X-Migadu-Queue-Id: D7A3171401 X-Migadu-Spam-Score: -5.77 X-TUID: 4PH/Z64LpyuO * gnu/packages/ruby.scm (ruby-excon): New variable. --- gnu/packages/ruby.scm | 49 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 138de7b1fd..e410c1c75b 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -35,6 +35,7 @@ ;;; Copyright © 2023 gemmaro ;;; Copyright © 2023 Janneke Nieuwenhuizen ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2023 Hartmut Goebel ;;; ;;; This file is part of GNU Guix. ;;; @@ -13812,6 +13813,54 @@ (define-public ruby-http-parser.rb parser for writing http servers, clients and proxies.") (license license:expat))) +(define-public ruby-excon + (package + (name "ruby-excon") + (version "0.109.0") + (source (origin + (method git-fetch) ;for tests + (uri (git-reference + (url "https://github.com/excon/excon") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "199niqbpzj70k3n6ybg4vbcw3qm76kwic4nl9747l1n0v49aaj24")))) + (build-system ruby-build-system) + (arguments + (list + #:tests? #f ;; some tests require DNS + #:phases + #~(modify-phases %standard-phases + (replace 'replace-git-ls-files + (lambda _ + (substitute* "excon.gemspec" + (("`git ls-files -- data/. lib/.`") + "`find data lib -type f`")))) + (add-before 'check 'disable-server-spec-checks + (lambda _ ;; TODO: Remove this if ruby-unicorn is available. + ;; Some of the tests in this file require ruby-unicorn, which is + ;; not yet packaged for guix and would pull in a lot of other + ;; dependencies. + (delete-file "spec/excon/test/server_spec.rb")))))) + (native-inputs + (list + ruby-activesupport + ruby-eventmachine + ruby-json + ruby-open4 + ruby-puma + ruby-rspec + ruby-shindo + ruby-sinatra + ruby-webrick)) + (synopsis "Usable, fast, simple Ruby HTTP 1.1") + (description "Excon was designed to be simple, fast and performant. It +works great as a general HTTP(s) client and is particularly well suited to +usage in API clients.") + (home-page "https://github.com/excon/excon") + (license license:expat))) + (define-public ruby-em-websocket (package (name "ruby-em-websocket") -- 2.41.0