mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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:
parent
55c9a95ac8
commit
0ad7f2dd19
Notes:
git
2020-12-02 12:46:46 +09:00
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,7 @@
|
||||||
require 'rubygems.rb' if defined?(Gem)
|
begin
|
||||||
|
require 'rubygems.rb'
|
||||||
|
rescue LoadError
|
||||||
|
end if defined?(Gem)
|
||||||
|
|
||||||
begin
|
begin
|
||||||
require 'did_you_mean'
|
require 'did_you_mean'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue