diff options
| author | gemmaro <gemmaro.dev@gmail.com> | 2026-08-24 20:07:34 +0900 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-08-28 16:40:52 +0200 |
| commit | 6e00796efc19542cf6efbdb8c776f0966ca7105c (patch) | |
| tree | 7ba699e3a64621910b87f9b16696bd85a20d3c70 | |
| parent | 32c1f478c48cbef69e5b83779f90769c72b18ba3 (diff) | |
gnu: ruby-rspec-rails: Update to 7.1.1.
* gnu/packages/rails.scm (ruby-rspec-rails): Update to 7.1.1.
[arguments]<#:phases>{relax-requirements}: Remove Bundler setup.
{patch-tests}: Delete some tests.
{set-GEM_PATH}: New phase.
{check, install}: Swap phases.
Signed-off-by: Andreas Enge <andreas@enge.fr>
| -rw-r--r-- | gnu/packages/rails.scm | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/gnu/packages/rails.scm b/gnu/packages/rails.scm index 82d91dc2f61..f1786f1bbf1 100644 --- a/gnu/packages/rails.scm +++ b/gnu/packages/rails.scm | |||
| @@ -374,7 +374,7 @@ an almost zero-configuration persistence layer for applications.") | |||
| 374 | (define-public ruby-rspec-rails | 374 | (define-public ruby-rspec-rails |
| 375 | (package | 375 | (package |
| 376 | (name "ruby-rspec-rails") | 376 | (name "ruby-rspec-rails") |
| 377 | (version "7.0.2") | 377 | (version "7.1.1") |
| 378 | (source (origin | 378 | (source (origin |
| 379 | (method git-fetch) | 379 | (method git-fetch) |
| 380 | (uri (git-reference | 380 | (uri (git-reference |
| @@ -382,7 +382,7 @@ an almost zero-configuration persistence layer for applications.") | |||
| 382 | (commit (string-append "v" version)))) | 382 | (commit (string-append "v" version)))) |
| 383 | (file-name (git-file-name name version)) | 383 | (file-name (git-file-name name version)) |
| 384 | (sha256 | 384 | (sha256 |
| 385 | (base32 "1ixm9h2sdd8varnkyxccxhp9dyr8fxk6q5ibrkrk2c83v2xa7bjc")))) | 385 | (base32 "05irf7nc5zfm0bb6cfz4y6hkxqband8dkf8djjaryifkv7fp3w1k")))) |
| 386 | (build-system ruby-build-system) | 386 | (build-system ruby-build-system) |
| 387 | (arguments | 387 | (arguments |
| 388 | (list | 388 | (list |
| @@ -401,6 +401,8 @@ an almost zero-configuration persistence layer for applications.") | |||
| 401 | ((".*redcarpet.*") "") | 401 | ((".*redcarpet.*") "") |
| 402 | ((".*relish.*") "") | 402 | ((".*relish.*") "") |
| 403 | ((".*rubocop.*") "")) | 403 | ((".*rubocop.*") "")) |
| 404 | (substitute* "Rakefile" | ||
| 405 | (("Bundler\\.setup") "")) | ||
| 404 | (substitute* "Gemfile-rspec-dependencies" | 406 | (substitute* "Gemfile-rspec-dependencies" |
| 405 | ((", :git => \"https://github.com/rspec.*") | 407 | ((", :git => \"https://github.com/rspec.*") |
| 406 | "\n")) | 408 | "\n")) |
| @@ -426,10 +428,18 @@ an almost zero-configuration persistence layer for applications.") | |||
| 426 | (lambda _ | 428 | (lambda _ |
| 427 | ;; Requires chrome or firefox. | 429 | ;; Requires chrome or firefox. |
| 428 | (delete-file "spec/rspec/rails/example/system_example_group_spec.rb") | 430 | (delete-file "spec/rspec/rails/example/system_example_group_spec.rb") |
| 429 | (substitute* "spec/rspec/rails_spec.rb" | 431 | ;; Requires Bundler. |
| 430 | (("`git ls-files -z`") | 432 | (delete-file "spec/sanity_check_spec.rb") |
| 431 | "`find . -type f -not -regex '.*\\.gem$' -print0 | \ | 433 | ;; It just checks a Git output. |
| 432 | sort -z | cut -zc3-`"))))))) | 434 | (delete-file "spec/rspec/rails_spec.rb"))) |
| 435 | (add-before 'check 'set-GEM_PATH | ||
| 436 | (lambda _ | ||
| 437 | (setenv "GEM_PATH" (string-append | ||
| 438 | (getenv "GEM_PATH") ":" | ||
| 439 | #$output "/lib/ruby/vendor_ruby")))) | ||
| 440 | (delete 'check) ;moved after install phase | ||
| 441 | (add-after 'install 'check | ||
| 442 | (assoc-ref %standard-phases 'check))))) | ||
| 433 | (native-inputs | 443 | (native-inputs |
| 434 | (list ruby-ammeter-bootstrap | 444 | (list ruby-ammeter-bootstrap |
| 435 | ruby-aruba | 445 | ruby-aruba |
