diff --git a/rack-protection-2.0.8.1-spec.tar.gz b/rack-protection-2.0.8.1-spec.tar.gz deleted file mode 100644 index d3ba95eeafc023388ba4ddca45acf5880a825be5..0000000000000000000000000000000000000000 Binary files a/rack-protection-2.0.8.1-spec.tar.gz and /dev/null differ diff --git a/rack-protection-2.1.0.gem b/rack-protection-2.1.0.gem new file mode 100644 index 0000000000000000000000000000000000000000..2a4296e3a9e1c35d41952a68c95f69703f932d7b Binary files /dev/null and b/rack-protection-2.1.0.gem differ diff --git a/rubygem-rack-protection.spec b/rubygem-rack-protection.spec index 9219c1c63d86c59c24962b219b349488e55d3f96..45b83d737154df50df5dc0cd979b9339023fed78 100644 --- a/rubygem-rack-protection.spec +++ b/rubygem-rack-protection.spec @@ -2,17 +2,17 @@ %bcond_with bootstrap Summary: Ruby gem that protects against typical web attacks Name: rubygem-%{gem_name} -Version: 2.0.8.1 +Version: 2.1.0 Release: 1 License: MIT URL: http://github.com/sinatra/sinatra/tree/master/rack-protection Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # git clone https://github.com/sinatra/sinatra.git && cd sinatra/rack-protection # git archive -v -o rack-protection-2.0.8.1-spec.tar.gz v2.0.8.1 spec/ -Source1: %{gem_name}-%{version}-spec.tar.gz +# Source1: %{gem_name}-%{version}-spec.tar.gz # Fix test failure due to Rack 2.2.2 incompatibility. # https://github.com/sinatra/sinatra/pull/1605 -Patch0: rubygem-rack-protection-2.0.8.1-Fix-failing-tests.patch +# Patch0: rubygem-rack-protection-2.0.8.1-Fix-failing-tests.patch BuildRequires: ruby(release) rubygems-devel ruby %if %{without bootstrap} BuildRequires: rubygem(rack) rubygem(rspec) rubygem(rack-test) @@ -29,11 +29,11 @@ Requires: %{name} = %{version}-%{release} This package contains documentation for %{name}. %prep -%setup -q -n %{gem_name}-%{version} -b 1 +%setup -q -n %{gem_name}-%{version} -pushd %{_builddir} -%patch0 -p2 -popd +# pushd %{_builddir} +# %patch 0 -p2 +# popd %build gem build ../%{gem_name}-%{version}.gemspec @@ -46,7 +46,7 @@ cp -a .%{gem_dir}/* \ %if %{without bootstrap} %check -pushd .%{gem_instdir} +pushd %{_builddir}/%{gem_name}-%{version} ln -s %{_builddir}/spec spec rspec -r 'spec_helper' spec @@ -68,6 +68,9 @@ popd %{gem_instdir}/Rakefile %changelog +* Fri Aug 22 2025 openeuler_bot - 2.1.0-1 +- update rubygem-rack-protection to 2.1.0 + * Thu Feb 24 2022 liyanan - 2.0.8.1-1 - update to 2.0.8.1 @@ -75,4 +78,4 @@ popd - fix check failed * Fri Aug 21 2020 luoshengwei - 2.0.3-1 -- package init +- package init \ No newline at end of file