lib/xgboost.rb in xgb-0.7.1 vs lib/xgboost.rb in xgb-0.7.2

- old
+ new

@@ -1,19 +1,19 @@ # dependencies require "ffi" # modules -require "xgboost/utils" -require "xgboost/booster" -require "xgboost/dmatrix" -require "xgboost/version" +require_relative "xgboost/utils" +require_relative "xgboost/booster" +require_relative "xgboost/dmatrix" +require_relative "xgboost/version" # scikit-learn API -require "xgboost/model" -require "xgboost/classifier" -require "xgboost/ranker" -require "xgboost/regressor" +require_relative "xgboost/model" +require_relative "xgboost/classifier" +require_relative "xgboost/ranker" +require_relative "xgboost/regressor" module XGBoost class Error < StandardError; end class << self @@ -26,9 +26,11 @@ if RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i "arm64-darwin/libxgboost.dylib" else "x86_64-darwin/libxgboost.dylib" end + elsif RbConfig::CONFIG["host_os"] =~ /linux-musl/i + "x86_64-linux-musl/libxgboost.so" else if RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i "aarch64-linux/libxgboost.so" else "x86_64-linux/libxgboost.so"