Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
a0d2fef696
!12 Upgrade version to 1.17.0
From: @cherry530 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2023-11-14 06:15:50 +00:00
cherry530
f8fd7d76d0 Upgrade version to 1.17.0
Signed-off-by: cherry530 <707078654@qq.com>
2023-11-14 11:36:20 +08:00
openeuler-ci-bot
148bd1ce09
!11 Update to 1.15.0 and fix test failure caused by ruby update to 3.2.2
From: @starlet-dx 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2023-08-02 01:57:43 +00:00
starlet-dx
4bbd041b25 Update to 1.15.0 2023-08-01 19:52:22 +08:00
openeuler-ci-bot
2acffc3cde
!9 fix mocha/minitest dependency issue due to rubygem-mocha upgrade
From: @cherry530 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-07-05 07:12:04 +00:00
cherry530
e22bb05166 Fixed mocha/minitest dependency issue due to rubygem-mocha upgrade
Signed-off-by: cherry530 <xuping33@huawei.com>
2022-07-05 09:58:57 +08:00
openeuler-ci-bot
faae8fd0c7
!7 【轻量级 PR】:update rubygem-bootsnap.spec.
From: @wenzhiwei11 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2022-06-11 04:07:27 +00:00
温志伟
aa275faebd
update rubygem-bootsnap.spec. 2022-06-08 06:52:08 +00:00
openeuler-ci-bot
f7eca59bbb
!5 [sync] PR-4: 修复rubygem-bootsnap编译在check阶段失败报错no implicit conversion of String into Integer (TypeError)
Merge pull request !5 from openeuler-sync-bot/sync-pr4-openEuler-22.03-LTS-Next-to-master
2022-01-28 01:30:03 +00:00
wu-leilei
84f28890e5 fix no implicit conversion of String into Integer
(cherry picked from commit 068ae4620ec27ac26a3d8a935928d397c3b63b36)
2022-01-27 15:04:47 +08:00
5 changed files with 38 additions and 25 deletions

BIN
bootsnap-1.17.0-tests.txz Normal file

Binary file not shown.

BIN
bootsnap-1.17.0.gem Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,14 +1,19 @@
%global gem_name bootsnap
Name: rubygem-%{gem_name}
Version: 1.3.2
Release: 2
Version: 1.17.0
Release: 1
Summary: Boot large ruby/rails apps faster
License: MIT
URL: https://github.com/Shopify/bootsnap
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/Shopify/bootsnap/archive/v1.3.2.tar.gz
# git clone http://github.com/Shopify/bootsnap.git --no-checkout
# cd bootsnap && git archive -v -o bootsnap-1.17.0-tests.txz v1.17.0 test/
Source1: %{gem_name}-%{version}-tests.txz
# https://github.com/Shopify/bootsnap/issues/431
# https://github.com/Shopify/bootsnap/commit/72202aab5e5b3602ece4e8748bcdeefe2d789ab5
BuildRequires: ruby(release) rubygems-devel ruby-devel >= 2.0.0 rubygem(minitest)
BuildRequires: rubygem(mocha) rubygem(msgpack) gcc
BuildRequires: rubygem(bundler)
ExcludeArch: armv7hl
%description
Bootsnap is a library that plugs into Ruby, with optional support
@ -22,7 +27,7 @@ BuildArch: noarch
Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version}
%setup -q -n %{gem_name}-%{version} -b 1
sed -i -e "/^\s*\$CFLAGS / s/^/#/g" \
ext/bootsnap/extconf.rb
@ -39,27 +44,31 @@ cp -a .%{gem_extdir_mri}/gem.build_complete %{buildroot}%{gem_extdir_mri}/
cp -a .%{gem_extdir_mri}/%{gem_name}/*.so %{buildroot}%{gem_extdir_mri}/%{gem_name}
rm -rf %{buildroot}%{gem_instdir}/ext/
mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
%{buildroot}%{_bindir}/
find %{buildroot}%{gem_instdir}/exe -type f | xargs chmod a+x
%check
pushd .%{gem_instdir}
tar xzvf %{SOURCE1}
ln -s %{gem_name}-%{version}/test test
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" \
-e "/^\s*assert bundler.stable?,/ s/^/#/g" \
-e "/^\s*Bundler/ s/^/#/g" \
test/load_path_cache/path_test.rb
ruby -Ilib:test:ext -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
ln -s %{_builddir}/test test
cat <<GEMFILE > Gemfile
gem "minitest"
gem "mocha"
gem "msgpack"
GEMFILE
RUBYOPT="-I$(dirs +1)%{gem_extdir_mri}:$(dirs +1)%{gem_libdir}" \
ruby -Itest -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
popd
%files
%dir %{gem_instdir}
%{_bindir}/bootsnap
%{gem_extdir_mri}
%exclude %{gem_instdir}/.*
%license %{gem_instdir}/LICENSE.txt
%exclude %{gem_instdir}/bootsnap.gemspec
%{gem_instdir}/exe
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
@ -67,17 +76,21 @@ popd
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/CONTRIBUTING.md
%{gem_instdir}/Gemfile
%doc %{gem_instdir}/README.jp.md
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile
%{gem_instdir}/dev.yml
%{gem_instdir}/shipit.rubygems.yml
%{gem_instdir}/bin
%doc %{gem_instdir}/CODE_OF_CONDUCT.md
%changelog
* Tue Nov 14 2023 xu_ping <707078654@qq.com> - 1.17.0-1
- Update to 1.17.0
* Tue Aug 01 2023 yaoxin <yao_xin001@hoperun.com> - 1.15.0-1
- Update to 1.15.0
* 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
* Tue Sep 8 2020 yanan li <liyanan032@huawei.com> - 1.3.2-2
- fix build fail

Binary file not shown.