Compare commits

..

No commits in common. "76ca912d561badadb30a71cfe577f46b9f46a310" and "23cf7bdf5b70fdf14fbad8b39024a520b739f2f3" have entirely different histories.

5 changed files with 5 additions and 36 deletions

BIN
redis-4.6.0.gem Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,13 +1,14 @@
%global gem_name redis %global gem_name redis
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 4.7.0 Version: 4.6.0
Release: 4 Release: 1
Summary: A Ruby client library for Redis Summary: A Ruby client library for Redis
License: MIT License: MIT
URL: https://github.com/redis/redis-rb URL: https://github.com/redis/redis-rb
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/redis/redis-rb/archive/refs/tags/v%{version}.tar.gz Source1: https://github.com/redis/redis-rb/archive/refs/tags/v%{version}.tar.gz
BuildRequires: ruby ruby(release) rubygems-devel rubygem(test-unit) redis5 make rubygem(hiredis) rubygem(minitest) rubygem(mocha) procps-ng BuildRequires: ruby ruby(release) rubygems-devel rubygem(test-unit) redis make rubygem(hiredis) rubygem(minitest) rubygem(mocha)
BuildRequires: %{_bindir}/redis-server
BuildArch: noarch BuildArch: noarch
%description %description
A Ruby client that tries to match Redis' API one-to-one, while still A Ruby client that tries to match Redis' API one-to-one, while still
@ -37,32 +38,15 @@ pushd .%{gem_instdir}
cp -a %{_builddir}/redis-rb-%{version}/{makefile,test} . cp -a %{_builddir}/redis-rb-%{version}/{makefile,test} .
sed -i "s/bundle exec rake test/ruby -Ilib:test -e \"Dir.glob('.\/test\/**\/*_test.rb').sort.each {|t| require t}\"/" \ sed -i "s/bundle exec rake test/ruby -Ilib:test -e \"Dir.glob('.\/test\/**\/*_test.rb').sort.each {|t| require t}\"/" \
makefile makefile
# The TestInternals#test_large_payload fails with Hiredis.
# https://github.com/redis/redis-rb/issues/1117
sed -i \
-e '/def test_large_payload/i\ driver(:ruby) do' \
-e '/def test_large_payload/,/end/ {/end/ s/end/&\n end/;}' \
test/internals_test.rb
sed -i \
-e '/def test_redirection_when_slot_is_resharding/i\ driver(:ruby) do' \
-e '/def test_redirection_when_slot_is_resharding/,/end/ {/end/ s/end/&\n end/;}' \
test/cluster_client_slots_test.rb
sed -i 's/redis:\/\/\//redis:\/\/127.0.0.1/g' test/url_param_test.rb
mkdir bin mkdir bin
echo '#!/usr/bin/sh' > bin/build echo '#!/usr/bin/sh' > bin/build
chmod a+x bin/build chmod a+x bin/build
mv %{_builddir}/redis-rb-%{version}/bin/cluster_creator bin/ mv %{_builddir}/redis-rb-%{version}/bin/cluster_creator bin/
LANG=C.UTF-8 LANG=C.UTF-8
pkill -f redis-server || true
sleep 5
for driver in ruby hiredis ; do for driver in ruby hiredis ; do
export DRIVER=$driver export DRIVER=$driver
make BINARY=$(which redis-server) REDIS_CLIENT=$(which redis-cli) BUILD_DIR='${TMP}' make BINARY=$(which redis-server) REDIS_CLIENT=$(which redis-cli) BUILD_DIR='${TMP}'
sleep 5 sleep 1
done done
popd popd
@ -81,21 +65,6 @@ popd
%doc %{gem_instdir}/README.md %doc %{gem_instdir}/README.md
%changelog %changelog
* Fri Feb 14 2025 wangkai <13474090681@163.com> - 4.7.0-4
- Switch buildrequire redis to redis5
* Sat Aug 12 2023 Ge Wang <wang__ge@126.com> - 4.7.0-3
- Fix test_redirection_when_slot_is_resharding test failure
* Thu Jan 12 2023 xu_ping <xuping33@h-partners.com> - 4.7.0-2
- The TestInternals#test_large_payload fails with hiredis.
* Tue Aug 9 2022 liyanan <liyanan32@h-partners.com> - 4.7.0-1
- Update to 4.7.0
* Mon Jul 18 2022 wulei <wulei80@h-partners.com> - 4.6.0-2
- Fix the compilation failure
* Thu Jun 30 2022 wulei <wulei80@h-partners.com> - 4.6.0-1 * Thu Jun 30 2022 wulei <wulei80@h-partners.com> - 4.6.0-1
- Upgrade to 4.6.0 - Upgrade to 4.6.0

BIN
v4.6.0.tar.gz Normal file

Binary file not shown.

Binary file not shown.