Fixed mocha/minitest dependency issue due to rubygem-mocha upgrade

Signed-off-by: cherry530 <xuping33@huawei.com>
(cherry picked from commit e22bb051660ce0d640bb1ca43e42d3ec212e0b5a)
This commit is contained in:
cherry530 2022-07-05 09:58:57 +08:00 committed by openeuler-sync-bot
parent 7e6618185b
commit b8c1df13bf

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