aboutsummaryrefslogtreecommitdiffstats
path: root/gem_prelude.rb
diff options
context:
space:
mode:
authorYuki Nishijima <yk.nishijima@gmail.com>2019-11-29 21:40:07 -0500
committerYuki Nishijima <yk.nishijima@gmail.com>2019-11-30 21:08:19 -0500
commit0fef526606c72e7d2a3c83aebd9204da34016d96 (patch)
tree3abcda3ba69a0d7fa38ebed8b37ab555d10d64b5 /gem_prelude.rb
parent171803d5d34feb1b4244ca81b9db0a7bc2171c85 (diff)
downloadruby-0fef526606c72e7d2a3c83aebd9204da34016d96.tar.gz
Do not call 'gem "did_you_mean"' for now
This will slow down the time that the +require+ method takes to load DYM, but this has caused a build failure in a certain situation: https://ci.appveyor.com/project/ruby/ruby/builds/29214253/job/r9u9c8p95tnlftt3#L24965 which is reported as a separate bug: https://bugs.ruby-lang.org/issues/16382?next_issue_id=16381 For now this commit should fix the builds, but we should come back and add back the 'gem' call.
Diffstat (limited to 'gem_prelude.rb')
-rw-r--r--gem_prelude.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/gem_prelude.rb b/gem_prelude.rb
index be9c41933c..1d0158d00a 100644
--- a/gem_prelude.rb
+++ b/gem_prelude.rb
@@ -1,8 +1,2 @@
-if defined?(Gem)
- require 'rubygems.rb'
- begin
- gem 'did_you_mean'
- require 'did_you_mean'
- rescue Gem::LoadError, LoadError
- end if defined?(DidYouMean)
-end
+require 'rubygems.rb' if defined?(Gem)
+require 'did_you_mean' if defined?(DidYouMean)