[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
143/229: gnu: ruby-actioncable: Update to 7.0.4.3 and enable tests.
From: |
guix-commits |
Subject: |
143/229: gnu: ruby-actioncable: Update to 7.0.4.3 and enable tests. |
Date: |
Tue, 28 Mar 2023 22:29:15 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 70cc03a855b4eb69f6fbfc34c6620c062e6807dd
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Mar 9 14:55:41 2023 -0500
gnu: ruby-actioncable: Update to 7.0.4.3 and enable tests.
* gnu/packages/rails.scm (ruby-actioncable): Update to 7.0.4.3.
[source]: Use ruby-rail-monorepo.
[arguments]: Drop #:tests?. Add #:phases argument.
[native-inputs]: New field.
---
gnu/packages/rails.scm | 66 ++++++++++++++++++++++++++++++++++----------------
1 file changed, 45 insertions(+), 21 deletions(-)
diff --git a/gnu/packages/rails.scm b/gnu/packages/rails.scm
index d3712a93c9..43db167671 100644
--- a/gnu/packages/rails.scm
+++ b/gnu/packages/rails.scm
@@ -553,28 +553,52 @@ applications. These work with any Rack-compatible
server.")
(define-public ruby-actioncable
(package
- (name "ruby-actioncable")
- (version "6.1.3")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "actioncable" version))
- (sha256
- (base32
- "1cgb1l0gml1vklxka2djpi5q5b4bgzgm5pahzfjvvgm5vzvrvi9v"))))
- (build-system ruby-build-system)
- (arguments
- '(;; No included tests
- #:tests? #f))
- (propagated-inputs
- (list ruby-actionpack ruby-activesupport ruby-nio4r
- ruby-websocket-driver))
- (synopsis "Integrate integrates WebSockets with Rails applications")
- (description
- "Action Cable integrates WebSockets with Rails applications. Through
+ (name "ruby-actioncable")
+ (version %ruby-rails-version)
+ (source ruby-rails-monorepo)
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'chdir
+ (lambda _
+ (chdir "actioncable")))
+ (delete 'check) ;moved after install phase
+ (add-after 'install 'check
+ (assoc-ref %standard-phases 'check))
+ (add-before 'check 'set-GEM_PATH
+ (lambda _
+ (setenv "GEM_PATH" (string-append
+ (getenv "GEM_PATH") ":"
+ #$output "/lib/ruby/vendor_ruby"))))
+ (add-before 'check 'disable-problematic-tests
+ (lambda _
+ ;; There are multiple client test failures (see:
+ ;; https://github.com/rails/rails/issues/47617).
+ (delete-file "test/client_test.rb")))
+ (add-before 'check 'start-redis
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "redis-server" "--daemonize" "yes")))))))
+ (native-inputs
+ (list redis
+ ruby-activerecord
+ ruby-pg
+ ruby-puma
+ ruby-redis
+ ruby-websocket-client-simple))
+ (propagated-inputs
+ (list ruby-actionpack
+ ruby-activesupport
+ ruby-nio4r
+ ruby-websocket-driver))
+ (synopsis "Integrate integrates WebSockets with Rails applications")
+ (description
+ "Action Cable integrates WebSockets with Rails applications. Through
WebSockets it allows for real-time features in web applications.")
- (home-page "https://rubyonrails.org/")
- (license license:expat)))
+ (home-page "https://rubyonrails.org/")
+ (license license:expat)))
(define-public ruby-activejob
(package
- 106/229: gnu: Add ruby-multipart-parser., (continued)
- 106/229: gnu: Add ruby-multipart-parser., guix-commits, 2023/03/28
- 110/229: gnu: ruby-faraday-middleware: Add a deprecation comment and re-indent., guix-commits, 2023/03/28
- 121/229: gnu: Add ruby-io-console., guix-commits, 2023/03/28
- 125/229: gnu: Add ruby-rspec-debug., guix-commits, 2023/03/28
- 128/229: gnu: Add ruby-bake-test-external., guix-commits, 2023/03/28
- 129/229: gnu: Add ruby-sus., guix-commits, 2023/03/28
- 130/229: gnu: Add ruby-timers., guix-commits, 2023/03/28
- 137/229: gnu: ruby-actionpack: Update to 7.0.4.3 and enable test suite., guix-commits, 2023/03/28
- 138/229: gnu: Add ruby-event-emitter., guix-commits, 2023/03/28
- 140/229: gnu: Add ruby-websocket-eventmachine-base., guix-commits, 2023/03/28
- 143/229: gnu: ruby-actioncable: Update to 7.0.4.3 and enable tests.,
guix-commits <=
- 146/229: gnu: ruby-marcel: Relocate to (gnu packages rails)., guix-commits, 2023/03/28
- 147/229: gnu: ruby-marcel: Enable tests., guix-commits, 2023/03/28
- 150/229: gnu: Add ruby-timeout., guix-commits, 2023/03/28
- 152/229: gnu: Add ruby-date., guix-commits, 2023/03/28
- 157/229: gnu: ruby-actionmailer: Update to 7.0.4.3., guix-commits, 2023/03/28
- 58/229: gnu: Add ruby-bcrypt., guix-commits, 2023/03/28
- 103/229: gnu: ruby-pry-byebug: Update to 3.10.1., guix-commits, 2023/03/28
- 105/229: gnu: Remove ruby-chandler., guix-commits, 2023/03/28
- 108/229: gnu: ruby-maxitest: Update to 4.4.1., guix-commits, 2023/03/28
- 126/229: gnu: Add ruby-bake., guix-commits, 2023/03/28