upgrade 1.1.1

Signed-off-by: cherry530 <xuping33@huawei.com>
(cherry picked from commit f5f54b15076f85a6d3a159a50d0f0272bafde681)
This commit is contained in:
cherry530 2022-01-30 12:54:12 +08:00 committed by openeuler-sync-bot
parent 9e4e57d041
commit 5214d727cb
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
index 0a7ad762..77eb3557 100644
--- a/usr/share/gems/gems/mustache-1.0.2/test/autoloading_test.rb
+++ b/usr/share/gems/gems/mustache-1.0.2/test/autoloading_test.rb
--- a/test/autoloading_test.rb
+++ b/test/autoloading_test.rb
@@ -7,6 +7,10 @@ def setup
Mustache.view_path = File.dirname(__FILE__) + '/fixtures'
end

View File

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