!10 [sync] PR-9: fix mocha/minitest dependency issue due to rubygem-mocha upgrade

From: @openeuler-sync-bot 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2022-10-19 09:33:34 +00:00 committed by Gitee
commit fe7da81a8e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
%global gem_name bootsnap
Name: rubygem-%{gem_name}
Version: 1.3.2
Release: 3
Release: 4
Summary: Boot large ruby/rails apps faster
License: MIT
URL: https://github.com/Shopify/bootsnap
@ -48,7 +48,6 @@ ln -s %{gem_name}-%{version}/test test
sed -i 'N;38a\ if RUBY_REVISION.is_a?(String)\n exp = [Help.fnv1a_64(RUBY_REVISION) >> 32].pack("L")\n else\n exp = [RUBY_REVISION].pack("L")\n end' bootsnap-1.3.2/test/compile_cache_key_format_test.rb
sed -i '38 d' bootsnap-1.3.2/test/compile_cache_key_format_test.rb
sed -i -e "/require 'bundler/ s/^/#/g" \
-e "/require 'mocha\/minitest/ s/minitest/mini_test/g" \
test/test_helper.rb
sed -i -e "/^\s*assert stable.stable?,/ s/^/#/g" \
-e "/^\s*refute stable.volatile?,/ s/^/#/g" \
@ -82,6 +81,9 @@ popd
%doc %{gem_instdir}/CODE_OF_CONDUCT.md
%changelog
* Tue Jul 05 2022 xu_ping <xuping33@h-partners.com> - 1.3.2-4
- fixed mocha/minitest dependency issue due to rubygem-mocha upgrade
* Thu Jan 27 2022 wulei <wulei@huawei.com> - 1.3.2-3
- fix no implicit conversion of String into Integer