[bug#78826,03/88] gnu: ruby-tzinfo: Update to 2.0.6-0.5cfebcb.

Message ID 20250618142822.27945-3-ngraves@ngraves.fr
State New
Headers
Series Switch to ruby@3.3 and build -P1 ruby@3.3 |

Commit Message

Nicolas Graves June 18, 2025, 2:26 p.m. UTC
  * gnu/packages/ruby-xyz.scm (ruby-tzinfo): Update to 2.0.6-0.5cfebcb.
---
 gnu/packages/ruby-xyz.scm | 84 ++++++++++++++++++++-------------------
 1 file changed, 43 insertions(+), 41 deletions(-)
  

Patch

diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm
index 7697a55858..461bd7e4ff 100644
--- a/gnu/packages/ruby-xyz.scm
+++ b/gnu/packages/ruby-xyz.scm
@@ -6780,49 +6780,51 @@  (define-public ruby-thread-safe
     (license license:asl2.0)))
 
 (define-public ruby-tzinfo
-  (package
-    (name "ruby-tzinfo")
-    (version "2.0.6")
-    (source
-     (origin
-       (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
-         "1n1gzjqwwnx209h8d054miva0y7x17db2ahy7jav5r25ibhh7rgm"))))
-    (build-system ruby-build-system)
-    (arguments
-     (list
-      #:phases
-      #~(modify-phases %standard-phases
-          (add-after 'unpack 'skip-safe-tests
-            (lambda _
-              (substitute* "test/test_utils.rb"
-                (("def safe_test\\(options = \\{\\}\\)")
-                 "def safe_test(options = {})
+  ;; XXX: Unreleased for Ruby@3.3.
+  (let ((commit "5cfebcbdbe3beff2a254ea0709a1586968a301a0")
+        (revision "0"))
+    (package
+      (name "ruby-tzinfo")
+      (version (git-version "2.0.6" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               ;; Pull from git because the gem has no tests.
+               (url "https://github.com/tzinfo/tzinfo")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "02sp9pp3qxds1cw8kks3iha6ib5wrjybh4d2qjm0rksrqkq1gd6q"))))
+      (build-system ruby-build-system)
+      (arguments
+       (list
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-after 'unpack 'skip-safe-tests
+              (lambda _
+                (substitute* "test/test_utils.rb"
+                  (("def safe_test\\(options = \\{\\}\\)")
+                   "def safe_test(options = {})
       skip('The Guix build environment has an unsafe load path')"))))
-          (add-before 'check 'pre-check
-            (lambda _
-              (setenv "HOME" (getcwd))
-              (substitute* "Gemfile"
-                (("simplecov.*") "simplecov'\n"))))
-          (replace 'check
-            (lambda* (#:key tests? test-target #:allow-other-keys)
-              (when tests?
-                (invoke "bundler" "exec" "rake" test-target)))))))
-    (propagated-inputs
-     (list ruby-concurrent))
-    (native-inputs
-     (list ruby-simplecov))
-    (synopsis "Time zone library for Ruby")
-    (description "TZInfo is a Ruby library that provides daylight savings
+            (add-before 'check 'pre-check
+              (lambda _
+                (setenv "HOME" (getcwd))
+                (substitute* "Gemfile"
+                  (("simplecov.*") "simplecov'\n"))))
+            (replace 'check
+              (lambda* (#:key tests? test-target #:allow-other-keys)
+                (when tests?
+                  (invoke "bundler" "exec" "rake" test-target)))))))
+      (propagated-inputs
+       (list ruby-concurrent))
+      (native-inputs
+       (list 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.")
-    (home-page "https://tzinfo.github.io")
-    (license license:expat)))
+      (home-page "https://tzinfo.github.io")
+      (license license:expat))))
 
 (define-public ruby-tzinfo-data
   (package