[DRE-commits] [ruby-saml] 04/05: fix schemas path
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Sun Oct 30 09:12:40 UTC 2016
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository ruby-saml.
commit f8fd4fe40e6e768a51cf54c7cae0453de4574597
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Sun Oct 30 13:41:35 2016 +0530
fix schemas path
---
debian/patches/series | 1 +
debian/patches/use-system-lib.patch | 21 +++++++++++++++++++++
2 files changed, 22 insertions(+)
diff --git a/debian/patches/series b/debian/patches/series
index 2c2f2bc..838c966 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
remove-simplecov.patch
remove-bundler.patch
use-unshift-in-gemspec.patch
+use-system-lib.patch
diff --git a/debian/patches/use-system-lib.patch b/debian/patches/use-system-lib.patch
new file mode 100644
index 0000000..4353069
--- /dev/null
+++ b/debian/patches/use-system-lib.patch
@@ -0,0 +1,21 @@
+Index: ruby-saml/test/test_helper.rb
+===================================================================
+--- ruby-saml.orig/test/test_helper.rb
++++ ruby-saml/test/test_helper.rb
+@@ -1,5 +1,7 @@
+ #require 'simplecov'
+
++require 'pathname'
++
+ #SimpleCov.start do
+ # add_filter "test/"
+ # add_filter "vendor/"
+@@ -240,7 +242,7 @@ class Minitest::Test
+ inflated
+ end
+
+- SCHEMA_DIR = File.expand_path(File.join(__FILE__, '../../lib/schemas'))
++ SCHEMA_DIR = Pathname.new(File.expand_path(File.join(__FILE__, '../../lib/schemas'))).directory? ? File.expand_path(File.join(__FILE__, '../../lib/schemas')) : File.new('/usr/share/rubygems-integration/all/gems/ruby-saml-1.4.1/lib/schemas')
+
+ #
+ # validate an xml document against the given schema
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-saml.git
More information about the Pkg-ruby-extras-commits
mailing list