[DRE-commits] [SCM] ruby-debian-doc.git branch, master, updated. 49ce8dc9509263e82314b285688daf537bb4c6e8

Antonio Terceiro terceiro at softwarelivre.org
Thu May 30 23:09:22 UTC 2013


The following commit has been merged in the master branch:
commit cad69d85ef2f58466d203033b64a808cc78fbd37
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date:   Sat Dec 31 20:43:43 2011 -0200

    Do not pass a nil README into the yard command line

diff --git a/lib/debian-doc/writer.rb b/lib/debian-doc/writer.rb
index c9e0dad..292c9c3 100644
--- a/lib/debian-doc/writer.rb
+++ b/lib/debian-doc/writer.rb
@@ -44,7 +44,11 @@ module Debian
       class YARD
         def process(output_directory, readme, source)
           db = File.join(output_directory, '..', '.yardoc')
-          argv = ['yardoc', '--db', db, '-r', readme, '-o', output_directory]
+          argv = ['yardoc', '--db', db]
+          if readme
+            argv << '-r' << readme
+          end
+          argv << '-o' << output_directory
           source.each do |entry|
             argv << entry
           end

-- 
ruby-debian-doc.git



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