|
|
@ -1,15 +1,15 @@
|
|
|
|
%global gem_name rack-test
|
|
|
|
%global gem_name rack-test
|
|
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 0.8.3
|
|
|
|
Version: 1.1.0
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Simple testing API built on Rack
|
|
|
|
Summary: Simple testing API built on Rack
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: http://github.com/rack-test/rack-test
|
|
|
|
URL: http://github.com/rack-test/rack-test
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
# git clone https://github.com/rack-test/rack-test.git && cd rack-test
|
|
|
|
# git clone https://github.com/rack-test/rack-test.git && cd rack-test
|
|
|
|
# git checkout v0.8.3 && tar czvf rack-test-0.8.3-spec.tgz spec/
|
|
|
|
# git archive -v -o rack-test-1.1.0-spec.tar.gz v1.1.0 spec/
|
|
|
|
Source1: %{gem_name}-%{version}-spec.tgz
|
|
|
|
Source1: %{gem_name}-%{version}-spec.tar.gz
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: ruby >= 2.2.2
|
|
|
|
BuildRequires: ruby >= 2.2.2
|
|
|
@ -55,11 +55,15 @@ pushd .%{gem_instdir}
|
|
|
|
ln -s %{_builddir}/spec spec
|
|
|
|
ln -s %{_builddir}/spec spec
|
|
|
|
|
|
|
|
|
|
|
|
# We don't care about code coverage.
|
|
|
|
# We don't care about code coverage.
|
|
|
|
sed -i '/[cC]ode[cC]/ s/^/#/' spec/spec_helper.rb
|
|
|
|
sed -i '/simplecov/,/^end$/ s/^/#/' spec/spec_helper.rb
|
|
|
|
|
|
|
|
|
|
|
|
# Don't use Bundler.
|
|
|
|
# Don't use Bundler.
|
|
|
|
sed -i "/require 'bundler\/setup'/ s/^/#/" spec/spec_helper.rb
|
|
|
|
sed -i "/require 'bundler\/setup'/ s/^/#/" spec/spec_helper.rb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Workaround test error due to Rack 2.2.0+ changes.
|
|
|
|
|
|
|
|
# https://github.com/rack/rack-test/issues/260
|
|
|
|
|
|
|
|
sed -i "/expect(body).to receive(:close)/ s/^/#/" spec/rack/test_spec.rb
|
|
|
|
|
|
|
|
|
|
|
|
rspec spec
|
|
|
|
rspec spec
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
@ -76,6 +80,10 @@ popd
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Tue Apr 28 2020 Vít Ondruch <vondruch@redhat.com> - 1.1.0-1
|
|
|
|
|
|
|
|
- Update to rack-test 1.1.0.
|
|
|
|
|
|
|
|
Resolves: rhbz#1561254
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-5
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|