lib/blurhash.rb in blurhash-0.1.3 vs lib/blurhash.rb in blurhash-0.1.4
- old
+ new
@@ -21,10 +21,10 @@
[x_comp, y_comp]
end
module Unstable
extend FFI::Library
- ffi_lib File.join(File.expand_path(__dir__), 'encode.' + RbConfig::CONFIG['DLEXT'])
+ ffi_lib File.join(File.expand_path(File.dirname(__FILE__)), '..', 'ext', 'blurhash', 'encode.' + RbConfig::CONFIG['DLEXT'])
attach_function :blurHashForPixels, %i(int int int int pointer size_t), :string
end
module Base83
DIGIT_CHARACTERS = %w(