diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-01-31 09:20:09 +0100 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-06-20 20:39:56 +0200 |
| commit | 58dc1adf492d64b4f4374bab74445d279a1d6904 (patch) | |
| tree | 5af21bb714e9d96aef0a204144988a6f00649ea7 /gnu/packages/ruby.scm | |
| parent | 3828ee8e6c2862e41342d8107a49f6a3a7eefe8e (diff) | |
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/ruby.scm')
| -rw-r--r-- | gnu/packages/ruby.scm | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index d29fb014a7e..c6d9a49ef3e 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -4051,28 +4051,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") |
