Package upgrade

This commit is contained in:
houyingchao 2022-06-30 20:21:35 +08:00
parent 97877340ac
commit 34f1fafbec
4 changed files with 4 additions and 22 deletions

View File

@ -1,19 +0,0 @@
From 9dd1e8d9ad0396a8c9092c2e9f17d498c58e0208 Mon Sep 17 00:00:00 2001
From: elifoster <elifosterwy@gmail.com>
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

View File

@ -2,14 +2,13 @@
%global enable_tests 0
Summary: Parse YAML safely
Name: rubygem-%{gem_name}
Version: 1.0.4
Version: 1.0.5
Release: 1
License: MIT
URL: http://dtao.github.com/safe_yaml/
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Fix Ruby 2.5 compatibility.
# https://github.com/dtao/safe_yaml/pull/90
Patch0: rubygem-safe_yaml-1.0.4-Fix-uninitialized-constant-DateTime.patch
BuildRequires: ruby(release) rubygems-devel
%if 0%{?enable_tests}
BuildRequires: rubygem(hashie) rubygem(rspec)
@ -32,7 +31,6 @@ Documentation for %{name}
gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%patch0 -p1
%build
gem build %{gem_name}.gemspec
@ -74,5 +72,8 @@ popd
%{gem_instdir}/spec
%changelog
* Thu Jun 30 2022 houyingchao <houyingchao@h-partners.com> - 1.0.5-1
- Upgrade to 1.0.5
* Wed Aug 19 2020 xiezheng <xiezheng4@huawei.com> - 1.0.4-1
- package init

Binary file not shown.

BIN
safe_yaml-1.0.5.gem Normal file

Binary file not shown.