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.3.2.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
Name: rubygem-%{gem_name}
Version: 1.5.0
Release: 3%{?dist}
Version: 1.5.3
Release: 1%{?dist}
Group: Development/Languages
License: MIT
URL: http://github.com/rkh/rack-protection
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
Requires: ruby(release)
Requires: ruby(rubygems)
Requires: rubygem(rack)
BuildRequires: rubygems-devel
%if 0%{bootstrap} < 1
BuildRequires: rubygem(minitest)
BuildRequires: rubygem(test-unit)
BuildRequires: rubygem(rack)
BuildRequires: rubygem(rspec)
BuildRequires: rubygem(rspec) < 3
BuildRequires: rubygem(rack-test)
%endif
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
%description
This gem protects against typical web attacks.
Should work for all Rack apps, including Rails.
%package doc
Summary: Documentation for %{name}
Group: Documentation
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
Requires: ruby(rubygems)
Requires: %{name} = %{version}-%{release}
%description doc
%description doc
This package contains documentation for %{name}.
%prep
@ -48,7 +43,7 @@ rm .%{gem_cache}
%check
%if 0%{bootstrap} < 1
pushd .%{gem_instdir}
rspec spec
rspec2 spec
popd
%endif
@ -56,11 +51,16 @@ popd
%{__mkdir_p} %{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
%dir %{gem_instdir}
%{gem_libdir}
%{gem_spec}
%doc %{gem_instdir}/License
%license %{gem_instdir}/License
%files doc
%doc %{gem_instdir}/README.md
@ -69,6 +69,9 @@ cp -rv .%{gem_dir}/* %{buildroot}%{gem_dir}
%doc %{gem_docdir}
%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
- 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.
- 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
- Marked documentation file with doc tag
- Changed the way how to run rspec tests

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

Loading…
Cancel
Save