mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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.
This commit is contained in:
parent
0a6f2b8f31
commit
fd2a01d564
1 changed files with 31 additions and 6 deletions
|
@ -7704,19 +7704,44 @@ easily generate fake data: names, addresses, phone numbers, etc.")
|
||||||
(define-public ruby-terraform
|
(define-public ruby-terraform
|
||||||
(package
|
(package
|
||||||
(name "ruby-terraform")
|
(name "ruby-terraform")
|
||||||
(version "0.22.0")
|
(version "1.7.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (rubygems-uri "ruby-terraform" version))
|
(uri (git-reference
|
||||||
|
(url "https://github.com/infrablocks/ruby_terraform")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
|
"18d1qkf2rbbvc2f0dxni85i2l2g8zn5kzh0v8zr1b86r1wjy6rvd"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(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
|
(propagated-inputs
|
||||||
(list ruby-lino))
|
(list ruby-lino ruby-immutable-struct))
|
||||||
(synopsis "Ruby wrapper around the Terraform command line interface")
|
(synopsis "Ruby wrapper around the Terraform command line interface")
|
||||||
(description
|
(description
|
||||||
"This package provides a Ruby wrapper around the Terraform command line
|
"This package provides a Ruby wrapper around the Terraform command line
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue