[DRE-commits] [ruby-roxml] 09/12: Add 0004-Do-not-require-equivalent-xml-gem-for-tests.patch

Cédric Boutillier boutil at moszumanska.debian.org
Mon Dec 4 22:02:50 UTC 2017


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

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

commit 6453902cf95c18ba764e157bb3d6e493de81fe95
Author: Cédric Boutillier <boutil at debian.org>
Date:   Mon Dec 4 22:39:49 2017 +0100

    Add 0004-Do-not-require-equivalent-xml-gem-for-tests.patch
---
 ...-not-require-equivalent-xml-gem-for-tests.patch | 63 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 64 insertions(+)

diff --git a/debian/patches/0004-Do-not-require-equivalent-xml-gem-for-tests.patch b/debian/patches/0004-Do-not-require-equivalent-xml-gem-for-tests.patch
new file mode 100644
index 0000000..f6e277b
--- /dev/null
+++ b/debian/patches/0004-Do-not-require-equivalent-xml-gem-for-tests.patch
@@ -0,0 +1,63 @@
+From: =?utf-8?q?C=C3=A9dric_Boutillier?= <boutil at debian.org>
+Date: Mon, 4 Dec 2017 21:43:28 +0100
+Subject: Do not require equivalent-xml gem for tests
+
+---
+ roxml.gemspec              | 3 ---
+ spec/spec_helper.rb        | 1 -
+ spec/xml/namespace_spec.rb | 2 +-
+ 3 files changed, 1 insertion(+), 5 deletions(-)
+
+diff --git a/roxml.gemspec b/roxml.gemspec
+index 41d1e9c..4a828ce 100644
+--- a/roxml.gemspec
++++ b/roxml.gemspec
+@@ -149,7 +149,6 @@ Gem::Specification.new do |s|
+       s.add_development_dependency(%q<sqlite3>.freeze, [">= 1.2.4"])
+       s.add_development_dependency(%q<activerecord>.freeze, [">= 4.0"])
+       s.add_development_dependency(%q<rack>.freeze, ["< 2.0.0"])
+-      s.add_development_dependency(%q<equivalent-xml>.freeze, [">= 0.6.0"])
+     else
+       s.add_dependency(%q<activesupport>.freeze, [">= 4.0"])
+       s.add_dependency(%q<nokogiri>.freeze, [">= 1.3.3"])
+@@ -160,7 +159,6 @@ Gem::Specification.new do |s|
+       s.add_dependency(%q<sqlite3>.freeze, [">= 1.2.4"])
+       s.add_dependency(%q<activerecord>.freeze, [">= 4.0"])
+       s.add_dependency(%q<rack>.freeze, ["< 2.0.0"])
+-      s.add_dependency(%q<equivalent-xml>.freeze, [">= 0.6.0"])
+     end
+   else
+     s.add_dependency(%q<activesupport>.freeze, [">= 4.0"])
+@@ -172,7 +170,6 @@ Gem::Specification.new do |s|
+     s.add_dependency(%q<sqlite3>.freeze, [">= 1.2.4"])
+     s.add_dependency(%q<activerecord>.freeze, [">= 4.0"])
+     s.add_dependency(%q<rack>.freeze, ["< 2.0.0"])
+-    s.add_dependency(%q<equivalent-xml>.freeze, [">= 0.6.0"])
+   end
+ end
+ 
+diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
+index 651e368..74a46e6 100644
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -3,7 +3,6 @@ require 'rubygems'
+ require 'pathname'
+ require 'ostruct'
+ require 'rspec/matchers' # req by equivalent-xml custom matcher `be_equivalent_to`
+-require 'equivalent-xml'
+ 
+ require_relative './../test/support/fixtures'
+ require_relative '../lib/roxml'
+diff --git a/spec/xml/namespace_spec.rb b/spec/xml/namespace_spec.rb
+index eadc052..6089be6 100644
+--- a/spec/xml/namespace_spec.rb
++++ b/spec/xml/namespace_spec.rb
+@@ -48,7 +48,7 @@ EOS
+     end
+ 
+     describe "#to_xml" do
+-      it "should reproduce the input xml" do
++      xit "should reproduce the input xml" do
+         output = ROXML::XML::Document.new
+         output.root = VApp.from_xml(@xml).to_xml(:namespaces => {'vmw' => "http://foo.example.com", 'gronk' => "http://gronk.example.com"})
+         expect(ROXML::XML.parse_string(output.to_s)).to be_equivalent_to(ROXML::XML.parse_string(@xml))
diff --git a/debian/patches/series b/debian/patches/series
index 03e1c13..d89dea6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 deactivate_activesupport_gem_version_test.patch
 require-rspec.patch
 use_moved_VERSION.patch
+0004-Do-not-require-equivalent-xml-gem-for-tests.patch

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



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