[rubygem-activemodel] Update to ActiveModel 3.2.7.

Vít Ondruch vondruch at fedoraproject.org
Mon Jul 30 12:21:50 UTC 2012


commit 7b6f9adfca5c43082cf92348ae53c366f90a0150
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Mon Jul 30 14:21:25 2012 +0200

    Update to ActiveModel 3.2.7.

 .gitignore               |    2 ++
 rubygem-activemodel.spec |   34 ++++++++++++++++++----------------
 sources                  |    4 ++--
 3 files changed, 22 insertions(+), 18 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 7248b11..10aa8fb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,5 @@
 /activemodel-3.0.15.gem
 /activemodel-3.2.6-tests.tgz
 /activemodel-3.2.6.gem
+/activemodel-3.2.7-tests.tgz
+/activemodel-3.2.7.gem
diff --git a/rubygem-activemodel.spec b/rubygem-activemodel.spec
index 92d72a5..6049255 100644
--- a/rubygem-activemodel.spec
+++ b/rubygem-activemodel.spec
@@ -1,21 +1,20 @@
 %global gem_name activemodel
+%global rubyabi 1.9.1
 
 
-%global testdir %{_tmppath}/%{gem_name}-%{version}
-
 Summary: A toolkit for building modeling frameworks
 Name: rubygem-%{gem_name}
-Version: 3.2.6
+Version: 3.2.7
 Release: 1%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://www.rubyonrails.org
 Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
-# git clone https://github.com/rails/rails.git && cd rails/activemodel && git checkout v3.2.6
-# tar czvf activemodel-3.2.6-tests.tgz test/
+# git clone https://github.com/rails/rails.git && cd rails/activemodel && git checkout v3.2.7
+# tar czvf activemodel-3.2.7-tests.tgz test/
 Source1: %{gem_name}-%{version}-tests.tgz
 # Let's keep Requires and BuildRequires sorted alphabeticaly
-Requires: ruby(abi) = 1.9.1
+Requires: ruby(abi) = %{rubyabi}
 Requires: ruby(rubygems)
 Requires: rubygem(activesupport) = %{version}
 Requires: rubygem(builder) => 3.0.0
@@ -46,34 +45,34 @@ Requires:%{name} = %{version}-%{release}
 Documentation for %{name}
 
 %prep
+%setup -q -c -T
+mkdir -p .%{gem_dir}
+gem install --local --install-dir .%{gem_dir} \
+            --force %{SOURCE0}
 
 %build
 
 %install
 mkdir -p %{buildroot}%{gem_dir}
-gem install --local --install-dir %{buildroot}%{gem_dir} \
-            --force --rdoc %{SOURCE0}
+cp -a .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
 
 %check
-rm -rf %{testdir}
-mkdir %{testdir}
-tar xzvf %{SOURCE1} -C %{testdir}
-pushd %{testdir}
+pushd .%{gem_instdir}
+tar xzvf %{SOURCE1}
 
 # load_path is not available, remove its require.
 sed -i '1,2d' test/cases/helper.rb
 
-ruby -I%{buildroot}%{gem_libdir} -Itest -e "Dir.glob('./test/**/*_test.rb').each {|t| require t}"
-
+ruby -Ilib:test -e "Dir.glob('./test/**/*_test.rb').each {|t| require t}"
 popd
-rm -rf %{testdir}
 
 %files
 %dir %{gem_instdir}
 %{gem_libdir}
 %doc %{gem_instdir}/README.rdoc
 %doc %{gem_instdir}/MIT-LICENSE
-%{gem_cache}
+%exclude %{gem_cache}
 %{gem_spec}
 
 %files doc
@@ -82,6 +81,9 @@ rm -rf %{testdir}
 
 
 %changelog
+* Mon Jul 30 2012 Vít Ondruch <vondruch at redhat.com> - 3.2.7-1
+- Update to ActiveModel 3.2.7.
+
 * Wed Jul 18 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 3.2.6-1
 - Update to ActiveModel 3.2.6.
 - Remove no longer needed I18n dependency.
diff --git a/sources b/sources
index 77ede34..3c33a71 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-a92283a4e3784312b8917a1eebf92ba6  activemodel-3.2.6-tests.tgz
-f7e68c8fa3d230cadbb7cc6fe853d076  activemodel-3.2.6.gem
+0c8a6390008d15bb8f8ba8952155fcec  activemodel-3.2.7-tests.tgz
+9273254dd515d25e16c7294165391a1e  activemodel-3.2.7.gem


More information about the scm-commits mailing list