did_you_mean v1.2.0 Release Notes

Release Date: 2018-01-02 // over 4 years ago
  • 🚀 released at 2018-01-02 20:49:35 UTC

    🚀 This version 1.2.0 only has support for Ruby 2.5.0 and later as it uses new features that are only available in 2.5. All future patch releases under 1.2.* will only be compatible with Ruby 2.5.0 and later as well. Versions earlier than 1.1.* will still be maintained until Ruby 2.4 is deprecated. Any other versions below 1.0 will no longer be maintained.

    🆕 New features

    • The KeyError name suggestion feature has been promoted to a stable feature and is available by default (acf5945https://bugs.ruby-lang.org/issues/12063)
    • Now suggests true, false or nil if a NameError occurs because of a typo in these names (#94, @styd)
    • New Formatter API: This provides a clean way to customize DidYouMean’s formatter without overriding the default formatter. Please refer to the built-in verbose formatter for how to use it