[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#62196] [PATCH 182/223] gnu: ruby-temple: Update to 0.10.0.
From: |
Maxim Cournoyer |
Subject: |
[bug#62196] [PATCH 182/223] gnu: ruby-temple: Update to 0.10.0. |
Date: |
Mon, 20 Mar 2023 13:23:08 -0400 |
* 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 1905ef0b9b..f26988d830 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -4233,21 +4233,38 @@ (define-public ruby-locale
(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)))
--
2.39.1
- [bug#62196] [PATCH 175/223] gnu: Add perl-app-cpanminus., (continued)
- [bug#62196] [PATCH 175/223] gnu: Add perl-app-cpanminus., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 187/223] gnu: ruby-terminal-table: Update to 3.0.2., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 118/223] gnu: Add ruby-msgpack., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 157/223] gnu: ruby-actionmailer: Update to 7.0.4.3., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 186/223] gnu: Add ruby-minitest-profile., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 196/223] gnu: jekyll: Use gexps and remove input labels., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 125/223] gnu: Add ruby-rspec-debug., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 133/223] gnu: ruby-puma: Update to 6.1.1 and enable test suite., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 169/223] gnu: ruby-rails: Update to 7.0.4.3., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 155/223] gnu: Add ruby-net-smtp., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 182/223] gnu: ruby-temple: Update to 0.10.0.,
Maxim Cournoyer <=
- [bug#62196] [PATCH 191/223] gnu: ruby-shoulda-matchers: Update to 5.3.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 167/223] gnu: Add ruby-stimulus-rails., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 143/223] gnu: ruby-actioncable: Update to 7.0.4.3 and enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 148/223] gnu: ruby-activestorage: Update to 7.0.4.3., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 119/223] gnu: Add ruby-covered., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 160/223] gnu: ruby-sprockets-rails: Update to 3.4.2., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 181/223] gnu: ruby-protobuf: Update to 3.10.3., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 185/223] gnu: ruby-web-console: Update to 4.2.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 124/223] gnu: Add ruby-debug., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 161/223] gnu: Add ruby-bootsnap., Maxim Cournoyer, 2023/03/20