guix-commits
[Top][All Lists]
Advanced

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

15/66: gnu: Add ruby-rainbow.


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

cbaines pushed a commit to branch master
in repository guix.

commit 6edabcb20ce7df0133cc5ff77a27f4635dfc7573
Author: Christopher Baines <address@hidden>
Date:   Sun Jan 27 13:01:01 2019 +0000

    gnu: Add ruby-rainbow.
    
    Required for ruby-rubocop.
    
    * gnu/packages/ruby.scm (ruby-rainbow): New variable.
---
 gnu/packages/ruby.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index d126f3b..22aaf29 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -3793,6 +3793,38 @@ clickjacking, directory traversal, session hijacking and 
IP spoofing.")
     (home-page 
"https://github.com/sinatra/sinatra/tree/master/rack-protection";)
     (license license:expat)))
 
+(define-public ruby-rainbow
+  (package
+    (name "ruby-rainbow")
+    (version "3.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "rainbow" version))
+       (sha256
+        (base32
+         "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
+    (build-system ruby-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         ;; Run rspec directly, to avoid requiring Rubocop which is used from
+         ;; the Rakefile.
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "rspec"))
+             #t)))))
+    (native-inputs
+     `(("bundler" ,bundler)
+       ("ruby-rspec" ,ruby-rspec)))
+    (synopsis "Colorize printed text on ANSI terminals")
+    (description
+     "@code{rainbow} provides a string presenter object to colorize strings by
+wrapping them in ANSI escape codes.")
+    (home-page "https://github.com/sickill/rainbow";)
+    (license license:expat)))
+
 (define-public ruby-contest
   (package
     (name "ruby-contest")



reply via email to

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