[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/15: gnu: ruby-hamster: Fix build.
From: |
guix-commits |
Subject: |
12/15: gnu: ruby-hamster: Fix build. |
Date: |
Mon, 10 Jul 2023 07:40:29 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit 81a2a0f8d10dc530dbf46d1c59e7a791d3a8770e
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Mon Jul 10 11:26:36 2023 +0100
gnu: ruby-hamster: Fix build.
* gnu/packages/ruby.scm (ruby-hamster)[arguments]: Run tests with ruby-2.7
and
update style.
---
gnu/packages/ruby.scm | 43 ++++++++++++++++++++++---------------------
1 file 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
- branch master updated (d0296970fb -> b7be0a999d), guix-commits, 2023/07/10
- 01/15: gnu: Add ruby-bcrypt-pbkdf., guix-commits, 2023/07/10
- 13/15: gnu: python-blessed: Add missing dependency., guix-commits, 2023/07/10
- 04/15: gnu: ruby-rbnacl: Use new package style., guix-commits, 2023/07/10
- 05/15: gnu: Add ruby-x25519., guix-commits, 2023/07/10
- 12/15: gnu: ruby-hamster: Fix build.,
guix-commits <=
- 11/15: gnu: ruby-terraform: Update to 1.7.0., guix-commits, 2023/07/10
- 10/15: gnu: Add ruby-faker., guix-commits, 2023/07/10
- 14/15: gnu: python-curtsies: Update to 0.4.1., guix-commits, 2023/07/10
- 07/15: gnu: ruby-i18n: Update to 1.13.0., guix-commits, 2023/07/10
- 06/15: gnu: ruby-net-ssh: Update to 7.1.0., guix-commits, 2023/07/10
- 09/15: gnu: Add ruby-immutable-struct., guix-commits, 2023/07/10
- 02/15: gnu: Add ruby-ed25519., guix-commits, 2023/07/10
- 08/15: gnu: ruby-lino: Update to 3.1.0., guix-commits, 2023/07/10
- 15/15: gnu: bpython: Update to 0.24., guix-commits, 2023/07/10
- 03/15: gnu: ruby-rbnacl: Update to 7.1.1., guix-commits, 2023/07/10