From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id qGgND1KXGGQ1qgAASxT56A (envelope-from ) for ; Mon, 20 Mar 2023 18:26:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mKASD1KXGGTXoAAA9RJhRA (envelope-from ) for ; Mon, 20 Mar 2023 18:26:42 +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 E022415A61 for ; Mon, 20 Mar 2023 18:26:41 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peJH8-0004aX-PO; Mon, 20 Mar 2023 13:26:26 -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 1peJH0-0004Sx-4h for guix-patches@gnu.org; Mon, 20 Mar 2023 13:26:21 -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 1peJGz-0005SI-OA for guix-patches@gnu.org; Mon, 20 Mar 2023 13:26:17 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peJGz-00041c-Jq for guix-patches@gnu.org; Mon, 20 Mar 2023 13:26:17 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62196] [PATCH 134/223] gnu: Add ruby-capybara. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 20 Mar 2023 17:26:17 +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.167933313014745 (code B ref 62196); Mon, 20 Mar 2023 17:26:17 +0000 Received: (at 62196) by debbugs.gnu.org; 20 Mar 2023 17:25:30 +0000 Received: from localhost ([127.0.0.1]:56115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJGE-0003pf-2L for submit@debbugs.gnu.org; Mon, 20 Mar 2023 13:25:30 -0400 Received: from mail-qt1-f177.google.com ([209.85.160.177]:39701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJFD-0003Z0-I4 for 62196@debbugs.gnu.org; Mon, 20 Mar 2023 13:24:27 -0400 Received: by mail-qt1-f177.google.com with SMTP id i24so13982387qtm.6 for <62196@debbugs.gnu.org>; Mon, 20 Mar 2023 10:24:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679333067; 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=0q45L6Ufrq6qDVN+wdAF3GFCMhHGAW4xP1cnCuzHvFA=; b=Nn7Vsnt4bQLd4FomJVrPBY2XWHEPibgakRRRRJ9em2NBMaOtAKd5IY4+lISzE72qKJ ibjqkMpsPs39qVqmzIn4eA9ZSGpVd1Tiibxyi4oy38tiyoRloGz3bj2Oo4rgtL+Lft7M pxirxmn+xAZQeBUU3GRuFF9UbhwBOCLpNQz2QtKdxuAVJpgR+3VdmVJc50lAExgRqWuj 0i7rzIiIPhI47MhjQXr2ABxesE11tZ1JA0CorablZSWUIeTrIpR78yHUbT5fU3B4MHMk qeMvwc7tTVHQqU45b/GZ15JnoHvyoIM0prIrdewBvmECZUMLG10twCcqduG10FZLXMBM sBNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679333067; 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=0q45L6Ufrq6qDVN+wdAF3GFCMhHGAW4xP1cnCuzHvFA=; b=L191e6jXONUcCgfBHviQ+lcQmL2lqkXkNxvWf10lEjFGK627UrM9xzYvJJMjQMAz3K vooCKrSEcOZ58GIgSMo/KLlnBosGKe7bhnK4M88KozfaOmEq3Rdm8jWANL77KriCnaSe c6Gjw6unx6ull0l6y15jsnGpWxvn/O4iBvLCa/yhs1VOwdBEuOPJIAP1i2sf17aNYjN3 bfEGmX1upIcErlSZu5GistL4faeJ7rS05b4n0mZCu7LT2SEoynDjB2LTnE2U1dlnFWy6 jxnVhi2lTxrierSKu6JeHwgIDMwZO133GJ12/Jftt2Rh9g2ejIv4ECsF6WcFe1OG9aRM hvIg== X-Gm-Message-State: AO0yUKUs7pBhlkuGgWsQTVnls1zm9WJQMeQvkNKbKgEghrjgWrjfJBeI ZGSgFktdatmAf6UTX47Ec+zLDXqhY7Q= X-Google-Smtp-Source: AK7set8hSZIUDqJ/oTyRA0CMKqFtiA2gZ1geHDgHOCiTOxcXIYDp7wpjsYP7jxCAF6575zc3JjmF1Q== X-Received: by 2002:ac8:59c6:0:b0:3d4:8ce9:cefb with SMTP id f6-20020ac859c6000000b003d48ce9cefbmr20626054qtf.4.1679333066949; Mon, 20 Mar 2023 10:24:26 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 10:24:26 -0700 (PDT) From: Maxim Cournoyer Date: Mon, 20 Mar 2023 13:22:20 -0400 Message-Id: <20230320172349.12752-33-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=1679333202; a=rsa-sha256; cv=none; b=HZz1LFwwlG57ThF0Z6EIyzp9E4chnrejQ0KGBqARJPyEqVdgRNWNDb8GcJuWmlCT97T5p2 kZ6EfA2oMFUGIMZ8pn9cwOauPxLjMmENm+xLjhWE64BhfPRrFUoaFcg8FFDRGxf4KyQp8a 0Ep1OO/G4ldoMnXcEe1TYtGenIR9hyzfwB6BrbfE2mh9JhRK4rRfwHkBJp18C5HFNCAJ2G c5OzwGU/1SvVNTcIjSCFVMBzY0bR/sw4UZr5sOjS8aRltpfCi1xy2WQW7VwQUEn5B5pV2U AaKvNXg3HbBiZ8hp/M5JOiBOEXsoWTmCWSufh5bJJuqrhheR2OZqFwRqbXSVow== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Nn7Vsnt4; 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=1679333202; 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=0q45L6Ufrq6qDVN+wdAF3GFCMhHGAW4xP1cnCuzHvFA=; b=Xpx95Q6IkoFwG0uXZUh+cCF1Dad1fbyyQe0jMAnRKvyrGsMZwFndx7NOsbYosHwqr/7vwN qtkiIglPflIwBj/KWwzZav6G645bC6O1rUkNtYLiKfk+jl2kBn/S9vu9mDOe/rqv1YcnXG FajvbviBX0+9rLirMH9HwGuLlJklabxDbIxsKH2ATlDfBLJBRAadTvLMZ4r5qCoe8Lz/ak Pey5zE+ddlsRnBEHVXI0nnHIQqbtDOFLW7RprilCFM2IsmUuXbjRH3JnmzfxaMb/ukmKtb 1jzFx9UQPLkRtKhWHickfh46ZGSP+NHnnXW1vZVdDF0KiGK/7oetM0kd7fHixw== X-Migadu-Spam-Score: 6.24 X-Spam-Score: 6.24 X-Migadu-Queue-Id: E022415A61 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Nn7Vsnt4; 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" X-Migadu-Scanner: scn1.migadu.com X-TUID: tYR/4laL78Hk * gnu/packages/ruby.scm (ruby-capybara): New variable. --- gnu/packages/ruby.scm | 48 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 13d299fd3c..97ed984811 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -1664,8 +1664,7 @@ (define-public ruby-rubocop-capybara (package (inherit ruby-rubocop-capybara-minimal) (arguments - (list #:tests? #t - #:test-target "spec" + (list #:test-target "spec" #:phases #~(modify-phases %standard-phases (add-after 'unpack 'relax-requirements (lambda _ @@ -11997,6 +11996,51 @@ (define-public ruby-cabin (home-page "https://github.com/jordansissel/ruby-cabin") (license license:asl2.0))) +(define-public ruby-capybara + (package + (name "ruby-capybara") + (version "3.38.0") + (source (origin + (method url-fetch) + (uri (rubygems-uri "capybara" version)) + (sha256 + (base32 + "123198zk2ak8mziwa5jc3ckgpmsg08zn064n3aywnqm9s1bwjv3v")))) + (build-system ruby-build-system) + (arguments + (list #:tests? #f ;sinatra is currently broken with rack 3 + #:phases + #~(modify-phases %standard-phases + (add-after 'extract-gemspec 'remove-extraneous-requirements + (lambda _ + (substitute* "spec/spec_helper.rb" + ((".*require 'selenium_statistics'.*") "") + ((".*SeleniumStatistics.print_results.*") "")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "rspec" "spec"))))))) + (native-inputs + (list ruby-puma + ruby-rspec + ruby-selenium-webdriver + ruby-sinatra)) + (propagated-inputs + (list ruby-addressable + ruby-launchy + ruby-matrix + ruby-mini-mime + ruby-nokogiri + ruby-rack + ruby-rack-test + ruby-regexp-parser + ruby-xpath)) + (synopsis "Integration testing tool for rack-based web applications") + (description "Capybara is an integration testing tool for rack based web +applications. It simulates how a user would interact with a website.") + (home-page "https://github.com/teamcapybara/capybara") + (license license:expat))) + (define-public ruby-cane (package (name "ruby-cane") -- 2.39.1