[DRE-commits] [ruby-wikicloth] 01/01: Add patch to Require wikicloth in examples

Per Andersson avtobiff-guest at moszumanska.debian.org
Mon Apr 7 08:43:28 UTC 2014


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

avtobiff-guest pushed a commit to branch master
in repository ruby-wikicloth.

commit 9e19870f980744a92927fb50c8cbb16c9f13c513
Author: Per Andersson <avtobiff at gmail.com>
Date:   Mon Apr 7 10:34:59 2014 +0200

    Add patch to Require wikicloth in examples
---
 debian/changelog                                   |  3 +-
 .../0007-Require-wikicloth-in-examples.patch       | 33 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 36 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 59402f0..3a755ac 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,8 +3,9 @@ ruby-wikicloth (0.8.1+dfsg-2) unstable; urgency=low
   * Bump build depedency gem2deb >= 0.7.5~
     - Rebuild for ruby 2.0 as default
     - Documentation is not built for files anymore, only classes etc
+  * Add patch to Require wikicloth in examples
 
- -- Per Andersson <avtobiff at gmail.com>  Mon, 07 Apr 2014 09:43:56 +0200
+ -- Per Andersson <avtobiff at gmail.com>  Mon, 07 Apr 2014 10:34:05 +0200
 
 ruby-wikicloth (0.8.1+dfsg-1) unstable; urgency=low
 
diff --git a/debian/patches/0007-Require-wikicloth-in-examples.patch b/debian/patches/0007-Require-wikicloth-in-examples.patch
new file mode 100644
index 0000000..6459e80
--- /dev/null
+++ b/debian/patches/0007-Require-wikicloth-in-examples.patch
@@ -0,0 +1,33 @@
+From: Per Andersson <avtobiff at gmail.com>
+Date: Mon, 07 Apr 2014 10:33:24 +0200
+Subject: Require wikicloth in examples
+---
+--- a/examples/info.rb
++++ b/examples/info.rb
+@@ -1,4 +1,5 @@
+-require File.join(File.dirname(__FILE__),'../init.rb')
++require 'wikicloth'
++
+ if ARGV[0] && File.exists?(ARGV[0])
+   data = File.read(ARGV[0])
+ else
+--- a/examples/print.rb
++++ b/examples/print.rb
+@@ -1,4 +1,5 @@
+-require File.join(File.dirname(__FILE__),'../init.rb')
++require 'wikicloth'
++
+ if ARGV[0] && File.exists?(ARGV[0])
+   data = File.read(ARGV[0])
+ else
+--- a/examples/template_extractor.rb
++++ b/examples/template_extractor.rb
+@@ -16,7 +16,7 @@
+ # This file takes two arguments: filename, and template name
+ # ex: ./template_extractor test.wiki "Infobox person"
+ #
+-require File.join(File.dirname(__FILE__),'../init.rb')
++require 'wikicloth'
+ require 'json'
+ 
+ class TemplateExtractor < WikiCloth::Parser
diff --git a/debian/patches/series b/debian/patches/series
index 53ef747..942da24 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
 0004-Remove-gem-explicit-versioning.patch
 0005-Use-i18n-gem-instead-of-wikicloth-i18n.patch
 0006-Rearrange-test-unit-require.patch
+0007-Require-wikicloth-in-examples.patch

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



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