Changelog History
Page 1
-
v1.6.1 Changes
π released at 2020-12-22 13:22:35 UTC
π Deprecations
- π Deprecate custom formatters to reduce complexity for Ractor support.
- π Deprecate access to the
DidYouMean::SPELL_CHECKERS
constant for Ractor support.
π Features
- The
did_you_mean
gem is now Ractor-compatible (8faba54b
) - Suggest keys on NoMatchingPatternKeyError (#159, @k-tsj)
- π Make the same name check case-sensitive (#164, @pocke)
Before:
DidYouMean::SpellChecker.new(dictionary: ['Method', 'MEthod']).correct("MEthod") # => ['Method', 'method']
After:
DidYouMean::SpellChecker.new(dictionary: ['Method', 'MEthod']).correct("MEthod") # => ['Method']
-
v1.6.0 Changes
This version has been yanked due to significant and unexpected breaking changes.
-
v1.4.0 Changes
May 09, 2020π released at 2020-05-09 02:56:43 UTC
As of Ruby 2.7, the
did_you_mean
gem has been promoted up to a default gem. I would like to thank @kddeisz for his hard work on making the entire gem easily portable the main ruby/ruby repo (#132, #131, and ruby/ruby#2631).π Features
- Add a new tree spell checker (#119, @obromios)
- Add a public API for registering an error (#123, @kddeisz)
π Bug fixes
- Fixes a bug where wrong suggestion could be made when string requested on hash and keys are symbols (@localhostdotdev, #134)
π₯ Breaking changes
- Experimental features have been removed (#135)
Internal changes
-
v1.3.1 Changes
September 29, 2019π released at 2019-09-29 03:58:46 UTC
π Bug fixes
-
v1.3.0 Changes
December 18, 2018π released at 2018-12-18 15:37:10 UTC
Starting version 1.3, the
did_you_mean
gem will be compatible with 2.6 and 2.5, and we will try to keep all subsequent versions compatible with Ruby 2.5 on an best-effort basis.- π 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.
- π Versions earlier than 1.1.* will still be maintained until Ruby 2.4 is deprecated.
- π Versions earlier than 1.0.* is still maintained, but are likely to be deprecated as Ruby 2.3 will (probably) be deprecated in 2019.
- π Support for versions below 1.0 has already ended.
π New features
Suggest reserved words if there are close matches (2a082a7)
results = yiedl # NameError => undefined local variable or method `yiedl' for ... # Did you mean? yield
π Bug fixes
-
v1.2.2 Changes
March 09, 2019 -
v1.2.1 Changes
April 03, 2018π released at 2018-04-03 04:44:47 UTC
π Bug Fixes
- Fixed a bug where DYM suggests the same class name in the error message (#102, @schneems)
- Fixed a bug where the deprecated
DidYouMean::Formatter
has been removed unexpectedly (#103, 4b5ba32)
Other Changes
- Non-production code that has a non-commercial license has been removed from gem releases (#105, @jbotelho2-bb)
-
v1.2.0 Changes
January 02, 2018π 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 (acf5945, https://bugs.ruby-lang.org/issues/12063) - Now suggests
true
,false
ornil
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
- The
-
v1.1.3 Changes
March 09, 2019