ThrowTheSwitch / Ceedling

Ruby-based unit testing and build system for C projects
http://throwtheswitch.org
Other
589 stars 247 forks source link

did_you_mean package deprecation in latest Ruby release (3.1.0) #659

Open tschlenk opened 2 years ago

tschlenk commented 2 years ago

When trying to run ceedling using the latest version of Ruby there is a deprecation warning for the did_you_mean package.

$ ceedling
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
Welcome to Ceedling!
Commands:
  ceedling example PROJ_NAME [DEST]  # new specified example project (in DEST...
  ceedling examples                  # list available example projects
  ceedling help [COMMAND]            # Describe available commands or one spe...
  ceedling new PROJECT_NAME          # create a new ceedling project
  ceedling upgrade PROJECT_NAME      # upgrade ceedling for a project (not re...
  ceedling version                   # return the version of the tools installed

Tested using ceedling version 0.31.1 and Ruby 3.1.0 releases.

davidjb commented 1 year ago

Also discussed at https://github.com/ThrowTheSwitch/Ceedling/issues/211#issuecomment-1302107997. As I mentioned there:

The DidYouMean::SPELL_CHECKERS.merge deprecation warning is due to thor (https://github.com/rails/thor/issues/763) - this has been fixed and was released in 1.2.0. Ceedling's current version pin doesn't allow for this version to be installed.