[rubygem-authlogic] Update to Authlogic 3.4.2.

Vít Ondruch vondruch at fedoraproject.org
Tue Aug 5 11:14:48 UTC 2014


commit 2852e24e2759b798a70c09d57e20a8db5ce405df
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Tue Aug 5 13:14:39 2014 +0200

    Update to Authlogic 3.4.2.

 .gitignore             |    2 +-
 rubygem-authlogic.spec |   53 ++++++++++++++++++++++++++---------------------
 sources                |    2 +-
 3 files changed, 31 insertions(+), 26 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 5a023b8..c85cbec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-authlogic-3.1.3.gem
\ No newline at end of file
+authlogic-3.1.3.gem/authlogic-3.4.2.gem
diff --git a/rubygem-authlogic.spec b/rubygem-authlogic.spec
index 6c53954..5003562 100644
--- a/rubygem-authlogic.spec
+++ b/rubygem-authlogic.spec
@@ -4,25 +4,21 @@
 
 Summary: A clean, simple, and unobtrusive ruby authentication solution
 Name: rubygem-%{gem_name}
-Version: 3.1.3
-Release: 5%{?dist}
+Version: 3.4.2
+Release: 1%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://github.com/binarylogic/authlogic
 Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
 
-Requires: ruby(rubygems)
-Requires: rubygem(activesupport)
-Requires: rubygem(activerecord)
-Requires: ruby(release)
 BuildRequires: rubygems-devel
-BuildRequires: rubygem(bcrypt-ruby)
 BuildRequires: rubygem(activerecord)
-BuildRequires: rubygem(sqlite3)
-BuildRequires: rubygem(bundler)
+BuildRequires: rubygem(bcrypt)
 BuildRequires: rubygem(minitest)
+BuildRequires: rubygem(request_store)
+BuildRequires: rubygem(sqlite3)
+BuildRequires: rubygem(timecop)
 BuildArch: noarch
-Provides: rubygem(%{gem_name}) = %{version}
 
 %description
 A clean, simple, and unobtrusive ruby authentication solution.
@@ -61,34 +57,43 @@ cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
 
 %check
 pushd .%{gem_instdir}
-# ruby debug is unneeded during tests
-sed -i 's|require "ruby-debug"|#require "ruby-debug"|' test/test_helper.rb
-find -type f -name *_test.rb | xargs testrb -Ilib:test
+# SCrypt is not available in Fedora.
+sed -i '/SCrypt/ s/^/#/' \
+  test/acts_as_authentic_test/password_test.rb \
+  lib/authlogic/crypto_providers.rb
+mv test/crypto_provider_test/scrypt_test.rb{,.disabled}
+
+# Use BCryp instead of SCrypt for tests.
+sed -i 's/SCrypt/BCrypt/' test/fixtures/users.yml
+sed -i '/rw_config(:crypto_provider, CryptoProviders::SCrypt)/ s/SCrypt/BCrypt/' lib/authlogic/acts_as_authentic/password.rb
+
+# Tests needs to be executed in order.
+# https://github.com/binarylogic/authlogic/issues/423
+ruby -Ilib:test -e 'Dir.glob("./test/**/*_test.rb").sort.each(&method(:require))'
 popd
 
 
 %files
-%defattr(-, root, root, -)
 %dir %{gem_instdir}/
-%{gem_instdir}/generators/
-%{gem_instdir}/init.rb
+%exclude %{gem_instdir}/.*
 %{gem_libdir}
-%{gem_instdir}/rails
-%{gem_instdir}/VERSION.yml
 %{gem_instdir}/Gemfile
 %doc %{gem_instdir}/LICENSE
 %doc %{gem_instdir}/README.rdoc
-%{gem_cache}
+%exclude %{gem_cache}
 %{gem_spec}
 
 %files doc
-%defattr(-, root, root, -)
-%{gem_docdir}
+%doc %{gem_docdir}
+%doc %{gem_instdir}/CONTRIBUTING.md
+%doc %{gem_instdir}/History
 %{gem_instdir}/Rakefile
 %{gem_instdir}/test
-%{gem_instdir}/shoulda_macros
 
 %changelog
+* Mon Aug 04 2014 Vít Ondruch <vondruch at redhat.com> - 3.4.2-1
+- Update to Authlogic 3.4.2.
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.1.3-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
@@ -101,7 +106,7 @@ popd
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.1.3-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 
-* Thu Nov 13 2012 Mo Morsi <mmorsi at redhat.com> - 3.1.3-1
+* Tue Nov 13 2012 Mo Morsi <mmorsi at redhat.com> - 3.1.3-1
 - Updated to 3.1.3
 
 * Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.0.3-4
@@ -120,7 +125,7 @@ popd
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 
 * Wed Oct 13 2010 Mohammed Morsi <mmorsi at redhat.com> - 2.1.6-4
-- added missing "Requires: %{name}" needed in docs subpackage
+- added missing "Requires: %%{name}" needed in docs subpackage
 
 * Tue Oct 12 2010 Mohammed Morsi <mmorsi at redhat.com> - 2.1.6-3
 - removed patch0 as ruby-debug is now in fedora
diff --git a/sources b/sources
index 679a49a..cf6f3a6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-971b3a2a89c1c1ed5da10808e185a813  authlogic-3.1.3.gem
+1b68fa1c1075e6556357a2efba0b44bd  authlogic-3.4.2.gem


More information about the scm-commits mailing list