triangulum 0.4.0-aarch64-linux-gnu → 0.5.1-aarch64-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/lib/triangulum/validation.rb +13 -3
- data/lib/triangulum/version.rb +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: '04579ba88eb24054875c2f5215d1019abcd2eb3d0a091c90b891d16e07883c82'
|
|
4
|
+
data.tar.gz: 61173bc401631023304e200162672f6b11c97a3740a8c918117349f2486e9210
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f1347a606e4286803b8a853954380ea0b2ddb3e1596da1f5abe42621dd2ef40783e5a5279bc6971097aa2baec34e3b95dbba341a78a6c97f9111cf694c2428eb
|
|
7
|
+
data.tar.gz: a4091bb6c5de9b87b7e6b561fe76f82a1963aafd18ae4eddf51a107e9f03faaa3d27fa644f4c4cf7f11b1ecf4a882335dc7ecf58d8a05c0290ddb8fc25c0721b
|
|
@@ -19,6 +19,8 @@ module Triangulum
|
|
|
19
19
|
Gem::Platform.match_gem?(platform, Gem::Platform.local.to_s)
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
+
IS_RUBY_PLATFORM_GEM = Dir.glob(File.expand_path('../../exe/*/bun', __dir__)).empty?
|
|
23
|
+
|
|
22
24
|
attr_reader :flow, :runtime_function_definitions, :data_types
|
|
23
25
|
|
|
24
26
|
def initialize(flow, runtime_function_definitions, data_types)
|
|
@@ -38,10 +40,8 @@ module Triangulum
|
|
|
38
40
|
private
|
|
39
41
|
|
|
40
42
|
def run_ts_triangulum(input)
|
|
41
|
-
raise BunNotFound, "No bundled bun binary found for #{Gem::Platform.local}" if BUN_EXE.nil?
|
|
42
|
-
|
|
43
43
|
stdout_s, stderr_s, status = Open3.capture3(
|
|
44
|
-
|
|
44
|
+
bun, 'run', ENTRYPOINT,
|
|
45
45
|
stdin_data: input
|
|
46
46
|
)
|
|
47
47
|
|
|
@@ -88,5 +88,15 @@ module Triangulum
|
|
|
88
88
|
end
|
|
89
89
|
)
|
|
90
90
|
end
|
|
91
|
+
|
|
92
|
+
def bun
|
|
93
|
+
if IS_RUBY_PLATFORM_GEM
|
|
94
|
+
'bun'
|
|
95
|
+
else
|
|
96
|
+
raise BunNotFound, "No bundled bun binary found for #{Gem::Platform.local}" if BUN_EXE.nil?
|
|
97
|
+
|
|
98
|
+
BUN_EXE
|
|
99
|
+
end
|
|
100
|
+
end
|
|
91
101
|
end
|
|
92
102
|
end
|
data/lib/triangulum/version.rb
CHANGED