From 86ed08030e788e7cd0d29399b2b302e664640cd3 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Thu, 14 Aug 2014 13:13:29 +0900 Subject: [PATCH] Clearner way to specify minitest 4.x --- rubygem-rspec-expectations.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rubygem-rspec-expectations.spec b/rubygem-rspec-expectations.spec index df2d5f2..18efc1a 100644 --- a/rubygem-rspec-expectations.spec +++ b/rubygem-rspec-expectations.spec @@ -3,7 +3,7 @@ %global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||') %global fullver %{majorver}%{?preminorver} -%global fedorarel 3 +%global fedorarel 4 %global gem_name rspec-expectations @@ -69,6 +69,8 @@ gem unpack %{SOURCE0} cd %{gem_name}-%{version} %patch0 -p2 +sed -i -e "s@\(require 'test/unit'\)@gem 'minitest', '~> 4' ;\1@" \ + spec/spec_helper.rb gem specification -l --ruby %{SOURCE0} > %{gem_name}.gemspec gem build %{gem_name}.gemspec @@ -93,7 +95,6 @@ rm -f %{buildroot}%{gem_instdir}/{.document,.gitignore,.travis.yml,.yardopts} %check LANG=en_US.UTF-8 pushd .%{gem_instdir} -export RUBYLIB=$(gem which minitest/parallel_each -a | grep minitest-4 | sed -e 's|/minitest/parallel.*$||') ruby -rubygems -Ilib/ -S rspec spec/ popd %endif @@ -117,6 +118,9 @@ popd %exclude %{gem_instdir}/spec/ %changelog +* Thu Aug 14 2014 Mamoru TASAKA - 2.14.5-4 +- Clearner way to specify minitest 4.x + * Wed Aug 13 2014 Mamoru TASAKA - 2.14.5-3 - Backport temporarily be_truthy matchers and so on