[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/12: gnu: ruby-tzinfo: Update to 2.0.4.
From: |
guix-commits |
Subject: |
07/12: gnu: ruby-tzinfo: Update to 2.0.4. |
Date: |
Tue, 23 Feb 2021 09:06:55 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit 76e1093b2bbd4f8ad49ed100e5cafe3dc7eb1783
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Feb 23 15:13:08 2021 +0200
gnu: ruby-tzinfo: Update to 2.0.4.
* gnu/packages/ruby.scm (ruby-tzinfo): Update to 2.0.4.
[source]: Download using git-fetch.
[arguments]: Add custom 'pre-check, 'check phases.
[propagated-inputs]: Remove ruby-thread-safe, add ruby-concurrent.
[native-inputs]: Add ruby-simplecov.
---
gnu/packages/ruby.scm | 27 ++++++++++++++++++++++-----
1 file changed, 22 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index df8d097..dc38171 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -5770,14 +5770,18 @@ utilities for Ruby.")
(define-public ruby-tzinfo
(package
(name "ruby-tzinfo")
- (version "1.2.4")
+ (version "2.0.4")
(source
(origin
- (method url-fetch)
- (uri (rubygems-uri "tzinfo" version))
+ (method git-fetch)
+ (uri (git-reference
+ ;; Pull from git because the gem has no tests.
+ (url "https://github.com/tzinfo/tzinfo")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
(base32
- "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
+ "0jaq1givdaz5jxz47xngyj3j315n872rk97mnpm5njwm48wy45yh"))))
(build-system ruby-build-system)
(arguments
'(#:phases
@@ -5788,9 +5792,22 @@ utilities for Ruby.")
(("def safe_test\\(options = \\{\\}\\)")
"def safe_test(options = {})
skip('The Guix build environment has an unsafe load path')"))
+ #t))
+ (add-before 'check 'pre-check
+ (lambda _
+ (setenv "HOME" (getcwd))
+ (substitute* "Gemfile"
+ (("simplecov.*") "simplecov'\n"))
+ #t))
+ (replace 'check
+ (lambda* (#:key tests? test-target #:allow-other-keys)
+ (when tests?
+ (invoke "bundler" "exec" "rake" test-target))
#t)))))
(propagated-inputs
- `(("ruby-thread-safe" ,ruby-thread-safe)))
+ `(("ruby-concurrent-ruby" ,ruby-concurrent)))
+ (native-inputs
+ `(("ruby-simplecov" ,ruby-simplecov)))
(synopsis "Time zone library for Ruby")
(description "TZInfo is a Ruby library that provides daylight savings
aware transformations between times in different time zones.")
- branch master updated (25f00a2 -> 3c548c3), guix-commits, 2021/02/23
- 01/12: gnu: ruby-protobuf: Add missing input., guix-commits, 2021/02/23
- 03/12: gnu: ruby-mail: Update to 2.7.1., guix-commits, 2021/02/23
- 05/12: gnu: ruby-rails-dom-testing: Update to 2.0.3., guix-commits, 2021/02/23
- 06/12: gnu: ruby-rails-html-sanitizer: Update to 1.3.0., guix-commits, 2021/02/23
- 02/12: gnu: Add ruby-mini-mime., guix-commits, 2021/02/23
- 07/12: gnu: ruby-tzinfo: Update to 2.0.4.,
guix-commits <=
- 10/12: gnu: Add ruby-zeitwerk., guix-commits, 2021/02/23
- 08/12: gnu: ruby-tzinfo-data: Update to 1.2021.1., guix-commits, 2021/02/23
- 04/12: gnu: ruby-loofah: Update to 2.3.1., guix-commits, 2021/02/23
- 12/12: gnu: ruby-rails: Update to 6.1.3., guix-commits, 2021/02/23
- 09/12: gnu: ruby-web-console: Update to 4.1.0., guix-commits, 2021/02/23
- 11/12: gnu: ruby-rack: Update to 2.2.3., guix-commits, 2021/02/23