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.5.4.gem
/rack-test-0.6.0.gem /rack-test-0.6.0.gem
/rack-test-0.6.1.gem /rack-test-0.6.1.gem
/rack-test-0.6.2.gem

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