Skip to content

v1.1.0

Choose a tag to compare

@yuki24 yuki24 released this 19 Dec 23:19
· 320 commits to master since this release

The version 1.1.0 only has support for Ruby 2.4.0 and later. All patch releases under 1.1.* will only be compatible with Ruby 2.4.0 and later as well. Versions earlier than 1.0.* will still be maintained until Ruby 2.3 is deprecated. Any other versions below 1.0 will no longer be maintained.

New Features

  • Suggest a method name on a NameError from the Struct#[] or Struct#[]= method (#73):

    Struct.new(:foo).new[:fooo]
    # => NameError: no member 'fooo' in struct
    #    Did you mean?  foo
    #                   foo=
  • Added a public interface for the gem's spell checker:

    DidYouMean::SpellChecker.new(dictionary: ['email', 'fail', 'eval']).correct('meail')
    # => ['email']
  • Methods defined on nil by default are no longer suggested. Note that methods, defined after the gem is loaded, will still be suggested (e.g. ActiveSupport).

Bug Fixes

  • Fixed a bug where private method names were added to the dictionary when an argument was passed in to a public method. Use the NoMethodError#private_call? method instead (0a1b761)