[DRE-commits] [ruby-rack-flash3] 06/06: fix_requires.patch: amend to also fix running tests under autopkgtest
Antonio Terceiro
terceiro at moszumanska.debian.org
Tue Aug 9 12:09:00 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 649015534da17da6e82b20680fb217a94d01e0c4
Author: Antonio Terceiro <terceiro at debian.org>
Date: Tue Aug 9 09:06:38 2016 -0300
fix_requires.patch: amend 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 8fabcd3..374991a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,7 @@ ruby-rack-flash3 (1.0.5-1) unstable; urgency=medium
* New upstream release
* Build with newer gem2deb enables Rubygems integration (Closes: #830924)
* Refresh packaging with a `dh-make-ruby -w` run
+ * fix_requires.patch: amend to also fix running tests under autopkgtest
-- Antonio Terceiro <terceiro at debian.org> Tue, 09 Aug 2016 09:00:41 -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