- Fixed a possible memory leak in {FFI::Hunspell::Dictionary#stem} and {FFI::Hunspell::Dictionary#suggest}.
- Prevent a possible memory leak if {FFI::Hunspell::Dictionary#close} is not called, which deallocates the underlying libhunspell handler pointer, before the dictionary is garbage collected. Note: if {FFI::Hunspell::Dictionary.open} is called with a block, the dictionary object will explicitly be closed once the block returns.
- Added {FFI::Hunspell::Dictionary#add_dic} which adds an extra dictionary file. (@cdchapman)
- Added support for libhunspell-1.7 (@dorner).
- Added {FFI::Hunspell::VERSION}.
- Added support for libhunspell-1.6.
- Added support for libhunspell-1.5 (@trench8891).
- Added support for libhunspell-1.4 (@willmoorefyi).
- Renamed
#add_affix
to {FFI::Hunspell::Dictionary#add_with_affix} (@cdchapman).
- Prefer loading hunspell-1.3 over hunspell-1.2, if both are installed.
- Support auto-detection of hunspell installed by homebrew (@forward3d).
- Detect Ubuntu's hunspell directory (
/usr/share/hunspell
). - {FFI::Hunspell::Dictionary#encoding} now returns an
Encoding
object. - Encode Strings returned from {FFI::Hunspell::Dictionary#stem} and {FFI::Hunspell::Dictionary#suggest} to match the dictionary's native encoding.
- Removed the env dependency.
- Check the returned count from
Hunsepll_stem
in {FFI::Hunspell::Dictionary#stem}. - Check the returned count from
Hunspell_suggest
in {FFI::Hunspell::Dictionary#suggest}.
- Load
libhunspell-1.2.so.0
iflibhunspell-1.2.so
cannot be found. - Load
libhunspell-1.3.so.0
iflibhunspell-1.3.so
cannot be found.
- Require ffi ~> 1.0.
- Attempt loading
libhunspell-1.2
andlibhunspell-1.3
.
- Require ffi >= 0.6.0 and <= 1.1.0:
- JRuby requires ffi >= 1.0.0.
- A lot of projects still require ffi ~> 0.6.0.
- Added {FFI::Hunspell::USER_DIR}.
- Added {FFI::Hunspell::KNOWN_DIRECTORIES}, containing known dictionary directories used by Debian, Fedora and Mac Ports.
- Have {FFI::Hunspell.directories} return the dictionary directories found on the system.
- Require env ~> 0.1.2.
- Use
Env.lang
to get the default language.
- Use
- Updated the Copyright years.
- Added {FFI::Hunspell.lang}.
- Added {FFI::Hunspell.lang=}.
- Added {FFI::Hunspell.directories}.
- Have {FFI::Hunspell::Dictionary.open} accept a language name, and search {FFI::Hunspell.directories} for the dictionary files.
- Initial release.