|
|
|
@ -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 <vondruch@redhat.com> - 0.13.1-1
|
|
|
|
|
- Updated to the Mocha 0.13.1.
|
|
|
|
|
|
|
|
|
|
* Mon Jul 23 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.12.1-1
|
|
|
|
|
- Update to Mocha 0.12.1, as this version is needed by ActionPack 3.2.6 tests.
|
|
|
|
|
|
|
|
|
|