I have added a package definition for ruby-net-http-digest-auth and
created the patch.

Please find it attached.

-- 
Frederick M. Muriithi
From 74daa07591f97fe9eb149781f3102490d5b93c71 Mon Sep 17 00:00:00 2001
From: Muriithi Frederick Muriuki <[email protected]>
Date: Fri, 11 Nov 2016 19:39:48 +0300
Subject: [PATCH 2/2] gnu: ruby-net-http-digest-auth: Add new package

* gnu/packages/ruby.scm (ruby-net-http-digest-auth): Added a new
package definition
---
 gnu/packages/ruby.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 42beda3..380777a 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -4179,3 +4179,31 @@ patterns.")
 libraries for compiling Ruby native extensions.")
     (home-page "https://github.com/ruby-gnome2/pkg-config";)
     (license license:lgpl2.0+)))
+
+(define-public ruby-net-http-digest-auth
+  (package
+    (name "ruby-net-http-digest-auth")
+    (version "1.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "net-http-digest_auth" version))
+       (sha256
+        (base32
+         "14801gr34g0rmqz9pv4rkfa3crfdbyfk6r48vpg5a5407v0sixqi"))))
+    (build-system ruby-build-system)
+    (inputs
+     `(("ruby-hoe" ,ruby-hoe)))
+    (synopsis
+     "One implementation of RFC 2617 - Digest Access Authentication")
+    (description
+     "An implementation of RFC 2617 - Digest Access Authentication.  At this time
+the gem does not drop in to Net::HTTP and can be used for with other HTTP
+clients.
+
+In order to use net-http-digest_auth you'll need to perform some request
+wrangling on your own.  See the class documentation at Net::HTTP::DigestAuth
+for an example.")
+    (home-page
+     "http://github.com/drbrain/net-http-digest_auth";)
+    (license license:expat)))
-- 
2.1.4

Reply via email to