[DRE-commits] [gem2deb] 02/03: Gem2Deb::Banner: flush stdout immediately
Antonio Terceiro
terceiro at moszumanska.debian.org
Thu Mar 17 14:50:38 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository gem2deb.
commit 677c69d7e933da3b962796ce397aeb29be1a8ce6
Author: Antonio Terceiro <terceiro at debian.org>
Date: Thu Mar 17 11:36:12 2016 -0300
Gem2Deb::Banner: flush stdout immediately
---
debian/changelog | 2 ++
lib/gem2deb/banner.rb | 13 ++++++++-----
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 36c601a..3f8cc31 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ gem2deb (0.30.1) UNRELEASED; urgency=medium
* Gem2Deb::Metadata:
- make the workaround attempt for gemspecs using git more robust.
+ * Gem2Deb::Banner:
+ - flush stdout immediately to improve output under autopkgtest
-- Antonio Terceiro <terceiro at debian.org> Thu, 17 Mar 2016 10:23:58 -0300
diff --git a/lib/gem2deb/banner.rb b/lib/gem2deb/banner.rb
index 5bae9d6..3cf94e6 100644
--- a/lib/gem2deb/banner.rb
+++ b/lib/gem2deb/banner.rb
@@ -1,11 +1,14 @@
module Gem2Deb
module Banner
def self.print(msg)
- puts
- puts '┌' + '─' * 78 + '┐'
- puts '│ %-77s│' % msg
- puts '└' + '─' * 78 + '┘'
- puts
+ $stdout.instance_eval do
+ puts
+ puts '┌' + '─' * 78 + '┐'
+ puts '│ %-77s│' % msg
+ puts '└' + '─' * 78 + '┘'
+ puts
+ flush
+ end
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