all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yovan Naumovski via Guix-patches via <guix-patches@gnu.org>
To: 63452@debbugs.gnu.org
Cc: Yovan Naumovski <yovan@gorski.stream>
Subject: [bug#63452] [PATCH 5/5] gnu: ruby-terraform: Update to 1.7.0.
Date: Thu, 11 May 2023 23:17:49 +0300	[thread overview]
Message-ID: <20230511201749.8687-1-yovan@gorski.stream> (raw)
In-Reply-To: <20230511201429.8353-1-yovan@gorski.stream>

* 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 26a4fea0d7..e0bc6e874b 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -7377,19 +7377,44 @@ (define-public ruby-faker
 (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
-- 
2.39.2





  parent reply	other threads:[~2023-05-11 20:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-11 20:14 [bug#63452] [PATCH 0/5] gnu: ruby-terraform: Update to 1.7.0 Yovan Naumovski via Guix-patches via
2023-05-11 20:15 ` [bug#63452] [PATCH 1/5] gnu: ruby-i18n: Update to 1.13.0 Yovan Naumovski via Guix-patches via
2023-05-11 20:16 ` [bug#63452] [PATCH 2/5] gnu: ruby-lino: Update to 3.1.0 Yovan Naumovski via Guix-patches via
2023-05-11 20:17 ` [bug#63452] [PATCH 4/5] gnu: Add ruby-faker Yovan Naumovski via Guix-patches via
2023-05-11 20:17 ` Yovan Naumovski via Guix-patches via [this message]
2023-05-11 20:29 ` [bug#63452] [PATCH 3/5] gnu: Add ruby-immutable-struct Yovan Naumovski via Guix-patches via
2023-07-10 13:02 ` bug#63452: [PATCH 0/5] gnu: ruby-terraform: Update to 1.7.0 Christopher Baines

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230511201749.8687-1-yovan@gorski.stream \
    --to=guix-patches@gnu.org \
    --cc=63452@debbugs.gnu.org \
    --cc=yovan@gorski.stream \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.