[DRE-commits] [gem2deb] 01/01: extension builder: display build logs in real time
Antonio Terceiro
terceiro at moszumanska.debian.org
Tue May 27 20:41:44 UTC 2014
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository gem2deb.
commit cd0710fb2944c942e8384a1abe47887cff5462f9
Author: Antonio Terceiro <terceiro at debian.org>
Date: Thu Apr 17 17:40:58 2014 -0300
extension builder: display build logs in real time
set Gem.configuration.verbose so that extension build logs will be
output to the terminal in real time instead of only when they finish.
---
debian/changelog | 6 ++++++
lib/gem2deb/extension_builder.rb | 7 +++++++
2 files changed, 13 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 71510d8..93b5190 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+gem2deb (0.7.6) UNRELEASED; urgency=medium
+
+ * extension builder: display build logs in real time
+
+ -- Antonio Terceiro <terceiro at debian.org> Thu, 17 Apr 2014 17:39:38 -0300
+
gem2deb (0.7.5) unstable; urgency=medium
* Removes mkmf.log installed at the binary extension directory by Rubygems
diff --git a/lib/gem2deb/extension_builder.rb b/lib/gem2deb/extension_builder.rb
index b85bfd7..3c34691 100644
--- a/lib/gem2deb/extension_builder.rb
+++ b/lib/gem2deb/extension_builder.rb
@@ -64,8 +64,15 @@ module Gem2Deb
target = File.expand_path(File.join(destdir, RbConfig::CONFIG['vendorarchdir']))
FileUtils.mkdir_p(target)
Dir.chdir(directory) do
+ verbose = Gem.configuration.verbose
+ # will make Rubygems builder send the output to the terminal in
+ # real time
+ Gem.configuration.verbose = 'YES'
+
rubygems_builder.build(extension, '.', target, results)
puts results
+
+ Gem.configuration.verbose = verbose
end
# handle mkmf.log being installed at the extension directory by
--
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