[rubygem-rack-protection/f22] Update to rack-protection 1.5.3.
Vít Ondruch
vondruch at fedoraproject.org
Mon Feb 23 12:07:23 UTC 2015
commit f96e6eda4b71cfac7907813a6577502d835c20db
Author: Vít Ondruch <vondruch at redhat.com>
Date: Mon Feb 23 12:58:03 2015 +0100
Update to rack-protection 1.5.3.
.gitignore | 1 +
rubygem-rack-protection.spec | 37 ++++++++++++++++++++-----------------
sources | 4 +---
3 files changed, 22 insertions(+), 20 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index de072cb..349acef 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
diff --git a/rubygem-rack-protection.spec b/rubygem-rack-protection.spec
index 26e0e84..6370111 100644
--- a/rubygem-rack-protection.spec
+++ b/rubygem-rack-protection.spec
@@ -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 at redhat.com> - 1.5.3-1
+- Update to rack-protection 1.5.3.
+
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng at 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 at redhat.com> - 1.2.0-2
+* Tue Jan 03 2012 Michal Fojtik <mfojtik at redhat.com> - 1.2.0-2
- Fixed BR
- Marked documentation file with doc tag
- Changed the way how to run rspec tests
diff --git a/sources b/sources
index 71d2fe5..5e48cc4 100644
--- a/sources
+++ b/sources
@@ -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
More information about the scm-commits
mailing list