From 749ac9bcc177ddb0fa60ac14f39c9be62ac7e1da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Thu, 3 Jan 2013 13:55:02 +0100 Subject: [PATCH] Updated to the Mocha 0.13.1. --- .gitignore | 1 + rubygem-mocha.spec | 33 +++++++++++++++++++++------------ sources | 2 +- 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 2577aeb..8aec07d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ mocha-0.9.7.gem /mocha-0.10.0.gem /mocha-0.11.0.gem /mocha-0.12.1.gem +/mocha-0.13.1.gem diff --git a/rubygem-mocha.spec b/rubygem-mocha.spec index 717679b..d1e027e 100644 --- a/rubygem-mocha.spec +++ b/rubygem-mocha.spec @@ -3,7 +3,7 @@ Summary: Mocking and stubbing library Name: rubygem-%{gem_name} -Version: 0.12.1 +Version: 0.13.1 Release: 1%{?dist} Group: Development/Languages License: MIT and Ruby @@ -36,28 +36,34 @@ This package contains documentation for %{name}. %prep +%setup -q -c -T +mkdir -p .%{gem_dir} +gem install --local --install-dir .%{gem_dir} \ + --force %{SOURCE0} %build %install -rm -rf %{buildroot} mkdir -p %{buildroot}%{gem_dir} -gem install --local --install-dir %{buildroot}%{gem_dir} \ - --force --rdoc %{SOURCE0} +cp -pa .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ %check pushd %{buildroot}%{gem_instdir} -ruby -e "Dir.glob('./test/**/*_test.rb').each {|t| require t}" +# Each part of test suite must be run separately, otherwise the test suite fails. +# https://github.com/freerange/mocha/issues/121 +ruby -e "Dir.glob('./test/unit/**/*_test.rb').each {|t| require t}" +ruby -e "Dir.glob('./test/acceptance/**/*_test.rb').each {|t| require t}" +ruby -e "Dir.glob('./test/integration/**/*_test.rb').each {|t| require t}" popd %files -%exclude %{gem_instdir}/.gemtest +%exclude %{gem_instdir}/.* %exclude %{gem_instdir}/init.rb -%exclude %{gem_instdir}/mocha.gemspec -%doc %{gem_instdir}/COPYING.rdoc -%doc %{gem_instdir}/README.rdoc -%doc %{gem_instdir}/MIT-LICENSE.rdoc -%doc %{gem_instdir}/RELEASE.rdoc +%doc %{gem_instdir}/COPYING.md +%doc %{gem_instdir}/README.md +%doc %{gem_instdir}/MIT-LICENSE.md +%doc %{gem_instdir}/RELEASE.md %dir %{gem_instdir} %{gem_libdir} %{gem_cache} @@ -68,12 +74,15 @@ popd %doc %{gem_docdir} %{gem_instdir}/Rakefile %{gem_instdir}/build-matrix.rb -%{gem_instdir}/examples/ +%{gem_instdir}/mocha.gemspec %{gem_instdir}/gemfiles/ %{gem_instdir}/test/ %changelog +* Wed Jan 02 2013 Vít Ondruch - 0.13.1-1 +- Updated to the Mocha 0.13.1. + * Mon Jul 23 2012 Bohuslav Kabrda - 0.12.1-1 - Update to Mocha 0.12.1, as this version is needed by ActionPack 3.2.6 tests. diff --git a/sources b/sources index dd00ebb..086b373 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -53ccd14fc7a17fe076e1e33b751f7418 mocha-0.12.1.gem +bfcb1a14b902d9e77e8b341b9a3ac186 mocha-0.13.1.gem