me
/
guix
Archived
1
0
Fork 0

gnu: ruby-activejob: Update to 7.0.4.3 and enable tests.

* gnu/packages/rails.scm (ruby-activejob): Update to 7.0.4.3.
[source]: Use ruby-rails-monorepo.
[arguments]: Remove #:tests? argument.  Add #:phases argument.
[native-inputs]: New field.
master
Maxim Cournoyer 2023-03-08 11:15:14 -05:00
parent 64132f16dc
commit eb3257222c
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 36 additions and 21 deletions

View File

@ -522,27 +522,42 @@ WebSockets it allows for real-time features in web applications.")
(define-public ruby-activejob (define-public ruby-activejob
(package (package
(name "ruby-activejob") (name "ruby-activejob")
(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 "activejob" version)) (list
(sha256 #:phases
(base32 #~(modify-phases %standard-phases
"175d8q0achdlsxjsvq0w9znvfqfkgbj75kbmdrvg4fb277wwplmf")))) (add-after 'extract-gemspec 'chdir
(build-system ruby-build-system) (lambda _
(arguments (chdir "activejob")))
'(;; No included tests (add-after 'chdir 'delete-problematic-tests
#:tests? #f)) (lambda _
(propagated-inputs (substitute* "Rakefile"
(list ruby-activesupport ruby-globalid)) ;; Remove the adapters that aren't yet packaged or would
(synopsis "Declare job classes for multiple backends") ;; introduce cyclic dependencies.
(description (("backburner ") "")
"ActiveJob allows declaring job classes in a common way across Rails (("resque ") "")
applications.") (("sidekiq ") "")
(home-page "https://rubyonrails.org/") (("sneakers ") "")
(license license:expat))) (("sucker_punch ") ""))
(substitute* "test/cases/exceptions_test.rb"
(("ActiveJob::QueueAdapters::SneakersAdapter") "")))))))
(native-inputs
(list ruby-queue-classic
ruby-delayed-job
ruby-que
ruby-zeitwerk))
(propagated-inputs
(list ruby-activesupport
ruby-globalid))
(synopsis "Declare job classes for multiple backends")
(description "ActiveJob allows declaring job classes in a common way
across Rails applications.")
(home-page "https://rubyonrails.org/")
(license license:expat)))
(define-public ruby-activestorage (define-public ruby-activestorage
(package (package