From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GBb+I5jIPWG+TQEAgWs5BA (envelope-from ) for ; Sun, 12 Sep 2021 11:30:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id AODxHpjIPWGYagAAbx9fmQ (envelope-from ) for ; Sun, 12 Sep 2021 09:30:00 +0000 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 2B1109E79 for ; Sun, 12 Sep 2021 11:30:00 +0200 (CEST) Received: from localhost ([::1]:38142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPLoF-0000Mg-Ap for larch@yhetil.org; Sun, 12 Sep 2021 05:29:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPFol-0002sP-Em for guix-patches@gnu.org; Sat, 11 Sep 2021 23:06:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58462) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mPFol-000081-5m for guix-patches@gnu.org; Sat, 11 Sep 2021 23:06:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mPFol-0005dm-0Y for guix-patches@gnu.org; Sat, 11 Sep 2021 23:06:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50537] [PATCH 06/27] gnu: Add ruby-value-semantics. Resent-From: Stephen Paul Weber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Sep 2021 03:06:06 +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 Received: via spool by 50537-submit@debbugs.gnu.org id=B50537.163141596421616 (code B ref 50537); Sun, 12 Sep 2021 03:06:06 +0000 Received: (at 50537) by debbugs.gnu.org; 12 Sep 2021 03:06:04 +0000 Received: from localhost ([127.0.0.1]:41755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mPFoh-0005cM-SB for submit@debbugs.gnu.org; Sat, 11 Sep 2021 23:06:04 -0400 Received: from singpolyma.net ([192.99.233.116]:41289) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mPFoZ-0005Yh-GU for 50537@debbugs.gnu.org; Sat, 11 Sep 2021 23:05:56 -0400 Received: by singpolyma.net (Postfix, from userid 1000) id 53178486167C; Sun, 12 Sep 2021 03:05:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net; s=iweb; t=1631415953; bh=TytH4ZAcmgxWKVq9vhKdifZHd/0wydZ67eN43/RLOQE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XwMV+3OKkfOuurLrlU46XjtdAb/8RlEd66aYZ55cMLv2+XGo+z0/CSs8FfckoiwjP l/S0acpA3JU8QnbequMXEfM840QQj5/s5yxO7lE8kKwi3Oe2/WJ728IvKSgNexxhT0 08w9Da6Hu/09uXFC8r+1Z3OymZXU1f/w4XFmiNDw= From: Stephen Paul Weber Date: Sat, 11 Sep 2021 22:05:11 -0500 Message-Id: <20210912030532.7439-6-singpolyma@singpolyma.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210912030532.7439-1-singpolyma@singpolyma.net> References: <20210912030532.7439-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-Mailman-Approved-At: Sun, 12 Sep 2021 05:29:06 -0400 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631439000; 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=Y5z5HrYwnDzy7Jqy+lzJyFwSjkm0pto9lAG4yKxEnDU=; b=n3dO0ze+pSt+JlN9oXfjOwJguPAzTrkzXsGnWtC9gOebsqk5V1+7EMP70xEVh5Xg6hTW7E SKjecynA76ICp7OqV3yIqmfDvf2FIh6IFtWXQ+0u+ybuJkvhtGu7o50lRptLwb1N1RJSUv ABCMi78s3m6tKCa6sgiTWwZkUhP7QY1AQ6WFBYba2TEIwevsbcbzBRNMkd2AgHMu357CTG /k5TmDOyp1piv3yd95RgmO4MBgbpVpnvfVXlhM/yjJ52qxqrX0MM+hK7U1WfqAXpnolX/9 ZabHY6HqzVyIKMIeDXPGr3xNNFjiTLXJrf3rq/Og9Px7h2y91Vvem4XFXeYsWg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631439000; a=rsa-sha256; cv=none; b=iKu/fZcmptaAU//9VtZbFfLdplbcbK2r87F31/Js7FavvZYH0e1rr30NqA0HKwAc+Dx1PN gBiHsOOnM8IVSOx3nm00+FreXJWDXdmFSv2H1L7eclxkG4dfJjfkEpspDN/fkYu3aWA9fL ug6MchwFXd3O35rVbwn/MS/zFoZkigMp7hKsfQMomUGKZNiqirpMyV9nYJ0dfTP+NMOfkE CT2np48juPBg4sH3B7b9PqfK9smiMc/pmFfBQ+Nn/DOjd6Eo/yHV78PugcQPwYRG4vsUOM eOQLXeyBsEEr3tgMPw23US/4rXi6IiEY458sjRqiQPXDQmV4lWrHfjcu6OeMAA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=singpolyma.net header.s=iweb header.b=XwMV+3OK; dmarc=fail reason="SPF not aligned (strict)" header.from=singpolyma.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=singpolyma.net header.s=iweb header.b=XwMV+3OK; dmarc=fail reason="SPF not aligned (strict)" header.from=singpolyma.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 2B1109E79 X-Spam-Score: 3.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: hRyJCI1IsMgL * 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 efef72db03..4b04710665 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -12662,3 +12662,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.20.1