Subject: [PATCH 12/27] gnu: Add ruby-cbor.

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

* gnu/packages/ruby.scm (ruby-cbor): 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 2934033db8..1daa2c4236 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -12815,3 +12815,29 @@ This object is not created until the first method dispatch.")
     (description "Parsing Expressions for Ruby")
     (home-page "http://mjackson.github.io/citrus/")
     (license license:expat)))
+
+(define-public ruby-cbor
+  (package
+    (name "ruby-cbor")
+    (version "0.5.9.6")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (rubygems-uri "cbor" version))
+        (sha256
+          (base32
+            "0511idr8xps9625nh3kxr68sdy6l3xy2kcz7r57g47fxb1v18jj3"))))
+    (build-system ruby-build-system)
+    (arguments
+     '(#:test-target "spec"))
+    (native-inputs
+     `(("ruby-rspec" ,ruby-rspec)
+       ("ruby-rake-compiler" ,ruby-rake-compiler)
+       ("ruby-yard" ,ruby-yard)))
+    (synopsis
+      "Ruby library for CBOR binary object representation format")
+    (description
+      "CBOR is a library for the CBOR binary object representation format,
+based on Sadayuki Furuhashi's MessagePack library.")
+    (home-page "http://cbor.io/")
+    (license license:asl2.0)))
-- 
2.20.1