gnu: ruby-slim: Update to 5.1.0.

* gnu/packages/ruby.scm (ruby-slim): Update to 5.1.0.
[arguments]: Delete trailing #t.
[native-inputs]: Add ruby-rspec-core.
This commit is contained in:
Maxim Cournoyer 2023-03-15 13:18:11 -04:00
parent 513718fbd2
commit 0ef4d1af33
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -1337,14 +1337,14 @@ (define-public ruby-patron
(define-public ruby-slim
(package
(name "ruby-slim")
(version "4.1.0")
(version "5.1.0")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "slim" version))
(sha256
(base32
"0gjx30g84c82qzg32bd7giscvb4206v7mvg56kc839w9wjagn36n"))))
"1rp437r8hr9kdgabb7c96yw4z2wyrajl4cxiij038y10f8i6hbn4"))))
(build-system ruby-build-system)
(arguments
`(#:phases
@ -1358,18 +1358,16 @@ (define-public ruby-slim
"def skipped_test_render_with_markdown"))
(substitute* "test/translator/test_translator.rb"
(("raise (\"Missing test for.*)" _ tail)
(string-append "print " tail)))
#t))
(string-append "print " tail)))))
;; See: https://salsa.debian.org/ruby-team/ruby-slim/-/commit/
;; 824862bd99d1675bc699d8fc71ba965a785c1f44.
(add-after 'unpack 'prevent-bundler-interference
(lambda _
(substitute* "Rakefile"
(("require 'bundler/setup'") "nil")
(("Bundler::GemHelper\\.install_tasks") "nil"))
#t)))))
(("Bundler::GemHelper\\.install_tasks") "nil")))))))
(native-inputs
(list ruby-rack-test ruby-sinatra))
(list ruby-rack-test ruby-rspec-core ruby-sinatra))
(propagated-inputs
(list ruby-temple ruby-tilt))
(synopsis "Minimalist template language for Ruby")