Permalink
Browse files

Merge pull request #6 from drbrain/hunspell_1_3

Added support for hunspell 1.3 including backwards compatibility
  • Loading branch information...
2 parents b0dac41 + 73ddc4f commit 1ac94818e06bad297baecd95176f28f7f94c32fc @ahx committed Apr 30, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/hunspell-ffi.rb
View
8 lib/hunspell-ffi.rb
@@ -3,7 +3,13 @@
class Hunspell
module C
extend FFI::Library
- ffi_lib ['libhunspell', 'libhunspell-1.2', 'libhunspell-1.2.so.0']
+ ffi_lib %w[
+ libhunspell-1.3
+ libhunspell-1.3.so.0
+ libhunspell-1.2
+ libhunspell-1.2.so.0
+ libhunspell
+ ]
attach_function :Hunspell_create, [:string, :string], :pointer
attach_function :Hunspell_spell, [:pointer, :string], :bool
attach_function :Hunspell_suggest, [:pointer, :pointer, :string], :int

0 comments on commit 1ac9481

Please sign in to comment.