Subject: [PATCH 04/27] gnu: Add ruby-blather.

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

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

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 0b5aed4b37..79528b934a 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -12576,3 +12576,43 @@ completes")
     (home-page
       "https://github.com/benlangfeld/countdownlatch")
     (license license:expat)))
+
+(define-public ruby-blather
+  (package
+    (name "ruby-blather")
+    (version "2.0.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (rubygems-uri "blather" version))
+        (sha256
+          (base32
+            "05ry2x835fj4pzk61282pcz86n018cr39zbgwbi213md74i90s7c"))))
+    (build-system ruby-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'extract-gemspec 'less-strict-dependencies
+           (lambda _
+             (substitute* "blather.gemspec"
+               ((".*guard-rspec.*") "\n")
+                ((".*bluecloth.*") "\n"))
+             #t)))))
+    (propagated-inputs
+      `(("ruby-activesupport" ,ruby-activesupport)
+        ("ruby-eventmachine" ,ruby-eventmachine)
+        ("ruby-niceogiri" ,ruby-niceogiri)
+        ("ruby-nokogiri" ,ruby-nokogiri)
+        ("ruby-sucker-punch" ,ruby-sucker-punch)))
+    (native-inputs
+     `(("ruby-rspec" ,ruby-rspec)
+       ("ruby-yard" ,ruby-yard)
+       ("ruby-countdownlatch" ,ruby-countdownlatch)
+       ("ruby-rb-fsevent" ,ruby-rb-fsevent)
+       ("ruby-mocha" ,ruby-mocha)))
+    (synopsis
+      "XMPP DSL for Ruby written on top of EventMachine and Nokogiri")
+    (description
+      "XMPP DSL for Ruby written on top of EventMachine and Nokogiri")
+    (home-page "https://github.com/adhearsion/blather")
+    (license license:expat)))
-- 
2.20.1