Update to rack-protection 1.5.3.

f38
Vít Ondruch 10 years ago
parent 3eb27cc3f8
commit 5e6bc84434

1
.gitignore vendored

@ -1,3 +1,4 @@
/rack-protection-1.2.0.gem /rack-protection-1.2.0.gem
/rack-protection-1.3.2.gem /rack-protection-1.3.2.gem
/rack-protection-1.5.0.gem /rack-protection-1.5.0.gem
/rack-protection-1.5.3.gem

@ -4,37 +4,32 @@
Summary: Ruby gem that protects against typical web attacks Summary: Ruby gem that protects against typical web attacks
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 1.5.0 Version: 1.5.3
Release: 3%{?dist} Release: 1%{?dist}
Group: Development/Languages Group: Development/Languages
License: MIT License: MIT
URL: http://github.com/rkh/rack-protection URL: http://github.com/rkh/rack-protection
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
Requires: ruby(release)
Requires: ruby(rubygems)
Requires: rubygem(rack)
BuildRequires: rubygems-devel BuildRequires: rubygems-devel
%if 0%{bootstrap} < 1 %if 0%{bootstrap} < 1
BuildRequires: rubygem(minitest) BuildRequires: rubygem(test-unit)
BuildRequires: rubygem(rack) BuildRequires: rubygem(rack)
BuildRequires: rubygem(rspec) BuildRequires: rubygem(rspec) < 3
BuildRequires: rubygem(rack-test) BuildRequires: rubygem(rack-test)
%endif %endif
BuildArch: noarch BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
%description %description
This gem protects against typical web attacks. This gem protects against typical web attacks.
Should work for all Rack apps, including Rails. Should work for all Rack apps, including Rails.
%package doc %package doc
Summary: Documentation for %{name} Summary: Documentation for %{name}
Group: Documentation Group: Documentation
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires: ruby(rubygems)
%description doc %description doc
This package contains documentation for %{name}. This package contains documentation for %{name}.
%prep %prep
@ -48,7 +43,7 @@ rm .%{gem_cache}
%check %check
%if 0%{bootstrap} < 1 %if 0%{bootstrap} < 1
pushd .%{gem_instdir} pushd .%{gem_instdir}
rspec spec rspec2 spec
popd popd
%endif %endif
@ -56,11 +51,16 @@ popd
%{__mkdir_p} %{buildroot}%{gem_dir} %{__mkdir_p} %{buildroot}%{gem_dir}
cp -rv .%{gem_dir}/* %{buildroot}%{gem_dir} cp -rv .%{gem_dir}/* %{buildroot}%{gem_dir}
# Fix presmissions.
# https://github.com/rkh/rack-protection/pull/93
chmod a-x %{buildroot}%{gem_instdir}/lib/rack/protection/base.rb
chmod a-x %{buildroot}%{gem_instdir}/spec/protection_spec.rb
%files %files
%dir %{gem_instdir} %dir %{gem_instdir}
%{gem_libdir} %{gem_libdir}
%{gem_spec} %{gem_spec}
%doc %{gem_instdir}/License %license %{gem_instdir}/License
%files doc %files doc
%doc %{gem_instdir}/README.md %doc %{gem_instdir}/README.md
@ -69,6 +69,9 @@ cp -rv .%{gem_dir}/* %{buildroot}%{gem_dir}
%doc %{gem_docdir} %doc %{gem_docdir}
%changelog %changelog
* Mon Feb 23 2015 Vít Ondruch <vondruch@redhat.com> - 1.5.3-1
- Update to rack-protection 1.5.3.
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-3 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
@ -100,7 +103,7 @@ cp -rv .%{gem_dir}/* %{buildroot}%{gem_dir}
- Rebuilt for Ruby 1.9.3. - Rebuilt for Ruby 1.9.3.
- Introduced bootstrap to deal with dependency loop. - Introduced bootstrap to deal with dependency loop.
* Mon Jan 03 2012 Michal Fojtik <mfojtik@redhat.com> - 1.2.0-2 * Tue Jan 03 2012 Michal Fojtik <mfojtik@redhat.com> - 1.2.0-2
- Fixed BR - Fixed BR
- Marked documentation file with doc tag - Marked documentation file with doc tag
- Changed the way how to run rspec tests - Changed the way how to run rspec tests

@ -1,3 +1 @@
07655617239266837416bdd11d1b5307 rack-protection-1.2.0.gem e09611d89bb40fb901c80b43c2a8c446 rack-protection-1.5.3.gem
eda51ee114e3a6308d3075468d7ea2fc rack-protection-1.3.2.gem
bfbf7ac051bb0af8329c8ac65f296c67 rack-protection-1.5.0.gem

Loading…
Cancel
Save