From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id teCpEUeeGGTaOwEASxT56A (envelope-from ) for ; Mon, 20 Mar 2023 18:56:23 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aP7UD0eeGGTaRwAAG6o9tA (envelope-from ) for ; Mon, 20 Mar 2023 18:56:23 +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 aspmx2.migadu.com (Postfix) with ESMTPS id EF74A36B58 for ; Mon, 20 Mar 2023 18:56:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peJMZ-0003zO-NL; Mon, 20 Mar 2023 13:32:03 -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 1peJMY-0003zF-5E for guix-patches@gnu.org; Mon, 20 Mar 2023 13:32:02 -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 1peJMX-00008O-PQ for guix-patches@gnu.org; Mon, 20 Mar 2023 13:32:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peJMX-0004vO-LS for guix-patches@gnu.org; Mon, 20 Mar 2023 13:32:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62196] [PATCH 143/223] gnu: ruby-actioncable: Update to 7.0.4.3 and enable tests. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 20 Mar 2023 17:32:01 +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.167933347118734 (code B ref 62196); Mon, 20 Mar 2023 17:32:01 +0000 Received: (at 62196) by debbugs.gnu.org; 20 Mar 2023 17:31:11 +0000 Received: from localhost ([127.0.0.1]:56439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJLi-0004s6-W1 for submit@debbugs.gnu.org; Mon, 20 Mar 2023 13:31:11 -0400 Received: from mail-il1-f182.google.com ([209.85.166.182]:35385) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJLh-0004rs-Im for 62196@debbugs.gnu.org; Mon, 20 Mar 2023 13:31:09 -0400 Received: by mail-il1-f182.google.com with SMTP id u8so158095ilb.2 for <62196@debbugs.gnu.org>; Mon, 20 Mar 2023 10:31:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679333464; 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=k/oppqX7o7TzC+t4QONOmyNMO500svchlmkto+p4BI4=; b=LAlEpI7I2kZG24Cwol1ouxJABfUet7do6Vjz0poxZpMRNcolSloYZ+4IzxyrJU+WJA iujDkeaR6QWurfg0cjywNyiGOrzgBP+ARi1w0YpzsySMe7F1O5TNWr+Ai2Kx9BlgP37f 17V/h/w6AyYDTGc9Tqhwv1am2gBnLur4Zg5xvXeR42aKAMQEHrKfrZAGTPioUpxtKwI1 T9QDLit8luAq9T9Cy40HDy5fri0tCrzailhX1RQN1iVJJ+ZizFPS+sHmspxpkB21PiVS vNFHJ1Gh/tMLY1HnWP2ow64K6hCF9RdUforlx9ve1d+mBtEzfp/cbSkUFMOUJM61wjvZ x/Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679333464; 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=k/oppqX7o7TzC+t4QONOmyNMO500svchlmkto+p4BI4=; b=1YmqwZBeFT4c9aoFOZjvwI5/Pp35fQIHv5CavmmFQcDCz4SWNORlNc9Zd86InqsqW5 k3aw2vNyP8oiWX++dYDnpy0/RLEumrf/BsNHWU6EaZOxWOheeSzsPao5P/Ztijw1boxy tqWzzN1lXmx+a2XL4Sf6IhBH6FllpjQca+DU3HSGYLpLl+lQV9s0CIXuu8E7NoEI2/L8 b5hjY8VZSA0vKtjeZSL5As/5ltZKSv6Un6Lulv5WautXYBlel3+Al5rfkowQR3t+vFIo 0J/vXMesyh8QTLoPRVWzlsUtFxn6BFt9wWpZPUFVGIZYZWb2wEThA0wmub4gW+QZkQY/ 02gg== X-Gm-Message-State: AO0yUKX3BCZm/i/nbE+JIiugN3KYdpafbC6ErzUgDBAnZQWdVz7LEw3I U25QwKF15nF/UGVMr/kx9AgO22gPATg= X-Google-Smtp-Source: AK7set/gE9HyzYio1ELjkNUQ54QKFNFjkhIeah53Jh0CKKgPTWh9cGU2dYTLv25jtu+SgFLJSjXD5A== X-Received: by 2002:a05:6214:509d:b0:5c8:15bc:f630 with SMTP id kk29-20020a056214509d00b005c815bcf630mr9871448qvb.24.1679333074866; Mon, 20 Mar 2023 10:24:34 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 10:24:34 -0700 (PDT) From: Maxim Cournoyer Date: Mon, 20 Mar 2023 13:22:29 -0400 Message-Id: <20230320172349.12752-42-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: 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679334983; a=rsa-sha256; cv=none; b=nD6bbbl7zJFOb8EpZEkV6wbgNbUzZLTomeO0YUDTceUAP8l4ustqp0AY2Fj1kLEp5PwwTM 8hx34wcsIaCKfQY8auD0ANG0gyPzlfriEtNd8RiqLQsSuKU2v1xmbtmWxBLxQPBRkNflhF TArEBvmxNbuhtpwT8+cE/oBh9JA5unqEC4VeKW9wCwEbUoRR99hOM7axwFMMj8BM/sFvLW wvEqBOJDsC0N1vPSX3F6CdHZ0SVqeDGWNJa/erDUDZx9c/9xdc2ym5x98Pmx6+wybZZUkL 2STey3w8Ql1T0aEIoUPTa8NMRBN2J9P4qOI0fzR6gcdCjYiJrN+L1qWqKC2Yug== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=LAlEpI7I; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx2.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=1679334983; 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=k/oppqX7o7TzC+t4QONOmyNMO500svchlmkto+p4BI4=; b=r02kXVpmWrCq6h6JXk8I2fmAiwJOX5nWF9ljRG1unz6FTtwFH8eHy/PH7Kh+KE33YKFvVf cPtr7IHFV7cXmA1PTWpVMZP19BL0GtdOder/8eMJazI2F5U4t2lTt8SjfdtHDzhaP/lTNE 9m8mKIh3VEq7AX5ZYeJS8pGuOBdy0Kr9MhzkTX5xWa03oP9mnbYZRY+N3aqHbSkfKJ+FsS 0uTqVfFViL7iOkPTDdMjjvIrO3w0MsIGeT0efDNthuSyVHPWIyb3m9Dvt4Qm+ztnyU6ZiT R/cl9IKEyB1XBYRh4WzRv3fe5kLILgnBf1JIxGUYELMW6ET499fWboFxx+Y3Dg== X-Migadu-Spam-Score: 6.25 X-Spam-Score: 6.25 X-Migadu-Queue-Id: EF74A36B58 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=LAlEpI7I; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx2.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" X-Migadu-Scanner: scn1.migadu.com X-TUID: TjGhoG6Luopb * gnu/packages/rails.scm (ruby-actioncable): Update to 7.0.4.3. [source]: Use ruby-rail-monorepo. [arguments]: Drop #:tests?. Add #:phases argument. [native-inputs]: New field. --- gnu/packages/rails.scm | 66 ++++++++++++++++++++++++++++-------------- 1 file changed, 45 insertions(+), 21 deletions(-) diff --git a/gnu/packages/rails.scm b/gnu/packages/rails.scm index d3712a93c9..43db167671 100644 --- a/gnu/packages/rails.scm +++ b/gnu/packages/rails.scm @@ -553,28 +553,52 @@ (define-public ruby-actionpack (define-public ruby-actioncable (package - (name "ruby-actioncable") - (version "6.1.3") - (source - (origin - (method url-fetch) - (uri (rubygems-uri "actioncable" version)) - (sha256 - (base32 - "1cgb1l0gml1vklxka2djpi5q5b4bgzgm5pahzfjvvgm5vzvrvi9v")))) - (build-system ruby-build-system) - (arguments - '(;; No included tests - #:tests? #f)) - (propagated-inputs - (list ruby-actionpack ruby-activesupport ruby-nio4r - ruby-websocket-driver)) - (synopsis "Integrate integrates WebSockets with Rails applications") - (description - "Action Cable integrates WebSockets with Rails applications. Through + (name "ruby-actioncable") + (version %ruby-rails-version) + (source ruby-rails-monorepo) + (build-system ruby-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'extract-gemspec 'chdir + (lambda _ + (chdir "actioncable"))) + (delete 'check) ;moved after install phase + (add-after 'install 'check + (assoc-ref %standard-phases 'check)) + (add-before 'check 'set-GEM_PATH + (lambda _ + (setenv "GEM_PATH" (string-append + (getenv "GEM_PATH") ":" + #$output "/lib/ruby/vendor_ruby")))) + (add-before 'check 'disable-problematic-tests + (lambda _ + ;; There are multiple client test failures (see: + ;; https://github.com/rails/rails/issues/47617). + (delete-file "test/client_test.rb"))) + (add-before 'check 'start-redis + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "redis-server" "--daemonize" "yes"))))))) + (native-inputs + (list redis + ruby-activerecord + ruby-pg + ruby-puma + ruby-redis + ruby-websocket-client-simple)) + (propagated-inputs + (list ruby-actionpack + ruby-activesupport + ruby-nio4r + ruby-websocket-driver)) + (synopsis "Integrate integrates WebSockets with Rails applications") + (description + "Action Cable integrates WebSockets with Rails applications. Through WebSockets it allows for real-time features in web applications.") - (home-page "https://rubyonrails.org/") - (license license:expat))) + (home-page "https://rubyonrails.org/") + (license license:expat))) (define-public ruby-activejob (package -- 2.39.1