[rubygem-protected_attributes] Updated to protected_attributes 1.0.8.

Vít Ondruch vondruch at fedoraproject.org
Wed Jun 18 14:29:02 UTC 2014


commit e91f0c9d147f66db2f9d81e11f80341a874f9d33
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Wed Jun 18 16:28:47 2014 +0200

    Updated to protected_attributes 1.0.8.

 .gitignore                        |    1 +
 rubygem-protected_attributes.spec |   23 ++++++++++-------------
 sources                           |    2 +-
 3 files changed, 12 insertions(+), 14 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..41aa999 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/protected_attributes-1.0.8.gem
diff --git a/rubygem-protected_attributes.spec b/rubygem-protected_attributes.spec
index 1c84235..8a97bbf 100644
--- a/rubygem-protected_attributes.spec
+++ b/rubygem-protected_attributes.spec
@@ -2,29 +2,24 @@
 %global gem_name protected_attributes
 
 Name: rubygem-%{gem_name}
-Version: 1.0.3
-Release: 2%{?dist}
+Version: 1.0.8
+Release: 1%{?dist}
 Summary: Protect attributes from mass assignment in Active Record models
 Group: Development/Languages
 License: MIT
 URL: https://github.com/rails/protected_attributes
 Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
-Requires: ruby(release)
-Requires: ruby(rubygems)
-Requires: rubygem(activemodel) >= 4.0.0
-Requires: rubygem(activemodel) < 5.0
 BuildRequires: ruby(release)
 BuildRequires: rubygems-devel
 BuildRequires: ruby
-BuildRequires: rubygem(actionpack) >= 4.0.0
+BuildRequires: rubygem(actionpack) >= 4.0.1
 BuildRequires: rubygem(actionpack) < 5.0
-BuildRequires: rubygem(activerecord) >= 4.0.0
+BuildRequires: rubygem(activerecord) >= 4.0.1
 BuildRequires: rubygem(activerecord) < 5.0
 BuildRequires: rubygem(minitest)
 BuildRequires: rubygem(mocha)
 BuildRequires: rubygem(sqlite3)
 BuildArch: noarch
-Provides: rubygem(%{gem_name}) = %{version}
 
 %description
 Protect attributes from mass assignment.
@@ -64,10 +59,9 @@ pushd .%{gem_instdir}
 # Remove Bundler. It just complicates everything.
 sed -i "/require 'bundler\/setup'/d" test/test_helper.rb
 
-# active_model/mass_assignment_security must be required on command line to
-# make the test suite pass.
-# https://github.com/rails/protected_attributes/issues/22
-ruby -I.:lib:test -ractive_model/mass_assignment_security -e "Dir.glob('test/**/*_test.rb').each {|t| require t}"
+# Test suite must be executed in order.
+# https://github.com/rails/protected_attributes/issues/38
+ruby -Ilib:test -e 'Dir.glob("./test/**/*_test.rb").sort.each &method(:require)'
 popd
 
 
@@ -84,6 +78,9 @@ popd
 %{gem_instdir}/test
 
 %changelog
+* Wed Jun 18 2014 Vít Ondruch <vondruch at redhat.com> - 1.0.8-1
+- Updated to protected_attributes 1.0.8.
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.3-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/sources b/sources
index 8a53461..cb869c8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-dbe97d2741541aec52a3f659dee767f4  protected_attributes-1.0.3.gem
+121d2faeb759e2de0a173dfe77b2432b  protected_attributes-1.0.8.gem


More information about the scm-commits mailing list