Fix build error for ruby3.2
This commit is contained in:
parent
8246eaf160
commit
aa13a61c2d
24
rubygem-shindo-0.3.10-ruby32-File-exists-removal.patch
Normal file
24
rubygem-shindo-0.3.10-ruby32-File-exists-removal.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
From d779e7b4e4f7bdfe352b0134c7eca6b11e6e1b3e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Peter Goldstein <peter.m.goldstein@gmail.com>
|
||||||
|
Date: Thu, 27 Jan 2022 16:21:51 -0800
|
||||||
|
Subject: [PATCH] Add Ruby 3.1 to CI
|
||||||
|
|
||||||
|
Origin: https://github.com/geemus/shindo/commit/d779e7b
|
||||||
|
|
||||||
|
---
|
||||||
|
lib/shindo/bin.rb | 2 +-
|
||||||
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/lib/shindo/bin.rb b/lib/shindo/bin.rb
|
||||||
|
index a7396e8..9ddc6ed 100644
|
||||||
|
--- a/lib/shindo/bin.rb
|
||||||
|
+++ b/lib/shindo/bin.rb
|
||||||
|
@@ -29,7 +29,7 @@
|
||||||
|
if File.directory?(path)
|
||||||
|
tests ||= []
|
||||||
|
tests |= Dir.glob(File.join(path, '**', '*tests.rb'))
|
||||||
|
- elsif File.exists?(path)
|
||||||
|
+ elsif File.exist?(path)
|
||||||
|
tests ||= []
|
||||||
|
tests << path
|
||||||
|
else
|
||||||
@ -1,13 +1,15 @@
|
|||||||
%global gem_name shindo
|
%global gem_name shindo
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 0.3.10
|
Version: 0.3.10
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Simple depth first Ruby testing
|
Summary: Simple depth first Ruby testing
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://github.com/geemus/shindo
|
URL: http://github.com/geemus/shindo
|
||||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
# 'ubygems' script was dropped from Ruby 2.5.
|
# 'ubygems' script was dropped from Ruby 2.5.
|
||||||
# https://github.com/geemus/shindo/pull/17
|
# https://github.com/geemus/shindo/pull/17
|
||||||
|
|
||||||
|
Patch0: rubygem-shindo-0.3.10-ruby32-File-exists-removal.patch
|
||||||
BuildRequires: ruby(release) rubygems-devel ruby rubygem(formatador) >= 0.1.1
|
BuildRequires: ruby(release) rubygems-devel ruby rubygem(formatador) >= 0.1.1
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%description
|
%description
|
||||||
@ -21,7 +23,7 @@ BuildArch: noarch
|
|||||||
Documentation for %{name}.
|
Documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{gem_name}-%{version}
|
%autosetup -n %{gem_name}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
gem build ../%{gem_name}-%{version}.gemspec
|
gem build ../%{gem_name}-%{version}.gemspec
|
||||||
@ -62,6 +64,9 @@ popd
|
|||||||
%{gem_instdir}/LICENSE.md
|
%{gem_instdir}/LICENSE.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 01 2023 wangkai <13474090681@163.com> - 0.3.10-2
|
||||||
|
- Fix build error for ruby3.2
|
||||||
|
|
||||||
* Thu Jun 30 2022 houyingchao <houyingchao@h-partners.com> - 0.3.10-1
|
* Thu Jun 30 2022 houyingchao <houyingchao@h-partners.com> - 0.3.10-1
|
||||||
- Upgrade to 0.3.10
|
- Upgrade to 0.3.10
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user