Skip to content

Releases: ruby/did_you_mean

v0.9.3

18 Nov 03:50
Compare
Choose a tag to compare

This version has been yanked from rubygems.org as it doesn't work with jRuby at all. Please upgrade to 0.9.4 or higher as soon as possible.

Internal Changes

  • Replaced the crazy C extension with a so much better one (thanks to @nobu!)

v0.9.2

17 Nov 15:32
Compare
Choose a tag to compare

Bug Fixes

  • Fixed a bug where did_you_mean doesn't compile on Ruby 2.1.2/2.1.5 (#16)

v0.9.1

16 Nov 18:54
Compare
Choose a tag to compare

This version has been yanked from rubygems.org as it doesn't compile on Ruby 2.1.2 and 2.1.5. Please upgrade to 0.9.4 or higher as soon as possible.

Internal Changes

  • Shrink the gem size by removing unneeded ruby header files.
  • Now it forces everyone to upgrade the gem when they upgrade Ruby to a new version. This avoids introducing a bug like #14.

v0.9.0

09 Nov 01:26
Compare
Choose a tag to compare

Features

  • did_you_mean now suggests instance variable names if @ is missing (#12, 39d1e2b)
@full_name = "Yuki Nishijima"
first_name, last_name = full_name.split(" ")
# => NameError: undefined local variable or method `full_name' for main:Object
#
#     Did you mean? @full_name
#

Bug Fixes

  • Fixed a bug where did_you_mean changes some behaviours of Ruby 2.1.3/2.1.4 installed on Max OS X (#14, 44c451f, 9ebde21)
  • Fixed a bug where sometimes NoMethodError suggests duplicate method names (9865cc5)

v0.8.0

27 Oct 02:03
Compare
Choose a tag to compare

This version has been yanked from rubygems.org as it has a serious bug with Ruby 2.1.3 and 2.1.4 installed on Max OS X. Please upgrade to 0.9.4 or higher as soon as possible.

Features

  • JRuby support!

Bug Fixes

v0.7.0

26 Sep 03:37
Compare
Choose a tag to compare

This version has been yanked from rubygems.org as it has a serious bug with Ruby 2.1.3 and 2.1.4 installed on Max OS X. Please upgrade to 0.9.4 or higher as soon as possible.

Features

  • Added support for Ruby 2.1.3, 2.2.0-preview1 and ruby-head
  • Added support for ActiveRecord 4.2.0.beta1
  • Word searching is now about 40% faster than v0.6.0
  • Removed text gem dependency
  • Better output on pry and Rspec

Internal Changes

  • A lot of internal refactoring

v0.6.0

18 May 00:23
Compare
Choose a tag to compare

This version has been yanked from rubygems.org as it has a serious bug with Ruby 2.1.3 and 2.1.4 installed on Max OS X. Please upgrade to 0.9.4 or higher as soon as possible.

Features

  • Added basic support for constants. Now you'll see class name suggestions when you misspelled a class names/module names:
> Ocject
# => NameError: uninitialized constant Ocject
#
#     Did you mean? Object
#

Bug Fixes

  • Fixed a bug where did_you_mean segfaults on Ruby head(2.2.0dev)

v0.5.0

10 May 17:59
Compare
Choose a tag to compare

Features

  • Added support for Ruby 2.1.2

v0.4.0

20 Apr 02:10
Compare
Choose a tag to compare

Features

  • did_you_mean now suggests a similar attribute name when you misspelled it.
User.new(flrst_name: "wrong flrst name")
# => ActiveRecord::UnknownAttributeError: unknown attribute: flrst_name
#
#     Did you mean? first_name: string
#

Bug Fixes

  • Fixed a bug where did_you_mean doesn't work with ActiveRecord::UnknownAttributeError

v0.3.1

20 Mar 23:16
Compare
Choose a tag to compare

Features

  • Changed output for readability.
  • Made the spell checking algorithm slight better to find the correct method.