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:
parent
fbe37ff37a
commit
4bbb610011
Notes:
git
2020-12-02 12:46:45 +09:00
1 changed files with 1 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
begin
|
||||
require 'rubygems.rb'
|
||||
rescue LoadError
|
||||
warn "`RubyGems' were not loaded."
|
||||
end if defined?(Gem)
|
||||
|
||||
begin
|
||||
|
|
Loading…
Add table
Reference in a new issue