guix_mirror_bot pushed a commit to branch ruby-team
in repository guix.
commit c9b460bf75988a63f41cb182f8cbad3a28d08a31
Author: gemmaro <[email protected]>
AuthorDate: Tue Aug 25 05:36:54 2026 +0900
gnu: ruby-erb: Update to 6.0.7.
* gnu/packages/ruby-xyz.scm (ruby-erb): Update to 6.0.7.
[source]: Use Git repository.
[arguments]<#:tests?>: Remove it.
<#:phases>{omit-failing-tests}: New phase.
[native-inputs]: Add ruby-rake-compiler and ruby-test-unit-ruby-core.
Remove ruby-rspec.
[license]: Add Ruby license.
Signed-off-by: Andreas Enge <[email protected]>
---
gnu/packages/ruby-xyz.scm | 25 +++++++++++++++++--------
1 file changed, 17 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm
index ff27b185ff..29c942f5bc 100644
--- a/gnu/packages/ruby-xyz.scm
+++ b/gnu/packages/ruby-xyz.scm
@@ -239,24 +239,33 @@ scripts from simple YAML configuration.")
(define-public ruby-erb
(package
(name "ruby-erb")
- (version "6.0.1")
+ (version "6.0.7")
(source
(origin
- (method url-fetch)
- (uri (rubygems-uri "erb" version))
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/ruby/erb")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1rcpq49pyaiclpjp3c3qjl25r95hqvin2q2dczaynaj7qncxvv18"))))
+ (base32 "0di25f0nsl99isnc1lr9r954sjs2c64cf31idzyfi9wr2s3gs6qw"))))
(build-system ruby-build-system)
(arguments
(list
- ;; no tests
- #:tests? #f))
- (native-inputs (list ruby-rspec))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'omit-failing-tests
+ (lambda _
+ ;; TODO: Remove when newer Ractor is used by default.
+ (substitute* "test/erb/test_erb.rb"
+ (("def test_.*ractor.*" def)
+ (string-append def "; omit \"incompatible Ractor
usage\"\n"))))))))
+ (native-inputs (list ruby-rake-compiler ruby-test-unit-ruby-core))
(synopsis "Easy to use but powerful templating system")
(description "ERB is an easy to use, but also very powerful, template
processor.")
(home-page "https://github.com/ruby/erb")
- (license (list license:bsd-2))))
+ (license (list license:ruby license:bsd-2))))
(define-public ruby-filewatcher
(package