[DRE-commits] [ruby-nokogumbo] 06/08: clean tests
Cédric Boutillier
boutil at moszumanska.debian.org
Thu Jul 23 18:55:23 UTC 2015
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-nokogumbo.
commit fed9b7e32c1bbf397c36e9ab7b964fa461450974
Author: Cédric Boutillier <boutil at debian.org>
Date: Thu Jul 23 20:45:26 2015 +0200
clean tests
---
debian/patches/clean_extconf.patch | 6 +++---
debian/patches/clean_tests.patch | 18 ++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/debian/patches/clean_extconf.patch b/debian/patches/clean_extconf.patch
index 5ed7eef..8090bfe 100644
--- a/debian/patches/clean_extconf.patch
+++ b/debian/patches/clean_extconf.patch
@@ -4,9 +4,9 @@ Author: Cédric Boutillier <boutil at debian.org>
Last-Update: 2015-07-23
Forwarded: not-needed
---- ruby-nokogumbo-1.4.2+ds.orig/ext/nokogumboc/extconf.rb
-+++ ruby-nokogumbo-1.4.2+ds/ext/nokogumboc/extconf.rb
-@@ -27,22 +27,5 @@ if have_library('xml2', 'xmlNewDoc')
+--- a/ext/nokogumboc/extconf.rb
++++ b/ext/nokogumboc/extconf.rb
+@@ -27,22 +27,5 @@
end
end
diff --git a/debian/patches/clean_tests.patch b/debian/patches/clean_tests.patch
new file mode 100644
index 0000000..0c33173
--- /dev/null
+++ b/debian/patches/clean_tests.patch
@@ -0,0 +1,18 @@
+Description: clean test file
+ - do not mess with $LOAD_PATH
+ - using require instead of gem to load minitest
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2015-07-23
+Forwarded: no
+
+--- a/test-nokogumbo.rb
++++ b/test-nokogumbo.rb
+@@ -1,7 +1,4 @@
+-$:.unshift('lib')
+-$:.unshift('ext/nokogumboc')
+-
+-gem 'minitest'
++require 'minitest'
+
+ require 'nokogumbo'
+ require 'minitest/autorun'
diff --git a/debian/patches/series b/debian/patches/series
index 157cbea..6020a0f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
clean_extconf.patch
+clean_tests.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-nokogumbo.git
More information about the Pkg-ruby-extras-commits
mailing list