Skip to content

Releases: ruby/did_you_mean

v1.6.3

19 Dec 05:59
f7703ad
Compare
Choose a tag to compare

What's Changed

  • Test against more recent Ruby versions by @yuki24 in #181
  • Do not suggest #name= for #name and vice versa by @mboeh in #180
  • Note v1.6.2 changes by @hsbt in #182

New Contributors

Full Changelog: v1.6.2...v1.6.3

v1.6.2

05 Dec 10:29
f5b1512
Compare
Choose a tag to compare

What's Changed

  • Fix typo in CHANGELOG DidYouMean::SPELL_CHECKERS by @yahonda in #169
  • Fix frozen_string_literal is ignored after any tokens warning. by @casperisfine in #172
  • Added dependabot.yml for actions by @hsbt in #173
  • Bump actions/checkout from 1 to 3 by @dependabot in #174
  • Define Exception#detailed_message instead of clobbering #message by @mame in #177
  • Use assert_ractor in test_ractor_compatible.rb by @hsbt in #178
  • Fixed correction duplicates in VaribaleNameChecker by @makketagg in #176

New Contributors

Full Changelog: v1.6.1...v1.6.2

v1.5.0

22 Dec 05:47
Compare
Choose a tag to compare

Features

  • Suggest require paths on LoadError (#143)

v1.4.0

09 May 02:56
Compare
Choose a tag to compare

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 to 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

  • Replace Travis CI with GitHub Actions (#124)
  • Drop mintiest dependency (#129)
  • Drop delegate dependency (#138)

v1.3.1

29 Sep 03:58
Compare
Choose a tag to compare

Bug fixes

  • Fixes a test failure in Ruby core where DYM attempts to mutate immutable strings from Symbol#to_s (#125, @nobu, @eregon, @MSP-Greg)
  • Removes the empty tmp/ directory to comply with rpmlint (#122, @pvalena)
  • Fixes a bug where suggestions are not shown on subsequent errors (#120, @localhostdotdev)

v1.2.2

09 Mar 23:17
Compare
Choose a tag to compare

Bug fixes

  • Fixes a bug where name errors can not be dumped (#108, @jessebs)

v1.1.3

09 Mar 23:16
Compare
Choose a tag to compare

Bug fixes

  • Fixes a bug where name errors can not be dumped (#108, @jessebs)
  • Fixed a bug where DYM suggests the same class name in the error message (#102, @schneems)

v1.0.4

09 Mar 23:16
Compare
Choose a tag to compare

Bug fixes

  • Fixes a bug where name errors can not be dumped (#108, @jessebs)
  • Fixed a bug where DYM suggests the same class name in the error message (#102, @schneems)

v1.3.0

18 Dec 15:37
Compare
Choose a tag to compare

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

  • Fixes a bug where name errors can not be dumped (#108, @jessebs)

v1.2.1

03 Apr 04:44
Compare
Choose a tag to compare

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 lisence has been removed from gem releases (#105, @jbotelho2-bb)