guix-commits
[Top][All Lists]
Advanced

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

03/06: gnu: Add ruby-shellany.


From: David Thompson
Subject: 03/06: gnu: Add ruby-shellany.
Date: Sat, 19 Sep 2015 12:53:09 +0000

davexunit pushed a commit to branch master
in repository guix.

commit c5d14d42282fe9d4123f1efa0f995123781e17da
Author: Ricardo Wurmus <address@hidden>
Date:   Wed Sep 16 11:00:45 2015 +0200

    gnu: Add ruby-shellany.
    
    * gnu/packages/ruby.scm (ruby-shellany): New variable.
---
 gnu/packages/ruby.scm |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 0127a61..e8ec6ed 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -572,6 +572,36 @@ and inspect the environment.")
     (home-page "https://github.com/e2/nenv";)
     (license license:expat)))
 
+(define-public ruby-shellany
+  (package
+    (name "ruby-shellany")
+    (version "0.0.1")
+    (source (origin
+              (method url-fetch)
+              (uri (rubygems-uri "shellany" version))
+              (sha256
+               (base32
+                "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
+    (build-system ruby-build-system)
+    (arguments
+     `(#:test-target "default"
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-version-test
+          (lambda _
+            (substitute* "spec/shellany_spec.rb"
+              (("^RSpec") "require \"shellany\"\nRSpec"))
+            #t)))))
+    (native-inputs
+     `(("ruby-rspec" ,ruby-rspec)
+       ("ruby-nenv" ,ruby-nenv)
+       ("bundler" ,bundler)))
+    (synopsis "Capture command output")
+    (description "Shellany is a Ruby library providing functions to capture
+the output produced by running shell commands.")
+    (home-page "https://rubygems.org/gems/shellany";)
+    (license license:expat)))
+
 (define-public ruby-useragent
   (package
     (name "ruby-useragent")



reply via email to

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