Project

General

Profile

« Previous | Next » 

Revision b2eb8588

Added by Dominic Cleal about 10 years ago

Import rubygem-sinatra for EL7

View differences:

rel-eng/tito.props
rubygem-powerbar
rubygem-rack
rubygem-rack-protection
rubygem-sinatra
rubygem-table_print
rubygem-terminal-table
rubygem-tilt
......
rubygem-mime-types
rubygem-rack
rubygem-rack-protection
rubygem-sinatra
rubygem-tilt
[foreman-nightly-fedora19]
rubygem-sinatra/rubygem-sinatra-1.3.5-fix-tests-with-rdoc-4.patch
commit 11f90fd2957cf5a2b3d5c3421f28b910e58b3fd9
Author: Bohuslav Kabrda <bkabrda@redhat.com>
Date: Thu Mar 7 15:36:38 2013 +0100
Fix test failures with RDoc 4 broken by commit rdoc/rdoc@7f0033d
diff --git a/test/rdoc_test.rb b/test/rdoc_test.rb
index 7d22a1c..3fa7872 100644
--- a/test/rdoc_test.rb
+++ b/test/rdoc_test.rb
@@ -16,13 +16,13 @@ class RdocTest < Test::Unit::TestCase
it 'renders inline rdoc strings' do
rdoc_app { rdoc '= Hiya' }
assert ok?
- assert_body /<h1[^>]*>Hiya<\/h1>/
+ assert_body /<h1[^>]*>Hiya(<span><a href=\"#label-Hiya\">&para;<\/a> <a href=\"#documentation\">&uarr;<\/a><\/span>)?<\/h1>/
end
it 'renders .rdoc files in views path' do
rdoc_app { rdoc :hello }
assert ok?
- assert_body /<h1[^>]*>Hello From RDoc<\/h1>/
+ assert_body /<h1[^>]*>Hello From RDoc(<span><a href=\"#label-Hello\+From\+RDoc\">&para;<\/a> <a href=\"#documentation\">&uarr;<\/a><\/span>)?<\/h1>/
end
it "raises error if template not found" do
rubygem-sinatra/rubygem-sinatra.spec
%global gem_name sinatra
%global bootstrap 1
Summary: Ruby-based web application framework
Name: rubygem-%{gem_name}
Version: 1.3.5
Release: 1%{?dist}
Group: Development/Languages
License: MIT
URL: http://sinatra.rubyforge.org
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
# https://github.com/sinatra/sinatra/pull/660
Patch0: %{name}-1.3.5-fix-tests-with-rdoc-4.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: ruby(release)
Requires: ruby(rubygems)
Requires: rubygem(rack) >= 1.4.0
Requires: rubygem(rack-protection) >= 1.3.0
Requires: rubygem(tilt) >= 1.3.3
BuildRequires: rubygems-devel
%if 0%{bootstrap} < 1
BuildRequires: rubygem(rack) >= 1.4.0
BuildRequires: rubygem(rack-test)
BuildRequires: rubygem(rack-protection) >= 1.3.0
BuildRequires: rubygem(tilt) >= 1.3.3
BuildRequires: rubygem(minitest)
%endif
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
Epoch: 1
%description
Sinatra is a DSL intended for quickly creating web-applications in Ruby
with minimal effort.
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: ruby(rubygems)
%description doc
This package contains documentation for %{name}.
%prep
%setup -q -c -T
%{__mkdir_p} .%{gem_dir}
%gem_install -n %{SOURCE0}
pushd .%{gem_instdir}
%patch0 -p1
popd
%build
%check
%if 0%{bootstrap} < 1
pushd .%{gem_instdir}
%define test_files $(find * -path 'test/*_test.rb' -not -path "test/filter_test.rb" -not -path "test/integration_test.rb" | awk '{ print "-r"$1 }')
ruby -I. %{test_files} -e ""
popd
%endif
%install
mkdir -p %{buildroot}%{gem_dir}
cp -rv .%{gem_dir}/* %{buildroot}%{gem_dir}
rm %{buildroot}/%gem_instdir/.yardopts # Remove YARD configuration
%files
%dir %{gem_instdir}
%{gem_libdir}
%{gem_instdir}/sinatra.gemspec
%{gem_instdir}/test
%{gem_instdir}/Rakefile
%{gem_cache}
%{gem_spec}
%files doc
%{gem_docdir}
%{gem_instdir}/README.rdoc
%{gem_instdir}/README.*.rdoc
%{gem_instdir}/LICENSE
%{gem_instdir}/AUTHORS
%{gem_instdir}/CHANGES
%{gem_instdir}/examples
%{gem_instdir}/Gemfile
%changelog
* Thu Mar 07 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1:1.3.5-1
- Update to version 1.3.5.
- Run tests again.
* Thu Feb 28 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1:1.3.4-4
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
* Mon Feb 25 2013 Michal Fojtik <mfojtik@redhat.com> - 1;1.3.4-3
- Rebuild using new rack-protection
* Thu Feb 21 2013 Michal Fojtik <mfojtik@redhat.com> - 1;1.3.4-2
- Fixed rack-protection version
* Thu Feb 21 2013 Michal Fojtik <mfojtik@redhat.com> - 1;1.3.4-1
- Release 1.3.4
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.3.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.3.2-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Tue Jan 24 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:1.3.2-8
- Set %%bootstrap to 0 to allow tests.
* Tue Jan 24 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:1.3.2-7
- Rebuilt for Ruby 1.9.3.
- Introduced %%bootstrap macro to deal with dependency loop.
* Mon Jan 02 2012 Michal Fojtik <mfojtik@redhat.com> - 1.3.2-6
- Fixed Epoch once again
* Mon Jan 02 2012 Michal Fojtik <mfojtik@redhat.com> - 1.3.2-5
- Added Epoch to -dc subpackage
* Mon Jan 02 2012 Michal Fojtik <mfojtik@redhat.com> - 1.3.2-4
- Rebuild for missing -dc subpackage
* Mon Jan 02 2012 Michal Fojtik <mfojtik@redhat.com> - 1.3.2-3
- Added missing build requires
* Mon Jan 02 2012 Michal Fojtik <mfojtik@redhat.com> - 1.3.2-2
- Added tests
- Added doc subpackage
* Mon Jan 02 2012 Michal Fojtik <mfojtik@redhat.com> - 1.3.2-2
- Version bump
* Thu Feb 10 2011 Michal Fojtik <mfojtik@redhat.com> - 1.2.6-1
- Version bump
* Thu Feb 10 2011 Michal Fojtik <mfojtik@redhat.com> - 1.2.0-1
- Version bump
* Thu Feb 10 2011 Michal Fojtik <mfojtik@redhat.com> - 1.1.2-3
- Added tilt dependency
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Jan 10 2011 Michal Fojtik <mfojtik@redhat.com> - 1.1.2-1
- Version bump
* Thu Mar 25 2010 Michal Fojtik <mfojtik@redhat.com> - 1.0-1
- Sinatra now uses Tilt for rendering templates
- New helper methods
- New argument to specify the address to bind to
- Speed improvement in rendering templates
* Mon Feb 15 2010 Michal Fojtik <mfojtik@redhat.com> - 0.9.4-2
- Downgrade-Release
* Thu Jan 07 2010 Michal Fojtik <mfojtik@redhat.com> - 0.10.1-1
- Version-Release
- Added jp README
* Fri Jun 26 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.9.2-3
- Get rid of duplicate files (thanks to Mamoru Tasaka)
* Mon Jun 08 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.9.2-2
- Fix up documentation list
- Bring tests back
- Depend on ruby(abi)
- Replace defines with globals
* Fri Jun 05 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.9.2-1
- Package generated by gem2rpm
- Don't ship tests
- Fix up License
rubygem-sinatra/sinatra-1.3.5.gem
../.git/annex/objects/1m/p9/SHA256E-s307200--99e3b983ea7b69db834e5734a5bf352c203247b6c46a98efc9d8e5e8ddb7c6d6.5.gem/SHA256E-s307200--99e3b983ea7b69db834e5734a5bf352c203247b6c46a98efc9d8e5e8ddb7c6d6.5.gem

Also available in: Unified diff