[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/17: gnu: Add ruby-yard-with-tests.
From: |
guix-commits |
Subject: |
03/17: gnu: Add ruby-yard-with-tests. |
Date: |
Sat, 11 Jul 2020 14:30:34 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit df32ab1196e69c8d769de5effb5b485c780bff96
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Jul 9 12:01:36 2020 -0400
gnu: Add ruby-yard-with-tests.
* gnu/packages/ruby.scm (ruby-yard-with-tests): New variable.
---
gnu/packages/ruby.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 72cdece..7071fb3 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -7014,6 +7014,33 @@ definitions.")
(home-page "https://yardoc.org";)
(license license:expat)))
+(define-public ruby-yard-with-tests
+ (package
+ (inherit ruby-yard)
+ (name "ruby-yard-with-tests")
+ (arguments
+ (substitute-keyword-arguments (package-arguments ruby-yard)
+ ((#:tests? _ #t) #t)
+ ((#:test-target _ "default") "default")
+ ((#:phases phases '%standard-phases)
+ `(modify-phases ,phases
+ (add-before 'check 'prepare-for-tests
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (substitute* "Rakefile"
+ ((".*[Ss]amus.*") ""))
+ ;; Delete the Gemfile to avoid errors relating to it.
+ (delete-file "Gemfile")
+ ;; $HOME needs to be set to somewhere writeable for tests to
+ ;; run.
+ (setenv "HOME" "/tmp"))
+ #t))))))
+ (native-inputs
+ `(("ruby-rspec" ,ruby-rspec)
+ ("ruby-rack" ,ruby-rack)
+ ("ruby-redcloth" ,ruby-redcloth)
+ ("ruby-asciidoc" ,ruby-asciidoctor)))))
+
(define-public ruby-clap
(package
(name "ruby-clap")
- branch master updated (3e26bec -> 661ad8d), guix-commits, 2020/07/11
- 01/17: gnu: ruby-asciimath: Update to 2.0.1., guix-commits, 2020/07/11
- 04/17: gnu: ruby-yard: Update to 0.9.25., guix-commits, 2020/07/11
- 06/17: gnu: ruby-cucumber: Enable more tests., guix-commits, 2020/07/11
- 02/17: gnu: ruby-yard: Disable tests., guix-commits, 2020/07/11
- 08/17: gnu: ruby-tilt: Update to 2.0.10., guix-commits, 2020/07/11
- 11/17: gnu: Add ruby-slim., guix-commits, 2020/07/11
- 05/17: gnu: ruby-sinatra: Update to 2.0.8.1., guix-commits, 2020/07/11
- 03/17: gnu: Add ruby-yard-with-tests.,
guix-commits <=
- 07/17: gnu: Add ruby-pandoc-ruby., guix-commits, 2020/07/11
- 12/17: gnu: ruby-asciidoctor: Re-indent., guix-commits, 2020/07/11
- 13/17: gnu: ruby-asciidoctor: Update to 2.0.10., guix-commits, 2020/07/11
- 09/17: gnu: ruby-tilt: Add pandoc, sassc support., guix-commits, 2020/07/11
- 16/17: gnu: Add ruby-yard-tomdoc., guix-commits, 2020/07/11
- 10/17: gnu: ruby-temple: Update to 0.8.2., guix-commits, 2020/07/11
- 15/17: gnu: Add ruby-tomparse., guix-commits, 2020/07/11
- 17/17: gnu: ruby-ruby-prof: Disable a flaky test., guix-commits, 2020/07/11
- 14/17: gnu: Add ruby-spectroscope., guix-commits, 2020/07/11