[rubygem-minitest] Update to minitest 5.3.1.

Vít Ondruch vondruch at fedoraproject.org
Thu Apr 3 07:17:38 UTC 2014


commit 8b98dd7e5576a482c9c14f2adeafbc8db2e14629
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Thu Apr 3 09:17:20 2014 +0200

    Update to minitest 5.3.1.

 .gitignore            |    1 +
 rubygem-minitest.spec |  129 ++++++++++++++++++++++++++----------------------
 sources               |    2 +-
 3 files changed, 72 insertions(+), 60 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index eb29920..d48423e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /minitest-4.2.0.gem
 /minitest-4.7.0.gem
+/minitest-5.3.1.gem
diff --git a/rubygem-minitest.spec b/rubygem-minitest.spec
index 114ff4c..155992f 100644
--- a/rubygem-minitest.spec
+++ b/rubygem-minitest.spec
@@ -1,101 +1,112 @@
 # Generated from minitest-1.4.2.gem by gem2rpm -*- rpm-spec -*-
-%global	gem_name minitest
-%global gemname %{gem_name}
+%global gem_name minitest
 
-%global	gemdir %{gem_dir}
-%global	geminstdir %{gem_instdir}
-
-
-Summary: Small and fast replacement for ruby's huge and slow test/unit
-Name: rubygem-%{gemname}
-Version: 4.7.0
-Release: 2%{?dist}
+Name: rubygem-%{gem_name}
+Version: 5.3.1
+Release: 1%{?dist}
+Summary: minitest provides a complete suite of testing facilities
 Group: Development/Languages
 License: MIT
-URL: http://rubyforge.org/projects/bfts
-Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
-Requires: ruby(rubygems)
+URL: https://github.com/seattlerb/minitest
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
 Requires: ruby(release)
-BuildRequires: rubygems-devel
+Requires: ruby(rubygems)
 BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
 BuildArch: noarch
-Provides: rubygem(%{gemname}) = %{version}
+Provides: rubygem(%{gem_name}) = %{version}
 
 %description
-minitest/unit is a small and fast replacement for ruby's huge and slow
-test/unit. This is meant to be clean and easy to use both as a regular
-test writer and for language implementors that need a minimal set of
-methods to bootstrap a working unit test suite.
+minitest provides a complete suite of testing facilities supporting
+TDD, BDD, mocking, and benchmarking.
+
+minitest/unit is a small and incredibly fast unit testing framework.
+It provides a rich set of assertions to make your tests clean and
+readable.
+
+minitest/spec is a functionally complete spec engine. It hooks onto
+minitest/unit and seamlessly bridges test assertions over to spec
+expectations.
+
+minitest/benchmark is an awesome way to assert the performance of your
+algorithms in a repeatable manner. Now you can assert that your newb
+co-worker doesn't replace your linear algorithm with an exponential
+one!
 
-miniunit/spec is a functionally complete spec engine.
+minitest/mock by Steven Baker, is a beautifully tiny mock (and stub)
+object framework.
+
+minitest/pride shows pride in testing and adds coloring to your test
+output. I guess it is an example of how to write IO pipes too. :P
+minitest/unit is meant to have a clean implementation for language
+implementors that need a minimal set of methods to bootstrap a working
+test suite. For example, there is no magic involved for test-case
+discovery.
+
+minitest doesn't reinvent anything that ruby already provides, like:
+classes, modules, inheritance, methods. This means you only have to
+learn ruby to use minitest and all of your regular OO practices like
+extract-method refactorings still apply.
 
-miniunit/mock, by Steven Baker, is a beautifully tiny mock object framework.
 
 %package doc
 Summary: Documentation for %{name}
 Group: Documentation
-
 Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
 
 %description doc
-This package contains documentation for %{name}.
+Documentation for %{name}.
 
 %prep
 %setup -q -c -T
 
-mkdir -p .%{gemdir}
 %gem_install -n %{SOURCE0}
 
-find . -name \*gem -exec chmod 0644 {} \;
-
 %build
 
 %install
-rm -rf %{buildroot}
-mkdir -p %{buildroot}%{gemdir}
-cp -a .%{gemdir}/* %{buildroot}%{gemdir}/
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
 
-find %{buildroot}%{geminstdir}/lib -type f | \
+# Remove unnecessary shebang.
+# https://github.com/seattlerb/minitest/pull/419
+find %{buildroot}%{gem_instdir}/lib -type f | \
   xargs -n 1 sed -i  -e '/^#!\/usr\/bin\/ruby.*/d'
-# Ships with extremely tight permissions, bring them inline with other gems
-find %{buildroot}%{geminstdir} -type f | \
-  xargs chmod 0644
-
-rm -f %{buildroot}%{geminstdir}/{.autotest,.gemtest}
 
-%clean
-rm -rf %{buildroot}
+# Remove permissions.
+# https://github.com/seattlerb/minitest/pull/418
+find %{buildroot}%{gem_instdir}/test -type f | \
+  xargs chmod 0644
 
 %check
-pushd .%{geminstdir}
+pushd .%{gem_instdir}
 
-# spec test suite is unstable.
-# https://github.com/seattlerb/minitest/issues/257
-mv test/minitest/test_minitest_spec.rb{,.ignore}
+ruby -Ilib:test -e 'Dir.glob("./test/minitest/test_*.rb").each {|f| require f}'
 
-for f in test/minitest/test_*.rb
-do
-	ruby -Ilib:.:./test $f
-done
+popd
 
 %files
-%defattr(-,root,root,-)
-%doc %{geminstdir}/History.txt
-%doc %{geminstdir}/Manifest.txt
-%doc %{geminstdir}/README.txt
-%dir %{geminstdir}
-%{geminstdir}/lib
-%{gemdir}/cache/%{gemname}-%{version}.gem
-%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%doc %{gem_instdir}/History.txt
+%doc %{gem_instdir}/Manifest.txt
+%doc %{gem_instdir}/README.txt
+%dir %{gem_instdir}
+%exclude %{gem_instdir}/.*
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
 
 %files doc
-%defattr(-,root,root,-)
-%{geminstdir}/Rakefile
-%{geminstdir}/test
-%{geminstdir}/design_rationale.rb
-%{gemdir}/doc/%{gemname}-%{version}
+%doc %{gem_docdir}
+%{gem_instdir}/Rakefile
+%{gem_instdir}/test
+%{gem_instdir}/design_rationale.rb
 
 %changelog
+* Tue Apr 01 2014 Vít Ondruch <vondruch at redhat.com> - 5.3.1-1
+- Update to minitest 5.3.1.
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.7.0-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
@@ -109,7 +120,7 @@ done
 * Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.10.1-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 
-* Sun Jan 21 2012 Mamoru Tasaka <mtasaka at fedoraproject.org> - 2.10.1-1
+* Sun Jan 22 2012 Mamoru Tasaka <mtasaka at fedoraproject.org> - 2.10.1-1
 - 2.10.1
 
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.6.0-4
diff --git a/sources b/sources
index b8d5fe4..846e3e9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-3f527181eb7a1e00c92d0088fff94525  minitest-4.7.0.gem
+5ce4ad71e00e7eeb03b71a6ecdc91e70  minitest-5.3.1.gem


More information about the scm-commits mailing list