diff options
author | Christopher Baines <mail@cbaines.net> | 2023-07-10 11:26:36 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2023-07-10 12:39:35 +0100 |
commit | 81a2a0f8d10dc530dbf46d1c59e7a791d3a8770e (patch) | |
tree | f7c546d3e3d20a15ae2009653a747228ef300d5e | |
parent | fd2a01d564ee2909f88aeaad6341eadfa1a75964 (diff) | |
download | guix-81a2a0f8d10dc530dbf46d1c59e7a791d3a8770e.tar.gz |
gnu: ruby-hamster: Fix build.
* gnu/packages/ruby.scm (ruby-hamster)[arguments]: Run tests with ruby-2.7 and update style.
-rw-r--r-- | gnu/packages/ruby.scm | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 7fb8da9641..b96daad0ff 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -3698,27 +3698,28 @@ engine.") "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar")))) (build-system ruby-build-system) (arguments - '(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'remove-unnecessary-dependencies - (lambda _ - ;; pry is a debugging tool, and is unnecessary when running the - ;; tests - (substitute* "spec/lib/hamster/vector/insert_spec.rb" - (("require 'pry'") "")) - (substitute* "spec/spec_helper.rb" - (("require \"pry\"") "") - ;; CodeClimate is an online service, and is unnecessary for - ;; running the tests - (("require \"codeclimate-test-reporter\"") "") - (("CodeClimate.*\n") "")) - #t)) - ;; No Rakefile is included, so run rspec directly. - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "rspec")) - #t))))) + (list + ;; Only supports Ruby 2 currently + #:ruby ruby-2.7 + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-unnecessary-dependencies + (lambda _ + ;; pry is a debugging tool, and is unnecessary when running the + ;; tests + (substitute* "spec/lib/hamster/vector/insert_spec.rb" + (("require 'pry'") "")) + (substitute* "spec/spec_helper.rb" + (("require \"pry\"") "") + ;; CodeClimate is an online service, and is unnecessary for + ;; running the tests + (("require \"codeclimate-test-reporter\"") "") + (("CodeClimate.*\n") "")))) + ;; No Rakefile is included, so run rspec directly. + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "ruby" (which "rspec")))))))) (propagated-inputs (list ruby-concurrent)) (native-inputs |