[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
182/229: gnu: ruby-temple: Update to 0.10.0.
From: |
guix-commits |
Subject: |
182/229: gnu: ruby-temple: Update to 0.10.0. |
Date: |
Tue, 28 Mar 2023 22:29:21 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 513718fbd2128c2d1a63fb1d28a011598c64b740
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Mar 15 13:13:17 2023 -0400
gnu: ruby-temple: Update to 0.10.0.
* gnu/packages/ruby.scm (ruby-temple): Update to 0.10.0.
[source]: Fetch via git.
[arguments]: New field.
[native-inputs]: Replace ruby-erubis with ruby-erubi. Add ruby-rspec.
---
gnu/packages/ruby.scm | 43 ++++++++++++++++++++++++++++++-------------
1 file changed, 30 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index d3c9ab9c7e..510df2a4c5 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -4233,21 +4233,38 @@ localization.")
(define-public ruby-temple
(package
(name "ruby-temple")
- (version "0.8.2")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "temple" version))
- (sha256
- (base32
- "060zzj7c2kicdfk6cpnn40n9yjnhfrr13d0rsbdhdij68chp2861"))))
+ (version "0.10.0")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/judofyr/temple")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0rr9fnlcgj9nm3b6hzzjsvcw8x3y7z48j7slk7xxff2mh8s7y3y0"))))
(build-system ruby-build-system)
- (native-inputs
- (list ruby-tilt ruby-bacon ruby-erubis))
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'replace-git-ls-files 'replace-more-git-ls-files
+ (lambda _
+ (substitute* "temple.gemspec"
+ ;; There no longer are test, spec or features
+ ;; directories.
+ ((".*`git ls-files -- \\{test,spec,features}/\\*`.*")
+ "")
+ ;; There isn't any bin directory either.
+ ((".*`git ls-files -- bin/\\*`.*")
+ ""))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec")))))))
+ (native-inputs (list ruby-bacon ruby-erubi ruby-rspec ruby-tilt))
(synopsis "Template compilation framework in Ruby")
- (description
- "Temple is an abstraction and framework for compiling templates to pure
-Ruby.")
+ (description "Temple is an abstraction and framework for compiling
+templates to pure Ruby.")
(home-page "https://github.com/judofyr/temple")
(license license:expat)))
- 58/229: gnu: Add ruby-bcrypt., (continued)
- 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
- 135/229: gnu: Add ruby-rack-session., guix-commits, 2023/03/28
- 154/229: gnu: Add ruby-net-pop., guix-commits, 2023/03/28
- 164/229: gnu: Add ruby-importmap-rails., guix-commits, 2023/03/28
- 174/229: gnu: Add ruby-arr-pm., guix-commits, 2023/03/28
- 179/229: gnu: Add fpm., guix-commits, 2023/03/28
- 182/229: gnu: ruby-temple: Update to 0.10.0.,
guix-commits <=
- 141/229: gnu: Add ruby-websocket-eventmachine-server., guix-commits, 2023/03/28
- 142/229: gnu: Add ruby-websocket-client-simple., guix-commits, 2023/03/28
- 144/229: gnu: ruby-mini-mime: Update to 1.1.2., guix-commits, 2023/03/28
- 145/229: gnu: ruby-marcel: Update to 1.0.2., guix-commits, 2023/03/28
- 148/229: gnu: ruby-activestorage: Update to 7.0.4.3., guix-commits, 2023/03/28
- 149/229: gnu: ruby-actiontext: Update to 7.0.4.3., guix-commits, 2023/03/28
- 153/229: gnu: Add ruby-net-imap., guix-commits, 2023/03/28
- 155/229: gnu: Add ruby-net-smtp., guix-commits, 2023/03/28
- 151/229: gnu: Add ruby-net-protocol., guix-commits, 2023/03/28
- 158/229: gnu: ruby-sprockets: Update to 4.2.0., guix-commits, 2023/03/28