Subject: [bug#50537] [PATCH v2 21/27] gnu: Add ruby-faraday-middleware.

From: Stephen Paul Weber <[email-masked]>
Date: Wed, 27 Apr 2022 13:46:27 -0500

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

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 62f2bbb97f..d9cbd84e66 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -12777,3 +12777,26 @@ published rates from open-exchange-rates.  Compatible with the money gem.")
     (description "XML to Hash translator")
     (home-page "https://github.com/savonrb/nori")
     (license license:expat)))
+
+(define-public ruby-faraday-middleware
+  (package
+    (name "ruby-faraday-middleware")
+    (version "1.1.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (rubygems-uri "faraday_middleware" version))
+        (sha256
+          (base32
+            "0kgcphf7n74l3wlcvxafcp6a4l18b1bf4qslvz5dqj6v3gc8h8j4"))))
+    (build-system ruby-build-system)
+    (arguments
+     ;; No rakefile
+     `(#:tests? #f))
+    (propagated-inputs
+      `(("ruby-faraday" ,ruby-faraday)))
+    (synopsis "Various middleware for Faraday")
+    (description "Various middleware for Faraday")
+    (home-page
+      "https://github.com/lostisland/faraday_middleware")
+    (license license:expat)))
-- 
2.30.2