1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Emit warning when 'RubyGems' were not properly loaded.

This commit is contained in:
Vít Ondruch 2019-12-18 15:03:38 +01:00 committed by Hiroshi SHIBATA
parent fbe37ff37a
commit 4bbb610011
Notes: git 2020-12-02 12:46:45 +09:00

View file

@ -1,6 +1,7 @@
begin
require 'rubygems.rb'
rescue LoadError
warn "`RubyGems' were not loaded."
end if defined?(Gem)
begin