From 92c3c9727316f0ce65084b0b3fe8cd9d5c4ab41a Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 7 Apr 2015 16:05:32 +0000 Subject: [PATCH] rbinstall.rb: no post install messages * tool/rbinstall.rb: suppress post install messages of rdoc for older ruby versions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/rbinstall.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 65c0de7057..cec3b57f5c 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -679,6 +679,12 @@ end end class Gem::Installer + install = instance_method(:install) + define_method(:install) do + spec.post_install_message = nil + install.bind(self).call + end + generate_bin_script = instance_method(:generate_bin_script) define_method(:generate_bin_script) do |filename, bindir| generate_bin_script.bind(self).call(filename, bindir)