lib/xlearn.rb in xlearn-0.1.1 vs lib/xlearn.rb in xlearn-0.1.2

- old
+ new

@@ -19,10 +19,12 @@ class Error < StandardError; end class << self attr_accessor :ffi_lib end - self.ffi_lib = ["xlearn_api"] + lib_name = FFI.map_library_name("xlearn_api") + vendor_lib = File.expand_path("../vendor/#{lib_name}", __dir__) + self.ffi_lib = [vendor_lib] # friendlier error message autoload :FFI, "xlearn/ffi" end