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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 274bd950241a93f37d010fc0ba39bcc1100d6623ea2f23b5b5d18560f215e955
4
- data.tar.gz: cec89ed67cde9aa97bae552055405c2a352c21be922baf523276c4f2d40d5ed7
3
+ metadata.gz: '04579ba88eb24054875c2f5215d1019abcd2eb3d0a091c90b891d16e07883c82'
4
+ data.tar.gz: 61173bc401631023304e200162672f6b11c97a3740a8c918117349f2486e9210
5
5
  SHA512:
6
- metadata.gz: 9c93fd252a5088514998e758b33abe0f2f607519097c670d70233732ecc6a112b6d675c2d3b30fcc87e40de0094adeb096ecfc1fa71ea52cc6d77ce26b203b9f
7
- data.tar.gz: a473ca1463a0e766679228b0511d715e7c7582677513a58455088509659376d35eeaccce7f7ba42f002182a5af04a7f19727c101c592a06817648bb767cf15f8
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
- BUN_EXE, 'run', ENTRYPOINT,
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Triangulum
4
- VERSION = '0.4.0'
4
+ VERSION = '0.5.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: triangulum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.1
5
5
  platform: aarch64-linux-gnu
6
6
  authors:
7
7
  - Niklas van Schrick