Did You Mean Versions Save

The gem that has been saving people from typos since 2014

v1.0.0.beta3

8 years ago

Internal Changes

  • Use the frozen-string-literal pragma rather than calling .freeze everywhere
  • Use the NameError#receiver method in DidYouMean:: ClassNameChecker to know the namespace where the constant call is made
  • Refactored the SpellCheckerTest

v1.0.0.beta2

8 years ago

Bug Fixes

  • Fixed a bug where the gem doesn't install properly on Ruby 2.3.0dev

v0.10.0

8 years ago

Features

  • Now it corrects an instance variable name if the ivar name is mistyped and NoMethodError is raised:

    @number = 1
    @nubmer.zero?
    # => NoMethodError: undefined method `zero?' for nil:NilClass
    #
    #    Did you mean? @number
    #
    
  • Support for JRuby 9.0.0.0

  • Prefix-based correction (@tjohn, #50, #49)

  • Correction search is about 75% faster than 0.9.10

Breaking Changes

  • The ActiveRecord integration has been removed

v0.9.10

9 years ago

Bug Fixes

  • Fixed a bug where a duplicate "did you mean?" message was appended each time #to_s is called (@danfinnie, #51)

v0.9.9

9 years ago

Features

  • Order word suggestions based on Levenshtein distance (@tleish, #31)

Internal Changes

  • Reduce memory allocation by about 40%
  • Speed up Levenshtein distance calculation by about 40%
  • The Java extension has been replaced with a pure JRuby implementation

v0.9.8

9 years ago

Internal Changes

  • Speed up Levenshtein by 50% and reduce 97% of memory usage

v0.9.7

9 years ago

Bug Fixes

  • Fixed an issue where did_you_mean doesn't install on JRuby properly.

v0.9.6

9 years ago

Bug Fixes

  • Fixed a bug where did_you_mean incorrectly suggests protected methods when it just isn't callable (@glittershark, #34)

v0.9.5

9 years ago

Bug Fixes

  • Whitelist #safe_constantize method from ActiveSupport::Inflector to avoid significant performance slowdown (@tleish, #19, #20)

v0.9.4

9 years ago

Bug Fixes

  • Fixed a bug where no suggestions will be made on JRuby