[DRE-commits] [gem2deb] 03/06: dh-make-ruby: add README's uncommented to debian/ruby-foo.docs

Antonio Terceiro terceiro at moszumanska.debian.org
Wed Jul 15 21:33:25 UTC 2015


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

terceiro pushed a commit to branch master
in repository gem2deb.

commit 9551f2c588bd233949ff9007e501ed09c5092067
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Wed Jul 15 18:19:38 2015 -0300

    dh-make-ruby: add README's uncommented to debian/ruby-foo.docs
---
 debian/changelog            |  1 +
 lib/gem2deb/dh_make_ruby.rb | 12 ++++--------
 2 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2a3880c..2cc2d1f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ gem2deb (0.19) UNRELEASED; urgency=medium
 
   * gem2deb: download .gem files in a temporary directory
   * gem2deb-test-runner: add dependency on ruby-minitest
+  * dh-make-ruby: add README's uncommented to debian/ruby-foo.docs
 
  -- Antonio Terceiro <terceiro at debian.org>  Wed, 24 Jun 2015 17:23:08 -0300
 
diff --git a/lib/gem2deb/dh_make_ruby.rb b/lib/gem2deb/dh_make_ruby.rb
index 4f6dc7a..6c04fbc 100644
--- a/lib/gem2deb/dh_make_ruby.rb
+++ b/lib/gem2deb/dh_make_ruby.rb
@@ -447,15 +447,11 @@ end
             EOF
       end
       readmes = Dir::glob('README*')
-      docs += <<-EOF
-# FIXME: READMEs found
-      EOF
-      readmes.each do |r|
-        docs << "# #{r}\n"
-      end
-      if docs != ""
+      if !readmes.empty?
         maybe_create("debian/#{source_package_name}.docs") do |f|
-          f.puts docs
+          readmes.each do |r|
+            f.puts r
+          end
         end
       end
 

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



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