gnu: ruby-maxitest: Update to 5.1.0.

* gnu/packages/ruby.scm (ruby-maxitest): Update to 5.1.0.
[arguments]: Update style.
[native-inputs]: Remove ruby-byebug.
This commit is contained in:
Christopher Baines 2023-06-28 08:54:42 +01:00
parent ea9a1e0289
commit 256e18af34
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -5186,7 +5186,7 @@ Ruby, but can be used for all programs.")
(define-public ruby-maxitest (define-public ruby-maxitest
(package (package
(name "ruby-maxitest") (name "ruby-maxitest")
(version "4.4.1") (version "5.1.0")
(home-page "https://github.com/grosser/maxitest") (home-page "https://github.com/grosser/maxitest")
(source (origin (source (origin
;; Pull from git because the gem does not contain tests. ;; Pull from git because the gem does not contain tests.
@ -5197,31 +5197,32 @@ Ruby, but can be used for all programs.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0l646lgrgsfgg9qh05b8a3jd43kgrmr6xzbdvyspmdlhchk1qszg")))) "0qj410krfm497ggmf71xpnabbb6814y0585by4nlzyjvg9hpgg3m"))))
(build-system ruby-build-system) (build-system ruby-build-system)
(arguments (arguments
'(#:test-target "default" (list
#:phases (modify-phases %standard-phases #:test-target "default"
(replace 'replace-git-ls-files #:phases
(lambda _ #~(modify-phases %standard-phases
(substitute* "maxitest.gemspec" (replace 'replace-git-ls-files
(("`git ls-files lib/ bin/ MIT-LICENSE Readme.md`") (lambda _
"`find lib/ bin/ MIT-LICENSE Readme.md -type f | sort`")))) (substitute* "maxitest.gemspec"
(add-before 'check 'remove-version-constraints (("`git ls-files lib/ bin/ MIT-LICENSE Readme.md`")
(lambda _ "`find lib/ bin/ MIT-LICENSE Readme.md -type f | sort`"))))
;; Don't use specific versions of dependencies, instead (add-before 'check 'remove-version-constraints
;; take whatever is available in Guix. (lambda _
(delete-file "Gemfile.lock"))) ;; Don't use specific versions of dependencies, instead
(add-before 'check 'add-mtest-on-PATH ;; take whatever is available in Guix.
(lambda _ (delete-file "Gemfile.lock")))
;; Tests use 'mtest' which is not automatically added on (add-before 'check 'add-mtest-on-PATH
;; PATH. (lambda _
(setenv "PATH" (string-append (getcwd) "/bin:" ;; Tests use 'mtest' which is not automatically added on
(getenv "PATH")))))))) ;; PATH.
(setenv "PATH" (string-append (getcwd) "/bin:"
(getenv "PATH"))))))))
(native-inputs (native-inputs
(list procps (list procps
ruby-bump ruby-bump
ruby-byebug
ruby-rspec ruby-rspec
ruby-wwtd)) ruby-wwtd))
(propagated-inputs (propagated-inputs