Skip to content

Commit

Permalink
Reduce did_you_mean startup cost by explicitly activating the gem.
Browse files Browse the repository at this point in the history
Thanks @tenderlove for pointing this out.
headius committed Mar 10, 2016

Verified

This commit was signed with the committer’s verified signature.
makenowjust Hiroya Fujinami
1 parent 77175e4 commit 4a8a2bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/ruby/jruby/kernel/gem_prelude.rb
Original file line number Diff line number Diff line change
@@ -6,8 +6,9 @@
warn 'RubyGems not found; disabling gems' if $VERBOSE
else
begin
gem 'did_you_mean'
require 'did_you_mean'
rescue LoadError
rescue Gem::LoadError, LoadError
end if defined?(DidYouMean)
end
end

0 comments on commit 4a8a2bc

Please sign in to comment.