[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/20: gnu: Add ruby-wwtd.
From: |
guix-commits |
Subject: |
03/20: gnu: Add ruby-wwtd. |
Date: |
Wed, 20 May 2020 17:53:30 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit e6483f8c65eba0f7348b700cfb810e82f94d129a
Author: Marius Bakke <address@hidden>
AuthorDate: Wed May 20 11:50:25 2020 +0200
gnu: Add ruby-wwtd.
* gnu/packages/ruby.scm (ruby-wwtd): New public variable.
---
gnu/packages/ruby.scm | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 8f003f8..4570a54 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -9150,3 +9150,55 @@ which snapshots to consider and what files to include.")
(home-page
"https://github.com/hartator/wayback-machine-downloader")
(license license:expat)))
+
+(define-public ruby-wwtd
+ (package
+ (name "ruby-wwtd")
+ (version "1.4.1")
+ (home-page "http://github.com/grosser/wwtd")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0gw7vfnbb41cy67yw82zji3jkhfsgmzcgzaszm99ax77y18wclf2"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Remove bundled library.
+ (delete-file "spec/rake-12.3.0.gem")
+ #t))))
+ (build-system ruby-build-system)
+ (arguments
+ '(;; XXX: Tests need multiple versions of ruby, wants to run
+ ;; `bundle install`, etc.
+ #:tests? #f
+ #:phases (modify-phases %standard-phases
+ (replace 'replace-git-ls-files
+ (lambda _
+ (substitute* "wwtd.gemspec"
+ (("git ls-files lib/ bin/`")
+ "find lib/ bin/ -type f |sort`"))
+ #t))
+ (add-before 'check 'remove-version-constraints
+ (lambda _
+ (delete-file "Gemfile.lock")
+ #t))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (if tests?
+ (invoke "rspec" "spec/")
+ (format #t "test suite not run~%"))
+ #t)))))
+ (native-inputs
+ `(("ruby-bump" ,ruby-bump)
+ ("ruby-rspec" ,ruby-rspec)))
+ (synopsis "Run @file{.travis.yml} files locally")
+ (description
+ "WWTD is a @dfn{Travis Simulator} that lets you run test matrices
+defined in @file{.travis.yml} on your local machine, using @code{rvm},
+@code{rbenv}, or @code{chruby} to test different versions of Ruby.")
+ (license license:expat)))
- branch master updated (bbac3ff -> 9b65cdd), guix-commits, 2020/05/20
- 01/20: gnu: Add ruby-deep-merge., guix-commits, 2020/05/20
- 02/20: gnu: Add ruby-hocon., guix-commits, 2020/05/20
- 03/20: gnu: Add ruby-wwtd.,
guix-commits <=
- 04/20: gnu: Add ruby-single-cov., guix-commits, 2020/05/20
- 07/20: gnu: Add ruby-maxitest., guix-commits, 2020/05/20
- 05/20: gnu: ruby-mocha: Update to 1.11.2., guix-commits, 2020/05/20
- 06/20: gnu: ruby-mocha: Update license., guix-commits, 2020/05/20
- 08/20: gnu: Add ruby-fakefs., guix-commits, 2020/05/20
- 09/20: gnu: Add ruby-gherkin-ruby., guix-commits, 2020/05/20
- 10/20: gnu: Add ruby-colorize., guix-commits, 2020/05/20
- 13/20: gnu: Add ruby-forking-test-runner., guix-commits, 2020/05/20
- 14/20: gnu: Add ruby-fast-gettext., guix-commits, 2020/05/20
- 15/20: gnu: varnish-modules: Update to 0.16.0., guix-commits, 2020/05/20