summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-07 16:05:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-07 16:05:32 +0000
commit92c3c9727316f0ce65084b0b3fe8cd9d5c4ab41a (patch)
treeedf2c40417ed621ffc3a84d5d6a44a9beef53506
parentfdb3bbf194a3295276f9cb52c5225f8340296e5c (diff)
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
-rwxr-xr-xtool/rbinstall.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 65c0de7..cec3b57 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)