[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/15: gnu: ruby-terraform: Update to 1.7.0.
From: |
guix-commits |
Subject: |
11/15: gnu: ruby-terraform: Update to 1.7.0. |
Date: |
Mon, 10 Jul 2023 07:40:29 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit fd2a01d564ee2909f88aeaad6341eadfa1a75964
Author: Yovan Naumovski via Guix-patches via <guix-patches@gnu.org>
AuthorDate: Thu May 11 23:17:49 2023 +0300
gnu: ruby-terraform: Update to 1.7.0.
* gnu/packages/ruby.scm (ruby-terraform): Update to 1.7.0.
[source]: Use git-fetch.
[arguments]: Enable tests.
[native-inputs]: Add ruby-rspec, ruby-faker, ruby-simplecov.
[propagated-inputs]: Add ruby-immutable-struct.
---
gnu/packages/ruby.scm | 37 +++++++++++++++++++++++++++++++------
1 file changed, 31 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 1953a6d70e..7fb8da9641 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -7704,19 +7704,44 @@ easily generate fake data: names, addresses, phone
numbers, etc.")
(define-public ruby-terraform
(package
(name "ruby-terraform")
- (version "0.22.0")
+ (version "1.7.0")
(source
(origin
- (method url-fetch)
- (uri (rubygems-uri "ruby-terraform" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/infrablocks/ruby_terraform")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
(base32
- "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
+ "18d1qkf2rbbvc2f0dxni85i2l2g8zn5kzh0v8zr1b86r1wjy6rvd"))))
(build-system ruby-build-system)
(arguments
- '(#:tests? #f)) ; No included tests
+ (list
+ #:test-target "spec"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-bundler
+ (lambda _
+ (substitute* "spec/spec_helper.rb"
+ (("require 'bundler/setup'") ""))))
+ (add-before 'check 'disable-falinig-tests
+ (lambda _
+ (substitute* "spec/ruby_terraform/commands/plan_spec.rb"
+ (("it 'logs an error raised when running the command'")
+ "xit 'logs an error raised when running the command'")
+ (("it 'raises execution error when an error occurs running the
command'")
+ "xit 'raises execution error when an error occurs running the
command'"))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec")))))))
+ (native-inputs
+ (list ruby-rspec
+ ruby-faker
+ ruby-simplecov))
(propagated-inputs
- (list ruby-lino))
+ (list ruby-lino ruby-immutable-struct))
(synopsis "Ruby wrapper around the Terraform command line interface")
(description
"This package provides a Ruby wrapper around the Terraform command line
- 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, 2023/07/10
- 11/15: gnu: ruby-terraform: Update to 1.7.0.,
guix-commits <=
- 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