From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 UAD9OdWXGGR4cwEASxT56A (envelope-from ) for ; Mon, 20 Mar 2023 18:28:54 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id eAUCOtWXGGQkLAAA9RJhRA (envelope-from ) for ; Mon, 20 Mar 2023 18:28:53 +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 B628236883 for ; Mon, 20 Mar 2023 18:28:53 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peJHS-0004qz-F8; Mon, 20 Mar 2023 13:26:46 -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 1peJHL-0004l2-1E for guix-patches@gnu.org; Mon, 20 Mar 2023 13:26:39 -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 1peJHK-0005a0-GZ for guix-patches@gnu.org; Mon, 20 Mar 2023 13:26:38 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peJHK-00047i-C7 for guix-patches@gnu.org; Mon, 20 Mar 2023 13:26:38 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62196] [PATCH 200/223] gnu: Add ruby-ruby-version. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 20 Mar 2023 17:26:38 +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.167933316315179 (code B ref 62196); Mon, 20 Mar 2023 17:26:38 +0000 Received: (at 62196) by debbugs.gnu.org; 20 Mar 2023 17:26:03 +0000 Received: from localhost ([127.0.0.1]:56221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJGk-0003wc-Kx for submit@debbugs.gnu.org; Mon, 20 Mar 2023 13:26:03 -0400 Received: from mail-qv1-f51.google.com ([209.85.219.51]:42688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJGA-0003gd-IV for 62196@debbugs.gnu.org; Mon, 20 Mar 2023 13:25:26 -0400 Received: by mail-qv1-f51.google.com with SMTP id x8so8059490qvr.9 for <62196@debbugs.gnu.org>; Mon, 20 Mar 2023 10:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679333126; 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=j7EhOqe0rnwQFetV8c6qN4wbhRYAzhjSLWfMODAC2lg=; b=ZNHQYOUYXAYOt9Fu4StWS+AjftJyafbJAr5ksVUyhn4N6UjEI6qEFnklTsvgUSOkBF 5Y2vimy3m0SoOalnVUFauYYnixqtet5uBaQ57fCE+rXJRLedROQTxzUvOiEhh4wb8ILC jmNiq88xWiKRC8dHCT+5N0s9ONG3I7ohB5d3VL7NP9zbLlKik5VoEpljVz8gh0Y1woyo c+vugX3HAVt8WAig5QOFsKzZOOt0nvJZ+JPOdJTTmjydp+vnTdEcqTjxnDO0Jc4LT7mT p2ShEUtgEYqbdVz1SaCK/b1vcVcEVohbSxFFtynQDy2cv7YJ72Rd03MLAz9LSQp1jAWl NWgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679333126; 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=j7EhOqe0rnwQFetV8c6qN4wbhRYAzhjSLWfMODAC2lg=; b=CLR0m4Vgp8qpY977Gv4zHWoueRcqi+VEzd2I5CLsB1UMHAIcRuull2dSdRbt/szsmx fd5Fx5rk8yNFi27uCFnvDJ/xks3pAiWwLbmRKwx+/vDClGQSy5xcv4Tu1Lk113d5UHnl MEqRcUmVWykXQkLuoQioC7OzsToO3HJM8e++CjD1Zwfw1lV6Dp/zHu15Q2flzVWjeh5m wT9DPUk7/kWPpdY1T71cx/yNwTqpFwQXHaOUnyosfbZOrhlyAqBaZGIX/UoWH9cbIhnm US12MKL+C8PWNh5OcDEy5fa/6Z5GGcve8dcwLWZakuT7iCX/AwMK4AHRhCAML5E20wyt VIzg== X-Gm-Message-State: AO0yUKU+xzxFkLdvD/Xtlupe27HhUf2G2qUzZA/5qxH74MUGbpoX5vxM OE3spiLdJ4hE8vGvNxJW+5aVZBJdO7c= X-Google-Smtp-Source: AK7set/BgmOix34WPtQwJa7Qxzry8ojRusY8APfrNjcCJa3s/F3+Gfm/MNB1U44B/1o9lAhqprVMdw== X-Received: by 2002:a05:6214:1d04:b0:5c6:cc1b:2ccb with SMTP id e4-20020a0562141d0400b005c6cc1b2ccbmr11585139qvd.2.1679333126071; Mon, 20 Mar 2023 10:25: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.25.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 10:25:25 -0700 (PDT) From: Maxim Cournoyer Date: Mon, 20 Mar 2023 13:23:26 -0400 Message-Id: <20230320172349.12752-99-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=1679333333; a=rsa-sha256; cv=none; b=Ye7QPHAe2nNCu28mk+myzwBRHPKUKd8av9RWrwzsHYzP++c05RvfrElQALSzDW2QfWDx2s n06Dsbtnw2xydpdVtsb9+xhKij6msJFY1DsCFDuOdfW2adpXhyF31x1bTAs5twduAsS9Qt yuiRWjIPxQy2Dd+PGZX0ypck+HrcttE/khaIO0DVbU1eLkNRES9Xga/95BsHmThaBO4sHs nwUi8VLIe/twPZ9rsuRpoo7XP5M/agkHfed9e/eMGp4a1BHFFbWn86t42mD/uNWDcdbc1/ BN6E8c2rFilG6qv4XQb9a27846Ub6Pk2/33vSCbsQguvk2Nx/l2OCw+PZTA8JQ== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ZNHQYOUY; 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=1679333333; 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=j7EhOqe0rnwQFetV8c6qN4wbhRYAzhjSLWfMODAC2lg=; b=A6URc4EdTXVrcoFUxmnr5Cm1FDsNPBjEcCliuVFX6FGTQgFurcqYidSduiEJdxfaaPlOvn bFEFfM5zdPhqK6wbCaBd/TT5BsMeQ3t1pLY7BARxcwzTUbFM1Dvdr67BgJjVNRpmrEZI+E gQMMznCk+7+7D8QGeDSSUnp08vkKRUdFL7Q3bxoUKuVRCMvrLZPILbH3bpDw2OZQ3WrSP0 UpAEvUZmV1NoFEwDUdtQhSBTGbTZRAOglu2lF4V9r53QEZAtd3zckstudmdlwcPXSqjzNJ e30coe6ND/2dTxFtdvzr2svjTFTN2w+eeM5CKr9AYi8hkCXxe180x6Y0Y/Syow== X-Migadu-Spam-Score: 6.24 X-Spam-Score: 6.24 X-Migadu-Queue-Id: B628236883 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ZNHQYOUY; 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: t/USSDcLzHRQ * gnu/packages/ruby.scm (ruby-ruby-version): New variable. --- gnu/packages/ruby.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index c11ced887d..40633a5cc3 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -6343,6 +6343,46 @@ (define-public ruby-ruby-parser back to Ruby via the @code{ruby2ruby} library.") (license license:expat))) +(define-public ruby-ruby-version + (package + (name "ruby-ruby-version") + (version "1.0.2") + (source (origin + (method url-fetch) + (uri (rubygems-uri "ruby_version" version)) + (sha256 + (base32 + "0lvc7bd5ps3w2vq2wb02i0pi3vfcx2rnckx2ix4rjym1qf52kb2j")))) + (build-system ruby-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'extract-gemspec 'delete-gem-files + ;; There are some pre-built files in the source, and + ;; registered in the .gemspec (see: + ;; https://github.com/janlelis/ruby_version/issues/1). + (lambda _ + (delete-file-recursively "pkg") + (substitute* "ruby_version.gemspec" + (("\"pkg/ruby_version-1.0.0.gem\".freeze, ") + "") + (("\"pkg/ruby_version-1.0.1.gem\".freeze, ") + "")))) + (add-after 'extract-gemspec 'relax-requirements + (lambda _ + (delete-file "Gemfile.lock") + (substitute* "ruby_version.gemspec" + (("\"Gemfile.lock\".freeze, ") "") + ;; Allow a newers versions of development dependencies. + (("~>") ">="))))))) + (native-inputs (list ruby-rdoc ruby-rubygems-tasks ruby-rspec)) + (synopsis "Ruby class for checking the Ruby version") + (description "This package provides a @code{RubyVersion} class which +offers a convenient Domain Specific Language (DSL) for checking for the right +Ruby version.") + (home-page "https://github.com/janlelis/ruby_version") + (license license:expat))) + (define-public ruby-prawn-manual-builder (package (name "ruby-prawn-manual-builder") -- 2.39.1