lib/libmf.rb in libmf-0.1.0 vs lib/libmf.rb in libmf-0.1.1
- old
+ new
@@ -9,18 +9,18 @@
class Error < StandardError; end
class << self
attr_accessor :ffi_lib
end
- self.ffi_lib = ["mf"]
-
lib_path =
if ::FFI::Platform.windows?
- "../vendor/windows/mf.dll"
- else
+ "../vendor/libmf/windows/mf.dll"
+ elsif ::FFI::Platform.mac?
"libmf.bundle"
+ else
+ "libmf.so"
end
- self.ffi_lib << File.expand_path(lib_path, __dir__)
+ self.ffi_lib = [File.expand_path(lib_path, __dir__)]
# friendlier error message
autoload :FFI, "libmf/ffi"
end