[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
214/229: gnu: ruby-rspec-rails: Update to 6.0.1 and enable tests.
From: |
guix-commits |
Subject: |
214/229: gnu: ruby-rspec-rails: Update to 6.0.1 and enable tests. |
Date: |
Tue, 28 Mar 2023 22:29:26 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 183904fef7dd508a652b1fd8d006ef405d02ab70
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Mar 16 19:52:18 2023 -0400
gnu: ruby-rspec-rails: Update to 6.0.1 and enable tests.
* gnu/packages/rails.scm (ruby-rspec-rails): Update to 6.0.1.
[source]: Fetch via git.
[arguments]: Enable tests. Add #:phases.
[native-inputs]: New field.
---
gnu/packages/rails.scm | 67 +++++++++++++++++++++++++++++++++++++++++++-------
1 file changed, 58 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/rails.scm b/gnu/packages/rails.scm
index 4d13615f68..8ca4ac2997 100644
--- a/gnu/packages/rails.scm
+++ b/gnu/packages/rails.scm
@@ -350,17 +350,66 @@ an almost zero-configuration persistence layer for
applications.")
(define-public ruby-rspec-rails
(package
(name "ruby-rspec-rails")
- (version "3.8.2")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "rspec-rails" version))
- (sha256
- (base32
- "1pf6n9l4sw1arlax1bdbm1znsvl8cgna2n6k6yk1bi8vz2n73ls1"))))
+ (version "6.0.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rspec/rspec-rails")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0wmrpwv2vgrwmby01pld6r6sdfa265lb6pd3fp2kifs40nn7ff6b"))))
(build-system ruby-build-system)
(arguments
- '(#:tests? #f)) ; No included tests
+ (list
+ ;; Run the 'spec' instead of the 'default' Rake target to avoid running
+ ;; the acceptance test suite, which doesn't seem to allow being run
+ ;; offline (see: https://github.com/rspec/rspec-rails/issues/2660).
+ #:test-target "spec"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'relax-requirements
+ (lambda _
+ (substitute* "Gemfile"
+ ;; Remove a few extraneous requirements.
+ ((".*yard.*") "")
+ ((".*github-markup.*") "")
+ ((".*redcarpet.*") "")
+ ((".*relish.*") "")
+ ((".*rubocop.*") ""))
+ (substitute* "Gemfile-rspec-dependencies"
+ ((", :git => \"https://github.com/rspec.*")
+ "\n"))
+ (substitute* "Gemfile-rails-dependencies"
+ (("gem 'puma', '< 6.0.0'")
+ "gem 'puma', '>= 6.0.0'"))
+ (substitute* "rspec-rails.gemspec"
+ (("'aruba', '~> 0.14.12'")
+ "'aruba', '>= 0.14.12'")
+ (("'cucumber', '~> 7.0'")
+ "'cucumber', '>= 7.0'"))))
+ (replace 'replace-git-ls-files
+ (lambda _
+ (substitute* "rspec-rails.gemspec"
+ (("`git ls-files -- lib/\\*`")
+ "`find lib -type f |sort`"))))
+ (add-before 'check 'patch-tests
+ (lambda _
+ (substitute* "spec/rspec/rails_spec.rb"
+ (("`git ls-files -z`")
+ "`find . -type f -not -regex '.*\\.gem$' -print0 | \
+sort -z | cut -zc3-`")))))))
+ (native-inputs
+ (list ruby-ammeter-bootstrap
+ ruby-aruba
+ ruby-capybara
+ ruby-cucumber
+ ruby-puma
+ ruby-rails
+ ruby-rspec
+ ruby-selenium-webdriver
+ ruby-sqlite3))
(propagated-inputs
(list ruby-actionpack
ruby-activesupport
- 221/229: gnu: ruby-liquid: Update to 5.4.0 and enable tests., (continued)
- 221/229: gnu: ruby-liquid: Update to 5.4.0 and enable tests., guix-commits, 2023/03/28
- 222/229: gnu: Add ruby-liquid-c., guix-commits, 2023/03/28
- 223/229: gnu: ruby-net-scp: Update to 4.0.0., guix-commits, 2023/03/28
- 176/229: gnu: ruby-minitest: Update home page URL., guix-commits, 2023/03/28
- 213/229: gnu: Add ruby-ammeter-bootstrap., guix-commits, 2023/03/28
- 166/229: gnu: Add ruby-propshaft., guix-commits, 2023/03/28
- 167/229: gnu: Add ruby-stimulus-rails., guix-commits, 2023/03/28
- 169/229: gnu: ruby-rails: Update to 7.0.4.3., guix-commits, 2023/03/28
- 172/229: gnu: Add ruby-flores., guix-commits, 2023/03/28
- 215/229: gnu: Add ruby-ammeter., guix-commits, 2023/03/28
- 214/229: gnu: ruby-rspec-rails: Update to 6.0.1 and enable tests.,
guix-commits <=
- 156/229: gnu: ruby-actionmailbox: Update to 7.0.4.3., guix-commits, 2023/03/28
- 165/229: gnu: ruby-railties: Enable test suite., guix-commits, 2023/03/28
- 190/229: gnu: ruby-shoulda-context: Honor #:tests?., guix-commits, 2023/03/28
- 229/229: gnu: geeqie: Enable most features, add doc., guix-commits, 2023/03/28
- 211/229: gnu: ruby-parallel-tests: Update to 4.2.0., guix-commits, 2023/03/28