guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

19/66: gnu: Add ruby-webmock.


From: guix-commits
Subject: 19/66: gnu: Add ruby-webmock.
Date: Thu, 14 Feb 2019 16:38:34 -0500 (EST)

cbaines pushed a commit to branch master
in repository guix.

commit 8c7ae3840260c5ec00c423505482991165fc44d4
Author: Christopher Baines <address@hidden>
Date:   Sun Jan 27 16:41:55 2019 +0000

    gnu: Add ruby-webmock.
    
    Required by ruby-rest-client. Also at version ~> 2, so don't package 3 just
    yet.
    
    * gnu/packages/ruby.scm (ruby-webmock): 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 a0c0706..d5e2034 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -4820,6 +4820,32 @@ support to both Ruby and JRuby.  It uses @code{unf_ext} 
on CRuby and
     (home-page "https://github.com/knu/ruby-unf";)
     (license license:bsd-2)))
 
+(define-public ruby-webmock-2
+  (package
+    (name "ruby-webmock")
+    (version "2.3.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "webmock" version))
+       (sha256
+        (base32
+         "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
+    (build-system ruby-build-system)
+    (native-inputs
+     `(("bundler" ,bundler)
+       ("ruby-rspec" ,ruby-rspec)))
+    (propagated-inputs
+     `(("ruby-addressable" ,ruby-addressable)
+       ("ruby-crack" ,ruby-crack)
+       ("ruby-hashdiff" ,ruby-hashdiff)))
+    (synopsis "Allows stubbing and setting expectations on HTTP requests")
+    (description
+     "WebMock allows stubbing HTTP requests and setting expectations on HTTP
+requests.  This is useful when testing software.")
+    (home-page "https://github.com/bblimke/webmock";)
+    (license license:expat)))
+
 (define-public ruby-domain-name
   (package
     (name "ruby-domain-name")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]