!6 [sync] PR-4: openEuler-22.03-LTS rubygem-mustache 升级 1.1.1版本

From: @openeuler-sync-bot 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2022-03-24 12:25:21 +00:00 committed by Gitee
commit e65c2ea7d7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 14 additions and 11 deletions

Binary file not shown.

BIN
mustache-1.1.1.gem Normal file

Binary file not shown.

View File

@ -21,8 +21,8 @@ than the remaining test cases, because they are defining
diff --git a/usr/share/gems/gems/mustache-1.0.2/test/autoloading_test.rb a/usr/share/gems/gems/mustache-1.0.2/test/autoloading_test.rb diff --git a/usr/share/gems/gems/mustache-1.0.2/test/autoloading_test.rb a/usr/share/gems/gems/mustache-1.0.2/test/autoloading_test.rb
index 0a7ad762..77eb3557 100644 index 0a7ad762..77eb3557 100644
--- a/usr/share/gems/gems/mustache-1.0.2/test/autoloading_test.rb --- a/test/autoloading_test.rb
+++ b/usr/share/gems/gems/mustache-1.0.2/test/autoloading_test.rb +++ b/test/autoloading_test.rb
@@ -7,6 +7,10 @@ def setup @@ -7,6 +7,10 @@ def setup
Mustache.view_path = File.dirname(__FILE__) + '/fixtures' Mustache.view_path = File.dirname(__FILE__) + '/fixtures'
end end

View File

@ -1,13 +1,13 @@
%global gem_name mustache %global gem_name mustache
Name: rubygem-mustache Name: rubygem-mustache
Version: 1.0.2 Version: 1.1.1
Release: 8 Release: 1
Summary: A framework-agnostic way to render logic-free views Summary: A framework-agnostic way to render logic-free views
License: MIT License: MIT
URL: https://github.com/mustache/mustache URL: https://github.com/mustache/mustache
Source0: https://rubygems.org/gems/mustache-%{version}.gem Source0: https://rubygems.org/gems/mustache-%{version}.gem
Patch0: rubygem-mustache-1.0.2-Fix-test-race-condition.patch Patch0: rubygem-mustache-1.1.1-Fix-test-race-condition.patch
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest) BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest)
BuildArch: noarch BuildArch: noarch
@ -27,11 +27,13 @@ BuildArch: noarch
Documentation for rubygem-mustache. Documentation for rubygem-mustache.
%prep %prep
%setup -q -c -T %setup -q -n %{gem_name}-%{version}
%gem_install -n %{SOURCE0} %patch0 -p1
%patch0 -p1
%build %build
gem build ../%{gem_name}-%{version}.gemspec
%gem_install
%install %install
install -d %{buildroot}%{gem_dir} install -d %{buildroot}%{gem_dir}
@ -47,9 +49,7 @@ cp -a .%{gem_instdir}/man/*.html .
%check %check
cd .%{gem_instdir} cd .%{gem_instdir}
sed -r -i '/[Cc]ode[Cc]limate/ s/^/#/' test/helper.rb sed -i '/simplecov/,/^end$/ s/^/#/' test/helper.rb
LANG=en_US.utf8 ruby -Ilib -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
cd -
%files %files
%dir %{gem_instdir} %dir %{gem_instdir}
@ -70,6 +70,9 @@ cd -
%{gem_instdir}/{Rakefile,test} %{gem_instdir}/{Rakefile,test}
%changelog %changelog
* Sun Jan 30 2022 xu_ping <xuping33@huawei.com> - 1.1.1-1
- Upgrade 1.1.1
* Sat Jan 22 2022 liyanan <liyanan32@huawei.com> - 1.0.2-8 * Sat Jan 22 2022 liyanan <liyanan32@huawei.com> - 1.0.2-8
- Fix build error - Fix build error