Actions
Feature #16363
closedPromote did_you_mean to default gem
Description
The did_you_mean
gem has been a bundled gem for over 3 years now and I think it's time to promote it to a standard library. There are two main issues in the current structure:
- A number of implementations, including
optparse.rb
, rake, and rails, now take advantage of the gem's spell checker, but it's awkward to have to check the existence of theDidYouMean::SpellChecker
constant. - there are some problems with regard to bundler + did_you_mean because of did_you_mean being a bundled gem. Since the vendored version of thor inside bundler and ruby itself explicitly requires did_you_mean, it can become difficult to load it when using Bundler.setup. See this issue: https://github.com/yuki24/did_you_mean/issues/117#issuecomment-482733159 for more details.
I would like to promote the gem up to a standard library and make it always available, so we can always reliably require it whenever we want to.
A patch could be found here: https://github.com/ruby/ruby/pull/2689
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0