Subject: [bug#71423] [PATCH 1/2] gnu: Add ruby-schash.

From: gemmaro <[email-masked]>
Date: Sat, 8 Jun 2024 09:24:20 +0900

* gnu/packages/ruby.scm (ruby-schash): New variable.

Change-Id: Idb534f17e5e7cbc43b671e8c35d475484d423050
---
 gnu/packages/ruby.scm | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 5c1e666bb0..28f6fbc7dc 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -32,7 +32,7 @@
 ;;; Copyright © 2022-2024 Remco van 't Veer <[email-masked]>
 ;;; Copyright © 2022 Taiju HIGASHI <[email-masked]>
 ;;; Copyright © 2023 Yovan Naumovski <[email-masked]>
-;;; Copyright © 2023 gemmaro <[email-masked]>
+;;; Copyright © 2023, 2024 gemmaro <[email-masked]>
 ;;; Copyright © 2023, 2024 Janneke Nieuwenhuizen <[email-masked]>
 ;;; Copyright © 2023, 2024 Zheng Junjie <[email-masked]>
 ;;; Copyright © 2023, 2024 Hartmut Goebel <[email-masked]>
@@ -819,6 +819,32 @@ (define-public ruby-rspec-expectations-2
     (propagated-inputs
      (list ruby-diff-lcs))))
 
+(define-public ruby-schash
+  (package
+    (name "ruby-schash")
+    (version "0.1.2")
+    (source
+     (origin
+       (method git-fetch) ;for tests
+       (uri (git-reference
+             (url "https://github.com/ryotarai/schash")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0q58k844i1rzxapcd8acppkkdm29ikfzn8nxas7kb7b5mf1xv9kv"))))
+    (build-system ruby-build-system)
+    (arguments
+     (list
+      #:test-target "spec"))
+    (native-inputs (list ruby-rspec))
+    (synopsis "Ruby Hash validator")
+    (description
+     "This gem is a Ruby's @code{Hash} validator.  It allows library
+users to define their own validator schema using its domain specific
+language, and validate values with it.")
+    (home-page "https://github.com/ryotarai/schash")
+    (license license:expat)))
+
 (define-public ruby-sorcerer
   (package
     (name "ruby-sorcerer")
-- 
2.45.1