[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/20: gnu: Add ruby-maxitest.
From: |
guix-commits |
Subject: |
07/20: gnu: Add ruby-maxitest. |
Date: |
Wed, 20 May 2020 17:53:31 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 8d85543b6a0df8abf35bd317588deb81c1726602
Author: Marius Bakke <address@hidden>
AuthorDate: Wed May 20 17:35:53 2020 +0200
gnu: Add ruby-maxitest.
* gnu/packages/ruby.scm (ruby-maxitest): New public variable.
---
gnu/packages/ruby.scm | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 207f87b..36cb42e 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -2987,6 +2987,59 @@ Ruby, but can be used for all programs.")
(home-page "https://github.com/alexch/rerun/")
(license license:expat)))
+(define-public ruby-maxitest
+ (package
+ (name "ruby-maxitest")
+ (version "3.6.0")
+ (home-page "https://github.com/grosser/maxitest")
+ (source (origin
+ ;; Pull from git because the gem does not contain tests.
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "07b3j0bv3dx5j42jlvpvl07aaxplyi6wq688y3jl8y528ww2hjz8"))))
+ (build-system ruby-build-system)
+ (arguments
+ '(#:test-target "default"
+ #:phases (modify-phases %standard-phases
+ (replace 'replace-git-ls-files
+ (lambda _
+ (substitute* "maxitest.gemspec"
+ (("`git ls-files lib/ bin/ MIT-LICENSE Readme.md`")
+ "`find lib/ bin/ MIT-LICENSE Readme.md -type f |
sort`"))
+ #t))
+ (add-before 'check 'remove-version-constraints
+ (lambda _
+ ;; Don't use specific versions of dependencies, instead
+ ;; take whatever is available in Guix.
+ (delete-file "Gemfile.lock")
+ #t))
+ (add-before 'check 'add-mtest-on-PATH
+ (lambda _
+ ;; Tests use 'mtest' which is not automatically added on
+ ;; PATH.
+ (setenv "PATH" (string-append (getcwd) "/bin:"
+ (getenv "PATH")))
+ #t)))))
+ (native-inputs
+ `(("ps" ,procps)
+ ("ruby-bump" ,ruby-bump)
+ ("ruby-byebug" ,ruby-byebug)
+ ("ruby-rspec" ,ruby-rspec)
+ ("ruby-wwtd" ,ruby-wwtd)))
+ (propagated-inputs
+ `(("ruby-minitest" ,ruby-minitest)))
+ (synopsis "Minitest with extra features")
+ (description
+ "Maxitest is a wrapper around Minitest with extra functionality such
+as timeouts, an @command{mtest} executable that can run tests by line
+number, support for interrupted tests, better backtraces, and more.")
+ (license license:expat)))
+
(define-public ruby-mocha
(package
(name "ruby-mocha")
- branch master updated (bbac3ff -> 9b65cdd), guix-commits, 2020/05/20
- 01/20: gnu: Add ruby-deep-merge., guix-commits, 2020/05/20
- 02/20: gnu: Add ruby-hocon., guix-commits, 2020/05/20
- 03/20: gnu: Add ruby-wwtd., guix-commits, 2020/05/20
- 04/20: gnu: Add ruby-single-cov., guix-commits, 2020/05/20
- 07/20: gnu: Add ruby-maxitest.,
guix-commits <=
- 05/20: gnu: ruby-mocha: Update to 1.11.2., guix-commits, 2020/05/20
- 06/20: gnu: ruby-mocha: Update license., guix-commits, 2020/05/20
- 08/20: gnu: Add ruby-fakefs., guix-commits, 2020/05/20
- 09/20: gnu: Add ruby-gherkin-ruby., guix-commits, 2020/05/20
- 10/20: gnu: Add ruby-colorize., guix-commits, 2020/05/20
- 13/20: gnu: Add ruby-forking-test-runner., guix-commits, 2020/05/20
- 14/20: gnu: Add ruby-fast-gettext., guix-commits, 2020/05/20
- 15/20: gnu: varnish-modules: Update to 0.16.0., guix-commits, 2020/05/20
- 20/20: gnu: python-shouldbe: Python 3.8 compatibility., guix-commits, 2020/05/20
- 11/20: gnu: Add ruby-spinach., guix-commits, 2020/05/20