From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 2HlNFeyPaWIuxAAAbAwnHQ (envelope-from ) for ; Wed, 27 Apr 2022 20:48:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MFaWFeyPaWJM4QAAauVa8A (envelope-from ) for ; Wed, 27 Apr 2022 20:48:12 +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 3083D29E2E for ; Wed, 27 Apr 2022 20:48:12 +0200 (CEST) Received: from localhost ([::1]:58122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njmhv-0007hz-0a for larch@yhetil.org; Wed, 27 Apr 2022 14:48:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njmhm-0007Xc-J0 for guix-patches@gnu.org; Wed, 27 Apr 2022 14:48:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50508) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njmhm-0005DG-8r for guix-patches@gnu.org; Wed, 27 Apr 2022 14:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1njmhm-0005JG-1l for guix-patches@gnu.org; Wed, 27 Apr 2022 14:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50537] [PATCH v2 18/27] gnu: Add ruby-money-open-exchange-rates. Resent-From: Stephen Paul Weber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 27 Apr 2022 18:48:01 +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.165108524020114 (code B ref 50537); Wed, 27 Apr 2022 18:48:01 +0000 Received: (at 50537) by debbugs.gnu.org; 27 Apr 2022 18:47:20 +0000 Received: from localhost ([127.0.0.1]:44378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njmh5-0005EF-I9 for submit@debbugs.gnu.org; Wed, 27 Apr 2022 14:47:19 -0400 Received: from singpolyma.net ([192.99.233.116]:53715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njmgW-00058P-RI for 50537@debbugs.gnu.org; Wed, 27 Apr 2022 14:46:46 -0400 Received: by singpolyma.net (Postfix, from userid 1000) id 9C8BE4861849; Wed, 27 Apr 2022 18:46:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net; s=iweb; t=1651085204; bh=ti9zPNiil/EJsYlu8K+xIFtgB+9Q9YwvLt9bbBIxXlA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r4kNRgXUB7cxt81grNOuTz7hp97blxpAQXQnlaQ6TlckLJ9FVVBb4DytQVXSxKape IE74km3KUyBOp+UqnQ+4Ak5iglOgUSgWRWPHtZugzPkU9iAY7+IlKC2DvqsIMJvsw2 dAaC8ZLph8lQ/tMt4F6/Xpkc1Xh9GNLM7oHHXpYM= From: Stephen Paul Weber Date: Wed, 27 Apr 2022 13:46:24 -0500 Message-Id: <20220427184633.94169-18-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=1651085292; 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=lwkV67hbT+NK7I+DxcKRYYl+9y1+A/VZPzHTOfSb1jk=; b=YCTHGto5qAwKecTUZIjQooH+VVU4uETnnl2brlS/uIMs0CXMlfB6wGTIKXGxLc2RcgPevQ g4/+ONCN4pRFG9VHY1GTJJXIDlckALtUo+G2XSRbe0yvufxI+ap+lUTIwjTYDbONRQgCcX wLxkvBoVndp4/4vPm07ilZK4WyRRzCNiDLC5EeXSbmw/Yckzsvrta38wQJtPv8TisZibzl Zt8QtPpLoqV2zotYLCUNP6wJLaA0nRtN3j5IcefskK2m4VCDR5ocu6fGW61WpQ6DcI9fim CCvfaOjP1DNJKC1Qtn73e56ceoaER5laUNZnZ+e0ONeuQjFMny15Gb8/JvVglg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651085292; a=rsa-sha256; cv=none; b=MN23quW61ga1XTmCUR7hm46ykyKCQkujhSQPcJNxn1dHW3PA0m9FOUUXJ5DQMz+Ky3J3qq 1mM9msGY3ce4zoti5jLj65mPKLV+yy9P5UTiWAyAvJxNSXwJU6GSEe8IZgXGXNN9pGWXRe WhWkPKmrwoz2R5sf8FEFedN84Z/GpzJBvPFD3cgyP6n8UJ6iuA5cZcJwLxfdFp1jlgQ8bx YkG60HgT61qjkD4OuYWWl4SxMduDgg+/CvKiUb0PPZexgpYuYdM/MI/ngZk9WjjY2EcJpq ERljofoL6zeb3VGmOEsQDfA3iXEF3I2vTFSlLzlX0y6E7y0H6xRz5U3yD3O3Lg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=singpolyma.net header.s=iweb header.b=r4kNRgXU; 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=r4kNRgXU; 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: 3083D29E2E X-Spam-Score: 7.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: RsoFeL9nsg3C * gnu/packages/ruby.scm (ruby-money-open-exchange-rates): New variable. --- gnu/packages/ruby.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 0d9214bae1..100f9fd1ad 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -12697,3 +12697,38 @@ Money objects.") (home-page "https://github.com/RubyMoney/monetize") (license license:expat))) + +(define-public ruby-money-open-exchange-rates + (package + (name "ruby-money-open-exchange-rates") + (version "1.4.0") + (source + (origin + (method git-fetch) + ;; Download from GitHub because the rubygems version does not contain + ;; Rakefile. + (uri (git-reference + (url "https://github.com/spk/money-open-exchange-rates") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "11xwqli8snr19k48yh8h77sal5vxd4snzq9gxg08v61f0574m3gw")))) + (build-system ruby-build-system) + (propagated-inputs `(("ruby-money" ,ruby-money))) + (native-inputs + `(("ruby-minitest" ,ruby-minitest) + ("ruby-mocha" ,ruby-mocha) + ("ruby-timecop" ,ruby-timecop) + ("ruby-webmock" ,ruby-webmock) + ("ruby-monetize" ,ruby-monetize) + ("ruby-rake" ,ruby-rake) + ("ruby-rubocop" ,ruby-rubocop))) + (synopsis + "Calculates the exchange rate using published rates from open-exchange-rates") + (description + "This package provides a gem that calculates the exchange rate using +published rates from open-exchange-rates. Compatible with the money gem.") + (home-page + "https://github.com/spk/money-open-exchange-rates") + (license license:expat))) -- 2.30.2