!4 Fix build error for ruby3.2
From: @wk333 Reviewed-by: @lyn1001 Signed-off-by: @lyn1001
This commit is contained in:
commit
0020c5683c
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
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 0.3.10
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Simple depth first Ruby testing
|
||||
License: MIT
|
||||
URL: http://github.com/geemus/shindo
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
# 'ubygems' script was dropped from Ruby 2.5.
|
||||
# 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
|
||||
BuildArch: noarch
|
||||
%description
|
||||
@ -21,7 +23,7 @@ BuildArch: noarch
|
||||
Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{gem_name}-%{version}
|
||||
%autosetup -n %{gem_name}-%{version} -p1
|
||||
|
||||
%build
|
||||
gem build ../%{gem_name}-%{version}.gemspec
|
||||
@ -62,6 +64,9 @@ popd
|
||||
%{gem_instdir}/LICENSE.md
|
||||
|
||||
%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
|
||||
- Upgrade to 0.3.10
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user