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

* gnu/packages/rails.scm (ruby-activemodel): Update to 7.0.4.3.  Fix
indentation.
[source]: Use ruby-rails-monorepo.
[arguments]: Remove #:tests? argument.  Add #:phases argument.
[native-inputs]: New field.
This commit is contained in:
Maxim Cournoyer 2023-03-07 23:42:13 -05:00
parent 10411b3549
commit 7c461b2ee9
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -261,20 +261,22 @@ (define-public ruby-autoprefixer-rails
(define-public ruby-activemodel (define-public ruby-activemodel
(package (package
(name "ruby-activemodel") (name "ruby-activemodel")
(version "6.1.3") (version %ruby-rails-version)
(source (source ruby-rails-monorepo)
(origin
(method url-fetch)
(uri (rubygems-uri "activemodel" version))
(sha256
(base32
"07m85r00cd1dzxg65zr9wjrdqppw51b5ka9c5mrz92vnw18kfb70"))))
(build-system ruby-build-system) (build-system ruby-build-system)
(arguments (arguments
'(;; No included tests (list
#:tests? #f)) #:phases
(propagated-inputs #~(modify-phases %standard-phases
(list ruby-activesupport)) (add-after 'extract-gemspec 'chdir
(lambda _
(chdir "activemodel")))
(add-after 'chdir 'delete-problematic-tests
(lambda _
;; We do not want to depend on ruby-railties at this stage.
(delete-file "test/cases/railtie_test.rb"))))))
(native-inputs (list ruby-bcrypt))
(propagated-inputs (list ruby-activesupport))
(synopsis "Toolkit for building modeling frameworks like Active Record") (synopsis "Toolkit for building modeling frameworks like Active Record")
(description (description
"This package provides a toolkit for building modeling frameworks like "This package provides a toolkit for building modeling frameworks like