summaryrefslogtreecommitdiff
path: root/lib/rubygems/exceptions.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2021-12-24 09:32:59 +0900
committerHiroshi SHIBATA <[email protected]>2021-12-24 10:35:31 +0900
commitb0ad6cb371747a04eb12580e74c73179173cc89d ()
treeee873d5c682c4665c838e3ea43585536229a5509 /lib/rubygems/exceptions.rb
parentde0523feddf740d28fe772f3a22ff9907f88bf69 (diff)
Merge RubyGems-3.3.2 and Bundler-2.3.2
Notes: Merged: https://.com/ruby/ruby/pull/5334
-rw-r--r--lib/rubygems/exceptions.rb10
1 files changed, 7 insertions, 3 deletions
@@ -24,10 +24,14 @@ class Gem::UnknownCommandError < Gem::Exception
return if defined?(@attached)
if defined?(DidYouMean::SPELL_CHECKERS) && defined?(DidYouMean::Correctable)
- DidYouMean::SPELL_CHECKERS['Gem::UnknownCommandError'] =
- Gem::UnknownCommandSpellChecker
- prepend DidYouMean::Correctable
end
@attached = true