Subject: [bug#50537] [PATCH 17/27] gnu: Add ruby-monetize.

From: Stephen Paul Weber <[email-masked]>
Date: Sat, 11 Sep 2021 22:05:22 -0500

* gnu/packages/ruby.scm (ruby-monetize): New variable.
---
 gnu/packages/ruby.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 5cffa281a5..c602ad177d 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -12942,3 +12942,29 @@ For more information, see: https://dhall-lang.org")
 currency conversion.")
     (home-page "https://rubymoney.github.io/money/")
     (license license:expat)))
+
+(define-public ruby-monetize
+  (package
+    (name "ruby-monetize")
+    (version "1.11.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (rubygems-uri "monetize" version))
+        (sha256
+          (base32
+            "0cna2myxdbwfq0gn6k2hgrh368dq7wld3jklm96443ysykd0difn"))))
+    (build-system ruby-build-system)
+    (arguments
+     '(#:test-target "spec"))
+    (native-inputs
+     `(("ruby-rspec" ,ruby-rspec)))
+    (propagated-inputs `(("ruby-money" ,ruby-money)))
+    (synopsis
+      "Convert various objects into Money objects")
+    (description
+      "This package provides a library for converting various objects into
+Money objects.")
+    (home-page
+      "https://github.com/RubyMoney/monetize")
+    (license license:expat)))
-- 
2.20.1