yerba 0.4.1-arm-linux-gnu → 0.4.2-arm-linux-gnu
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/exe/arm-linux-gnu/yerba +0 -0
- data/lib/yerba/3.2/yerba.so +0 -0
- data/lib/yerba/3.3/yerba.so +0 -0
- data/lib/yerba/3.4/yerba.so +0 -0
- data/lib/yerba/4.0/yerba.so +0 -0
- data/lib/yerba/version.rb +1 -1
- data/lib/yerba.rb +11 -7
- data/rust/Cargo.lock +1 -1
- data/rust/Cargo.toml +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a4c14424f265a974d19b331e3b4caecc472e6188c5f8723750bf318bd1f679d1
|
|
4
|
+
data.tar.gz: 20d7f211d3d84232d2fd5c7f5d6f7ea198ade9d84b48f93e875b037d44ccaa2d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ae81af3482c3cd9081b7e9ec6baa8ce802f12353b22a03acc95f86361958e201815fa9905ca28e3dd7cdd62be3a9c536eede8fc7d895f94bcf73b4f1053ce38d
|
|
7
|
+
data.tar.gz: e4b90b3c97028ccc27f6df9cf6e4838090ce30c2ca2a4ebb80dd18988ade670e20db51022dd08d6b981d8c4d7cc939c4e9d7c3ef13347c466d646c305212a254
|
data/exe/arm-linux-gnu/yerba
CHANGED
|
Binary file
|
data/lib/yerba/3.2/yerba.so
CHANGED
|
Binary file
|
data/lib/yerba/3.3/yerba.so
CHANGED
|
Binary file
|
data/lib/yerba/3.4/yerba.so
CHANGED
|
Binary file
|
data/lib/yerba/4.0/yerba.so
CHANGED
|
Binary file
|
data/lib/yerba/version.rb
CHANGED
data/lib/yerba.rb
CHANGED
|
@@ -35,9 +35,9 @@ module Yerba
|
|
|
35
35
|
NATIVE_PLATFORMS = {
|
|
36
36
|
"arm64-darwin" => "arm64-darwin",
|
|
37
37
|
"x86_64-darwin" => "x86_64-darwin",
|
|
38
|
-
"aarch64-linux" => "aarch64-linux",
|
|
39
|
-
"arm64-linux" => "aarch64-linux",
|
|
40
|
-
"x86_64-linux" => "x86_64-linux",
|
|
38
|
+
"aarch64-linux" => "aarch64-linux-gnu",
|
|
39
|
+
"arm64-linux" => "aarch64-linux-gnu",
|
|
40
|
+
"x86_64-linux" => "x86_64-linux-gnu",
|
|
41
41
|
}.freeze
|
|
42
42
|
|
|
43
43
|
def self.executable(exe_path: nil)
|
|
@@ -104,14 +104,18 @@ module Yerba
|
|
|
104
104
|
|
|
105
105
|
FileUtils.mkdir_p(exe_directory)
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
root_dir = File.expand_path(File.join("..", ".."), __dir__)
|
|
108
|
+
workspace_target = File.join(root_dir, "target", "release", EXECUTABLE_NAME)
|
|
109
|
+
crate_target = File.join(rust_dir, "target", "release", EXECUTABLE_NAME)
|
|
110
|
+
|
|
111
|
+
unless system("cd #{root_dir} && cargo build --release")
|
|
108
112
|
raise CompilationError, "Failed to compile yerba from source. Is Rust installed?"
|
|
109
113
|
end
|
|
110
114
|
|
|
111
|
-
source_binary =
|
|
115
|
+
source_binary = [workspace_target, crate_target].find { |p| File.exist?(p) }
|
|
112
116
|
|
|
113
|
-
unless
|
|
114
|
-
raise CompilationError, "Compilation succeeded but binary not found at #{
|
|
117
|
+
unless source_binary
|
|
118
|
+
raise CompilationError, "Compilation succeeded but binary not found at #{workspace_target} or #{crate_target}"
|
|
115
119
|
end
|
|
116
120
|
|
|
117
121
|
FileUtils.cp(source_binary, exe_file)
|
data/rust/Cargo.lock
CHANGED
data/rust/Cargo.toml
CHANGED