From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 uJBLFvehGGT2XAEASxT56A (envelope-from ) for ; Mon, 20 Mar 2023 19:12:07 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OI5BFvehGGQh5AAAauVa8A (envelope-from ) for ; Mon, 20 Mar 2023 19:12:07 +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 CD9F036EB6 for ; Mon, 20 Mar 2023 19:12:06 +0100 (CET) Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=aWV7Xd7Z; 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=1679335926; 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=nYXZZ4KkLxH+FQQRjsYaDqMcwaMRigfbzG1bysXvlQE=; b=ZKkRJuUFJ0WYhmq36zhFUIDbXXvmomFXB593VKCNrpZLycFYFMKh5nOmeJ70O6r5KJNwCW eIgPCulSSPPdSZHizuuZQ72I4qwoWCtoBLba1PfnsfydtsRG+PuyI6qMmb4ywppLDs39Kf ZNBvxcfg6EzHTWcILPxelBVbAxgECKNh/VIm0vpqwV4azFAtGkrOQconv1r2XX0aNwPj1m LUWhE0Njm/NzkafpLft495QVen75JwaxKvT2PUxcnGzRxmZ1UGAZNuPYwCb4mfMTkFrJXr 3nj07RMJTznj5YtTxe6yznYI9rVV/Hr8SxaxgHwInfYAgrUtA2AVob75E8b6QQ== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=aWV7Xd7Z; 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-Seal: i=1; s=key1; d=yhetil.org; t=1679335926; a=rsa-sha256; cv=none; b=QvdAaDZgJmZS22rbEOjO2am8fRazI5nQEwrIRKXjR8EMxJVJ/95Y/jZLzBEygc8sMUUKJY cGSRwnU2375KpCAh2DUbIuUznSSmsGH5D+cty1Ei1QPnwqW/aBoGV76ZZEK7iLMDMPVlZ8 VLT+sIA9zYtfNj2A8Uwn9qUwVUldG3E8MEt3FmPXOr5mGvP66fH0MLoYgajSd/L5GviBvh 5qO7S9IMn3g8U+azx64cWFjNjxjlybU+DcbDTbKpaaY5cWLyHya6HLnT1v66XBHVpEf2yn ZuqwjD3NjWM3QLQ0P+A1CXEnL3ooTgASmidHPz52X5k7dRs0aXM4Y5iDs6tLvw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peJWv-00007h-2I; Mon, 20 Mar 2023 13:42:45 -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 1peJWi-0008Uw-Jz for guix-patches@gnu.org; Mon, 20 Mar 2023 13:42:33 -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 1peJWE-0005Rb-5U for guix-patches@gnu.org; Mon, 20 Mar 2023 13:42:29 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peJWE-0005Qx-0y for guix-patches@gnu.org; Mon, 20 Mar 2023 13:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62196] [PATCH 028/223] gnu: ruby-thor: Update to 1.2.1. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 20 Mar 2023 17:42: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.167933410920868 (code B ref 62196); Mon, 20 Mar 2023 17:42:01 +0000 Received: (at 62196) by debbugs.gnu.org; 20 Mar 2023 17:41:49 +0000 Received: from localhost ([127.0.0.1]:56693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJW0-0005QV-Eh for submit@debbugs.gnu.org; Mon, 20 Mar 2023 13:41:48 -0400 Received: from mail-qt1-f178.google.com ([209.85.160.178]:33499) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJVx-0005QJ-Lp for 62196@debbugs.gnu.org; Mon, 20 Mar 2023 13:41:46 -0400 Received: by mail-qt1-f178.google.com with SMTP id n2so14100583qtp.0 for <62196@debbugs.gnu.org>; Mon, 20 Mar 2023 10:41:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679334100; 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=nYXZZ4KkLxH+FQQRjsYaDqMcwaMRigfbzG1bysXvlQE=; b=aWV7Xd7ZofyC32TO6Hj70BVuQHIXI5/FchwRDR9z5Z7OruJryyqThkzGr4dVko5wJb vTNRbDdlZ/KSXbrYik8DnY5I+jl/t73aYvcXfy+F/aRa3p33WjypbAwTq/7vfTgzoVcX 1Rj2vE1RFNQ8Jhz2VgzW9vCosyEdQdm5d+BcdFDyMSa7AzZuDR2qgmq5TBcLL6aPKRQQ 9Mb9wvkOcrbrQJA8lr9xVS4Wn/hBSG71PuPK8FqDYGIMtZICaY8rQT4H3sCx84fMSvXP fMmSqHtiqjnxoUGteSA86t4Tq8zcYG8nYISNCNehMZ8LnjXEEY9VUrDtPX5NW5XNKwSw 1ONQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679334100; 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=nYXZZ4KkLxH+FQQRjsYaDqMcwaMRigfbzG1bysXvlQE=; b=CEvhtg9qtuxn5UsU4JdrizlAmzuRjnqsSr1nGz0+GngmFX6t04mYZxjCyb33YoRd2/ p5WZOo/dgJWeSc7F/e4wm+UUNij5P8fDEfscHcJlHZOVYa2paupFTFWFocn3sOpnSAGP 2/3Dl0scl1zR3UvvQ+Qut+lpf+DCbDEfT/6RZSE7m0UHQ+5Ti4lqhPWiOx6fFYwK/zLg AKwmaPUdpaauvVPNFBzI62pbCU37lZwRg7zH+xLZTrPgK+TDnxxmLqqBmwH6oF1x6MS2 Lt9GBN8NisAMW77WpykSqV/R2VYt0iXnGvfhyAleGLD5ZnxQwUK+yG/Z/NJvZXLlr9wD dU9w== X-Gm-Message-State: AO0yUKWxe5n60pw0NWNGcLrAbdXTURFSKtIblCiyklGGiR1ZJ/7UGjvf m1pf5eWWOWWj0y2kP4Tv+arbJ6odaTM= X-Google-Smtp-Source: AK7set9vwU1ZiOxd9gs+JlQhzrpcExuDhn9vXpQ+SUVQs2UWwR0mnS8OIVRoezfjVy3jP0GEPsbJ/w== X-Received: by 2002:a05:622a:307:b0:3b8:6ae9:b108 with SMTP id q7-20020a05622a030700b003b86ae9b108mr28725568qtw.27.1679332624695; Mon, 20 Mar 2023 10:17:04 -0700 (PDT) Received: from localhost.localdomain (dsl-10-128-46.b2b2c.ca. [72.10.128.46]) by smtp.gmail.com with ESMTPSA id p17-20020a374211000000b007428e743508sm7673809qka.70.2023.03.20.10.17.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 10:17:04 -0700 (PDT) From: Maxim Cournoyer Date: Mon, 20 Mar 2023 13:13:20 -0400 Message-Id: <20230320171635.11184-28-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230320171635.11184-1-maxim.cournoyer@gmail.com> References: <20230320171635.11184-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: CD9F036EB6 X-Spam-Score: -2.95 X-Migadu-Spam-Score: -2.95 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: 1yF9PqASq6KL * gnu/packages/ruby.scm (ruby-thor): Update to 1.2.1. [source]: Update URI. [arguments]: Use gexps. Delete trailing #t. [phases] {fix-readline-tests, disable-network-tests} {make-files-writable}: Delete phases. {remove-coveralls-dependency}: Do not remove webmock requires. {disable-quality-tests}: Rename to... {disable-problematic-tests}: ... this. Disable a new failing test. {check}: Honor TESTS?. --- gnu/packages/ruby.scm | 83 ++++++++++++++++--------------------------- 1 file changed, 30 insertions(+), 53 deletions(-) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index ccd446bdd1..cf270a0d34 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -2737,69 +2737,46 @@ (define-public ruby-xml-simple (define-public ruby-thor (package (name "ruby-thor") - (version "1.0.1") + (version "1.2.1") (source (origin ;; Pull from git because the gem has no tests. (method git-fetch) (uri (git-reference - (url "https://github.com/erikhuda/thor") + (url "https://github.com/rails/thor") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 - "1anrx5vynk57hn5c8ig5pgkmcsbj9q5mvckd5rviw1jid7n89k57")))) + "1vjm628ks5kw8q6dskh38dqyz2j8c3n694wsqkj4jb4jrn6rkfzx")))) (build-system ruby-build-system) (arguments - '(#:phases (modify-phases %standard-phases - (add-after 'unpack 'fix-readline-tests - (lambda _ - ;; Ensure Readline is initialized before running the - ;; test to avoid a type clash with the mock ::Readline. - ;; See . - (substitute* "spec/line_editor/readline_spec.rb" - (("unless defined\\? ::Readline" all) - (string-append "Thor::LineEditor::Readline.available?\n" - all))) - #t)) - (add-after 'unpack 'remove-coveralls-dependency - (lambda _ - ;; Do not hook the test suite into the online - ;; coveralls service. - (substitute* "Gemfile" - ((".*coveralls.*") "")) - (substitute* "spec/helper.rb" - (("require \"coveralls\"") "") - (("Coveralls::SimpleCov::Formatter") "") - ;; Also drop the WebMock dependency which is only - ;; present to allow a coveralls.io connection, and - ;; would otherwise introduce a circular dependency. - (("require \"webmock/rspec\"") "") - (("WebMock\\.disable_net_connect.*") "")) - #t)) - (add-after 'unpack 'disable-network-tests - (lambda _ - ;; These tests attempt to look up example.com. - (substitute* "spec/actions/file_manipulation_spec.rb" - (("it \"accepts (https?) remote sources" _ proto) - (string-append "xit \"accepts " proto " remote sources"))) - #t)) - (add-after 'unpack 'disable-quality-tests - (lambda _ - ;; These tests attempt to check the git repository for - ;; tabs vs spaces, double vs single quotes, etc, and - ;; depend on the git checkout. - (delete-file "spec/quality_spec.rb") - #t)) - (add-before 'check 'make-files-writable - (lambda _ - ;; The tests needs rw access to the test suite. - (for-each make-file-writable (find-files "spec")) - #t)) - (replace 'check - (lambda _ - (invoke "rspec" "spec")))))) - (native-inputs - (list ruby-rspec ruby-simplecov)) + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-coveralls-dependency + (lambda _ + ;; Do not hook the test suite into the online coveralls service. + (substitute* "Gemfile" + ((".*coveralls.*") "")) + (substitute* "spec/helper.rb" + (("require \"coveralls\"") "") + (("Coveralls::SimpleCov::Formatter") "")))) + (add-after 'unpack 'disable-problematic-tests + (lambda _ + ;; These tests attempt to check the git repository for + ;; tabs vs spaces, double vs single quotes, etc, and + ;; depend on the git checkout. + (delete-file "spec/quality_spec.rb") + (substitute* "spec/parser/options_spec.rb" + ;; This test fails for unknown reasons (see: + ;; https://github.com/rails/thor/issues/814). + (("it \"raises an error for unknown switches" all) + (string-append "x" all))))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "rspec" "spec" ))))))) + (native-inputs (list ruby-rspec ruby-simplecov ruby-webmock)) (synopsis "Ruby toolkit for building command-line interfaces") (description "Thor is a toolkit for building powerful command-line interfaces.") -- 2.39.1