me
/
guix
Archived
1
0
Fork 0

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.
master
Maxim Cournoyer 2023-03-09 14:55:41 -05:00
parent 2be67a5824
commit 70cc03a855
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 45 additions and 21 deletions

View File

@ -553,28 +553,52 @@ applications. These work with any Rack-compatible server.")
(define-public ruby-actioncable (define-public ruby-actioncable
(package (package
(name "ruby-actioncable") (name "ruby-actioncable")
(version "6.1.3") (version %ruby-rails-version)
(source (source ruby-rails-monorepo)
(origin (build-system ruby-build-system)
(method url-fetch) (arguments
(uri (rubygems-uri "actioncable" version)) (list
(sha256 #:phases
(base32 #~(modify-phases %standard-phases
"1cgb1l0gml1vklxka2djpi5q5b4bgzgm5pahzfjvvgm5vzvrvi9v")))) (add-after 'extract-gemspec 'chdir
(build-system ruby-build-system) (lambda _
(arguments (chdir "actioncable")))
'(;; No included tests (delete 'check) ;moved after install phase
#:tests? #f)) (add-after 'install 'check
(propagated-inputs (assoc-ref %standard-phases 'check))
(list ruby-actionpack ruby-activesupport ruby-nio4r (add-before 'check 'set-GEM_PATH
ruby-websocket-driver)) (lambda _
(synopsis "Integrate integrates WebSockets with Rails applications") (setenv "GEM_PATH" (string-append
(description (getenv "GEM_PATH") ":"
"Action Cable integrates WebSockets with Rails applications. Through #$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.") WebSockets it allows for real-time features in web applications.")
(home-page "https://rubyonrails.org/") (home-page "https://rubyonrails.org/")
(license license:expat))) (license license:expat)))
(define-public ruby-activejob (define-public ruby-activejob
(package (package