зеркало из https://github.com/github/ruby.git
Don't fail when 'RubyGems' are not available.
Although 'RubyGems' are always available in upstream Ruby, it might not be available optionally when Ruby is delivered via packaging systems. E.g. Linux distributions.
This commit is contained in:
Родитель
55c9a95ac8
Коммит
0ad7f2dd19
|
@ -1,4 +1,7 @@
|
|||
require 'rubygems.rb' if defined?(Gem)
|
||||
begin
|
||||
require 'rubygems.rb'
|
||||
rescue LoadError
|
||||
end if defined?(Gem)
|
||||
|
||||
begin
|
||||
require 'did_you_mean'
|
||||
|
|
Загрузка…
Ссылка в новой задаче