[DRE-commits] [yard] 01/02: copy content of rubygems_plugin.rb in specs as this file is removed from binary package

Cédric Boutillier boutil at moszumanska.debian.org
Fri Mar 11 23:58:15 UTC 2016


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

boutil pushed a commit to branch master
in repository yard.

commit cc2c51c4238f90f487df91663bcc0e40751573f7
Author: Cédric Boutillier <boutil at debian.org>
Date:   Fri Mar 11 22:58:41 2016 +0100

    copy content of rubygems_plugin.rb in specs as this file is removed from binary package
---
 debian/changelog                           |  7 +++++++
 debian/patches/rubygems_plugin_specs.patch | 20 ++++++++++++++++++++
 debian/patches/series                      |  1 +
 3 files changed, 28 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index aac2e5b..87c5ac5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+yard (0.8.7.6+git20160220-3) unstable; urgency=medium
+
+  * Copy content of rubygems_plugin.rb in specs as this file is removed from
+    binary package, in order to fix DebCI tests
+
+ -- Cédric Boutillier <boutil at debian.org>  Sat, 12 Mar 2016 00:50:56 +0100
+
 yard (0.8.7.6+git20160220-2) unstable; urgency=medium
 
   * Do not install rubygems_plugin.rb (Closes:#812809)
diff --git a/debian/patches/rubygems_plugin_specs.patch b/debian/patches/rubygems_plugin_specs.patch
new file mode 100644
index 0000000..3b54cd6
--- /dev/null
+++ b/debian/patches/rubygems_plugin_specs.patch
@@ -0,0 +1,20 @@
+Description: copy content of rubygems_plugin.rb in spec instead of loading it
+ as it is erased from the binary package.
+ This should fix debci tests
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2016-03-11
+Forwarded: not-needed
+
+--- a/spec/rubygems/doc_manager_spec.rb
++++ b/spec/rubygems/doc_manager_spec.rb
+@@ -1,5 +1,9 @@
+ require File.dirname(__FILE__) + '/../spec_helper'
+-require File.join(YARD::ROOT, 'rubygems_plugin')
++unless defined?(Gem::DocManager.load_yardoc)
++  require 'yard/rubygems/specification'
++  require 'yard/rubygems/doc_manager'
++end
++
+ require 'fileutils'
+ 
+ describe Gem::DocManager do
diff --git a/debian/patches/series b/debian/patches/series
index 4f07346..4c6f8a3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@ fix_template_root_var.patch
 no-timestamps.patch
 privacy-breach.patch
 skip_failing_test_ruby230.patch
+rubygems_plugin_specs.patch

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



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