mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
fdb3bbf194
commit
92c3c97273
1 changed files with 6 additions and 0 deletions
|
@ -679,6 +679,12 @@ end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Gem::Installer
|
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)
|
generate_bin_script = instance_method(:generate_bin_script)
|
||||||
define_method(:generate_bin_script) do |filename, bindir|
|
define_method(:generate_bin_script) do |filename, bindir|
|
||||||
generate_bin_script.bind(self).call(filename, bindir)
|
generate_bin_script.bind(self).call(filename, bindir)
|
||||||
|
|
Loading…
Reference in a new issue