-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gnu: ruby-safe-yaml: Add missing require 'time'.
Patch ruby-safe-yaml to fix an issue that would lead to an error like this: uninitialized constant SafeYAML::Parse::Date::DateTime It's been reported upstream [1], and this patch was taken from the upstream Git repository. 1: dtao/safe_yaml#80 * gnu/packages/ruby.scm (ruby-safe-yaml)[source]: Switch to the Git repository so that applying patches works and add a patch. [arguments]: Enable tests and add a phase to set the TZ environment variable, as one of the tests depends on a certian timezone. * gnu/packages/patches/ruby-safe-yaml-add-require-time.patch: New file. * gnu/local.mk (dist_patch_DATA): Add new patch file.
- Loading branch information
Christopher Baines
committed
Feb 14, 2019
1 parent
17098a4
commit 28cf8da
Showing
3 changed files
with
45 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
gnu/packages/patches/ruby-safe-yaml-add-require-time.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
From 9dd1e8d9ad0396a8c9092c2e9f17d498c58e0208 Mon Sep 17 00:00:00 2001 | ||
From: elifoster <[email protected]> | ||
Date: Tue, 5 Dec 2017 14:30:13 -0800 | ||
Subject: [PATCH] Fix uninitialized constant DateTime Close #80 | ||
|
||
--- | ||
lib/safe_yaml/parse/date.rb | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/lib/safe_yaml/parse/date.rb b/lib/safe_yaml/parse/date.rb | ||
index cd3c62a..3a30a8b 100644 | ||
--- a/lib/safe_yaml/parse/date.rb | ||
+++ b/lib/safe_yaml/parse/date.rb | ||
@@ -1,3 +1,5 @@ | ||
+require 'time' | ||
+ | ||
module SafeYAML | ||
class Parse | ||
class Date |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters