From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wB6INMCPaWJqWQEAbAwnHQ (envelope-from ) for ; Wed, 27 Apr 2022 20:47:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YH7ONMCPaWIhMQEA9RJhRA (envelope-from ) for ; Wed, 27 Apr 2022 20:47:28 +0200 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 AF3E529EA3 for ; Wed, 27 Apr 2022 20:47:28 +0200 (CEST) Received: from localhost ([::1]:56012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njmhD-0005yh-FZ for larch@yhetil.org; Wed, 27 Apr 2022 14:47:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njmgr-0005wo-N5 for guix-patches@gnu.org; Wed, 27 Apr 2022 14:47:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50465) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njmgp-00052A-Dd for guix-patches@gnu.org; Wed, 27 Apr 2022 14:47:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1njmgp-0005CN-CJ for guix-patches@gnu.org; Wed, 27 Apr 2022 14:47:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50537] [PATCH v2 06/27] gnu: Add ruby-value-semantics. Resent-From: Stephen Paul Weber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 27 Apr 2022 18:47:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50537 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50537@debbugs.gnu.org Cc: Stephen Paul Weber , rg@raghavgururajan.name Received: via spool by 50537-submit@debbugs.gnu.org id=B50537.165108521919894 (code B ref 50537); Wed, 27 Apr 2022 18:47:03 +0000 Received: (at 50537) by debbugs.gnu.org; 27 Apr 2022 18:46:59 +0000 Received: from localhost ([127.0.0.1]:44343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njmgk-0005Ai-R7 for submit@debbugs.gnu.org; Wed, 27 Apr 2022 14:46:59 -0400 Received: from singpolyma.net ([192.99.233.116]:37813) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njmgV-00057g-BZ for 50537@debbugs.gnu.org; Wed, 27 Apr 2022 14:46:44 -0400 Received: by singpolyma.net (Postfix, from userid 1000) id CA219486183D; Wed, 27 Apr 2022 18:46:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net; s=iweb; t=1651085202; bh=kfjSkL82kazRacNm1t+1r+MEbVaYJV18ZZqfljz8S28=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fojtabASsa/u7y45HMasBLFptdWNKIMpC361MNyyXlhI1I3irDS73Mn3q6vnJ0qAw k7R26v1hFd5gixr9/84XW2ySBHAL5gvk+71X/jyQIskmRJhoWLfSFaOhpplORebLl3 BTE1V+EpSEREgzKB0HrFHFhPE4q0A4USWSifTnPQ= From: Stephen Paul Weber Date: Wed, 27 Apr 2022 13:46:12 -0500 Message-Id: <20220427184633.94169-6-singpolyma@singpolyma.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220427184633.94169-1-singpolyma@singpolyma.net> References: <20220427184633.94169-1-singpolyma@singpolyma.net> 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651085248; 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=xECMjuN1qFzTRZzGRSISI5pwA1EdHvy5qc2SCt2Gtpg=; b=MCloS7psZ/Li5wkcW9rcxCLXq2kHeHzOo+WVi326CAFjMrmNsplpJSjF7uxAzzKDXjoQrR xM1kX0pbJUERGzF4FKKbi1+s0Dj//LAPcVr1GmNOilOkZk4AmSIV5QP3Mg8naQ5YkwuHrF hgpB9qcQJ5fkeTEr1JHXBub+eu2zNPqZWotiafD7//3LnsQMVHMEKwwLfFpD8vEOP/zH1C DNsuZkMXSiQGDyj2T80YATk/+NvTUF9Y6VE3FKpmPt4bBLjQYf5DGGfg+6Yl2in6/dTDTa QK/+dAV4BRRtPXtVhs9qSPlEBV5Q4OY5Sz0xslox2vTgyrSUnCugFJ4PmTh7eQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651085248; a=rsa-sha256; cv=none; b=IpUb3lEw8npmZv4qwUAPilTfa4gomJ9b+qgt2C0lk3Xj+MB+REM0e0kn3hTQUIBjUp9umF UQPJn2nM2G18SpzrXC+c7ok5DWzRskoYHgXWoKd0aT9Mk5YmPB55nvfrXAJpVtZFQKJtzI 44TyoULdUh0hyjCxeKuDQAv7jjI7V1L2nHu3ktvCzRD58OFMhgJg+HGimURooIMsrFuSMY CyExqYx6+tIpG+UqjgymUEo8puBDylvNgvfznB2wU/2+FGqo17g9lpX0zw+xPEpE7O5DYj sL310vwPE74m4MmAp7jQ0SihjFKIV6mfr7jxAYkMi0JB4CL+tOmCMIANXJ/nlw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=singpolyma.net header.s=iweb header.b=fojtabAS; dmarc=fail reason="SPF not aligned (strict)" header.from=singpolyma.net (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-Spam-Score: 7.50 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=singpolyma.net header.s=iweb header.b=fojtabAS; dmarc=fail reason="SPF not aligned (strict)" header.from=singpolyma.net (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-Queue-Id: AF3E529EA3 X-Spam-Score: 7.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: 1P9xiuS6jrE5 * gnu/packages/ruby.scm (ruby-value-semantics): New variable. --- gnu/packages/ruby.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index f9edb4ac3f..9b4e8c5311 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -12391,3 +12391,35 @@ completes") payments platform.") (home-page "https://www.braintreepayments.com/") (license license:expat))) + +(define-public ruby-value-semantics + (package + (name "ruby-value-semantics") + (version "3.6.1") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "value_semantics" version)) + (sha256 + (base32 + "1vdwai8wf6r1fkvdpyz1vzxm89q7ghjvb3pqpg2kvwibwzd99dnx")))) + (build-system ruby-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "rspec") + #t))))) + (native-inputs + `(("ruby-rspec" ,ruby-rspec))) + (synopsis + "Modules that provide conventional value semantics for a set of attributes") + (description + "Generates modules that provide conventional value semantics for a given +set of attributes. +The behaviour is similar to an immutable `Struct` class, +plus extensible, lightweight validation and coercion.") + (home-page + "https://github.com/tomdalling/value_semantics") + (license license:expat))) -- 2.30.2