gnu: ruby-minitest: Update to 5.17.0.

* gnu/packages/ruby.scm (ruby-minitest): Update to 5.17.0.
(ruby-minitest-5.14): New variable.
(ruby-minitest-4): Delete trailing #t.
(ruby-byebug): Delete trailing #t.
[native-inputs]: Replace ruby-minitest with ruby-minitest-5.14.
This commit is contained in:
Maxim Cournoyer 2023-01-05 21:22:12 -05:00
parent c39b0461d4
commit 339382abd7
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -20,7 +20,7 @@
;;; Copyright © 2019 Collin J. Doering <collin@rekahsoft.ca>
;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de>
;;; Copyright © 2019 Brett Gilio <brettg@posteo.de>
;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2020, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2020, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
;;; Copyright © 2020 Holgr Peters <holger.peters@posteo.de>
@ -4324,25 +4324,37 @@ (define-public ruby-net-scp
(define-public ruby-minitest
(package
(name "ruby-minitest")
(version "5.14.4")
(version "5.17.0")
(source (origin
(method url-fetch)
(uri (rubygems-uri "minitest" version))
(sha256
(base32
"19z7wkhg59y8abginfrm2wzplz7py3va8fyngiigngqvsws6cwgl"))))
"1kjy67qajw4rnkbjs5jyk7kc3lyhz5613fwj1i8f6ppdk4zampy0"))))
(build-system ruby-build-system)
(native-inputs
(list ruby-hoe))
(native-inputs (list ruby-hoe))
(home-page "https://github.com/seattlerb/minitest")
(synopsis "Small test suite library for Ruby")
(description "Minitest provides a complete suite of Ruby testing
facilities supporting TDD, BDD, mocking, and benchmarking.")
(home-page "https://github.com/seattlerb/minitest")
(license license:expat)))
(define-public ruby-minitest-5.14
(package
(inherit ruby-minitest)
(name "ruby-minitest-5.14")
(version "")
(source (origin
(method url-fetch)
(uri (rubygems-uri "minitest" version))
(sha256
(base32
"19z7wkhg59y8abginfrm2wzplz7py3va8fyngiigngqvsws6cwgl"))))))
;; This is the last release of Minitest 4, which is used by some packages.
(define-public ruby-minitest-4
(package (inherit ruby-minitest)
(package
(inherit ruby-minitest)
(version "4.7.5")
(source (origin
(method url-fetch)
@ -4354,16 +4366,14 @@ (define-public ruby-minitest-4
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'remove-unsupported-method
(lambda _
(substitute* "Rakefile"
(("self\\.rubyforge_name = .*") ""))
#t))
(lambda _
(substitute* "Rakefile"
(("self\\.rubyforge_name = .*") ""))))
(add-after 'build 'exclude-failing-tests
(lambda _
;; Some tests are failing on Ruby 2.4 due to the deprecation of
;; Fixnum.
(delete-file "test/minitest/test_minitest_spec.rb")
#t)))))))
(delete-file "test/minitest/test_minitest_spec.rb"))))))))
(define-public ruby-minitest-around
(package
@ -6600,8 +6610,7 @@ (define-public ruby-byebug
;; provided.
(substitute* "minitest"
(("load File\\.expand_path\\(\"bundle\".*") "")
(("require \"bundler/setup\".*") "")))
#t))))
(("require \"bundler/setup\".*") "")))))))
(build-system ruby-build-system)
(arguments
`(#:phases
@ -6610,8 +6619,7 @@ (define-public ruby-byebug
(lambda _
(substitute* "test/commands/where_test.rb"
(("unless /cygwin\\|mswin\\|mingw\\|darwin/.*")
"unless true\n"))
#t))
"unless true\n"))))
(add-before 'build 'compile
(lambda _
(invoke "rake" "compile")))
@ -6623,12 +6631,15 @@ (define-public ruby-byebug
"finish_inside_autoloaded_files"))))
(add-before 'check 'set-home
(lambda _
(setenv "HOME" (getcwd))
#t)))))
(setenv "HOME" (getcwd)))))))
(native-inputs
(list bundler
ruby-chandler
ruby-minitest
;; Using minitest 5.17 would cause 5 new bug failures. This is
;; probably related to
;; https://github.com/deivid-rodriguez/byebug/pull/837. Use
;; minitest 5.14 until this is resolved and released.
ruby-minitest-5.14
ruby-pry
ruby-rake-compiler
ruby-rubocop