0.6.1 / 2021-02-12
- 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.
0.6.0 / 2020-11-28
- Added FFI::Hunspell::Dictionary#add_dic which adds an extra dictionary file. (@cdchapman)
0.5.0 / 2019-10-24
- Added support for libhunspell-1.7 (@dorner).
- Added FFI::Hunspell::VERSION.
0.4.0 / 2017-04-21
- 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).
0.3.1 / 2016-01-14
- Prefer loading hunspell-1.3 over hunspell-1.2, if both are installed.
- Support auto-detection of hunspell installed by homebrew (@forward3d).
0.3.0 / 2013-05-01
- 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.
0.2.6 / 2013-02-05
- 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.
0.2.5 / 2012-05-11
- 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.
0.2.4 / 2012-04-27
- Require ffi ~> 1.0.
- Attempt loading
libhunspell-1.2
andlibhunspell-1.3
.
0.2.3 / 2011-02-02
- 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.
0.2.2 / 2011-01-25
- 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.
0.2.1 / 2011-01-23
- Require env ~> 0.1.2.
- Use
Env.lang
to get the default language.
- Use
- Updated the Copyright years.
0.2.0 / 2011-01-22
- 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.
0.1.0 / 2010-10-05
- Initial release.