[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
129/229: gnu: Add ruby-sus.
From: |
guix-commits |
Subject: |
129/229: gnu: Add ruby-sus. |
Date: |
Tue, 28 Mar 2023 22:29:13 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 4a14b2504ca5da1b6ff6dffbbeacaf4074550916
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Mar 8 22:02:47 2023 -0500
gnu: Add ruby-sus.
* gnu/packages/ruby.scm (ruby-sus): New variable.
---
gnu/packages/ruby.scm | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index fb44385dc3..40b82b8a43 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -12858,6 +12858,57 @@ spawned processes. It is designed after Python's
@code{subprocess} module.")
(home-page "https://github.com/stripe/subprocess")
(license license:expat)))
+(define-public ruby-sus
+ (package
+ (name "ruby-sus")
+ (version "0.20.3")
+ (source (origin
+ (method git-fetch) ;for gems.rb
+ (uri (git-reference
+ (url "https://github.com/ioquatix/sus")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0j4rkh9li79674h3lfkxlcdygscmb22l77i7hwhxl3gw103gkpdr"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'prune-gems.rb
+ (lambda _
+ (substitute* "gems.rb"
+ (("gem \"bake-modernize\"") "")
+ (("gem \"bake-gem\"") "")
+ (("gem \"utopia-project\"") ""))))
+ (add-before 'build 'remove-missing-signing-key
+ (lambda _
+ ;; Otherwise, the build fails with ENOENT.
+ (substitute* "sus.gemspec"
+ ((".*spec.signing_key.*") ""))))
+ (delete 'check) ;moved after install
+ (add-after 'install 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (setenv "CONSOLE_LEVEL" "debug")
+ (setenv "HOME" "/tmp")
+ ;; 'bundle exec' must be used to workaround a problem
+ ;; when using bake test and GEM_PATH (see:
+ ;; https://github.com/ioquatix/bake/issues/11).
+ (invoke "bundle" "exec" "bake" "test"))))
+ (add-before 'check 'set-paths
+ (lambda _
+ (setenv "PATH" (string-append (getenv "PATH") ":"
+ #$output "/bin"))
+ (setenv "GEM_PATH" (string-append
+ (getenv "GEM_PATH") ":"
+ #$output "/lib/ruby/vendor_ruby")))))))
+ (native-inputs (list ruby-bake-test ruby-bake-test-external ruby-covered))
+ (synopsis "Fast and scalable test runner for Ruby")
+ (description "This package provides a fast and scalable test runner for
Ruby.")
+ (home-page "https://github.com/ioquatix/sus")
+ (license license:expat)))
+
(define-public ruby-syntax-tree
(package
(name "ruby-syntax-tree")
- 92/229: gnu: Add ruby-concurrent-ruby-ext., (continued)
- 92/229: gnu: Add ruby-concurrent-ruby-ext., guix-commits, 2023/03/28
- 95/229: gnu: Add ruby-rdiscount., guix-commits, 2023/03/28
- 98/229: gnu: ruby-faraday: Update to 2.7.4 and enable test suite., guix-commits, 2023/03/28
- 100/229: gnu: ruby-faraday: Propagate ruby-faraday-net-http., guix-commits, 2023/03/28
- 104/229: gnu: ruby-byebug: Do not depend on ruby-chandler., guix-commits, 2023/03/28
- 106/229: gnu: Add ruby-multipart-parser., guix-commits, 2023/03/28
- 110/229: gnu: ruby-faraday-middleware: Add a deprecation comment and re-indent., guix-commits, 2023/03/28
- 121/229: gnu: Add ruby-io-console., guix-commits, 2023/03/28
- 125/229: gnu: Add ruby-rspec-debug., guix-commits, 2023/03/28
- 128/229: gnu: Add ruby-bake-test-external., guix-commits, 2023/03/28
- 129/229: gnu: Add ruby-sus.,
guix-commits <=
- 130/229: gnu: Add ruby-timers., guix-commits, 2023/03/28
- 137/229: gnu: ruby-actionpack: Update to 7.0.4.3 and enable test suite., guix-commits, 2023/03/28
- 138/229: gnu: Add ruby-event-emitter., guix-commits, 2023/03/28
- 140/229: gnu: Add ruby-websocket-eventmachine-base., guix-commits, 2023/03/28
- 143/229: gnu: ruby-actioncable: Update to 7.0.4.3 and enable tests., guix-commits, 2023/03/28
- 146/229: gnu: ruby-marcel: Relocate to (gnu packages rails)., guix-commits, 2023/03/28
- 147/229: gnu: ruby-marcel: Enable tests., guix-commits, 2023/03/28
- 150/229: gnu: Add ruby-timeout., guix-commits, 2023/03/28
- 152/229: gnu: Add ruby-date., guix-commits, 2023/03/28
- 157/229: gnu: ruby-actionmailer: Update to 7.0.4.3., guix-commits, 2023/03/28