[DRE-commits] [ruby-slim] 04/06: Stop running tests using Sinatra as they need Sinatra's sources
Jérémy Bobbio
lunar at moszumanska.debian.org
Sat Apr 12 15:19:36 UTC 2014
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository ruby-slim.
commit 385c40f470a247dbaaa2508e02eec9aa0bbd464f
Author: Jérémy Bobbio <lunar at debian.org>
Date: Fri Apr 11 10:02:25 2014 +0200
Stop running tests using Sinatra as they need Sinatra's sources
---
debian/control | 2 +-
...01-Drop-tests-using-Sinatra-from-Rakefile.patch | 41 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index 8ad27c3..599f375 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: ruby
Priority: optional
Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
Uploaders: Eugene Lavnikevich <e.lavnikevich at sam-solutions.net>, Jérémy Bobbio <lunar at debian.org>
-Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), rake (>= 0.8.7), ruby-temple (>= 0.6.6~), ruby-tilt (>= 1.3.4~), ruby-sass (>= 3.1.0), ruby-minitest, ruby-kramdown, ruby-creole, ruby-builder, ruby-sinatra, asciidoctor, ruby-org
+Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), rake (>= 0.8.7), ruby-temple (>= 0.6.6~), ruby-tilt (>= 1.3.4~), ruby-sass (>= 3.1.0), ruby-minitest, ruby-kramdown, ruby-creole, ruby-builder, asciidoctor, ruby-org
Standards-Version: 3.9.5
Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-slim.git
Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-slim.git;a=summary
diff --git a/debian/patches/0001-Drop-tests-using-Sinatra-from-Rakefile.patch b/debian/patches/0001-Drop-tests-using-Sinatra-from-Rakefile.patch
new file mode 100644
index 0000000..10c9ee5
--- /dev/null
+++ b/debian/patches/0001-Drop-tests-using-Sinatra-from-Rakefile.patch
@@ -0,0 +1,41 @@
+From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= <lunar at debian.org>
+Date: Fri, 11 Apr 2014 10:01:12 +0200
+Subject: Drop tests using Sinatra from Rakefile
+
+They need files shipped with Sinatra source to work.
+---
+ Rakefile | 21 ---------------------
+ 1 file changed, 21 deletions(-)
+
+diff --git a/Rakefile b/Rakefile
+index 9c1da5f..6727820 100644
+--- a/Rakefile
++++ b/Rakefile
+@@ -46,27 +46,6 @@ namespace 'test' do
+ t.test_files = FileList['test/rails/test/test_*.rb']
+ t.verbose = true
+ end
+-
+- begin
+- require 'rubygems'
+- require 'sinatra'
+- spec = Gem::Specification.find_by_name('sinatra')
+- Rake::TestTask.new('sinatra') do |t|
+- # FIXME: Rename deprecated attribute
+- file = "#{spec.gem_dir}/test/slim_test.rb"
+- code = File.read(file)
+- code.gsub!('attr_wrapper', 'attr_quote')
+- File.open(file, 'w') {|out| out.write(code) }
+-
+- # Run Slim integration test in Sinatra
+- t.test_files = FileList[file]
+- t.verbose = true
+- end
+- rescue LoadError
+- task :sinatra do
+- abort 'Sinatra is not available'
+- end
+- end
+ end
+
+ begin
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b245259
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Drop-tests-using-Sinatra-from-Rakefile.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-slim.git
More information about the Pkg-ruby-extras-commits
mailing list