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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f99fb59ff2a373e20732356653aecd359161a208cde44657504762a8c4077bc
4
- data.tar.gz: 54092c28e242c8cae747f33ce19d69f37599950a69174f5f6779212720654541
3
+ metadata.gz: a4c14424f265a974d19b331e3b4caecc472e6188c5f8723750bf318bd1f679d1
4
+ data.tar.gz: 20d7f211d3d84232d2fd5c7f5d6f7ea198ade9d84b48f93e875b037d44ccaa2d
5
5
  SHA512:
6
- metadata.gz: 1479f3929c7f8790a78cee8a0823ad26babadb1eb7f869d95b6e1b5b8cc4596933d96878c638ea0239e1cc2a4a0835e4cc0d20be3dc061bdc0c6d15b0ff50e47
7
- data.tar.gz: ac9298c227a3b61f5993da7c4b837a5f973f2c2480e92bc836d54a2e4a8149a1c2ab27044d66534699fe516ebc9b354d90041e8c87b182f37b260a3dab0e554a
6
+ metadata.gz: ae81af3482c3cd9081b7e9ec6baa8ce802f12353b22a03acc95f86361958e201815fa9905ca28e3dd7cdd62be3a9c536eede8fc7d895f94bcf73b4f1053ce38d
7
+ data.tar.gz: e4b90b3c97028ccc27f6df9cf6e4838090ce30c2ca2a4ebb80dd18988ade670e20db51022dd08d6b981d8c4d7cc939c4e9d7c3ef13347c466d646c305212a254
Binary file
Binary file
Binary file
Binary file
Binary file
data/lib/yerba/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Yerba
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
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
- unless system("cd #{rust_dir} && cargo build --release")
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 = File.join(rust_dir, "target", "release", EXECUTABLE_NAME)
115
+ source_binary = [workspace_target, crate_target].find { |p| File.exist?(p) }
112
116
 
113
- unless File.exist?(source_binary)
114
- raise CompilationError, "Compilation succeeded but binary not found at #{source_binary}"
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
@@ -785,7 +785,7 @@ dependencies = [
785
785
 
786
786
  [[package]]
787
787
  name = "yerba"
788
- version = "0.4.1"
788
+ version = "0.4.2"
789
789
  dependencies = [
790
790
  "cbindgen",
791
791
  "clap",
data/rust/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "yerba"
3
- version = "0.4.1"
3
+ version = "0.4.2"
4
4
  edition = "2021"
5
5
  authors = ["Marco Roth <marco.roth@intergga.ch>"]
6
6
  description = "YAML Editing and Refactoring with Better Accuracy"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yerba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: arm-linux-gnu
6
6
  authors:
7
7
  - Marco Roth