mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: ruby-hamster: Fix build.
* gnu/packages/ruby.scm (ruby-hamster)[arguments]: Run tests with ruby-2.7 and update style.
This commit is contained in:
parent
fd2a01d564
commit
81a2a0f8d1
1 changed files with 22 additions and 21 deletions
|
@ -3698,8 +3698,11 @@ engine.")
|
||||||
"1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
|
"1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
;; Only supports Ruby 2 currently
|
||||||
|
#:ruby ruby-2.7
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'remove-unnecessary-dependencies
|
(add-after 'unpack 'remove-unnecessary-dependencies
|
||||||
(lambda _
|
(lambda _
|
||||||
;; pry is a debugging tool, and is unnecessary when running the
|
;; pry is a debugging tool, and is unnecessary when running the
|
||||||
|
@ -3711,14 +3714,12 @@ engine.")
|
||||||
;; CodeClimate is an online service, and is unnecessary for
|
;; CodeClimate is an online service, and is unnecessary for
|
||||||
;; running the tests
|
;; running the tests
|
||||||
(("require \"codeclimate-test-reporter\"") "")
|
(("require \"codeclimate-test-reporter\"") "")
|
||||||
(("CodeClimate.*\n") ""))
|
(("CodeClimate.*\n") ""))))
|
||||||
#t))
|
|
||||||
;; No Rakefile is included, so run rspec directly.
|
;; No Rakefile is included, so run rspec directly.
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(when tests?
|
(when tests?
|
||||||
(invoke "rspec"))
|
(invoke "ruby" (which "rspec"))))))))
|
||||||
#t)))))
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list ruby-concurrent))
|
(list ruby-concurrent))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue