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 UPmLEbOXGGSOdAEASxT56A (envelope-from ) for ; Mon, 20 Mar 2023 18:28:19 +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 GJeVELOXGGQmmQAAG6o9tA (envelope-from ) for ; Mon, 20 Mar 2023 18:28:19 +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 0BA7D36730 for ; Mon, 20 Mar 2023 18:28:19 +0100 (CET) Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Rx2zNNXz; 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=1679333299; 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=QYkUmPJ5Yb7PcHfYeX7aI/+aKky49TQaN9i4icmp3Zs=; b=TLnJoSSMLxgJe1C4Sk3euo2EcEN/cyYD0v10s5wMJO0VaFs7hPKmoGpW01u25n8RJC+qbT dwZHYC6qpqksdyF/7JFktGdKIrcXatww3wpYa8YYX4+6oMgAyUn0dm0els7PZoxedlq4Q2 fWgRGx/r7zVgEITqnH1oSRBxi6bR2uvv9Yen6GBdp+oHPpuGLqmCxF0HlLg/Aq78NnGASh VyLs+Ly0WZpVDtYKg59AdVhFYdKGtWon9oFVYd44J7D2g4Y/AA8/b/Wwmvs19Vc9oX86IL ydQG8DvKMmverp46Fhi97YDeDpJfAwH6lIonj8txm4WIadMIhiE9MPqkQ+EOTQ== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Rx2zNNXz; 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=1679333299; a=rsa-sha256; cv=none; b=NRUvYN0N9Nglcb3YB1U3C19OV8LoFxrui+KTcAqi0QVLJWqvg1ycU0wZdsaDYEGJ9d4TJM BoDdiVOB+bnl8c4vzEcoGwPhTRWVDhLnwROPy6D7VeLLV+Fhm5RomrieGGu9ERKCHrKvmi eOz57YgHp+qjid98DfJOcXNbs8H7XNZJxzDLtyMW3g96rmwh0yTy6d7Ez9I2Xm8nEPs5ZK tWKzOhrtl+1jwzDjsKiVx16LBoxLVBkAQFAVfqp3oZASIzgZmFzdR6zan3+7e1tdMn0ueM IcQtufB10jAk2JTUz4fjOASytsmBQuU+B1LSHtIkx3t3XOR8/Vdj0hPTG3Aikg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peJHi-0005AC-Ol; Mon, 20 Mar 2023 13:27:02 -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 1peJHN-0004ms-KB for guix-patches@gnu.org; Mon, 20 Mar 2023 13:26:41 -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 1peJHN-0005bE-AN for guix-patches@gnu.org; Mon, 20 Mar 2023 13:26:41 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peJHN-00048X-62 for guix-patches@gnu.org; Mon, 20 Mar 2023 13:26:41 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62196] [PATCH 087/223] gnu: Add ruby-syntax-tree. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 20 Mar 2023 17:26:41 +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.167933317315392 (code B ref 62196); Mon, 20 Mar 2023 17:26:41 +0000 Received: (at 62196) by debbugs.gnu.org; 20 Mar 2023 17:26:13 +0000 Received: from localhost ([127.0.0.1]:56257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJGu-000401-KM for submit@debbugs.gnu.org; Mon, 20 Mar 2023 13:26:13 -0400 Received: from mail-ot1-f43.google.com ([209.85.210.43]:35529) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJGW-0003rH-7l for 62196@debbugs.gnu.org; Mon, 20 Mar 2023 13:25:48 -0400 Received: by mail-ot1-f43.google.com with SMTP id m20-20020a9d6094000000b0069caf591747so7141611otj.2 for <62196@debbugs.gnu.org>; Mon, 20 Mar 2023 10:25:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679333142; 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=QYkUmPJ5Yb7PcHfYeX7aI/+aKky49TQaN9i4icmp3Zs=; b=Rx2zNNXz5osHq5kcjn+zpeB5LQMTSApwn1hIFFVb18EDHXqzi/Wlqf4Pg/96rO3xFL W8+cyFP5OJ8yvj/1s49CRp9U7MOI3H4Bt7nH0XqXqEgTg8A2/Lw3mjg1L34Yn7Sn39Eb lBxYwRVoWSOaqKbfq9ftN7hJGtBo5MKM/bhLJL35zOFTyrBavIPHfljUmz1KqMjH+7Tp ux7gJyxZTVQ2IW75DgGJrfpESawxvC0bhoy9CGMRRIqBuV4qndDqSLvMZfof9jUrndH1 /To6vTQauz5FlDsxZeRogJjq07rR1zH6gIXa5GCydmRed7q9E7h4R/CmShWGA4/osDf9 FSBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679333142; 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=QYkUmPJ5Yb7PcHfYeX7aI/+aKky49TQaN9i4icmp3Zs=; b=olg90RK4kMpNs2cChurdcHaPFvwmrNYb6Yr3CKXemvZtE5b6Nc98hXTF4YSxdQpvkV J2CYam6Ji9Gki8pELDG3niLduP9tyTDNjNN9BxyfBv3wYW57mq3Jf6FEO+bXQwWVoSNk 0wYSkrAlBzSYo6kcKy0dn2PDccyzv0yMxBzK0+KXJMo+nZU3vMERUWS06mOqEOmUjEWS HWE3s5u7r4Cs0+zFkmE9p2sdDOIWae6Jyw9lObv16xgSVeWQwFKPHmFqkECo4lDCYZVP 4gbwzG/fK8adqbqr5Ca84Gr4L3FWTI6lYJje4DNwFt/NOxVIRhkE7dDrXDCIf8svpSaZ PBmg== X-Gm-Message-State: AO0yUKVp8CKvLk4/uvVpls5hfUFvPy1mblNF8LQiwrpxwLJzKVzszgGG Hx4ZEO+lolFwVAAvtMwAMh2clyxP3ZM= X-Google-Smtp-Source: AK7set+8Btd8U95gkgj+GqKv+QiLqrSO4nBt2OHIcBDivMHy1Tw5MmoSHk7VXsdYeVITlU6MP0iRbg== X-Received: by 2002:a05:6214:20c1:b0:56e:9dd8:47f3 with SMTP id 1-20020a05621420c100b0056e9dd847f3mr54681869qve.13.1679332676417; Mon, 20 Mar 2023 10:17:56 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 10:17:56 -0700 (PDT) From: Maxim Cournoyer Date: Mon, 20 Mar 2023 13:14:19 -0400 Message-Id: <20230320171635.11184-87-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: 0BA7D36730 X-Spam-Score: -2.66 X-Migadu-Spam-Score: -2.66 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: zk5aajUYd0PZ * gnu/packages/ruby.scm (ruby-syntax-tree): New variable. --- gnu/packages/ruby.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 1ea90a543b..492468c296 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -12226,6 +12226,44 @@ (define-public ruby-language-server-protocol (home-page "https://github.com/mtsmfm/language_server-protocol-ruby") (license license:expat))) +(define-public ruby-syntax-tree + (package + (name "ruby-syntax-tree") + (version "6.0.2") + (source (origin + (method git-fetch) ;for tests + (uri (git-reference + (url "https://github.com/ruby-syntax-tree/syntax_tree") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0p3gbc0y2ld9svhhx95nifqf67gjfyy478h6mzm7zz0dapi8v8jm")))) + (build-system ruby-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + ;; The tests rely on the Gem being installed, so move the check + ;; phase after the install phase. + (delete 'check) + (add-after 'install 'check + (lambda* (#:key tests? #:allow-other-keys) + (setenv "GEM_PATH" (string-append + #$output "/lib/ruby/vendor_ruby:" + (getenv "GEM_PATH"))) + (when tests? + (invoke "rake" "test"))))))) + (native-inputs (list ruby-rubocop-ast ruby-simplecov)) + (propagated-inputs (list ruby-prettier-print)) + (synopsis "Fast Ruby parser and formatter") + (description "Syntax Tree is a suite of tools built on top of the internal +CRuby parser. It provides the ability to generate a syntax tree from source, +as well as the tools necessary to inspect and manipulate that syntax tree. It +can be used to build formatters, linters, language servers, and more.") + (home-page "https://github.com/ruby-syntax-tree/syntax_tree") + (license license:expat))) + (define-public ruby-mustache (package (name "ruby-mustache") -- 2.39.1