[DRE-commits] [ruby-ascii85] 03/04: refresh remove_rubygems.patch to remove the relative path when requiring the library in tests

Cédric Boutillier boutil at moszumanska.debian.org
Tue Oct 14 21:56:34 UTC 2014


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch master
in repository ruby-ascii85.

commit bbcc7df0f6ef9302b8f802af64591f5d9dcae32d
Author: Cédric Boutillier <boutil at debian.org>
Date:   Tue Oct 14 23:48:44 2014 +0200

    refresh remove_rubygems.patch to remove the relative path when requiring the library in tests
---
 debian/patches/remove_rubygems.patch | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/debian/patches/remove_rubygems.patch b/debian/patches/remove_rubygems.patch
index c52e6ff..64ff603 100644
--- a/debian/patches/remove_rubygems.patch
+++ b/debian/patches/remove_rubygems.patch
@@ -1,15 +1,22 @@
 Description: remove use of rubygems in spec/
+ also use LOAD_PATH to find the library instead of using a relative path
+ It should fix autopkgtest suite.
 Author: Cédric Boutillier <boutil at debian.org>
 Origin: vendor
 Forwarded: not-needed
-Last-Update: 2013-05-19
+Last-Update: 2014-10-14
 
 --- a/spec/lib/ascii85_spec.rb
 +++ b/spec/lib/ascii85_spec.rb
-@@ -1,6 +1,5 @@
+@@ -1,10 +1,9 @@
  # encoding: utf-8
  
 -require 'rubygems'
  require 'minitest/autorun'
  
  # Require implementation
+-require File.expand_path('../../../lib/ascii85', __FILE__)
++require "ascii85"
+ 
+ describe Ascii85 do
+ 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-ascii85.git



More information about the Pkg-ruby-extras-commits mailing list