Skip to content

Commit 20f407d

Browse files
committed
Simplify ffi_lib path lookup
1 parent 0e9ca86 commit 20f407d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/sassc/native.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ module SassC
66
module Native
77
extend FFI::Library
88

9-
spec = Gem.loaded_specs["sassc"]
10-
gem_root = spec.gem_dir
11-
129
dl_ext = (RbConfig::CONFIG['host_os'] =~ /darwin/ ? 'bundle' : 'so')
13-
ffi_lib "#{gem_root}/lib/sassc/libsass.#{dl_ext}"
10+
ffi_lib File.expand_path("libsass.#{dl_ext}", __dir__)
1411

1512
require_relative "native/sass_value"
1613

0 commit comments

Comments
 (0)