Skip to content

Commit fb4ea5e

Browse files
committed
Fix library path for TA-Lib in lib/ta_lib.rb to ensure correct loading on macOS and Windows. Updated file names to use hyphens instead of underscores for consistency with platform conventions.
1 parent 11233b8 commit fb4ea5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ta_lib.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ module TALib
99
lib_path = case RUBY_PLATFORM
1010
when /darwin/
1111
brew_prefix = `brew --prefix`.chomp
12-
"#{brew_prefix}/lib/libta_lib.dylib"
12+
"#{brew_prefix}/lib/libta-lib.dylib"
1313
when /linux/
1414
"libta-lib.so"
1515
when /win32|mingw32/
16-
"C:/Program Files/TA-Lib/bin/ta_lib.dll"
16+
"C:/Program Files/TA-Lib/bin/ta-lib.dll"
1717
else
1818
raise "Unsupported platform"
1919
end

0 commit comments

Comments
 (0)