!2 Package upgrade

From: @houyingchao 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2022-07-01 06:37:21 +00:00 committed by Gitee
commit 8246eaf160
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 7 additions and 28 deletions

View File

@ -1,25 +0,0 @@
From ff9435b1a402100384451a55c2d507bf19038a8b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
Date: Mon, 8 Jan 2018 16:49:29 +0100
Subject: [PATCH] 'ubygems' was dropped in Ruby 2.5.
---
tests/tests_helper.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/tests_helper.rb b/tests/tests_helper.rb
index 5a1605f..ab251de 100644
--- a/tests/tests_helper.rb
+++ b/tests/tests_helper.rb
@@ -3,7 +3,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo'
BIN = File.join(File.dirname(__FILE__), '..', 'bin', 'shindo')
def bin(arguments)
- `RUBYOPT="-rubygems" #{BIN} #{arguments}`
+ `RUBYOPT="-rrubygems" #{BIN} #{arguments}`
end
def path(name)
--
2.15.1

View File

@ -1,6 +1,6 @@
%global gem_name shindo %global gem_name shindo
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 0.3.8 Version: 0.3.10
Release: 1 Release: 1
Summary: Simple depth first Ruby testing Summary: Simple depth first Ruby testing
License: MIT License: MIT
@ -8,7 +8,6 @@ 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.8-ubygems-was-dropped-in-Ruby-2.5.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
@ -23,7 +22,6 @@ Documentation for %{name}.
%prep %prep
%setup -q -n %{gem_name}-%{version} %setup -q -n %{gem_name}-%{version}
%patch0 -p1
%build %build
gem build ../%{gem_name}-%{version}.gemspec gem build ../%{gem_name}-%{version}.gemspec
@ -59,7 +57,13 @@ popd
%{gem_instdir}/Rakefile %{gem_instdir}/Rakefile
%{gem_instdir}/shindo.gemspec %{gem_instdir}/shindo.gemspec
%{gem_instdir}/tests %{gem_instdir}/tests
%{gem_instdir}/CONTRIBUTING.md
%{gem_instdir}/CONTRIBUTORS.md
%{gem_instdir}/LICENSE.md
%changelog %changelog
* Thu Jun 30 2022 houyingchao <houyingchao@h-partners.com> - 0.3.10-1
- Upgrade to 0.3.10
* Wed Aug 19 2020 xiezheng <xiezheng4@huawei.com> - 0.3.8-1 * Wed Aug 19 2020 xiezheng <xiezheng4@huawei.com> - 0.3.8-1
- package init - package init

BIN
shindo-0.3.10.gem Normal file

Binary file not shown.

Binary file not shown.