[rubygem-formatador] Update to 0.2.4.

Bohuslav Kabrda bkabrda at fedoraproject.org
Mon Nov 5 09:54:11 UTC 2012


commit a6c76668425ff4bdffb503a32791218f4c2ffdaa
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Mon Nov 5 10:54:06 2012 +0100

    Update to 0.2.4.

 .gitignore              |    1 +
 rubygem-formatador.spec |   21 +++++++++------------
 sources                 |    2 +-
 3 files changed, 11 insertions(+), 13 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index edacf19..2d195a5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /formatador-0.1.4.gem
 /formatador-0.2.1.gem
+/formatador-0.2.4.gem
diff --git a/rubygem-formatador.spec b/rubygem-formatador.spec
index c9cc99a..e238956 100644
--- a/rubygem-formatador.spec
+++ b/rubygem-formatador.spec
@@ -4,15 +4,12 @@
 
 Summary: Ruby STDOUT text formatting
 Name: rubygem-%{gem_name}
-Version: 0.2.1
-Release: 5%{?dist}
+Version: 0.2.4
+Release: 1%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://github.com/geemus/%{gem_name}
 Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
-# TODO: Fix tests failing when redirected to a file, reported at
-# https://github.com/geemus/formatador/commit/a874311f52a34b9a1f1d0fe9fef20a095b79f941
-Patch0: formatador-fix-tests-when-redirecting-to-file.patch
 Requires: ruby(rubygems)
 Requires: ruby(abi) = 1.9.1
 BuildRequires: rubygems-devel
@@ -40,10 +37,6 @@ mkdir -p .%{gem_dir}
 gem install --local --install-dir .%{gem_dir} \
             --force --rdoc %{SOURCE0}
 
-pushd .%{gem_instdir}
-%patch0 -p8
-popd
-
 %build
 
 %install
@@ -54,9 +47,9 @@ cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
 %check
 %if 0%{bootstrap} < 1
 pushd .%{gem_instdir}
-# fix "uninitialized constant StringIO" until its in the gem, as reported in https://github.com/geemus/formatador/issues/5
-sed -i "1i\require 'stringio'" tests/tests_helper.rb
-shindo
+# if we don't use -Ilib, the already installed (perhaps older) gem will be used
+# but we want to test the actually packaged
+RUBYOPT=-Ilib shindo
 popd
 %endif
 
@@ -69,12 +62,16 @@ popd
 
 %files doc
 %doc %{gem_docdir}
+%doc %{gem_instdir}/changelog.txt
 %{gem_instdir}/Gemfile
 %{gem_instdir}/Rakefile
 %{gem_instdir}/tests
 %{gem_instdir}/formatador.gemspec
 
 %changelog
+* Mon Nov 05 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 0.2.4-1
+- Update to 0.2.4.
+
 * Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.1-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 
diff --git a/sources b/sources
index c0cb067..6073ecf 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-50e9fd2e7b31a2e6e0f77e8f041fe2f1  formatador-0.2.1.gem
+724e245e4b983f24723cda7d456c9bab  formatador-0.2.4.gem


More information about the scm-commits mailing list