sharlatan pushed a commit to branch ruby-team
in repository guix.
commit 9349bfe1fced66f67421b6ccea737be1b9b57428
Author: Nicolas Graves <[email protected]>
AuthorDate: Fri Jan 31 09:20:09 2025 +0100
gnu: ruby-shindo: Update to 0.3.11.
* gnu/packages/ruby.scm (ruby-shindo): Update to 0.3.11.
[arguments]<#:test-target>: Update value.
<#phases>: Update phase 'fix-tests. Move 'check phase after
'install. Add 'configure-tests phase after 'install.
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/ruby.scm | 27 ++++++++++++++++++---------
1 file changed, 18 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index a8712a07ae..3ec62564c3 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -4031,28 +4031,37 @@ It is a low-dependency variant of ruby-hydra.")
(define-public ruby-shindo
(package
(name "ruby-shindo")
- (version "0.3.10")
+ (version "0.3.11")
(source (origin
(method url-fetch)
(uri (rubygems-uri "shindo" version))
(sha256
(base32
- "0qnqixhi0g8v44v13f3gynpbvvw6xqi1wajsxdjsx5rhzizfsj91"))))
+ "1wccg3a4g3agfyszipkdnbcgsazcfwdbz1gv51q8m17m9plvpzdp"))))
(build-system ruby-build-system)
(arguments
(list
- #:test-target "shindo_tests"
+ #:test-target "tests"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-tests
(lambda _
(substitute* "tests/tests_helper.rb"
- (("-rubygems") ""))
- (substitute* "Rakefile"
- (("system \"shindo") "system \"./bin/shindo")
- ;; This test doesn't work, so we disable it.
- (("fail \"The build_error test should fail") "#")
- ((" -rubygems") "")))))))
+ (("-rrubygems") ""))))
+ ;; Move the 'check phase to after 'install, to use installed shindo.
+ (delete 'check)
+ (add-after 'install 'configure-tests
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (setenv "GEM_PATH"
+ (string-append
+ (getenv "GEM_PATH") ":"
+ #$output "/lib/ruby/vendor_ruby"))
+ (setenv "PATH"
+ (string-append
+ (getenv "PATH") ":" #$output "/bin")))))
+ (add-after 'configure-tests 'check
+ (assoc-ref %standard-phases 'check)))))
(propagated-inputs
(list ruby-formatador))
(synopsis "Simple depth first Ruby testing")