[rubygem-sprockets-rails] Update to sprockets-rails 2.2.4.

Vít Ondruch vondruch at fedoraproject.org
Thu Jan 29 12:06:27 UTC 2015


commit 3c57bf760f4cfc0dc692a503c51053aada74d284
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Thu Jan 29 13:05:33 2015 +0100

    Update to sprockets-rails 2.2.4.

 .gitignore                   |    2 ++
 rubygem-sprockets-rails.spec |   33 +++++++++++++++++----------------
 sources                      |    4 ++--
 3 files changed, 21 insertions(+), 18 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 9e68e6c..f973ceb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,5 @@
 /sprockets-rails-2.0.1.gem
 /sprockets-rails-2.1.3-tests.tgz
 /sprockets-rails-2.1.3.gem
+/sprockets-rails-2.2.4-tests.tgz
+/sprockets-rails-2.2.4.gem
diff --git a/rubygem-sprockets-rails.spec b/rubygem-sprockets-rails.spec
index 89915ac..ffef848 100644
--- a/rubygem-sprockets-rails.spec
+++ b/rubygem-sprockets-rails.spec
@@ -1,11 +1,11 @@
 # Generated from sprockets-rails-2.0.0.gem by gem2rpm -*- rpm-spec -*-
 %global gem_name sprockets-rails
 
-# Disable tests for this build due to broken rubygem-rack dep in rawhide
-%global enable_test 1
+# rubygem(rails) requires rubygem-sprockets-rails.
+%{?_with_bootstrap: %global bootstrap 1}
 
 Name: rubygem-%{gem_name}
-Version: 2.1.3
+Version: 2.2.4
 Release: 1%{?dist}
 Summary: Sprockets Rails integration
 Group: Development/Languages
@@ -14,13 +14,14 @@ URL: https://github.com/rails/sprockets-rails
 Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
 # Get the tests
 # git clone https://github.com/rails/sprockets-rails.git && cd sprockets-rails/
-# git checkout v2.1.3
-# tar czvf sprockets-rails-2.1.3-tests.tgz test/
+# git checkout v2.2.4
+# tar czvf sprockets-rails-2.2.4-tests.tgz test/
 Source2: sprockets-rails-%{version}-tests.tgz
 BuildRequires: ruby(release)
 BuildRequires: rubygems-devel
 BuildRequires: ruby
-%if 0%{enable_test} > 0
+%if ! 0%{?bootstrap}
+# Dependencies for %%check
 BuildRequires: rubygem(minitest)
 BuildRequires: rubygem(rails) >= 3.0
 BuildRequires: rubygem(rake)
@@ -49,37 +50,37 @@ gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
 gem build %{gem_name}.gemspec
 %gem_install
 
-# Move the tests into place
-tar xzvf %{SOURCE2} -C .%{gem_instdir}
-
 %install
 mkdir -p %{buildroot}%{gem_dir}
 cp -pa .%{gem_dir}/* \
         %{buildroot}%{gem_dir}/
 
+%if ! 0%{?bootstrap}
 %check
-%if 0%{enable_test} > 0
-pushd ./%{gem_instdir}
-# Explicitly require some libraries to prevent test suite errors.
-# https://github.com/rails/rails/issues/16050
-ruby -Ilib -ractive_support -raction_view -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
+pushd .%{gem_instdir}
+# Move the tests into place
+tar xzvf %{SOURCE2}
+
+ruby -Ilib -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
 popd
 %endif
 
 
 %files
+%license %{gem_instdir}/LICENSE
 %dir %{gem_instdir}
 %{gem_libdir}
 %exclude %{gem_cache}
 %{gem_spec}
-%doc %{gem_instdir}/LICENSE
 
 %files doc
 %doc %{gem_docdir}
 %doc %{gem_instdir}/README.md
-%{gem_instdir}/test
 
 %changelog
+* Wed Jan 28 2015 Vít Ondruch <vondruch at redhat.com> - 2.2.4-1
+- Update to sprockets-rails 2.2.4.
+
 * Fri Jul 04 2014 Vít Ondruch <vondruch at redhat.com> - 2.1.3-1
 - Update to sprockets-rails 2.1.3.
 
diff --git a/sources b/sources
index 5a6c83c..9643910 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-dfbd67ce69f11b4042d454f07c8b19c6  sprockets-rails-2.1.3-tests.tgz
-4acecc761b51a2adeb82ee5207175d6e  sprockets-rails-2.1.3.gem
+3c266e6e40097723ab23bf44cdc3b377  sprockets-rails-2.2.4-tests.tgz
+8a49edf5f6f29a3066291e137f2df1b6  sprockets-rails-2.2.4.gem


More information about the scm-commits mailing list