[DRE-commits] [ruby-rack-flash3] 03/07: fix_requires.patch: amended to also fix running tests under autopkgtest
Antonio Terceiro
terceiro at moszumanska.debian.org
Tue Aug 9 15:09:47 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-rack-flash3.
commit 9fe8069e139d380133ecb1993153a94454c9314d
Author: Antonio Terceiro <terceiro at debian.org>
Date: Tue Aug 9 11:27:10 2016 -0300
fix_requires.patch: amended to also fix running tests under autopkgtest
---
debian/changelog | 1 +
debian/patches/fix_requires.patch | 7 ++++++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index de582e2..42191c0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ ruby-rack-flash3 (1.0.5-2) unstable; urgency=medium
* Team upload.
* Rebuild with a newer gem2deb adds Rubygems integration (Closes: #830924)
* Update packaging with a new `dh-make-ruby -w` run
+ * fix_requires.patch: amended to also fix running tests under autopkgtest
-- Antonio Terceiro <terceiro at debian.org> Tue, 09 Aug 2016 11:24:14 -0300
diff --git a/debian/patches/fix_requires.patch b/debian/patches/fix_requires.patch
index 499db15..5f76115 100644
--- a/debian/patches/fix_requires.patch
+++ b/debian/patches/fix_requires.patch
@@ -9,12 +9,17 @@ Forwarded: no
--- a/test/helper.rb
+++ b/test/helper.rb
-@@ -1,5 +1,3 @@
+@@ -1,9 +1,7 @@
-require 'rubygems'
-gem 'sinatra', '<=1.3.2'
require 'sinatra/base'
require 'bacon'
require 'rack/test'
+-require File.join(File.dirname(__FILE__), *%w[.. lib rack-flash])
++require 'rack-flash'
+
+ class String
+ [:green, :yellow, :red].each { |c| define_method(c) { self } }
@@ -48,4 +46,4 @@ module Rack
@sweeped
end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rack-flash3.git
More information about the Pkg-ruby-extras-commits
mailing list