guix-commits
[Top][All Lists]
Advanced

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

31/66: gnu: ruby-public-suffix: Enable tests.


From: guix-commits
Subject: 31/66: gnu: ruby-public-suffix: Enable tests.
Date: Thu, 14 Feb 2019 16:38:36 -0500 (EST)

cbaines pushed a commit to branch master
in repository guix.

commit 1f4fc12568cad3e72a947997d4e0e20296b40ac9
Author: Christopher Baines <address@hidden>
Date:   Sun Jan 27 19:34:13 2019 +0000

    gnu: ruby-public-suffix: Enable tests.
    
    * gnu/packages/ruby.scm (ruby-public-suffix)[arguments]: Enable the tests, 
add
    a phase to remove the Rubocop dependency.
    [native-inputs]: Add bundler, ruby-yard, ruby-mocha and 
ruby-minitest-reporters.
---
 gnu/packages/ruby.scm | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 53f08e1..9c229db 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6164,8 +6164,21 @@ programs running in the background, in Ruby.")
                 "08q64b5br692dd3v0a9wq9q5dvycc6kmiqmjbdxkxbfizggsvx6l"))))
     (build-system ruby-build-system)
     (arguments
-     ;; Tests require network
-     `(#:tests? #f))
+     '(#:phases
+       (modify-phases %standard-phases
+         ;; Remove the requirement on Rubocop, as it isn't useful to run, and
+         ;; including it as an input can lead to circular dependencies.
+         (add-after 'unpack 'remove-rubocop-from-Rakefile
+           (lambda _
+             (substitute* "Rakefile"
+               (("require \"rubocop/rake\\_task\"") "")
+               (("RuboCop::RakeTask\\.new") ""))
+             #t)))))
+    (native-inputs
+     `(("bundler" ,bundler)
+       ("ruby-yard" ,ruby-yard)
+       ("ruby-mocha" ,ruby-mocha)
+       ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
     (home-page "https://simonecarletti.com/code/publicsuffix-ruby/";)
     (synopsis "Domain name parser")
     (description "The gem @code{public_suffix} is a domain name parser,



reply via email to

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