Releases: ruby/did_you_mean
Releases · ruby/did_you_mean
v0.9.3
v0.9.2
v0.9.1
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
Features
@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
v0.8.0
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
- Fixed a bug where did_you_mean unexpectedly disables better_errors's REPL
- Replaced binding_of_caller dependency with interception
- Fixed the wrong implementation of Levenshtein algorithm (#2, @fortissimo1997)
v0.7.0
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
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
v0.4.0
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