Update to rack-test 0.6.2.

f38
Vít Ondruch 12 years ago
parent 76a019c662
commit f07ada20f2

1
.gitignore vendored

@ -2,3 +2,4 @@ rack-test-0.4.0.gem
/rack-test-0.5.4.gem
/rack-test-0.6.0.gem
/rack-test-0.6.1.gem
/rack-test-0.6.2.gem

@ -2,20 +2,18 @@
Summary: Simple testing API built on Rack
Name: rubygem-%{gem_name}
Version: 0.6.1
Version: 0.6.2
Release: 1%{?dist}
Group: Development/Languages
License: MIT
URL: http://gitrdoc.com/brynary/rack-test/tree/master
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: ruby(abi) = 1.9.1
Requires: ruby(rubygems)
Requires: rubygem(rack) >= 1.0.0
BuildRequires: rubygems-devel
BuildRequires: rubygem(rack) >= 1.0.0
BuildRequires: rubygem(rake)
BuildRequires: rubygem(rspec-core)
BuildRequires: rubygem(rspec)
BuildRequires: rubygem(sinatra)
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
@ -26,52 +24,63 @@ own or as a reusable starting point for Web frameworks and testing libraries
to build on. Most of its initial functionality is an extraction of Merb 1.0's
request helpers feature.
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}
%prep
%prep
%setup -q -c -T
mkdir -p .%{gem_dir}
gem install --local --install-dir .%{gem_dir} \
--force %{SOURCE0}
%build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{gem_dir}
gem install --local --install-dir $RPM_BUILD_ROOT%{gem_dir} \
--force --rdoc %{SOURCE0}
sed -i -e "s|~>|>=|" $RPM_BUILD_ROOT%{gem_instdir}/spec/spec_helper.rb
rm $RPM_BUILD_ROOT%{gem_instdir}/.gitignore
rm $RPM_BUILD_ROOT%{gem_instdir}/.document
rm $RPM_BUILD_ROOT%{gem_instdir}/Gemfile*
mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%check
pushd %{buildroot}%{gem_instdir}
mv -f spec/spec_helper.rb spec/spec_helper.rb.orig
sed -e '/require "bundler\/setup"/d' spec/spec_helper.rb.orig > spec/spec_helper.rb
rspec -P "./**/*_spec.rb" -I. spec
mv -f spec/spec_helper.rb.orig spec/spec_helper.rb
pushd .%{gem_instdir}
sed -i '/require "bundler\/setup"/d' spec/spec_helper.rb
rspec spec
popd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%dir %{gem_instdir}
%exclude %{gem_instdir}/.*
%{gem_libdir}
%{gem_instdir}/spec
%{gem_instdir}/Rakefile
%doc %{gem_instdir}/MIT-LICENSE.txt
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.rdoc
%doc %{gem_instdir}/MIT-LICENSE.txt
%doc %{gem_instdir}/History.txt
%doc %{gem_instdir}/Thorfile
%doc %{gem_instdir}/%{gem_name}.gemspec
%{gem_cache}
%{gem_spec}
%{gem_instdir}/Gemfile*
%{gem_instdir}/Thorfile
%{gem_instdir}/%{gem_name}.gemspec
%{gem_instdir}/spec
%{gem_instdir}/Rakefile
%changelog
* Thu Nov 01 2012 Vít Ondruch <vondruch@redhat.com> - 0.6.2-1
- Updated to rack-test 0.6.2.
* Wed Jul 18 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.6.1-1
- Updated to Rack Test 0.6.1.

@ -1 +1 @@
8226527d4c84f96107bcf7aa87700d3c rack-test-0.6.1.gem
cfb89a03ea96b80d2c82ce88168a6ae3 rack-test-0.6.2.gem

Loading…
Cancel
Save