[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
169/229: gnu: ruby-rails: Update to 7.0.4.3.
From: |
guix-commits |
Subject: |
169/229: gnu: ruby-rails: Update to 7.0.4.3. |
Date: |
Tue, 28 Mar 2023 22:29:19 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit bb44a9f6cc38eca81f4680c48b35cd0c69569a3e
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Mar 13 12:31:06 2023 -0400
gnu: ruby-rails: Update to 7.0.4.3.
* gnu/packages/rails.scm (ruby-rails): Update to 7.0.4.3.
[source]: use ruby-rails-monorepo.
[arguments]: Add delete-extraneous-gemspec-files phase. Delete trailing #t.
---
gnu/packages/rails.scm | 102 +++++++++++++++++++++++++------------------------
1 file changed, 52 insertions(+), 50 deletions(-)
diff --git a/gnu/packages/rails.scm b/gnu/packages/rails.scm
index 04aa2d3f89..ddb27a1d77 100644
--- a/gnu/packages/rails.scm
+++ b/gnu/packages/rails.scm
@@ -1342,57 +1342,59 @@ for locks.")
(home-page "https://closuretree.github.io/with_advisory_lock/")
(license license:expat)))
+;;; This is a meta-package which propagates all the individual Rails
+;;; components.
(define-public ruby-rails
(package
- (name "ruby-rails")
- (version "6.1.3")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "rails" version))
- (sha256
- (base32
- "0hdancysa617lzyy5gmrcmnpgyb1mz1lawy0l34ycz2wary7y2bz"))))
- (build-system ruby-build-system)
- (arguments
- '(#:phases
- (modify-phases %standard-phases
- ;; This gem acts as glue between the gems that actually make up
- ;; Rails. The important thing to check is that the gemspec matches up
- ;; with the Guix packages and Rubygems can successfully activate the
- ;; Rails gem.
- ;;
- ;; The following check phase tests this.
- (delete 'check)
- (add-after 'install 'check
- (lambda* (#:key tests? outputs #:allow-other-keys)
- (setenv "GEM_PATH"
- (string-append
- (getenv "GEM_PATH")
- ":"
- (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
- (when tests?
- (invoke "ruby" "-e" "gem 'rails'"))
- #t)))))
- (propagated-inputs
- (list ruby-actioncable
- ruby-actionmailbox
- ruby-actionmailer
- ruby-actionpack
- ruby-actiontext
- ruby-actionview
- ruby-activejob
- ruby-activemodel
- ruby-activerecord
- ruby-activestorage
- ruby-activesupport
- bundler
- ruby-railties
- ruby-sprockets-rails))
- (synopsis "Full-stack web framework optimized for programmer happiness")
- (description
- "Ruby on Rails is a full-stack web framework optimized for programmer
+ (name "ruby-rails")
+ (version %ruby-rails-version)
+ (source ruby-rails-monorepo)
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'delete-extraneous-gemspec-files
+ (lambda _
+ ;; They would otherwise be picked up instead of rails.gemspec at
+ ;; the root of the repository.
+ (for-each (lambda (f)
+ (unless (string-suffix? "rails.gemspec" f)
+ (delete-file f)))
+ (find-files "." "\\.gemspec"))))
+ ;; This gem acts as glue between the gems that actually make up
+ ;; Rails. The important thing to check is that the gemspec matches
+ ;; up with the Guix packages and Rubygems can successfully activate
+ ;; the Rails gem.
+ ;;
+ ;; The following check phase tests this.
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda* (#:key tests? outputs #:allow-other-keys)
+ (when tests?
+ (setenv "GEM_PATH"
+ (string-append (getenv "GEM_PATH") ":" #$output
+ "/lib/ruby/vendor_ruby"))
+ (invoke "ruby" "-e" "gem 'rails'")))))))
+ (propagated-inputs
+ (list bundler
+ ruby-actioncable
+ ruby-actionmailbox
+ ruby-actionmailer
+ ruby-actionpack
+ ruby-actiontext
+ ruby-actionview
+ ruby-activejob
+ ruby-activemodel
+ ruby-activerecord
+ ruby-activestorage
+ ruby-activesupport
+ ruby-railties
+ ruby-sprockets-rails))
+ (synopsis "Full-stack web framework optimized for programmer happiness")
+ (description
+ "Ruby on Rails is a full-stack web framework optimized for programmer
happiness and sustainable productivity. It encourages beautiful code by
favoring convention over configuration.")
- (home-page "https://rubyonrails.org/")
- (license license:expat)))
+ (home-page "https://rubyonrails.org/")
+ (license license:expat)))
- 219/229: gnu: Add ruby-spy., (continued)
- 219/229: gnu: Add ruby-spy., guix-commits, 2023/03/28
- 220/229: gnu: Add ruby-liquid-c-bootstrap., guix-commits, 2023/03/28
- 226/229: gnu: ruby-rack-protection: Update to 3.0.5., guix-commits, 2023/03/28
- 221/229: gnu: ruby-liquid: Update to 5.4.0 and enable tests., guix-commits, 2023/03/28
- 222/229: gnu: Add ruby-liquid-c., guix-commits, 2023/03/28
- 223/229: gnu: ruby-net-scp: Update to 4.0.0., guix-commits, 2023/03/28
- 176/229: gnu: ruby-minitest: Update home page URL., guix-commits, 2023/03/28
- 213/229: gnu: Add ruby-ammeter-bootstrap., guix-commits, 2023/03/28
- 166/229: gnu: Add ruby-propshaft., guix-commits, 2023/03/28
- 167/229: gnu: Add ruby-stimulus-rails., guix-commits, 2023/03/28
- 169/229: gnu: ruby-rails: Update to 7.0.4.3.,
guix-commits <=
- 172/229: gnu: Add ruby-flores., guix-commits, 2023/03/28
- 215/229: gnu: Add ruby-ammeter., guix-commits, 2023/03/28
- 214/229: gnu: ruby-rspec-rails: Update to 6.0.1 and enable tests., guix-commits, 2023/03/28
- 156/229: gnu: ruby-actionmailbox: Update to 7.0.4.3., guix-commits, 2023/03/28
- 165/229: gnu: ruby-railties: Enable test suite., guix-commits, 2023/03/28
- 190/229: gnu: ruby-shoulda-context: Honor #:tests?., guix-commits, 2023/03/28
- 229/229: gnu: geeqie: Enable most features, add doc., guix-commits, 2023/03/28
- 211/229: gnu: ruby-parallel-tests: Update to 4.2.0., guix-commits, 2023/03/28